Use new render! function
This commit is contained in:
@@ -55,10 +55,8 @@ For now, check out the [example projects](https://github.com/oakes/play-clj-exam
|
|||||||
(fn [screen entities]
|
(fn [screen entities]
|
||||||
; make the screen completely black
|
; make the screen completely black
|
||||||
(clear!)
|
(clear!)
|
||||||
; render the tiled map
|
; render the tiled map, draw the entities and return them
|
||||||
(render! screen)
|
(render! screen entities))
|
||||||
; draw the entities and return them
|
|
||||||
(draw! screen entities))
|
|
||||||
|
|
||||||
; this function runs when the screen dimensions change
|
; this function runs when the screen dimensions change
|
||||||
:on-resize
|
:on-resize
|
||||||
|
|||||||
Reference in New Issue
Block a user