Skip to navigation

Elite on the BBC Micro

Drawing ships: SHIP_IGUANA [Elite-A, Ship blueprints B]

Name: SHIP_IGUANA [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for an Iguana Deep dive: Ship blueprints
Context: See this variable in context in the source code References: This variable is used as follows: * XX21 calls SHIP_IGUANA
\ --- Mod: Whole section added for Elite-A: -----------> .SHIP_IGUANA EQUB 1 \ Max. canisters on demise = 1 EQUW 3500 \ Targetable area = 59.16 * 59.16 EQUB LO(SHIP_IGUANA_EDGES - SHIP_IGUANA) \ Edges data offset (low) EQUB LO(SHIP_IGUANA_FACES - SHIP_IGUANA) \ Faces data offset (low) EQUB 81 \ Max. edge count = (81 - 1) / 4 = 20 EQUB 0 \ Gun vertex = 0 EQUB 26 \ Explosion count = 5, as (4 * n) + 6 = 26 EQUB 90 \ Number of vertices = 90 / 6 = 15 EQUB 23 \ Number of edges = 23 EQUW 150 \ Bounty = 150 EQUB 40 \ Number of faces = 40 / 4 = 10 EQUB 10 \ Visibility distance = 10 EQUB 90 \ Max. energy = 90 EQUB 33 \ Max. speed = 33 EQUB HI(SHIP_IGUANA_EDGES - SHIP_IGUANA) \ Edges data offset (high) EQUB HI(SHIP_IGUANA_FACES - SHIP_IGUANA) \ Faces data offset (high) EQUB 1 \ Normals are scaled by = 2^1 = 2 EQUB %00100011 \ Laser power = 4 \ Missiles = 3 \VERTEX x, y, z, face1, face2, face3, face4, visibility VERTEX 0, 0, 90, 3, 2, 1, 0, 31 \ Vertex 0 VERTEX 0, 20, 30, 6, 4, 2, 0, 31 \ Vertex 1 VERTEX -40, 0, 10, 5, 4, 1, 0, 31 \ Vertex 2 VERTEX 0, -20, 30, 7, 5, 3, 1, 31 \ Vertex 3 VERTEX 40, 0, 10, 7, 6, 3, 2, 31 \ Vertex 4 VERTEX 0, 20, -40, 9, 8, 6, 4, 31 \ Vertex 5 VERTEX -40, 0, -30, 8, 8, 5, 4, 31 \ Vertex 6 VERTEX 0, -20, -40, 9, 8, 7, 5, 31 \ Vertex 7 VERTEX 40, 0, -30, 9, 9, 7, 6, 31 \ Vertex 8 VERTEX -40, 0, 40, 1, 1, 0, 0, 30 \ Vertex 9 VERTEX 40, 0, 40, 3, 3, 2, 2, 30 \ Vertex 10 VERTEX 0, 8, -40, 9, 9, 8, 8, 10 \ Vertex 11 VERTEX -16, 0, -36, 8, 8, 8, 8, 10 \ Vertex 12 VERTEX 0, -8, -40, 9, 9, 8, 8, 10 \ Vertex 13 VERTEX 16, 0, -36, 9, 9, 9, 9, 10 \ Vertex 14 .SHIP_IGUANA_EDGES \EDGE vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 2, 0, 31 \ Edge 0 EDGE 0, 2, 1, 0, 31 \ Edge 1 EDGE 0, 3, 3, 1, 31 \ Edge 2 EDGE 0, 4, 3, 2, 31 \ Edge 3 EDGE 1, 5, 6, 4, 31 \ Edge 4 EDGE 2, 6, 5, 4, 31 \ Edge 5 EDGE 3, 7, 7, 5, 31 \ Edge 6 EDGE 4, 8, 7, 6, 31 \ Edge 7 EDGE 5, 6, 8, 4, 31 \ Edge 8 EDGE 6, 7, 8, 5, 31 \ Edge 9 EDGE 5, 8, 9, 6, 31 \ Edge 10 EDGE 7, 8, 9, 7, 31 \ Edge 11 EDGE 1, 2, 4, 0, 31 \ Edge 12 EDGE 2, 3, 5, 1, 31 \ Edge 13 EDGE 1, 4, 6, 2, 31 \ Edge 14 EDGE 3, 4, 7, 3, 31 \ Edge 15 EDGE 5, 7, 9, 8, 31 \ Edge 16 EDGE 2, 9, 1, 0, 30 \ Edge 17 EDGE 4, 10, 3, 2, 30 \ Edge 18 EDGE 11, 12, 8, 8, 10 \ Edge 19 EDGE 13, 12, 8, 8, 10 \ Edge 20 EDGE 11, 14, 9, 9, 10 \ Edge 21 EDGE 13, 14, 9, 9, 10 \ Edge 22 .SHIP_IGUANA_FACES \FACE normal_x, normal_y, normal_z, visibility FACE -51, 77, 25, 31 \ Face 0 FACE -51, -77, 25, 31 \ Face 1 FACE 51, 77, 25, 31 \ Face 2 FACE 51, -77, 25, 31 \ Face 3 FACE -42, 85, 0, 31 \ Face 4 FACE -42, -85, 0, 31 \ Face 5 FACE 42, 85, 0, 31 \ Face 6 FACE 42, -85, 0, 31 \ Face 7 FACE -23, 0, -93, 31 \ Face 8 FACE 23, 0, -93, 31 \ Face 9 \ --- End of added section ----------------------------> EQUB 9 \ This byte appears to be unused