|
|
@ -13,7 +13,10 @@
|
|
|
|
:now 0
|
|
|
|
:now 0
|
|
|
|
:fps 0
|
|
|
|
:fps 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
:keys []
|
|
|
|
:dimensions {
|
|
|
|
|
|
|
|
:w 600
|
|
|
|
|
|
|
|
:h 400
|
|
|
|
|
|
|
|
}
|
|
|
|
:scene :demo
|
|
|
|
:scene :demo
|
|
|
|
:scenes {
|
|
|
|
:scenes {
|
|
|
|
:demo {
|
|
|
|
:demo {
|
|
|
@ -54,7 +57,10 @@
|
|
|
|
(update-scene)))
|
|
|
|
(update-scene)))
|
|
|
|
|
|
|
|
|
|
|
|
(defn draw-step [gamestate]
|
|
|
|
(defn draw-step [gamestate]
|
|
|
|
(.clearRect (:2d gamestate) 0 0 400 600)
|
|
|
|
(.clearRect (:2d gamestate)
|
|
|
|
|
|
|
|
0 0
|
|
|
|
|
|
|
|
(get-in gamestate [:dimensions :w])
|
|
|
|
|
|
|
|
(get-in gamestate [:dimensions :h]))
|
|
|
|
(.fillText
|
|
|
|
(.fillText
|
|
|
|
(:2d gamestate)
|
|
|
|
(:2d gamestate)
|
|
|
|
(int (get-in gamestate [:timing :fps]))
|
|
|
|
(int (get-in gamestate [:timing :fps]))
|
|
|
|