Tests and csm build options
This commit is contained in:
parent
ed879f61a8
commit
6ec898f96c
5 changed files with 49 additions and 5 deletions
|
|
@ -101,7 +101,7 @@
|
|||
(add-queued-entities))
|
||||
|
||||
;; Entity creation/removal interface
|
||||
(export create-named-entity create-entity remove-entity)
|
||||
(export create-named-entity create-entity remove-entity clear-world)
|
||||
|
||||
;; Create an entity in the world and return it's ID
|
||||
(define (create-named-entity id . components)
|
||||
|
|
@ -323,12 +323,17 @@
|
|||
event)
|
||||
#f)))
|
||||
|
||||
;; Frame generation interface
|
||||
(export next-frame)
|
||||
;; Frame generation and game loop
|
||||
(export resolve-queues next-frame)
|
||||
|
||||
;; Resolve the entity and system queues. This is exported which allows breaking iteration
|
||||
(define (resolve-queues)
|
||||
(resolve-entity-queue)
|
||||
(resolve-system-queue))
|
||||
|
||||
;; Generate the next frame, for use in the main game loop
|
||||
(define (next-frame)
|
||||
(resolve-entity-queue)
|
||||
(resolve-system-queue)
|
||||
(resolve-queues)
|
||||
(with-drawing
|
||||
(execute-systems)))
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue