Skip to navigation

Elite on the BBC Micro

Drawing ships: SHIP_CHAMELEON [Elite-A, Ship blueprints P]

Name: SHIP_CHAMELEON [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a Chameleon Deep dive: Ship blueprints
Context: See this variable in context in the source code References: This variable is used as follows: * XX21 calls SHIP_CHAMELEON
\ --- Mod: Whole section added for Elite-A: -----------> .SHIP_CHAMELEON EQUB 3 \ Max. canisters on demise = 3 EQUW 4000 \ Targetable area = 63.24 * 63.24 EQUB LO(SHIP_CHAMELEON_EDGES - SHIP_CHAMELEON) \ Edges data offset (low) EQUB LO(SHIP_CHAMELEON_FACES - SHIP_CHAMELEON) \ Faces data offset (low) EQUB 89 \ Max. edge count = (89 - 1) / 4 = 22 EQUB 0 \ Gun vertex = 0 EQUB 26 \ Explosion count = 5, as (4 * n) + 6 = 26 EQUB 108 \ Number of vertices = 108 / 6 = 18 EQUB 29 \ Number of edges = 29 EQUW 200 \ Bounty = 200 EQUB 52 \ Number of faces = 52 / 4 = 13 EQUB 10 \ Visibility distance = 10 EQUB 100 \ Max. energy = 100 EQUB 29 \ Max. speed = 29 EQUB HI(SHIP_CHAMELEON_EDGES - SHIP_CHAMELEON) \ Edges data offset (high) EQUB HI(SHIP_CHAMELEON_FACES - SHIP_CHAMELEON) \ 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 -18, 0, 110, 5, 2, 1, 0, 31 \ Vertex 0 VERTEX 18, 0, 110, 4, 3, 1, 0, 31 \ Vertex 1 VERTEX -40, 0, 0, 11, 8, 5, 2, 31 \ Vertex 2 VERTEX -8, 24, 0, 8, 6, 2, 2, 31 \ Vertex 3 VERTEX 8, 24, 0, 9, 6, 3, 3, 31 \ Vertex 4 VERTEX 40, 0, 0, 10, 9, 4, 3, 31 \ Vertex 5 VERTEX 8, -24, 0, 10, 7, 4, 4, 31 \ Vertex 6 VERTEX -8, -24, 0, 11, 7, 5, 5, 31 \ Vertex 7 VERTEX 0, 24, 40, 6, 3, 2, 0, 31 \ Vertex 8 VERTEX 0, -24, 40, 7, 5, 4, 1, 31 \ Vertex 9 VERTEX -32, 0, -40, 12, 11, 8, 8, 31 \ Vertex 10 VERTEX 0, 24, -40, 12, 9, 8, 6, 31 \ Vertex 11 VERTEX 32, 0, -40, 12, 10, 9, 9, 31 \ Vertex 12 VERTEX 0, -24, -40, 12, 11, 10, 7, 31 \ Vertex 13 VERTEX -8, 0, -40, 12, 12, 12, 12, 10 \ Vertex 14 VERTEX 0, 8, -40, 12, 12, 12, 12, 10 \ Vertex 15 VERTEX 8, 0, -40, 12, 12, 12, 12, 10 \ Vertex 16 VERTEX 0, -8, -40, 12, 12, 12, 12, 10 \ Vertex 17 .SHIP_CHAMELEON_EDGES \EDGE vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 1, 0, 31 \ Edge 0 EDGE 0, 8, 2, 0, 31 \ Edge 1 EDGE 0, 9, 5, 1, 31 \ Edge 2 EDGE 1, 8, 3, 0, 31 \ Edge 3 EDGE 1, 9, 4, 1, 31 \ Edge 4 EDGE 1, 5, 4, 3, 31 \ Edge 5 EDGE 0, 2, 5, 2, 31 \ Edge 6 EDGE 3, 8, 6, 2, 31 \ Edge 7 EDGE 4, 8, 6, 3, 31 \ Edge 8 EDGE 7, 9, 5, 7, 31 \ Edge 9 EDGE 6, 9, 4, 7, 31 \ Edge 10 EDGE 4, 5, 9, 3, 31 \ Edge 11 EDGE 5, 6, 10, 4, 31 \ Edge 12 EDGE 2, 3, 8, 2, 31 \ Edge 13 EDGE 2, 7, 11, 5, 31 \ Edge 14 EDGE 2, 10, 11, 8, 31 \ Edge 15 EDGE 5, 12, 10, 9, 31 \ Edge 16 EDGE 3, 11, 8, 6, 31 \ Edge 17 EDGE 7, 13, 11, 7, 31 \ Edge 18 EDGE 4, 11, 9, 6, 31 \ Edge 19 EDGE 6, 13, 10, 7, 31 \ Edge 20 EDGE 10, 11, 12, 8, 31 \ Edge 21 EDGE 10, 13, 12, 11, 31 \ Edge 22 EDGE 11, 12, 12, 9, 31 \ Edge 23 EDGE 12, 13, 12, 10, 31 \ Edge 24 EDGE 14, 15, 12, 12, 10 \ Edge 25 EDGE 15, 16, 12, 12, 10 \ Edge 26 EDGE 16, 17, 12, 12, 10 \ Edge 27 EDGE 17, 14, 12, 12, 10 \ Edge 28 .SHIP_CHAMELEON_FACES \FACE normal_x, normal_y, normal_z, visibility FACE 0, 90, 31, 31 \ Face 0 FACE 0, -90, 31, 31 \ Face 1 FACE -57, 76, 11, 31 \ Face 2 FACE 57, 76, 11, 31 \ Face 3 FACE 57, -76, 11, 31 \ Face 4 FACE -57, -76, 11, 31 \ Face 5 FACE 0, 96, 0, 31 \ Face 6 FACE 0, -96, 0, 31 \ Face 7 FACE -57, 76, -11, 31 \ Face 8 FACE 57, 76, -11, 31 \ Face 9 FACE 57, -76, -11, 31 \ Face 10 FACE -57, -76, -11, 31 \ Face 11 FACE 0, 0, -96, 31 \ Face 12 \ --- End of added section ---------------------------->