Tests and csm build options

This commit is contained in:
BirDt_ 2026-03-29 15:02:06 +08:00
parent ed879f61a8
commit 6ec898f96c
5 changed files with 49 additions and 5 deletions

View file

@ -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)))
)