Prev: 24212 Up: Map Next: 24292
24244: Bug State
The six bugs, each an object of eight bytes. A bug is inactive (state 0) or is a slug (7), a swarm of midges (9) or a leech (10). The fields of a bug are:
Field Use
+0 State, with the direction of movement in bits 6 and 7
+1 X position
+2 Y position
+3 Colour attribute
+4 Bit 2 is set when the bug is stunned, bit 3 when it is eating the flower and (for a leech) bit 0 when it is moving vertically
+5 The stun timer, the horizontal motion of midges or a counter used while eating
+6 The vertical movement counter, the vertical motion of midges or the Y position where the bug started eating
+7 The height of the sprite in pixels, used to find collisions
State_Bugs 24244 DEFB 0 Bug 1.
24245 DEFB 0
24246 DEFB 0
24247 DEFB 0
24248 DEFB 0
24249 DEFB 0
24250 DEFB 0
24251 DEFB 0
24252 DEFB 0 Bug 2.
24253 DEFB 0
24254 DEFB 0
24255 DEFB 0
24256 DEFB 0
24257 DEFB 0
24258 DEFB 0
24259 DEFB 0
24260 DEFB 219 Bug 3.
24261 DEFB 2
24262 DEFB 77
24263 DEFB 0
24264 DEFB 219
24265 DEFB 2
24266 DEFB 243
24267 DEFB 13
24268 DEFB 183 Bug 4.
24269 DEFB 45
24270 DEFB 76
24271 DEFB 94
24272 DEFB 71
24273 DEFB 94
24274 DEFB 128
24275 DEFB 91
24276 DEFB 43 Bug 5.
24277 DEFB 45
24278 DEFB 101
24279 DEFB 51
24280 DEFB 0
24281 DEFB 0
24282 DEFB 237
24283 DEFB 16
24284 DEFB 13 Bug 6.
24285 DEFB 0
24286 DEFB 83
24287 DEFB 0
24288 DEFB 47
24289 DEFB 32
24290 DEFB 237
24291 DEFB 31
Prev: 24212 Up: Map Next: 24292