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 190a32ac54 - Show all commits

View file

@ -97,19 +97,7 @@
(+ (rigidbody-2d-velocity rbody)
(position transform))))))
(define-record-type <key-press>
(make-key-press key)
key-press?
(key key-press-key))
(add-system
(make-system 'input
0
'global
'()
(lambda ()
(when (key-pressed? KEY_SPACE)
(push-event 'input 'boost (make-key-press 'space))))))
(register-action 'boost 'key-press KEY_SPACE)
(add-system
(make-system 'boost-rigidbody