mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-06-09 23:29:40 +00:00
added some attributes to be printed during animation
This commit is contained in:
parent
aaccabac56
commit
166d7d3661
|
@ -95,10 +95,15 @@
|
|||
(time/millis tick-duration-millis)))]
|
||||
(println (arena-text-grid world print-width print-height))
|
||||
(doseq [robot-idx (range (count (:robots world)))]
|
||||
(println (format "%d: x %.1f, y %.1f"
|
||||
(println (format "%d: x %.1f, y %.1f, v-x %.1f, v-y %.1f, desired-v-x %.1f, desired-v-y %.1f"
|
||||
robot-idx
|
||||
(get-in world [:robots robot-idx :pos-x])
|
||||
(get-in world [:robots robot-idx :pos-y]))))
|
||||
(get-in world [:robots robot-idx :pos-y])
|
||||
(get-in world [:robots robot-idx :v-x])
|
||||
(get-in world [:robots robot-idx :v-y])
|
||||
(get-in world [:robots robot-idx :desired-v-x])
|
||||
(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)
|
||||
(let [now (time/now)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user