Logo Bolo: a re-envisioning of the classic tank game by Stuart Cheshire in NetLogo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

705 lines
18 KiB

  1. ;; lobo: Logo Bolo
  2. ;; (c) Ben Kurtovic, 2011-2012
  3. ;;
  4. ;; Logo Bolo is a re-envisioning of the classic tank game by Stuart Cheshire in NetLogo.
  5. ;;
  6. __includes [
  7. "base.nls"
  8. "bullet.nls"
  9. "explosion.nls"
  10. "pillbox.nls"
  11. "player.nls"
  12. "tank.nls"
  13. ]
  14. extensions [
  15. sound
  16. table
  17. ]
  18. globals [
  19. last-sound-time
  20. last-tick-time
  21. max-fps
  22. mouse-was-down?
  23. sound-stopped?
  24. sounds
  25. ]
  26. ;; ===========================
  27. ;; Button-initiated procedures
  28. ;; ===========================
  29. to setup
  30. clear-all
  31. no-display
  32. setup-defaults
  33. make-sounds-table
  34. make-explosions-table
  35. load-map
  36. spawn-player 0 0 0
  37. spawn-tank 0 -6 0 90
  38. spawn-tank 1 6 0 270
  39. spawn-base 0 -7
  40. spawn-pillbox 6 6
  41. show-hud
  42. render
  43. end
  44. to go
  45. if player != nobody [
  46. ask player [
  47. do-player-logic
  48. ]
  49. ]
  50. ask tanks [
  51. do-tank-logic
  52. ]
  53. ask pillboxes [
  54. do-pill-logic
  55. ]
  56. ask bases [
  57. do-base-logic
  58. ]
  59. ask bullets [
  60. do-bullet-logic
  61. ]
  62. ask explosions [
  63. keep-exploding
  64. ]
  65. show-crosshairs
  66. show-hud
  67. stop-old-sounds
  68. render
  69. keep-time
  70. end
  71. to player-fire
  72. ask player [
  73. fire
  74. ]
  75. end
  76. to player-cancel-order
  77. ask player [
  78. cancel-order
  79. ]
  80. end
  81. ;; ================
  82. ;; Other procedures
  83. ;; ================
  84. to debug [agent action msg]
  85. ; Comment this and remove the output box
  86. ; to turn off debugging info:
  87. print (word (round timer) ": " agent ": " action " (" msg ")")
  88. end
  89. to setup-defaults
  90. set-patch-size 20
  91. resize-world -17 17 -12 12
  92. set last-sound-time timer
  93. set last-tick-time timer
  94. set max-fps 30
  95. set mouse-was-down? false
  96. set sound-stopped? true
  97. set player-deaths 0
  98. set player-has-target? false
  99. set player-kills 0
  100. set player-target-xcor 0
  101. set player-target-ycor 0
  102. end
  103. to make-sounds-table
  104. set sounds table:make
  105. table:put sounds "fire" "Hand Clap"
  106. table:put sounds "kill" "Electric Snare"
  107. table:put sounds "noammo" "Cowbell"
  108. table:put sounds "pickup" "Hi Bongo"
  109. table:put sounds "shot" "Acoustic Snare"
  110. table:put sounds "place" "Vibraslap"
  111. table:put sounds "nopill" "Cowbell"
  112. end
  113. to load-map
  114. ask patches [
  115. set pcolor (random 3) - 5 + green
  116. ]
  117. end
  118. to show-crosshairs
  119. clear-drawing
  120. if mouse-inside? [
  121. ask patch mouse-xcor mouse-ycor [
  122. draw-border white 1
  123. ]
  124. ]
  125. if player-has-target? [
  126. ask patch player-target-xcor player-target-ycor [
  127. draw-border white 2
  128. ]
  129. ]
  130. end
  131. to draw-border [b-color b-thickness]
  132. sprout 1 [
  133. set color b-color
  134. set pen-size b-thickness
  135. set heading 0
  136. fd 0.5
  137. pd
  138. rt 90
  139. fd 0.5
  140. repeat 3 [
  141. rt 90
  142. fd 1
  143. ]
  144. rt 90
  145. fd 0.5
  146. die
  147. ]
  148. end
  149. to show-hud
  150. let player-armor 0
  151. let player-ammo 0
  152. let num-pills 0
  153. if player != nobody [
  154. set player-armor [armor] of player
  155. set player-ammo [ammunition] of player
  156. set num-pills [number-of-pills] of player
  157. ]
  158. ask patch (max-pxcor - 1) (max-pycor - 1) [
  159. set plabel (word "Armor: " player-armor)
  160. ]
  161. ask patch (max-pxcor - 1) (max-pycor - 2) [
  162. set plabel (word "Ammo: " player-ammo)
  163. ]
  164. ask patch (max-pxcor - 1) (max-pycor - 3) [
  165. set plabel (word "Pillboxes: " num-pills)
  166. ]
  167. ask patch (max-pxcor - 1) (min-pycor + 2) [
  168. set plabel (word "Deaths: " player-deaths)
  169. ]
  170. ask patch (max-pxcor - 1) (min-pycor + 1) [
  171. set plabel (word "Kills: " player-kills)
  172. ]
  173. end
  174. to render
  175. display
  176. no-display
  177. end
  178. to keep-time
  179. let time-since-last-tick timer - last-tick-time
  180. let wait-time (1 / max-fps) - time-since-last-tick
  181. wait wait-time
  182. tick
  183. set last-tick-time timer
  184. end
  185. to stop-old-sounds
  186. ; NetLogo sometimes plays sounds for longer than we want
  187. ; i.e., it doesn't know how to properly stop long sounds:
  188. let time-since-last-sound timer - last-sound-time
  189. if time-since-last-sound > 2 and not sound-stopped? [
  190. debug -1 "SOUND-STOP" (word round time-since-last-sound " seconds since last")
  191. sound:stop-music
  192. set sound-stopped? true
  193. ]
  194. end
  195. to play-sound [name]
  196. if enable-sound? [
  197. let dist 0
  198. if player != nobody [
  199. set dist distancexy ([xcor] of player) ([ycor] of player)
  200. ]
  201. let volume 100 - (dist * 4)
  202. if volume > 0 [
  203. sound:play-drum (table:get sounds name) volume
  204. set last-sound-time timer
  205. set sound-stopped? false
  206. ]
  207. ]
  208. end
  209. @#$#@#$#@
  210. GRAPHICS-WINDOW
  211. 254
  212. 10
  213. 964
  214. 541
  215. 17
  216. 12
  217. 20.0
  218. 1
  219. 14
  220. 1
  221. 1
  222. 1
  223. 0
  224. 0
  225. 0
  226. 1
  227. -17
  228. 17
  229. -12
  230. 12
  231. 0
  232. 0
  233. 1
  234. frames
  235. BUTTON
  236. 19
  237. 179
  238. 114
  239. 212
  240. New Game
  241. setup
  242. NIL
  243. 1
  244. T
  245. OBSERVER
  246. NIL
  247. R
  248. NIL
  249. NIL
  250. BUTTON
  251. 129
  252. 179
  253. 223
  254. 212
  255. Play Game
  256. go
  257. T
  258. 1
  259. T
  260. OBSERVER
  261. NIL
  262. G
  263. NIL
  264. NIL
  265. BUTTON
  266. 21
  267. 244
  268. 224
  269. 291
  270. Fire!
  271. player-fire
  272. NIL
  273. 1
  274. T
  275. OBSERVER
  276. NIL
  277. F
  278. NIL
  279. NIL
  280. SWITCH
  281. 50
  282. 97
  283. 186
  284. 130
  285. enable-sound?
  286. enable-sound?
  287. 0
  288. 1
  289. -1000
  290. BUTTON
  291. 22
  292. 344
  293. 225
  294. 377
  295. Cancel Order
  296. player-cancel-order
  297. NIL
  298. 1
  299. T
  300. OBSERVER
  301. NIL
  302. C
  303. NIL
  304. NIL
  305. TEXTBOX
  306. 16
  307. 14
  308. 303
  309. 53
  310. LoBo: Logo Bolo
  311. 28
  312. 0.0
  313. 1
  314. TEXTBOX
  315. 41
  316. 53
  317. 304
  318. 87
  319. a game by Ben Kurtovic
  320. 14
  321. 0.0
  322. 1
  323. TEXTBOX
  324. 19
  325. 75
  326. 241
  327. 93
  328. ---------------------------------
  329. 11
  330. 0.0
  331. 1
  332. TEXTBOX
  333. 21
  334. 221
  335. 262
  336. 249
  337. ---------------------------------
  338. 11
  339. 0.0
  340. 1
  341. BUTTON
  342. 22
  343. 301
  344. 225
  345. 334
  346. Place Pill
  347. player-place-pill
  348. NIL
  349. 1
  350. T
  351. OBSERVER
  352. NIL
  353. P
  354. NIL
  355. NIL
  356. SLIDER
  357. 25
  358. 136
  359. 117
  360. 169
  361. allies
  362. allies
  363. 0
  364. 6
  365. 1
  366. 1
  367. 1
  368. NIL
  369. HORIZONTAL
  370. SLIDER
  371. 125
  372. 136
  373. 217
  374. 169
  375. enemies
  376. enemies
  377. 0
  378. 6
  379. 2
  380. 1
  381. 1
  382. NIL
  383. HORIZONTAL
  384. @#$#@#$#@
  385. @#$#@#$#@
  386. default
  387. true
  388. 0
  389. Polygon -7500403 true true 150 5 40 250 150 205 260 250
  390. base
  391. false
  392. 0
  393. Rectangle -1184463 true false 60 240 120 255
  394. Rectangle -1184463 true false 120 225 180 240
  395. Rectangle -1184463 true false 180 240 240 255
  396. Polygon -1184463 true false 45 240 30 240 30 270 60 270 60 255 45 255
  397. Polygon -7500403 true true 195 210 195 225 225 225 225 195 210 195 210 210
  398. Polygon -1184463 true false 60 45 60 30 30 30 30 60 45 60 45 45
  399. Polygon -1184463 true false 240 255 240 270 270 270 270 240 255 240 255 255
  400. Rectangle -1184463 true false 45 60 60 120
  401. Rectangle -1184463 true false 180 45 240 60
  402. Rectangle -1184463 true false 240 180 255 240
  403. Rectangle -1184463 true false 60 120 75 180
  404. Rectangle -1184463 true false 120 60 180 75
  405. Rectangle -1184463 true false 225 120 240 180
  406. Rectangle -1184463 true false 45 180 60 240
  407. Rectangle -1184463 true false 60 45 120 60
  408. Rectangle -1184463 true false 240 60 255 120
  409. Rectangle -1184463 true false 135 135 165 165
  410. Rectangle -1184463 true false 165 120 180 135
  411. Rectangle -1184463 true false 120 120 135 135
  412. Rectangle -1184463 true false 120 165 135 180
  413. Rectangle -1184463 true false 165 165 180 180
  414. Rectangle -7500403 true true 195 105 210 195
  415. Polygon -1184463 true false 255 60 270 60 270 30 240 30 240 45 255 45
  416. Rectangle -7500403 true true 105 90 195 105
  417. Rectangle -7500403 true true 90 105 105 195
  418. Rectangle -7500403 true true 105 195 195 210
  419. Polygon -7500403 true true 210 105 225 105 225 75 195 75 195 90 210 90
  420. Polygon -7500403 true true 105 90 105 75 75 75 75 105 90 105 90 90
  421. Polygon -7500403 true true 90 195 75 195 75 225 105 225 105 210 90 210
  422. bullet
  423. true
  424. 5
  425. Rectangle -16777216 true false 135 30 165 90
  426. Rectangle -1 true false 135 90 165 150
  427. Rectangle -1 true false 135 150 165 210
  428. Polygon -16777216 true false 135 30 150 0 165 30 135 30
  429. Rectangle -2674135 true false 135 210 165 270
  430. Rectangle -16777216 true false 120 270 180 300
  431. Polygon -7500403 true false 195 210 165 150 165 210 195 210
  432. Rectangle -7500403 true false 165 210 195 268
  433. Rectangle -7500403 true false 105 210 135 268
  434. Polygon -7500403 true false 105 210 135 150 135 210 105 210
  435. explosion-large
  436. false
  437. 0
  438. Circle -6459832 true false 2 2 297
  439. Circle -2674135 true false 30 30 240
  440. Circle -955883 true false 60 60 180
  441. Circle -1184463 true false 90 90 120
  442. explosion-med
  443. false
  444. 0
  445. Circle -2674135 true false 0 0 300
  446. Circle -955883 true false 45 45 210
  447. Circle -1184463 true false 90 90 120
  448. explosion-small
  449. false
  450. 0
  451. Circle -2674135 true false 2 2 295
  452. Circle -955883 true false 75 75 148
  453. pillbox-alive-1
  454. false
  455. 1
  456. Polygon -2674135 true true 270 240 270 270 240 270 180 210 210 180 270 240
  457. Rectangle -2674135 true true 225 135 300 165
  458. Rectangle -2674135 true true 135 0 165 75
  459. Rectangle -2674135 true true 0 135 75 165
  460. Rectangle -2674135 true true 135 225 165 300
  461. Polygon -2674135 true true 240 30 270 30 270 60 210 120 180 90 240 30
  462. Polygon -2674135 true true 30 60 30 30 60 30 120 90 90 120 30 60
  463. Polygon -2674135 true true 60 270 30 270 30 240 90 180 120 210 60 270
  464. Circle -7500403 true false 47 42 210
  465. Polygon -16777216 true false 117 90 87 136 100 198 102 149 111 121 145 95 129 78 122 95
  466. Polygon -16777216 true false 203 122 218 185 193 205 150 235 138 219 149 221 176 201 203 188 183 173 200 157 187 128 198 109
  467. Polygon -16777216 true false 116 183 126 216 143 210 129 207 123 182
  468. Polygon -16777216 true false 116 185 101 216 116 235 127 214
  469. Polygon -16777216 true false 154 67 188 61 218 99 192 86 178 144 179 86 158 66
  470. Polygon -16777216 true false 221 118 236 158 231 191 243 157
  471. Polygon -16777216 true false 105 120 135 90 150 120 123 146 110 181 97 157 112 105
  472. Polygon -16777216 true false 116 97 80 101 73 121 61 127 64 152 62 196 81 194 75 154 85 125 95 100
  473. Polygon -16777216 true false 152 224 182 234 212 216 230 196 211 202 191 218 187 206 160 223
  474. Polygon -16777216 true false 86 78 118 58 154 60 169 52 146 71 126 68 97 87 71 93 86 78
  475. Polygon -16777216 true false 218 107 248 139 245 184 230 192 224 154 225 126 214 109
  476. Polygon -16777216 true false 75 90 120 60 195 60 227 123 232 177 202 178 198 105 156 74 84 99 57 133 73 83
  477. Polygon -16777216 true false 77 147 124 213 176 210 222 179 167 171 137 191 105 141 67 117
  478. Polygon -16777216 true false 76 196 135 244 191 237 226 206 174 209 110 220 82 179 74 198
  479. Polygon -16777216 true false 101 67 154 52 175 134 135 94 92 95
  480. Polygon -16777216 true false 79 168 170 162 172 139 135 151 72 153
  481. Polygon -16777216 true false 207 80 249 119 166 172 160 128 208 83
  482. pillbox-alive-2
  483. false
  484. 1
  485. Polygon -2674135 true true 270 240 270 270 240 270 180 210 210 180 270 240
  486. Rectangle -2674135 true true 225 135 300 165
  487. Rectangle -2674135 true true 135 0 165 75
  488. Rectangle -2674135 true true 0 135 75 165
  489. Rectangle -2674135 true true 135 225 165 300
  490. Polygon -2674135 true true 240 30 270 30 270 60 210 120 180 90 240 30
  491. Polygon -2674135 true true 30 60 30 30 60 30 120 90 90 120 30 60
  492. Polygon -2674135 true true 60 270 30 270 30 240 90 180 120 210 60 270
  493. Circle -7500403 true false 47 42 210
  494. Polygon -16777216 true false 117 90 87 136 100 198 102 149 111 121 145 95 129 78 122 95
  495. Polygon -16777216 true false 203 122 218 185 193 205 150 235 138 219 149 221 176 201 203 188 183 173 200 157 187 128 198 109
  496. Polygon -16777216 true false 116 183 126 216 143 210 129 207 123 182
  497. Polygon -16777216 true false 116 185 101 216 116 235 127 214
  498. Polygon -16777216 true false 154 67 188 61 218 99 192 86 178 144 179 86 158 66
  499. Polygon -16777216 true false 221 118 236 158 231 191 243 157
  500. Polygon -16777216 true false 105 120 135 90 150 120 123 146 110 181 97 157 112 105
  501. Polygon -16777216 true false 116 97 80 101 73 121 61 127 64 152 62 196 81 194 75 154 85 125 95 100
  502. Polygon -16777216 true false 152 224 182 234 212 216 230 196 211 202 191 218 187 206 160 223
  503. Polygon -16777216 true false 86 78 118 58 154 60 169 52 146 71 126 68 97 87 71 93 86 78
  504. Polygon -16777216 true false 218 107 248 139 245 184 230 192 224 154 225 126 214 109
  505. Polygon -16777216 true false 75 90 120 60 195 60 227 123 232 177 202 178 198 105 156 74 84 99 57 133 73 83
  506. Polygon -16777216 true false 77 147 124 213 176 210 222 179 167 171 137 191 105 141 67 117
  507. Polygon -16777216 true false 76 196 135 244 191 237 226 206 174 209 110 220 82 179 74 198
  508. pillbox-alive-3
  509. false
  510. 1
  511. Polygon -2674135 true true 270 240 270 270 240 270 180 210 210 180 270 240
  512. Rectangle -2674135 true true 225 135 300 165
  513. Rectangle -2674135 true true 135 0 165 75
  514. Rectangle -2674135 true true 0 135 75 165
  515. Rectangle -2674135 true true 135 225 165 300
  516. Polygon -2674135 true true 240 30 270 30 270 60 210 120 180 90 240 30
  517. Polygon -2674135 true true 30 60 30 30 60 30 120 90 90 120 30 60
  518. Polygon -2674135 true true 60 270 30 270 30 240 90 180 120 210 60 270
  519. Circle -7500403 true false 47 42 210
  520. Polygon -16777216 true false 117 90 87 136 100 198 102 149 111 121 145 95 129 78 122 95
  521. Polygon -16777216 true false 203 122 218 185 193 205 150 235 138 219 149 221 176 201 203 188 183 173 200 157 187 128 198 109
  522. Polygon -16777216 true false 116 183 126 216 143 210 129 207 123 182
  523. Polygon -16777216 true false 116 185 101 216 116 235 127 214
  524. Polygon -16777216 true false 154 67 188 61 218 99 192 86 178 144 179 86 158 66
  525. Polygon -16777216 true false 221 118 236 158 231 191 243 157
  526. Polygon -16777216 true false 105 120 135 90 150 120 123 146 110 181 97 157 112 105
  527. Polygon -16777216 true false 116 97 80 101 73 121 61 127 64 152 62 196 81 194 75 154 85 125 95 100
  528. Polygon -16777216 true false 152 224 182 234 212 216 230 196 211 202 191 218 187 206 160 223
  529. Polygon -16777216 true false 86 78 118 58 154 60 169 52 146 71 126 68 97 87 71 93 86 78
  530. Polygon -16777216 true false 218 107 248 139 245 184 230 192 224 154 225 126 214 109
  531. pillbox-alive-4
  532. false
  533. 1
  534. Polygon -2674135 true true 270 240 270 270 240 270 180 210 210 180 270 240
  535. Rectangle -2674135 true true 225 135 300 165
  536. Rectangle -2674135 true true 135 0 165 75
  537. Rectangle -2674135 true true 0 135 75 165
  538. Rectangle -2674135 true true 135 225 165 300
  539. Polygon -2674135 true true 240 30 270 30 270 60 210 120 180 90 240 30
  540. Polygon -2674135 true true 30 60 30 30 60 30 120 90 90 120 30 60
  541. Polygon -2674135 true true 60 270 30 270 30 240 90 180 120 210 60 270
  542. Circle -7500403 true false 47 42 210
  543. Polygon -16777216 true false 117 90 87 136 100 198 102 149 111 121 145 95 129 78 122 95
  544. Polygon -16777216 true false 203 122 218 185 193 205 150 235 138 219 149 221 176 201 203 188 183 173 200 157 187 128 198 109
  545. Polygon -16777216 true false 116 183 126 216 143 210 129 207 123 182
  546. Polygon -16777216 true false 116 185 101 216 116 235 127 214
  547. Polygon -16777216 true false 154 67 188 61 218 99 192 86 178 144 179 86 158 66
  548. Polygon -16777216 true false 221 118 236 158 231 191 243 157
  549. Polygon -16777216 true false 105 120 135 90 150 120 123 146 110 181 97 157 112 105
  550. Polygon -16777216 true false 116 97 80 101 73 121 61 127 64 152 62 196 81 194 75 154 85 125 95 100
  551. pillbox-alive-5
  552. false
  553. 1
  554. Polygon -2674135 true true 270 240 270 270 240 270 180 210 210 180 270 240
  555. Rectangle -2674135 true true 225 135 300 165
  556. Rectangle -2674135 true true 135 0 165 75
  557. Rectangle -2674135 true true 0 135 75 165
  558. Rectangle -2674135 true true 135 225 165 300
  559. Polygon -2674135 true true 240 30 270 30 270 60 210 120 180 90 240 30
  560. Polygon -2674135 true true 30 60 30 30 60 30 120 90 90 120 30 60
  561. Polygon -2674135 true true 60 270 30 270 30 240 90 180 120 210 60 270
  562. Circle -7500403 true false 45 45 210
  563. Polygon -16777216 true false 117 90 87 136 100 198 102 149 111 121 145 95 129 78 122 95
  564. Polygon -16777216 true false 203 122 218 185 193 205 150 235 138 219 149 221 176 201 203 188 183 173 200 157 187 128 198 109
  565. Polygon -16777216 true false 116 183 126 216 143 210 129 207 123 182
  566. Polygon -16777216 true false 116 185 101 216 116 235 127 214
  567. Polygon -16777216 true false 154 67 188 61 218 99 192 86 178 144 179 86 158 66
  568. pillbox-alive-6
  569. false
  570. 1
  571. Polygon -2674135 true true 270 240 270 270 240 270 180 210 210 180 270 240
  572. Rectangle -2674135 true true 225 135 300 165
  573. Rectangle -2674135 true true 135 0 165 75
  574. Rectangle -2674135 true true 0 135 75 165
  575. Rectangle -2674135 true true 135 225 165 300
  576. Polygon -2674135 true true 240 30 270 30 270 60 210 120 180 90 240 30
  577. Polygon -2674135 true true 30 60 30 30 60 30 120 90 90 120 30 60
  578. Polygon -2674135 true true 60 270 30 270 30 240 90 180 120 210 60 270
  579. Circle -7500403 true false 45 45 210
  580. Polygon -16777216 true false 117 90 87 136 100 198 102 149 111 121 145 95 129 78 122 95
  581. Polygon -16777216 true false 203 122 218 185 193 205 150 235 138 219 149 221 176 201 203 188 183 173 200 157 187 128 198 109
  582. Polygon -16777216 true false 116 183 126 216 143 210 129 207 123 182
  583. pillbox-alive-7
  584. false
  585. 1
  586. Polygon -2674135 true true 270 240 270 270 240 270 180 210 210 180 270 240
  587. Rectangle -2674135 true true 225 135 300 165
  588. Rectangle -2674135 true true 135 0 165 75
  589. Rectangle -2674135 true true 0 135 75 165
  590. Rectangle -2674135 true true 135 225 165 300
  591. Polygon -2674135 true true 240 30 270 30 270 60 210 120 180 90 240 30
  592. Polygon -2674135 true true 30 60 30 30 60 30 120 90 90 120 30 60
  593. Polygon -2674135 true true 60 270 30 270 30 240 90 180 120 210 60 270
  594. Circle -7500403 true false 45 45 210
  595. Polygon -16777216 true false 117 90 87 136 100 198 102 149 111 121 145 95 129 78 122 95
  596. pillbox-alive-8
  597. false
  598. 1
  599. Polygon -2674135 true true 270 240 270 270 240 270 180 210 210 180 270 240
  600. Rectangle -2674135 true true 225 135 300 165
  601. Rectangle -2674135 true true 135 0 165 75
  602. Rectangle -2674135 true true 0 135 75 165
  603. Rectangle -2674135 true true 135 225 165 300
  604. Polygon -2674135 true true 240 30 270 30 270 60 210 120 180 90 240 30
  605. Polygon -2674135 true true 30 60 30 30 60 30 120 90 90 120 30 60
  606. Polygon -2674135 true true 60 270 30 270 30 240 90 180 120 210 60 270
  607. Circle -7500403 true false 45 45 210
  608. pillbox-dead
  609. false
  610. 1
  611. Polygon -7500403 true false 240 30 270 30 270 60 240 90 210 60 240 30
  612. Rectangle -7500403 true false 135 0 165 45
  613. Rectangle -7500403 true false 0 135 45 165
  614. Rectangle -7500403 true false 135 255 165 300
  615. Rectangle -7500403 true false 255 135 300 165
  616. Polygon -7500403 true false 30 60 30 30 60 30 90 60 60 90 30 60
  617. Polygon -7500403 true false 60 270 30 270 30 240 60 210 90 240 60 270
  618. Polygon -7500403 true false 270 240 270 270 240 270 210 240 240 210 270 240
  619. Polygon -2674135 true true 195 165 210 180 210 210 180 210 165 195
  620. Polygon -2674135 true true 165 105 180 90 210 90 210 120 195 135
  621. Polygon -2674135 true true 105 135 90 120 90 90 120 90 135 105
  622. Polygon -2674135 true true 135 195 120 210 90 210 90 180 105 165
  623. tank
  624. true
  625. 1
  626. Rectangle -7500403 true false 78 85 116 103
  627. Polygon -7500403 true false 105 270 210 271 210 105 180 105 180 135 120 135 120 105 90 105 89 270
  628. Polygon -2674135 true true 120 105 90 105 90 180 120 180 120 195 180 195 180 180 210 180 210 105 180 105 165 105 165 135 135 135 135 105 120 105
  629. Polygon -1 true false 135 15 135 150 165 150 165 15
  630. Polygon -1 true false 67 105 67 255 97 255 97 105
  631. Polygon -1 true false 202 105 202 255 232 255 232 105
  632. Rectangle -7500403 true false 184 85 222 103
  633. @#$#@#$#@
  634. NetLogo 4.1.3
  635. @#$#@#$#@
  636. @#$#@#$#@
  637. @#$#@#$#@
  638. @#$#@#$#@
  639. @#$#@#$#@
  640. default
  641. 0.0
  642. -0.2 0 1.0 0.0
  643. 0.0 1 1.0 0.0
  644. 0.2 0 1.0 0.0
  645. link direction
  646. true
  647. 0
  648. Line -7500403 true 150 150 90 180
  649. Line -7500403 true 150 150 210 180
  650. @#$#@#$#@
  651. 0
  652. @#$#@#$#@