![]() |
Routines |
Prev: 60291 | Up: Map |
|
||||||||||
60293 | LD L,0 | Point HL at byte 0 of the character's buffer | ||||||||
60295 | LD A,(HL) | A=character's animatory state | ||||||||
60296 | INC A | Set the zero flag if the animatory state is congruent to 7 mod 8 (the sprite has 3 rows and 5 columns) | ||||||||
60297 | AND 7 | |||||||||
60299 | RET NZ | Return (with the carry flag reset) if the character's sprite has 5 rows and 3 columns | ||||||||
This entry point is used by the routines at 64005 and 64338.
|
||||||||||
60300 | CALL 59848 | Update the SRB for the character's current animatory state and location | ||||||||
60303 | BIT 7,A | Is the character facing left? | ||||||||
60305 | JR Z,60309 | Jump if so | ||||||||
60307 | INC E | Add 2 to the character's x-coordinate | ||||||||
60308 | INC E | |||||||||
60309 | DEC D | Subtract 2 from the character's y-coordinate | ||||||||
60310 | DEC D | |||||||||
60311 | AND 248 | A=character's base animatory state (standing upright) | ||||||||
60313 | JR 60363 | Update the character's animatory state and location and update the SRB, and return with the carry flag set |
Prev: 60291 | Up: Map |