Update level-manager
This commit is contained in:
parent
b8185fee2c
commit
d9806b2f8b
1 changed files with 7 additions and 7 deletions
|
@ -8,14 +8,14 @@
|
||||||
#:use-module (ces entity)
|
#:use-module (ces entity)
|
||||||
#:use-module (ces entity-manager)
|
#:use-module (ces entity-manager)
|
||||||
#:use-module (dom image)
|
#:use-module (dom image)
|
||||||
#:use-module (game-core)
|
|
||||||
#:use-module (game game-objects)
|
#:use-module (game game-objects)
|
||||||
#:export ())
|
#:export (create-player!
|
||||||
|
create-room!))
|
||||||
|
|
||||||
;; Player
|
;; Player
|
||||||
(define (player? entity)
|
;;(define (player? entity)
|
||||||
(and (game-object? entity)
|
;; (and (game-object? entity)
|
||||||
(has-components? entity 'keyboard-input)))
|
;; (has-components? entity 'keyboard-input)))
|
||||||
|
|
||||||
(define player-sprite (make-image "assets/sprites/player.png"))
|
(define player-sprite (make-image "assets/sprites/player.png"))
|
||||||
(define (create-player!)
|
(define (create-player!)
|
||||||
|
@ -24,8 +24,8 @@
|
||||||
(make-inputs '() '() '()))))
|
(make-inputs '() '() '()))))
|
||||||
|
|
||||||
;; Room
|
;; Room
|
||||||
(define (room? entity)
|
;;(define (room? entity)
|
||||||
(has-components? entity 'hitbox 'sprite)) ;; + 'room-objects ?
|
;; (has-components? entity 'hitbox 'sprite)) ;; + 'room-objects ?
|
||||||
;; As it stands a game object is technically also a room.
|
;; As it stands a game object is technically also a room.
|
||||||
;; This will not be the case in the future -- especially once tilemaps work.
|
;; This will not be the case in the future -- especially once tilemaps work.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue