Simplifying engine interface #14
1 changed files with 9 additions and 9 deletions
|
|
@ -23,15 +23,15 @@
|
||||||
(push-render-object 'screen
|
(push-render-object 'screen
|
||||||
(visual-2d-layer vis-2d)
|
(visual-2d-layer vis-2d)
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
(let ((draw-pos (+ (position transform)
|
||||||
|
(circle-2d-center circle))))
|
||||||
((if (circle-2d-filled? circle)
|
((if (circle-2d-filled? circle)
|
||||||
draw-circle
|
draw-circle
|
||||||
draw-circle-lines)
|
draw-circle-lines)
|
||||||
(inexact->exact (round (+ (vector-x (position transform))
|
(vector-x draw-pos)
|
||||||
(vector-x (circle-2d-center circle)))))
|
(vector-y draw-pos)
|
||||||
(inexact->exact (round (+ (vector-y (position transform))
|
|
||||||
(vector-y (circle-2d-center circle)))))
|
|
||||||
(circle-2d-radius circle)
|
(circle-2d-radius circle)
|
||||||
(use-color (visual-2d-color vis-2d))))))))))
|
(visual-2d-color vis-2d))))))))))
|
||||||
|
|
||||||
|
|
||||||
(define-record-type <rigidbody-2d>
|
(define-record-type <rigidbody-2d>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue