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 1b759d7771 - Show all commits

View file

@ -23,15 +23,15 @@
(push-render-object 'screen
(visual-2d-layer vis-2d)
(lambda ()
(let ((draw-pos (+ (position transform)
(circle-2d-center circle))))
((if (circle-2d-filled? circle)
draw-circle
draw-circle-lines)
(inexact->exact (round (+ (vector-x (position transform))
(vector-x (circle-2d-center circle)))))
(inexact->exact (round (+ (vector-y (position transform))
(vector-y (circle-2d-center circle)))))
(vector-x draw-pos)
(vector-y draw-pos)
(circle-2d-radius circle)
(use-color (visual-2d-color vis-2d))))))))))
(visual-2d-color vis-2d))))))))))
(define-record-type <rigidbody-2d>