Fix some bindings in level-manager.scm
This commit is contained in:
parent
47abe2da10
commit
b8185fee2c
1 changed files with 16 additions and 14 deletions
|
@ -1,15 +1,16 @@
|
|||
(define-module (game level-manager)
|
||||
#:pure
|
||||
#:use-module (scheme base)
|
||||
#:use-module (ces component)
|
||||
#:use-module (ces component hitbox)
|
||||
#:use-module (ces component position)
|
||||
#:use-module (ces component sprite)
|
||||
#:use-module (ces entity)
|
||||
#:use-module (ces entity-manager)
|
||||
#:use-module (game-core)
|
||||
#:use-module (game game-objects)
|
||||
#:export ())
|
||||
#:pure
|
||||
#:use-module (scheme base)
|
||||
#:use-module (ces component)
|
||||
#:use-module (ces component hitbox)
|
||||
#:use-module (ces component position)
|
||||
#:use-module (ces component sprite)
|
||||
#:use-module (ces entity)
|
||||
#:use-module (ces entity-manager)
|
||||
#:use-module (dom image)
|
||||
#:use-module (game-core)
|
||||
#:use-module (game game-objects)
|
||||
#:export ())
|
||||
|
||||
;; Player
|
||||
(define (player? entity)
|
||||
|
@ -35,9 +36,10 @@
|
|||
(set-component entity 'hitbox (make-hitbox entity-id x y width height)))
|
||||
|
||||
(define (add-room-components entity background x y width height)
|
||||
(let* ((room-entity-id (game-entity-id entity))
|
||||
(entity (add-background entity room-entity-id sprite width height))
|
||||
(entity (add-bounding-box entity room-entity-id x y width height)))))
|
||||
(let* ((room-entity-id (game-entity-id entity))
|
||||
(entity (add-background entity room-entity-id sprite width height))
|
||||
(entity (add-bounding-box entity room-entity-id x y width height)))
|
||||
entity))
|
||||
|
||||
(define (create-room! background x y width height)
|
||||
(let* ((e-manager (get-entity-manager))
|
||||
|
|
Loading…
Reference in a new issue