![]() |
Routines |
| Prev: 6B2A | Up: Map | Next: 6B44 |
|
|
||||
| Handler_PlayerSprite | 6B2D | LD A,($7822) | Load A with *Speed. | |
| 6B30 | LD E,$0D | Set the sprite offset in E (0D bytes). | ||
| 6B32 | BIT 7,A | Check the direction bit. | ||
| 6B34 | JR NZ,SetPlayerSpriteDirection | Jump to SetPlayerSpriteDirection if the player is moving fowards. | ||
| 6B36 | LD E,$12 | Set an alternate sprite offset for the left-facing sprite (12 bytes). | ||
| SetPlayerSpriteDirection | 6B38 | LD C,$07 | Set WHITE to C. | |
| 6B3A | LD HL,$7833 | Fetch PlayerPosition_Y in D. | ||
| 6B3D | LD D,(HL) | |||
| 6B3E | INC L | Fetch PlayerSpriteID in A. | ||
| 6B3F | LD A,(HL) | |||
| 6B40 | CALL DrawSpriteObject | Call DrawSpriteObject. | ||
| 6B43 | RET | Return. | ||
| Prev: 6B2A | Up: Map | Next: 6B44 |