Prev: 5E94 Up: Map Next: 5EE4
5EB4: Bug State
The six bugs, each an object of eight bytes. A bug is inactive (state 00) or is a slug (07), a swarm of midges (09) or a leech (0A). 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 5EB4 DEFB $00 Bug 1.
5EB5 DEFB $00
5EB6 DEFB $00
5EB7 DEFB $00
5EB8 DEFB $00
5EB9 DEFB $00
5EBA DEFB $00
5EBB DEFB $00
5EBC DEFB $00 Bug 2.
5EBD DEFB $00
5EBE DEFB $00
5EBF DEFB $00
5EC0 DEFB $00
5EC1 DEFB $00
5EC2 DEFB $00
5EC3 DEFB $00
5EC4 DEFB $DB Bug 3.
5EC5 DEFB $02
5EC6 DEFB $4D
5EC7 DEFB $00
5EC8 DEFB $DB
5EC9 DEFB $02
5ECA DEFB $F3
5ECB DEFB $0D
5ECC DEFB $B7 Bug 4.
5ECD DEFB $2D
5ECE DEFB $4C
5ECF DEFB $5E
5ED0 DEFB $47
5ED1 DEFB $5E
5ED2 DEFB $80
5ED3 DEFB $5B
5ED4 DEFB $2B Bug 5.
5ED5 DEFB $2D
5ED6 DEFB $65
5ED7 DEFB $33
5ED8 DEFB $00
5ED9 DEFB $00
5EDA DEFB $ED
5EDB DEFB $10
5EDC DEFB $0D Bug 6.
5EDD DEFB $00
5EDE DEFB $53
5EDF DEFB $00
5EE0 DEFB $2F
5EE1 DEFB $20
5EE2 DEFB $ED
5EE3 DEFB $1F
Prev: 5E94 Up: Map Next: 5EE4