Simplifying engine interface #14

Merged
BirDt merged 14 commits from feature/basic-samples into master 2026-04-18 09:12:01 +08:00
Showing only changes of commit 04e3ec5fa6 - Show all commits

View file

@ -107,11 +107,19 @@
'entity
'(<rigidbody-2d>)
(lambda (_ rbody)
(when (pop-event 'input 'boost)
(when (peek-event 'input 'boost)
(set-rigidbody-2d-velocity! rbody
(v* 2
(rigidbody-2d-velocity rbody)))))))
(add-system
(make-system 'clear-boost
4
'global
'()
(lambda ()
(pop-event 'input 'boost))))
(define (make-ball position velocity color)
(create-entity
(make-visual-2d