mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-05-28 23:41:31 +00:00
added line to display seconds elapsed in game world (to text display)
This commit is contained in:
parent
36f8dcef4e
commit
1ad383a993
|
@ -106,7 +106,8 @@
|
|||
(get-in world [:robots robot-idx :desired-v-y])
|
||||
)))
|
||||
(println (format "Animation frame rate: %.1f frames per second", frame-rate))
|
||||
(println "World-tick number:" idx)
|
||||
(println "Tick number:" idx)
|
||||
(println (format "Seconds elapsed in the game-world: %.1f", (* tick-duration idx)))
|
||||
(let [now (time/now)]
|
||||
(if (time/before? now next-tick)
|
||||
(do
|
||||
|
|
Loading…
Reference in New Issue
Block a user