Prev: 23528 Up: Map Next: 24832
23560: Objects Table
The table of the objects in the room, with 32 bytes for each of up to 40 objects. The last object in the table has its final eight bytes in the same place as the code of GameEntry, which is not needed once the game has started. The table is cleared at the start of the game, and the room objects are built by RetrieveRoom. The first two objects are the two halves of the player, the next two are the objects that the player can pick up in the room, and after those are the objects that make up the room. The bytes of an object are:
Byte Contents
0 The graphic number (0 if there is no object)
1-3 The X, Y and Z coordinates
4-6 The width, depth and height
7 The flags: bit 0 is set near an arch, bit 1 if the object is ignored, bit 2 if it can be moved, bit 4 to draw it, bit 5 to wipe it, bit 6 to flip it from left to right and bit 7 to flip it upside down
8 The number of the room
9-11 The speeds in the X, Y and Z directions
12 Bits 0-2 are set if the object is blocked in the X, Y and Z directions, bit 3 if it is jumping, and bits 4-7 count while it is entering the room
13 Bit 7 is set if the object destroys what it hits, bit 5 if it is destroyed by what hits it, bit 6 if it has been destroyed and bit 3 if something stands on it
14-15 The speed of the object in the X and Y direction as changed by an arch
16-17 The graphic to use while the player appears, or the address of the object in the table of special objects
18-19 The adjustments to the pixel X and Y coordinates of the sprite
24-25 The width in bytes and the height in lines of the sprite
26-27 The pixel X and Y coordinates of the sprite
28-31 The width, height, pixel X and pixel Y coordinates that the sprite had when it was last drawn
ObjectsTable 23560 DEFS 32 The bottom half of the player.
23592 DEFS 32 The top half of the player.
ObjectsTable_FirstSpecial 23624 DEFS 32 The first special object of the room.
ObjectsTable_SecondSpecial 23656 DEFS 32 The second special object of the room.
ObjectsTable_RoomObjects 23688 DEFS 32 The objects of the room, which are built from the room data.
23720 DEFS 32
23752 DEFS 32
23784 DEFS 32
23816 DEFS 32
23848 DEFS 32
23880 DEFS 32
23912 DEFS 32
23944 DEFS 32
23976 DEFS 32
24008 DEFS 32
24040 DEFS 32
24072 DEFS 32
24104 DEFS 32
24136 DEFS 32
24168 DEFS 32
24200 DEFS 32
24232 DEFS 32
24264 DEFS 32
24296 DEFS 32
24328 DEFS 32
24360 DEFS 32
24392 DEFS 32
24424 DEFS 32
24456 DEFS 32
24488 DEFS 32
24520 DEFS 32
24552 DEFS 32
24584 DEFS 32
24616 DEFS 32
24648 DEFS 32
24680 DEFS 32
24712 DEFS 32
24744 DEFS 32
24776 DEFS 32
24808 DEFS 24 The first part of the last object in the table.
Prev: 23528 Up: Map Next: 24832