Commit fd8a6e95 authored by Daniel Graungaard's avatar Daniel Graungaard
Browse files

Added label to video

parent 1079a519
......@@ -73,8 +73,11 @@ to setup
set nuttethed 10
set energi 10 ; Dette er den mængde energi videoen starter med
set label-color green
]
end
to-report half-of-worlds-height
......@@ -102,10 +105,22 @@ to go
if any? videos with [energi < 0 ] [user-message "Din video er løbet tør for energi. Øv" stop]
ask videos [
move
set energi energi - 0.2
set label round energi
]
tick
end
to move ;turtle method
right 360
left 360
forward random 2
end
@#$#@#$#@
GRAPHICS-WINDOW
......@@ -122,8 +137,8 @@ GRAPHICS-WINDOW
1
1
0
1
1
0
0
1
-16
16
......@@ -498,8 +513,8 @@ Polygon -7500403 true true 119 75 179 75 209 101 224 135 220 225 175 261 128 261
video
true
0
Circle -2674135 true false 15 15 270
Polygon -7500403 true true 106 89 106 209 226 149 106 89 106 89
Circle -7500403 true true 60 60 180
Polygon -2674135 true false 126 114 126 174 201 144 126 114
wheel
false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment