Skip to navigation

Elite on the BBC Micro

Drawing ships: SHIP_PYTHON_P (Master version)

Name: SHIP_PYTHON_P [View in context] Type: Variable [Compare versions] Category: Drawing ships Summary: Ship blueprint for a Python (pirate) Deep dive: Ship blueprints
The ship blueprint for the pirate Python reuses the edges and faces data from the non-pirate Python, so the edges and faces data offsets are negative.
.SHIP_PYTHON_P EQUB 2 \ Max. canisters on demise = 2 EQUW 80 * 80 \ Targetable area = 80 * 80 EQUB LO(SHIP_PYTHON_EDGES - SHIP_PYTHON_P) \ Edges data = Python EQUB LO(SHIP_PYTHON_FACES - SHIP_PYTHON_P) \ Faces data = Python EQUB 89 \ Max. edge count = (89 - 1) / 4 = 22 EQUB 0 \ Gun vertex = 0 EQUB 42 \ Explosion count = 9, as (4 * n) + 6 = 42 EQUB 66 \ Number of vertices = 66 / 6 = 11 EQUB 26 \ Number of edges = 26 EQUW 200 \ Bounty = 200 EQUB 52 \ Number of faces = 52 / 4 = 13 EQUB 40 \ Visibility distance = 40 EQUB 250 \ Max. energy = 250 EQUB 20 \ Max. speed = 20 EQUB HI(SHIP_PYTHON_EDGES - SHIP_PYTHON_P) \ Edges data = Python EQUB HI(SHIP_PYTHON_FACES - SHIP_PYTHON_P) \ Faces data = Python EQUB 0 \ Normals are scaled by = 2^0 = 1 EQUB %00011011 \ Laser power = 3 \ Missiles = 3 \VERTEX x, y, z, face1, face2, face3, face4, visibility VERTEX 0, 0, 224, 0, 1, 2, 3, 31 \ Vertex 0 VERTEX 0, 48, 48, 0, 1, 4, 5, 31 \ Vertex 1 VERTEX 96, 0, -16, 15, 15, 15, 15, 31 \ Vertex 2 VERTEX -96, 0, -16, 15, 15, 15, 15, 31 \ Vertex 3 VERTEX 0, 48, -32, 4, 5, 8, 9, 31 \ Vertex 4 VERTEX 0, 24, -112, 9, 8, 12, 12, 31 \ Vertex 5 VERTEX -48, 0, -112, 8, 11, 12, 12, 31 \ Vertex 6 VERTEX 48, 0, -112, 9, 10, 12, 12, 31 \ Vertex 7 VERTEX 0, -48, 48, 2, 3, 6, 7, 31 \ Vertex 8 VERTEX 0, -48, -32, 6, 7, 10, 11, 31 \ Vertex 9 VERTEX 0, -24, -112, 10, 11, 12, 12, 31 \ Vertex 10