removed :icon from robot attributes; not related to anything except display

This commit is contained in:
Richard Harrington 2013-08-12 17:24:16 -04:00
parent 4c6638a6a3
commit c5ff1f4a6e

View File

@ -14,8 +14,7 @@
(robot/init-robot
idx
program
{:icon (str idx)
:pos-x (rand-int width)
{ :pos-x (rand-int width)
:pos-y (rand-int height)
:aim 0.0
:damage 0.0}))
@ -68,9 +67,9 @@
scale-x #(* % (/ print-width width))
scale-y #(* % (/ print-height height))
field (for [y (range print-height), x (range print-width)]
(or (some (fn [{:keys [icon pos-x pos-y]}]
(or (some (fn [{:keys [idx pos-x pos-y]}]
(when (near-point [(scale-x pos-x) (scale-y pos-y)] [x y])
(str "(" icon ")")))
(str "(" idx ")")))
robots)
" "))]
(str header-footer