Add missing imports to game-manager
This commit is contained in:
parent
4089d2758d
commit
c19d67de6c
1 changed files with 13 additions and 8 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue