Classic Elite entity states
Upon launching from the Space Station the player is confronted by several entities, the planet ahead, the space station behind, and perhaps additional ships. The following description of each entity's state is specific to the BBC Disk Classic version of Elite, with some variations in the the other 8-bit versions.
Each entity has a state represented in 37 bytes. The first 9 bytes are the (x,y,z) coordinates to 23bit precision with the player at the origin. The next 18 bytes store a 9-member rotation matrix, with the positive unit vector scaled to 0x6000. A pointer of 2 bytes points to a heap that contains processed vertex data for display.
Single bytes represent the entity's speed, acceleration, remaining energy, and counters for roll and pitch actions currently underway.
The remaining 3 bytes represent the entity's A.I., which we shall refer to as the visible, attack, and behavior states. Some bits serve more than one purpose if they set.
|7||Kill entity with dust explosion|
|6||Entity is firing laser at player, or entity is exploding.|
|5||Display nodes of wire-frame or explosion, not a far-away dot.|