![]() |
Game Status Buffer |
| Address | Length | Description |
|---|---|---|
| 24014 | 800 |
32 column by 25 row tile buffer. Clear_PlayArea clears it, and the print utilities write through it when drawing a room.
|
| 24814 | 800 |
Attribute bytes matching Buffer_RoomTiles.
|
| 25614 | 2 |
|
| 25616 | 1 |
Non-zero while the player is jumping or falling.
|
| 25617 | 1 |
Set when a life is lost so Handler_Player can restart the room.
|
| 25618 | 2 |
Offset into Buffer_RoomTiles calculated by Convert_Coordinate.
|
| 25622 | 1 |
|
| 25623 | 2 |
|
| 25625 | 4 |
Inclusive min/max row and column used by the clipped print routines. Defaults to rows 2-24 and columns 1-33.
|
| 25629 | 1 |
|
| 25630 | 2 |
|
| 25632 | 2 |
Populated by Unpack_Rooms. See Player_Action for usage.
|
| 25634 | 2 |
Populated by Unpack_Rooms. See Player_Action_DoorLoop for usage.
|
| 25636 | 2 |
Three-byte 255-terminated records. See Handler_Collectibles.
|
| 25638 | 2 |
Two-byte 255-terminated records. See Handler_InventoryItems.
|
| 25640 | 2 |
|
| 25642 | 4 |
19-byte records drawn by Handler_MovingObjects.
|
| 25646 | 2 |
|
| 25648 | 2 |
13-byte records handled by Handler_Actors.
|
| 25650 | 2 |
14-byte records handled by Handler_Enemies.
|
| 25652 | 1 |
3 means the player has touched an actor.
|
| 25653 | 1 |
|
| 25654 | 2 |
|
| 25656 | 1 |
Counts falling frames; a hit starts when it reaches 10.
|
| 25658 | 3 |
Three-byte shifted collision mask from Build_PlayerMask.
|
| 25662 | 2 |
|
| 25664 | 8 |
|
| 25672 | 2 |
|
| 25674 | 1 |
|
| 25675 | 2 |
|
| 25677 | 14 |
Used by the room-7 bats and the room-22 special.
|
| 25705 | 2 |
Walks the Data_TuneStream stream. Play_Tune reads one byte at a time.
|
| 25707 | 2 |
Walks the Data_TuneStreamCopy stream in step with Pointer_TuneData.
|
| 25709 | 1 |
|
| 25710 | 1 |
Counts to 5 in Handler_Interrupts before the tune is allowed to play.
|
| 25711 | 1 |
0 on the introduction/menu. 255 after the intro timeout so Initialise_Game starts a game.
|
| 25712 | 2 |
16-bit countdown used by the introduction and demo timeout.
|
| 25714 | 1 |
|
| 25715 | 1 |
|
| 25724 | 1 |
When set, Play_Tune returns through the delay routine instead of playing a note.
|
| 25725 | 1 |
Set to 255 by Handler_Housekeeping when all four collection slots hold 9.
|
| 25726 | 1 |
0 is keyboard. Non-zero selects Kempston (and the define-keys highlight).
|
| 25727 | 5 |
Five KEY_SCAN codes copied from Table_DefaultKeys. Order: left, right, up, down, action.
|
| 25732 | 2 |
|
| 25734 | 2 |
Default 1/2 (right/left) written by Unpack_Rooms.
|
| 25736 | 1 |
|
| 25737 | 1 |
|
| 25738 | 1 |
|
| 25739 | 20 |
Bit 7 set means nothing is being carried. Drawn by Handler_CarriedObject.
|
| 25759 | 1 |
Counts down; when it hits 0 Handler_EventTimer fires *PendingEvent.
|
| 25760 | 1 |
|
| 25761 | 1 |
|
| 25762 | 1 |
Room IDs run from 0 to 22.
|
| 25763 | 1 |
|
| 25764 | 14 |
Player entity used as IX by Handler_Player.
|
| 25778 | 2 |
|
| 25780 | 1 |
Initialised to 4 by Unpack_Rooms.
|
| 25793 | 4 |
Four digits shown on room 0. 9 in every slot sets GameCompleteFlag.
|
| 25797 | 50 |
One pointer per room, filled by Unpack_Rooms from Data_Rooms.
|
| 25847 | 6009 |
Working copy of the 23 packed rooms. See Unpack_Rooms.
|