Prev: 38541 Up: Map Next: 38848
38544: Entities
The entities, which are the robot, the shots, the enemies, the program packet and the clouds. Each is 16 bytes long. The entity is not in use if its type is zero.
Byte What it holds
0 Sprite type. Bit 7 flips it. Bits 0 and 1 pick the frame.
1 Fraction of the horizontal position.
2 Horizontal cell.
3 Fraction of the vertical position.
4 Vertical cell.
5 Type it becomes after materialising.
6 Robot wait timer, or the robot's speed.
7 Direction in the low two bits, or a shot's range.
8 Item an enemy is carrying.
9 Time a destroyer has left.
10-13 Left unused by the handlers.
14 Program packet state: low four bits count, bit 7 destroyed.
15 Bit 0 set while the entity is visible.
Entity 0 is the robot, entities 1 to 3 are the shots, entities 4 to 9 are the enemies, entities 10 to 13 are the destroyers, entity 14 is the program packet and entities 15 to 18 are not used. The templates for the cells of the map come after them, and the last two entities are the clouds.
Entities 38544 DEFS 16
ShotEntities 38560 DEFS 16
38576 DEFS 16
38592 DEFS 16
EnemyEntities 38608 DEFS 16
38624 DEFS 16
38640 DEFS 16
38656 DEFS 16
38672 DEFS 16
38688 DEFS 16
DestroyerEntities 38704 DEFS 16
38720 DEFS 16
38736 DEFS 16
38752 DEFS 16
ProgramPacketEntity 38768 DEFS 16
38784 DEFS 16
38800 DEFS 16
38816 DEFS 16
38832 DEFS 16
Prev: 38541 Up: Map Next: 38848