Prev: 44521 Up: Map Next: 44557
44537: Project Player Entity
Used by the routines at RunFrame and RunGame.
Projects the player entity with ProjectEntity, then works out how far the entity has moved on the screen since the last frame. The previous value is kept in PlayerScreenPosition and the change in 23789.
Input
IX The player entity
ProjectPlayerEntity 44537 CALL ProjectEntity Call ProjectEntity.
44540 LD A,(23788) Read the byte at PlayerScreenPosition.
44543 LD B,A A moves into B.
44544 LD A,(IX+15) Fetch the row.
44547 LD C,A A moves into C.
44548 SUB B Subtract B.
44549 LD (23789),A Write A at 23789.
44552 LD A,C C moves into A.
44553 LD (23788),A Write A at PlayerScreenPosition.
44556 RET Return.
Prev: 44521 Up: Map Next: 44557