Simplifying engine interface #14
1 changed files with 9 additions and 9 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue