Add missing imports to game-manager

This commit is contained in:
TakeV 2024-05-25 04:37:51 -04:00
parent 4089d2758d
commit c19d67de6c
Signed by: TakeV
GPG key ID: A64F41345C7400AF

View file

@ -1,10 +1,15 @@
(define-module (game game-manager)
#:pure
#:use-module (scheme base)
#:use-module (ces system html-canvas-renderer)
#:use-module (game level-manager)
#:export (init-game-entities
init-game-systems))
#:pure
#:use-module (scheme base)
#:use-module (dom document)
#:use-module (dom element)
#:use-module (dom image)
#:use-module (dom window)
#:use-module (dom canvas)
#:use-module (ces system html-canvas-renderer)
#:use-module (game level-manager)
#:export (init-game-entities
init-game-systems))
(define canvas (get-element-by-id "canvas"))
(define context (get-context canvas "2d"))
@ -17,6 +22,6 @@
(create-room! room-background 0 0 128 64)))
(define (init-game-systems)
"Returns a list of initial game systems.
"Returns a list of initial game systems.
Note: Systems are executed sequentially. "
(list (create-html-canvas-renderer context)))
(list (create-html-canvas-renderer context)))