Skip to navigation

Elite on the BBC Micro and NES

Ship blueprints D

[Elite-A]

ELITE-A SHIP BLUEPRINTS FILE D Elite-A is an extended version of BBC Micro Elite by Angus Duggan The original Elite was written by Ian Bell and David Braben and is copyright Acornsoft 1984, and the extra code in Elite-A is copyright Angus Duggan The code on this site is identical to Angus Duggan's source discs (it's just been reformatted, and the label names have been changed to be consistent with the sources for the original BBC Micro disc version on which it is based) The commentary is copyright Mark Moxon, and any misunderstandings or mistakes in the documentation are entirely my fault The terminology and notations used in this commentary are explained at https://www.bbcelite.com/terminology The deep dive articles referred to in this commentary can be found at https://www.bbcelite.com/deep_dives
This source file produces the following binary file: * S.D.bin
INCLUDE "1-source-files/main-sources/elite-build-options.asm" _RELEASED = (_VARIANT = 1) _SOURCE_DISC = (_VARIANT = 2) _BUG_FIX = (_VARIANT = 3) GUARD &6000 \ Guard against assembling over screen memory
Configuration variables
CODE% = &5600 \ The flight code runs this file at address &5600, at \ label XX21 LOAD% = &5600 \ The flight code loads this file at address &5600, at \ label XX21 SHIP_MISSILE = &7F00 \ The address of the missile ship blueprint \ \ [Show more]
\ \ This variable is used by the following: \ \ * XX21 \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
ORG CODE%
Name: XX21 [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprints lookup table for the S.D file Deep dive: Ship blueprints in Elite-A
Context: See this variable on its own page References: No direct references to this variable in this source file
.XX21 EQUW SHIP_MISSILE \ MSL = 1 = Missile Missile EQUW SHIP_DODO \ 2 = Dodo space station Station EQUW SHIP_ESCAPE_POD \ ESC = 3 = Escape pod Escape pod EQUW SHIP_PLATE \ PLT = 4 = Alloy plate Cargo EQUW SHIP_CANISTER \ OIL = 5 = Cargo canister Cargo EQUW SHIP_BOULDER \ 6 = Boulder Mining EQUW 0 \ Mining EQUW 0 \ Mining EQUW 0 \ Shuttle EQUW 0 \ Transporter EQUW SHIP_BOA \ 11 = Boa Trader EQUW 0 \ Trader EQUW 0 \ Trader EQUW SHIP_DRAGON \ 14 = Dragon Large ship EQUW SHIP_SIDEWINDER \ 15 = Sidewinder Small ship EQUW SHIP_VIPER \ COPS = 16 = Viper Cop EQUW SHIP_SIDEWINDER \ 17 = Sidewinder Pirate EQUW SHIP_SIDEWINDER \ 18 = Sidewinder Pirate EQUW SHIP_GECKO \ 19 = Gecko Pirate EQUW SHIP_BUSHMASTER \ 20 = Bushmaster Pirate EQUW 0 \ Pirate EQUW 0 \ Pirate EQUW 0 \ Pirate EQUW 0 \ Pirate EQUW 0 \ Bounty hunter EQUW SHIP_BUSHMASTER \ 26 = Bushmaster Bounty hunter EQUW SHIP_GECKO \ 27 = Gecko Bounty hunter EQUW SHIP_SIDEWINDER \ 28 = Sidewinder Bounty hunter EQUW SHIP_THARGOID \ THG = 29 = Thargoid Thargoid EQUW SHIP_THARGON \ TGL = 30 = Thargon Thargoid EQUW 0 \ Constrictor
Name: E% [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprints default NEWB flags for the S.D file Deep dive: Ship blueprints in Elite-A Advanced tactics with the NEWB flags
Context: See this variable on its own page References: No direct references to this variable in this source file
.E% EQUB %00000000 \ Missile EQUB %01000000 \ Dodo space station Cop EQUB %01000001 \ Escape pod Trader, cop EQUB %00000000 \ Alloy plate EQUB %00000000 \ Cargo canister EQUB %00000000 \ Boulder EQUB 0 EQUB 0 EQUB 0 EQUB 0 EQUB %10100000 \ Boa Innocent, escape pod EQUB 0 EQUB 0 EQUB %00100001 \ Dragon Trader, innocent EQUB %00001100 \ Sidewinder Hostile, pirate EQUB %11000010 \ Viper Bounty hunter, cop, escape pod EQUB %00001100 \ Sidewinder Hostile, pirate EQUB %00001100 \ Sidewinder Hostile, pirate EQUB %10000100 \ Gecko Hostile, escape pod EQUB %10001100 \ Bushmaster Hostile, pirate, escape pod EQUB 0 EQUB 0 EQUB 0 EQUB 0 EQUB 0 EQUB %10100010 \ Bushmaster Bounty hunter, innocent, escape pod EQUB %10000010 \ Gecko Bounty hunter, escape pod EQUB %00100010 \ Sidewinder Bounty hunter, innocent EQUB %00001100 \ Thargoid Hostile, pirate EQUB %00000100 \ Thargon Hostile EQUB 0
Name: VERTEX [Show more] Type: Macro Category: Drawing ships Summary: Macro definition for adding vertices to ship blueprints Deep dive: Ship blueprints
Context: See this macro on its own page References: This macro is used as follows: * SHIP_BOA uses VERTEX * SHIP_BOULDER uses VERTEX * SHIP_BUSHMASTER uses VERTEX * SHIP_CANISTER uses VERTEX * SHIP_DODO uses VERTEX * SHIP_DRAGON uses VERTEX * SHIP_ESCAPE_POD uses VERTEX * SHIP_GECKO uses VERTEX * SHIP_PLATE uses VERTEX * SHIP_SIDEWINDER uses VERTEX * SHIP_THARGOID uses VERTEX * SHIP_THARGON uses VERTEX * SHIP_VIPER uses VERTEX

The following macro is used to build the ship blueprints: VERTEX x, y, z, face1, face2, face3, face4, visibility See the deep dive on "Ship blueprints" for details of how vertices are stored in the ship blueprints, and the deep dive on "Drawing ships" for information on how vertices are used to draw 3D wireframe ships.
Arguments: x The vertex's x-coordinate y The vertex's y-coordinate z The vertex's z-coordinate face1 The number of face 1 associated with this vertex face2 The number of face 2 associated with this vertex face3 The number of face 3 associated with this vertex face4 The number of face 4 associated with this vertex visibility The visibility distance, beyond which the vertex is not shown
MACRO VERTEX x, y, z, face1, face2, face3, face4, visibility IF x < 0 s_x = 1 << 7 ELSE s_x = 0 ENDIF IF y < 0 s_y = 1 << 6 ELSE s_y = 0 ENDIF IF z < 0 s_z = 1 << 5 ELSE s_z = 0 ENDIF s = s_x + s_y + s_z + visibility f1 = face1 + (face2 << 4) f2 = face3 + (face4 << 4) ax = ABS(x) ay = ABS(y) az = ABS(z) EQUB ax, ay, az, s, f1, f2 ENDMACRO
Name: EDGE [Show more] Type: Macro Category: Drawing ships Summary: Macro definition for adding edges to ship blueprints Deep dive: Ship blueprints
Context: See this macro on its own page References: This macro is used as follows: * SHIP_BOA uses EDGE * SHIP_BOULDER uses EDGE * SHIP_BUSHMASTER uses EDGE * SHIP_CANISTER uses EDGE * SHIP_DODO uses EDGE * SHIP_DRAGON uses EDGE * SHIP_ESCAPE_POD uses EDGE * SHIP_GECKO uses EDGE * SHIP_PLATE uses EDGE * SHIP_SIDEWINDER uses EDGE * SHIP_THARGOID uses EDGE * SHIP_VIPER uses EDGE

The following macro is used to build the ship blueprints: EDGE vertex1, vertex2, face1, face2, visibility See the deep dive on "Ship blueprints" for details of how edges are stored in the ship blueprints, and the deep dive on "Drawing ships" for information on how edges are used to draw 3D wireframe ships.
Arguments: vertex1 The number of the vertex at the start of the edge vertex1 The number of the vertex at the end of the edge face1 The number of face 1 associated with this edge face2 The number of face 2 associated with this edge visibility The visibility distance, beyond which the edge is not shown
MACRO EDGE vertex1, vertex2, face1, face2, visibility f = face1 + (face2 << 4) EQUB visibility, f, vertex1 << 2, vertex2 << 2 ENDMACRO
Name: FACE [Show more] Type: Macro Category: Drawing ships Summary: Macro definition for adding faces to ship blueprints Deep dive: Ship blueprints
Context: See this macro on its own page References: This macro is used as follows: * SHIP_BOA uses FACE * SHIP_BOULDER uses FACE * SHIP_BUSHMASTER uses FACE * SHIP_CANISTER uses FACE * SHIP_DODO uses FACE * SHIP_DRAGON uses FACE * SHIP_ESCAPE_POD uses FACE * SHIP_GECKO uses FACE * SHIP_PLATE uses FACE * SHIP_SIDEWINDER uses FACE * SHIP_THARGOID uses FACE * SHIP_THARGON uses FACE * SHIP_VIPER uses FACE

The following macro is used to build the ship blueprints: FACE normal_x, normal_y, normal_z, visibility See the deep dive on "Ship blueprints" for details of how faces are stored in the ship blueprints, and the deep dive on "Drawing ships" for information on how faces are used to draw 3D wireframe ships.
Arguments: normal_x The face normal's x-coordinate normal_y The face normal's y-coordinate normal_z The face normal's z-coordinate visibility The visibility distance, beyond which the edge is always shown
MACRO FACE normal_x, normal_y, normal_z, visibility IF normal_x < 0 s_x = 1 << 7 ELSE s_x = 0 ENDIF IF normal_y < 0 s_y = 1 << 6 ELSE s_y = 0 ENDIF IF normal_z < 0 s_z = 1 << 5 ELSE s_z = 0 ENDIF s = s_x + s_y + s_z + visibility ax = ABS(normal_x) ay = ABS(normal_y) az = ABS(normal_z) EQUB s, ax, ay, az ENDMACRO
Name: SHIP_DODO [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a Dodecahedron ("Dodo") space station Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_DODO
.SHIP_DODO EQUB 0 \ Max. canisters on demise = 0 EQUW 180 * 180 \ Targetable area = 180 * 180 EQUB LO(SHIP_DODO_EDGES - SHIP_DODO) \ Edges data offset (low) EQUB LO(SHIP_DODO_FACES - SHIP_DODO) \ Faces data offset (low) EQUB 97 \ Max. edge count = (97 - 1) / 4 = 24 EQUB 0 \ Gun vertex = 0 EQUB 54 \ Explosion count = 12, as (4 * n) + 6 = 54 EQUB 144 \ Number of vertices = 144 / 6 = 24 EQUB 34 \ Number of edges = 34 EQUW 0 \ Bounty = 0 EQUB 48 \ Number of faces = 48 / 4 = 12 EQUB 125 \ Visibility distance = 125 EQUB 240 \ Max. energy = 240 EQUB 0 \ Max. speed = 0 EQUB HI(SHIP_DODO_EDGES - SHIP_DODO) \ Edges data offset (high) EQUB HI(SHIP_DODO_FACES - SHIP_DODO) \ Faces data offset (high) EQUB 0 \ Normals are scaled by = 2^0 = 1 EQUB %00000000 \ Laser power = 0 \ Missiles = 0 .SHIP_DODO_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX 0, 150, 196, 1, 0, 5, 5, 31 \ Vertex 0 VERTEX 143, 46, 196, 1, 0, 2, 2, 31 \ Vertex 1 VERTEX 88, -121, 196, 2, 0, 3, 3, 31 \ Vertex 2 VERTEX -88, -121, 196, 3, 0, 4, 4, 31 \ Vertex 3 VERTEX -143, 46, 196, 4, 0, 5, 5, 31 \ Vertex 4 VERTEX 0, 243, 46, 5, 1, 6, 6, 31 \ Vertex 5 VERTEX 231, 75, 46, 2, 1, 7, 7, 31 \ Vertex 6 VERTEX 143, -196, 46, 3, 2, 8, 8, 31 \ Vertex 7 VERTEX -143, -196, 46, 4, 3, 9, 9, 31 \ Vertex 8 VERTEX -231, 75, 46, 5, 4, 10, 10, 31 \ Vertex 9 VERTEX 143, 196, -46, 6, 1, 7, 7, 31 \ Vertex 10 VERTEX 231, -75, -46, 7, 2, 8, 8, 31 \ Vertex 11 VERTEX 0, -243, -46, 8, 3, 9, 9, 31 \ Vertex 12 VERTEX -231, -75, -46, 9, 4, 10, 10, 31 \ Vertex 13 VERTEX -143, 196, -46, 6, 5, 10, 10, 31 \ Vertex 14 VERTEX 88, 121, -196, 7, 6, 11, 11, 31 \ Vertex 15 VERTEX 143, -46, -196, 8, 7, 11, 11, 31 \ Vertex 16 VERTEX 0, -150, -196, 9, 8, 11, 11, 31 \ Vertex 17 VERTEX -143, -46, -196, 10, 9, 11, 11, 31 \ Vertex 18 VERTEX -88, 121, -196, 10, 6, 11, 11, 31 \ Vertex 19 VERTEX -16, 32, 196, 0, 0, 0, 0, 30 \ Vertex 20 VERTEX -16, -32, 196, 0, 0, 0, 0, 30 \ Vertex 21 VERTEX 16, 32, 196, 0, 0, 0, 0, 23 \ Vertex 22 VERTEX 16, -32, 196, 0, 0, 0, 0, 23 \ Vertex 23 .SHIP_DODO_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 1, 0, 31 \ Edge 0 EDGE 1, 2, 2, 0, 31 \ Edge 1 EDGE 2, 3, 3, 0, 31 \ Edge 2 EDGE 3, 4, 4, 0, 31 \ Edge 3 EDGE 4, 0, 5, 0, 31 \ Edge 4 EDGE 5, 10, 6, 1, 31 \ Edge 5 EDGE 10, 6, 7, 1, 31 \ Edge 6 EDGE 6, 11, 7, 2, 31 \ Edge 7 EDGE 11, 7, 8, 2, 31 \ Edge 8 EDGE 7, 12, 8, 3, 31 \ Edge 9 EDGE 12, 8, 9, 3, 31 \ Edge 10 EDGE 8, 13, 9, 4, 31 \ Edge 11 EDGE 13, 9, 10, 4, 31 \ Edge 12 EDGE 9, 14, 10, 5, 31 \ Edge 13 EDGE 14, 5, 6, 5, 31 \ Edge 14 EDGE 15, 16, 11, 7, 31 \ Edge 15 EDGE 16, 17, 11, 8, 31 \ Edge 16 EDGE 17, 18, 11, 9, 31 \ Edge 17 EDGE 18, 19, 11, 10, 31 \ Edge 18 EDGE 19, 15, 11, 6, 31 \ Edge 19 EDGE 0, 5, 5, 1, 31 \ Edge 20 EDGE 1, 6, 2, 1, 31 \ Edge 21 EDGE 2, 7, 3, 2, 31 \ Edge 22 EDGE 3, 8, 4, 3, 31 \ Edge 23 EDGE 4, 9, 5, 4, 31 \ Edge 24 EDGE 10, 15, 7, 6, 31 \ Edge 25 EDGE 11, 16, 8, 7, 31 \ Edge 26 EDGE 12, 17, 9, 8, 31 \ Edge 27 EDGE 13, 18, 10, 9, 31 \ Edge 28 EDGE 14, 19, 10, 6, 31 \ Edge 29 EDGE 20, 21, 0, 0, 30 \ Edge 30 EDGE 21, 23, 0, 0, 20 \ Edge 31 EDGE 23, 22, 0, 0, 23 \ Edge 32 EDGE 22, 20, 0, 0, 20 \ Edge 33 .SHIP_DODO_FACES \ normal_x, normal_y, normal_z, visibility FACE 0, 0, 196, 31 \ Face 0 FACE 103, 142, 88, 31 \ Face 1 FACE 169, -55, 89, 31 \ Face 2 FACE 0, -176, 88, 31 \ Face 3 FACE -169, -55, 89, 31 \ Face 4 FACE -103, 142, 88, 31 \ Face 5 FACE 0, 176, -88, 31 \ Face 6 FACE 169, 55, -89, 31 \ Face 7 FACE 103, -142, -88, 31 \ Face 8 FACE -103, -142, -88, 31 \ Face 9 FACE -169, 55, -89, 31 \ Face 10 FACE 0, 0, -196, 31 \ Face 11
Name: SHIP_ESCAPE_POD [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for an escape pod Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_ESCAPE_POD
.SHIP_ESCAPE_POD EQUB 0 + (2 << 4) \ Max. canisters on demise = 0 \ Market item when scooped = 2 + 1 = 3 (slaves) EQUW 16 * 16 \ Targetable area = 16 * 16 EQUB LO(SHIP_ESCAPE_POD_EDGES - SHIP_ESCAPE_POD) \ Edges data offset (low) EQUB LO(SHIP_ESCAPE_POD_FACES - SHIP_ESCAPE_POD) \ Faces data offset (low) EQUB 25 \ Max. edge count = (25 - 1) / 4 = 6 EQUB 0 \ Gun vertex = 0 EQUB 22 \ Explosion count = 4, as (4 * n) + 6 = 22 EQUB 24 \ Number of vertices = 24 / 6 = 4 EQUB 6 \ Number of edges = 6 EQUW 0 \ Bounty = 0 EQUB 16 \ Number of faces = 16 / 4 = 4 EQUB 8 \ Visibility distance = 8 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB 17 \ Max. energy = 17 \ --- And replaced by: --------------------------------> EQUB 8 \ Max. energy = 8 \ --- End of replacement ------------------------------> EQUB 8 \ Max. speed = 8 EQUB HI(SHIP_ESCAPE_POD_EDGES - SHIP_ESCAPE_POD) \ Edges data offset (high) EQUB HI(SHIP_ESCAPE_POD_FACES - SHIP_ESCAPE_POD) \ Faces data offset (high) EQUB 4 \ Normals are scaled by = 2^4 = 16 EQUB %00000000 \ Laser power = 0 \ Missiles = 0 .SHIP_ESCAPE_POD_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX -7, 0, 36, 2, 1, 3, 3, 31 \ Vertex 0 VERTEX -7, -14, -12, 2, 0, 3, 3, 31 \ Vertex 1 VERTEX -7, 14, -12, 1, 0, 3, 3, 31 \ Vertex 2 VERTEX 21, 0, 0, 1, 0, 2, 2, 31 \ Vertex 3 .SHIP_ESCAPE_POD_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 3, 2, 31 \ Edge 0 EDGE 1, 2, 3, 0, 31 \ Edge 1 EDGE 2, 3, 1, 0, 31 \ Edge 2 EDGE 3, 0, 2, 1, 31 \ Edge 3 EDGE 0, 2, 3, 1, 31 \ Edge 4 EDGE 3, 1, 2, 0, 31 \ Edge 5 .SHIP_ESCAPE_POD_FACES \ normal_x, normal_y, normal_z, visibility FACE 52, 0, -122, 31 \ Face 0 FACE 39, 103, 30, 31 \ Face 1 FACE 39, -103, 30, 31 \ Face 2 FACE -112, 0, 0, 31 \ Face 3
Name: SHIP_CANISTER [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a cargo canister Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_CANISTER
.SHIP_CANISTER EQUB 0 \ Max. canisters on demise = 0 EQUW 20 * 20 \ Targetable area = 20 * 20 EQUB LO(SHIP_CANISTER_EDGES - SHIP_CANISTER) \ Edges data offset (low) EQUB LO(SHIP_CANISTER_FACES - SHIP_CANISTER) \ Faces data offset (low) EQUB 49 \ Max. edge count = (49 - 1) / 4 = 12 EQUB 0 \ Gun vertex = 0 EQUB 18 \ Explosion count = 3, as (4 * n) + 6 = 18 EQUB 60 \ Number of vertices = 60 / 6 = 10 EQUB 15 \ Number of edges = 15 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUW 0 \ Bounty = 0 \ --- And replaced by: --------------------------------> EQUW 1 \ Bounty = 1 \ --- End of replacement ------------------------------> EQUB 28 \ Number of faces = 28 / 4 = 7 EQUB 12 \ Visibility distance = 12 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB 17 \ Max. energy = 17 \ --- And replaced by: --------------------------------> EQUB 8 \ Max. energy = 8 \ --- End of replacement ------------------------------> EQUB 15 \ Max. speed = 15 EQUB HI(SHIP_CANISTER_EDGES - SHIP_CANISTER) \ Edges data offset (high) EQUB HI(SHIP_CANISTER_FACES - SHIP_CANISTER) \ Faces data offset (high) EQUB 2 \ Normals are scaled by = 2^2 = 4 EQUB %00000000 \ Laser power = 0 \ Missiles = 0 .SHIP_CANISTER_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX 24, 16, 0, 0, 1, 5, 5, 31 \ Vertex 0 VERTEX 24, 5, 15, 0, 1, 2, 2, 31 \ Vertex 1 VERTEX 24, -13, 9, 0, 2, 3, 3, 31 \ Vertex 2 VERTEX 24, -13, -9, 0, 3, 4, 4, 31 \ Vertex 3 VERTEX 24, 5, -15, 0, 4, 5, 5, 31 \ Vertex 4 VERTEX -24, 16, 0, 1, 5, 6, 6, 31 \ Vertex 5 VERTEX -24, 5, 15, 1, 2, 6, 6, 31 \ Vertex 6 VERTEX -24, -13, 9, 2, 3, 6, 6, 31 \ Vertex 7 VERTEX -24, -13, -9, 3, 4, 6, 6, 31 \ Vertex 8 VERTEX -24, 5, -15, 4, 5, 6, 6, 31 \ Vertex 9 .SHIP_CANISTER_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 0, 1, 31 \ Edge 0 EDGE 1, 2, 0, 2, 31 \ Edge 1 EDGE 2, 3, 0, 3, 31 \ Edge 2 EDGE 3, 4, 0, 4, 31 \ Edge 3 EDGE 0, 4, 0, 5, 31 \ Edge 4 EDGE 0, 5, 1, 5, 31 \ Edge 5 EDGE 1, 6, 1, 2, 31 \ Edge 6 EDGE 2, 7, 2, 3, 31 \ Edge 7 EDGE 3, 8, 3, 4, 31 \ Edge 8 EDGE 4, 9, 4, 5, 31 \ Edge 9 EDGE 5, 6, 1, 6, 31 \ Edge 10 EDGE 6, 7, 2, 6, 31 \ Edge 11 EDGE 7, 8, 3, 6, 31 \ Edge 12 EDGE 8, 9, 4, 6, 31 \ Edge 13 EDGE 9, 5, 5, 6, 31 \ Edge 14 .SHIP_CANISTER_FACES \ normal_x, normal_y, normal_z, visibility FACE 96, 0, 0, 31 \ Face 0 FACE 0, 41, 30, 31 \ Face 1 FACE 0, -18, 48, 31 \ Face 2 FACE 0, -51, 0, 31 \ Face 3 FACE 0, -18, -48, 31 \ Face 4 FACE 0, 41, -30, 31 \ Face 5 FACE -96, 0, 0, 31 \ Face 6
Name: SHIP_THARGOID [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a Thargoid mothership Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_THARGOID
.SHIP_THARGOID EQUB 0 \ Max. canisters on demise = 0 EQUW 99 * 99 \ Targetable area = 99 * 99 EQUB LO(SHIP_THARGOID_EDGES - SHIP_THARGOID) \ Edges data offset (low) EQUB LO(SHIP_THARGOID_FACES - SHIP_THARGOID) \ Faces data offset (low) EQUB 101 \ Max. edge count = (101 - 1) / 4 = 25 EQUB 60 \ Gun vertex = 60 / 4 = 15 EQUB 38 \ Explosion count = 8, as (4 * n) + 6 = 38 EQUB 120 \ Number of vertices = 120 / 6 = 20 EQUB 26 \ Number of edges = 26 EQUW 500 \ Bounty = 500 EQUB 40 \ Number of faces = 40 / 4 = 10 EQUB 55 \ Visibility distance = 55 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB 240 \ Max. energy = 240 \ --- And replaced by: --------------------------------> EQUB 253 \ Max. energy = 253 \ --- End of replacement ------------------------------> EQUB 39 \ Max. speed = 39 EQUB HI(SHIP_THARGOID_EDGES - SHIP_THARGOID) \ Edges data offset (high) EQUB HI(SHIP_THARGOID_FACES - SHIP_THARGOID) \ Faces data offset (high) EQUB 2 \ Normals are scaled by = 2^2 = 4 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB %00010110 \ Laser power = 2 \ \ Missiles = 6 \ --- And replaced by: --------------------------------> EQUB %00111000 \ Laser power = 7 \ Missiles = 0 \ --- End of replacement ------------------------------> .SHIP_THARGOID_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX 32, -48, 48, 0, 4, 8, 8, 31 \ Vertex 0 VERTEX 32, -68, 0, 0, 1, 4, 4, 31 \ Vertex 1 VERTEX 32, -48, -48, 1, 2, 4, 4, 31 \ Vertex 2 VERTEX 32, 0, -68, 2, 3, 4, 4, 31 \ Vertex 3 VERTEX 32, 48, -48, 3, 4, 5, 5, 31 \ Vertex 4 VERTEX 32, 68, 0, 4, 5, 6, 6, 31 \ Vertex 5 VERTEX 32, 48, 48, 4, 6, 7, 7, 31 \ Vertex 6 VERTEX 32, 0, 68, 4, 7, 8, 8, 31 \ Vertex 7 VERTEX -24, -116, 116, 0, 8, 9, 9, 31 \ Vertex 8 VERTEX -24, -164, 0, 0, 1, 9, 9, 31 \ Vertex 9 VERTEX -24, -116, -116, 1, 2, 9, 9, 31 \ Vertex 10 VERTEX -24, 0, -164, 2, 3, 9, 9, 31 \ Vertex 11 VERTEX -24, 116, -116, 3, 5, 9, 9, 31 \ Vertex 12 VERTEX -24, 164, 0, 5, 6, 9, 9, 31 \ Vertex 13 VERTEX -24, 116, 116, 6, 7, 9, 9, 31 \ Vertex 14 VERTEX -24, 0, 164, 7, 8, 9, 9, 31 \ Vertex 15 VERTEX -24, 64, 80, 9, 9, 9, 9, 30 \ Vertex 16 VERTEX -24, 64, -80, 9, 9, 9, 9, 30 \ Vertex 17 VERTEX -24, -64, -80, 9, 9, 9, 9, 30 \ Vertex 18 VERTEX -24, -64, 80, 9, 9, 9, 9, 30 \ Vertex 19 .SHIP_THARGOID_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 7, 4, 8, 31 \ Edge 0 EDGE 0, 1, 0, 4, 31 \ Edge 1 EDGE 1, 2, 1, 4, 31 \ Edge 2 EDGE 2, 3, 2, 4, 31 \ Edge 3 EDGE 3, 4, 3, 4, 31 \ Edge 4 EDGE 4, 5, 4, 5, 31 \ Edge 5 EDGE 5, 6, 4, 6, 31 \ Edge 6 EDGE 6, 7, 4, 7, 31 \ Edge 7 EDGE 0, 8, 0, 8, 31 \ Edge 8 EDGE 1, 9, 0, 1, 31 \ Edge 9 EDGE 2, 10, 1, 2, 31 \ Edge 10 EDGE 3, 11, 2, 3, 31 \ Edge 11 EDGE 4, 12, 3, 5, 31 \ Edge 12 EDGE 5, 13, 5, 6, 31 \ Edge 13 EDGE 6, 14, 6, 7, 31 \ Edge 14 EDGE 7, 15, 7, 8, 31 \ Edge 15 EDGE 8, 15, 8, 9, 31 \ Edge 16 EDGE 8, 9, 0, 9, 31 \ Edge 17 EDGE 9, 10, 1, 9, 31 \ Edge 18 EDGE 10, 11, 2, 9, 31 \ Edge 19 EDGE 11, 12, 3, 9, 31 \ Edge 20 EDGE 12, 13, 5, 9, 31 \ Edge 21 EDGE 13, 14, 6, 9, 31 \ Edge 22 EDGE 14, 15, 7, 9, 31 \ Edge 23 EDGE 16, 17, 9, 9, 30 \ Edge 24 EDGE 18, 19, 9, 9, 30 \ Edge 25 .SHIP_THARGOID_FACES \ normal_x, normal_y, normal_z, visibility FACE 103, -60, 25, 31 \ Face 0 FACE 103, -60, -25, 31 \ Face 1 FACE 103, -25, -60, 31 \ Face 2 FACE 103, 25, -60, 31 \ Face 3 FACE 64, 0, 0, 31 \ Face 4 FACE 103, 60, -25, 31 \ Face 5 FACE 103, 60, 25, 31 \ Face 6 FACE 103, 25, 60, 31 \ Face 7 FACE 103, -25, 60, 31 \ Face 8 FACE -48, 0, 0, 31 \ Face 9
Name: SHIP_THARGON [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a Thargon Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_THARGON

The ship blueprint for the Thargon reuses the edges data from the cargo canister, so the edges data offset is negative.
.SHIP_THARGON EQUB 0 + (15 << 4) \ Max. canisters on demise = 0 \ Market item when scooped = 15 + 1 = 16 (alien items) EQUW 40 * 40 \ Targetable area = 40 * 40 EQUB LO(SHIP_CANISTER_EDGES - SHIP_THARGON) \ Edges from canister EQUB LO(SHIP_THARGON_FACES - SHIP_THARGON) \ Faces data offset (low) EQUB 65 \ Max. edge count = (65 - 1) / 4 = 16 EQUB 0 \ Gun vertex = 0 EQUB 18 \ Explosion count = 3, as (4 * n) + 6 = 18 EQUB 60 \ Number of vertices = 60 / 6 = 10 EQUB 15 \ Number of edges = 15 EQUW 50 \ Bounty = 50 EQUB 28 \ Number of faces = 28 / 4 = 7 EQUB 20 \ Visibility distance = 20 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB 20 \ Max. energy = 20 \ --- And replaced by: --------------------------------> EQUB 33 \ Max. energy = 33 \ --- End of replacement ------------------------------> EQUB 30 \ Max. speed = 30 EQUB HI(SHIP_CANISTER_EDGES - SHIP_THARGON) \ Edges from canister EQUB HI(SHIP_THARGON_FACES - SHIP_THARGON) \ Faces data offset (high) EQUB 2 \ Normals are scaled by = 2^2 = 4 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB %00010000 \ Laser power = 2 \ \ Missiles = 0 \ --- And replaced by: --------------------------------> EQUB %00100000 \ Laser power = 4 \ Missiles = 0 \ --- End of replacement ------------------------------> .SHIP_THARGON_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX -9, 0, 40, 1, 0, 5, 5, 31 \ Vertex 0 VERTEX -9, -38, 12, 1, 0, 2, 2, 31 \ Vertex 1 VERTEX -9, -24, -32, 2, 0, 3, 3, 31 \ Vertex 2 VERTEX -9, 24, -32, 3, 0, 4, 4, 31 \ Vertex 3 VERTEX -9, 38, 12, 4, 0, 5, 5, 31 \ Vertex 4 VERTEX 9, 0, -8, 5, 1, 6, 6, 31 \ Vertex 5 VERTEX 9, -10, -15, 2, 1, 6, 6, 31 \ Vertex 6 VERTEX 9, -6, -26, 3, 2, 6, 6, 31 \ Vertex 7 VERTEX 9, 6, -26, 4, 3, 6, 6, 31 \ Vertex 8 VERTEX 9, 10, -15, 5, 4, 6, 6, 31 \ Vertex 9 .SHIP_THARGON_FACES \ normal_x, normal_y, normal_z, visibility FACE -36, 0, 0, 31 \ Face 0 FACE 20, -5, 7, 31 \ Face 1 FACE 46, -42, -14, 31 \ Face 2 FACE 36, 0, -104, 31 \ Face 3 FACE 46, 42, -14, 31 \ Face 4 FACE 20, 5, 7, 31 \ Face 5 FACE 36, 0, 0, 31 \ Face 6
Name: SHIP_VIPER [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a Viper Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_VIPER
.SHIP_VIPER EQUB 0 \ Max. canisters on demise = 0 EQUW 75 * 75 \ Targetable area = 75 * 75 EQUB LO(SHIP_VIPER_EDGES - SHIP_VIPER) \ Edges data offset (low) EQUB LO(SHIP_VIPER_FACES - SHIP_VIPER) \ Faces data offset (low) EQUB 77 \ Max. edge count = (77 - 1) / 4 = 19 EQUB 0 \ Gun vertex = 0 EQUB 42 \ Explosion count = 9, as (4 * n) + 6 = 42 EQUB 90 \ Number of vertices = 90 / 6 = 15 EQUB 20 \ Number of edges = 20 EQUW 0 \ Bounty = 0 EQUB 28 \ Number of faces = 28 / 4 = 7 EQUB 23 \ Visibility distance = 23 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB 100 \ Max. energy = 100 \ --- And replaced by: --------------------------------> EQUB 91 \ Max. energy = 91 \ --- End of replacement ------------------------------> EQUB 32 \ Max. speed = 32 EQUB HI(SHIP_VIPER_EDGES - SHIP_VIPER) \ Edges data offset (high) EQUB HI(SHIP_VIPER_FACES - SHIP_VIPER) \ Faces data offset (high) EQUB 1 \ Normals are scaled by = 2^1 = 2 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB %00010001 \ Laser power = 2 \ \ Missiles = 1 \ --- And replaced by: --------------------------------> EQUB %00101001 \ Laser power = 5 \ Missiles = 1 \ --- End of replacement ------------------------------> .SHIP_VIPER_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX 0, 0, 72, 1, 2, 3, 4, 31 \ Vertex 0 VERTEX 0, 16, 24, 0, 1, 2, 2, 30 \ Vertex 1 VERTEX 0, -16, 24, 3, 4, 5, 5, 30 \ Vertex 2 VERTEX 48, 0, -24, 2, 4, 6, 6, 31 \ Vertex 3 VERTEX -48, 0, -24, 1, 3, 6, 6, 31 \ Vertex 4 VERTEX 24, -16, -24, 4, 5, 6, 6, 30 \ Vertex 5 VERTEX -24, -16, -24, 5, 3, 6, 6, 30 \ Vertex 6 VERTEX 24, 16, -24, 0, 2, 6, 6, 31 \ Vertex 7 VERTEX -24, 16, -24, 0, 1, 6, 6, 31 \ Vertex 8 VERTEX -32, 0, -24, 6, 6, 6, 6, 19 \ Vertex 9 VERTEX 32, 0, -24, 6, 6, 6, 6, 19 \ Vertex 10 VERTEX 8, 8, -24, 6, 6, 6, 6, 19 \ Vertex 11 VERTEX -8, 8, -24, 6, 6, 6, 6, 19 \ Vertex 12 VERTEX -8, -8, -24, 6, 6, 6, 6, 18 \ Vertex 13 VERTEX 8, -8, -24, 6, 6, 6, 6, 18 \ Vertex 14 .SHIP_VIPER_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 3, 2, 4, 31 \ Edge 0 EDGE 0, 1, 1, 2, 30 \ Edge 1 EDGE 0, 2, 3, 4, 30 \ Edge 2 EDGE 0, 4, 1, 3, 31 \ Edge 3 EDGE 1, 7, 0, 2, 30 \ Edge 4 EDGE 1, 8, 0, 1, 30 \ Edge 5 EDGE 2, 5, 4, 5, 30 \ Edge 6 EDGE 2, 6, 3, 5, 30 \ Edge 7 EDGE 7, 8, 0, 6, 31 \ Edge 8 EDGE 5, 6, 5, 6, 30 \ Edge 9 EDGE 4, 8, 1, 6, 31 \ Edge 10 EDGE 4, 6, 3, 6, 30 \ Edge 11 EDGE 3, 7, 2, 6, 31 \ Edge 12 EDGE 3, 5, 6, 4, 30 \ Edge 13 EDGE 9, 12, 6, 6, 19 \ Edge 14 EDGE 9, 13, 6, 6, 18 \ Edge 15 EDGE 10, 11, 6, 6, 19 \ Edge 16 EDGE 10, 14, 6, 6, 18 \ Edge 17 EDGE 11, 14, 6, 6, 16 \ Edge 18 EDGE 12, 13, 6, 6, 16 \ Edge 19 .SHIP_VIPER_FACES \ normal_x, normal_y, normal_z, visibility FACE 0, 32, 0, 31 \ Face 0 FACE -22, 33, 11, 31 \ Face 1 FACE 22, 33, 11, 31 \ Face 2 FACE -22, -33, 11, 31 \ Face 3 FACE 22, -33, 11, 31 \ Face 4 FACE 0, -32, 0, 31 \ Face 5 FACE 0, 0, -48, 31 \ Face 6
Name: SHIP_BOA [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a Boa Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_BOA
.SHIP_BOA EQUB 5 \ Max. canisters on demise = 5 EQUW 70 * 70 \ Targetable area = 70 * 70 EQUB LO(SHIP_BOA_EDGES - SHIP_BOA) \ Edges data offset (low) EQUB LO(SHIP_BOA_FACES - SHIP_BOA) \ Faces data offset (low) EQUB 89 \ Max. edge count = (89 - 1) / 4 = 22 EQUB 0 \ Gun vertex = 0 EQUB 38 \ Explosion count = 8, as (4 * n) + 6 = 38 EQUB 78 \ Number of vertices = 78 / 6 = 13 EQUB 24 \ Number of edges = 24 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUW 0 \ Bounty = 0 \ --- And replaced by: --------------------------------> EQUW 250 \ Bounty = 250 \ --- End of replacement ------------------------------> EQUB 52 \ Number of faces = 52 / 4 = 13 EQUB 40 \ Visibility distance = 40 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB 250 \ Max. energy = 250 \ --- And replaced by: --------------------------------> EQUB 164 \ Max. energy = 164 \ --- End of replacement ------------------------------> EQUB 24 \ Max. speed = 24 EQUB HI(SHIP_BOA_EDGES - SHIP_BOA) \ Edges data offset (high) EQUB HI(SHIP_BOA_FACES - SHIP_BOA) \ Faces data offset (high) EQUB 0 \ Normals are scaled by = 2^0 = 1 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB %00011100 \ Laser power = 3 \ \ Missiles = 4 \ --- And replaced by: --------------------------------> EQUB %00101010 \ Laser power = 5 \ Missiles = 2 \ --- End of replacement ------------------------------> .SHIP_BOA_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX 0, 0, 93, 15, 15, 15, 15, 31 \ Vertex 0 VERTEX 0, 40, -87, 2, 0, 3, 3, 24 \ Vertex 1 VERTEX 38, -25, -99, 1, 0, 4, 4, 24 \ Vertex 2 VERTEX -38, -25, -99, 2, 1, 5, 5, 24 \ Vertex 3 VERTEX -38, 40, -59, 3, 2, 9, 6, 31 \ Vertex 4 VERTEX 38, 40, -59, 3, 0, 11, 6, 31 \ Vertex 5 VERTEX 62, 0, -67, 4, 0, 11, 8, 31 \ Vertex 6 VERTEX 24, -65, -79, 4, 1, 10, 8, 31 \ Vertex 7 VERTEX -24, -65, -79, 5, 1, 10, 7, 31 \ Vertex 8 VERTEX -62, 0, -67, 5, 2, 9, 7, 31 \ Vertex 9 VERTEX 0, 7, -107, 2, 0, 10, 10, 22 \ Vertex 10 VERTEX 13, -9, -107, 1, 0, 10, 10, 22 \ Vertex 11 VERTEX -13, -9, -107, 2, 1, 12, 12, 22 \ Vertex 12 .SHIP_BOA_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 5, 11, 6, 31 \ Edge 0 EDGE 0, 7, 10, 8, 31 \ Edge 1 EDGE 0, 9, 9, 7, 31 \ Edge 2 EDGE 0, 4, 9, 6, 29 \ Edge 3 EDGE 0, 6, 11, 8, 29 \ Edge 4 EDGE 0, 8, 10, 7, 29 \ Edge 5 EDGE 4, 5, 6, 3, 31 \ Edge 6 EDGE 5, 6, 11, 0, 31 \ Edge 7 EDGE 6, 7, 8, 4, 31 \ Edge 8 EDGE 7, 8, 10, 1, 31 \ Edge 9 EDGE 8, 9, 7, 5, 31 \ Edge 10 EDGE 4, 9, 9, 2, 31 \ Edge 11 EDGE 1, 4, 3, 2, 24 \ Edge 12 EDGE 1, 5, 3, 0, 24 \ Edge 13 EDGE 3, 9, 5, 2, 24 \ Edge 14 EDGE 3, 8, 5, 1, 24 \ Edge 15 EDGE 2, 6, 4, 0, 24 \ Edge 16 EDGE 2, 7, 4, 1, 24 \ Edge 17 EDGE 1, 10, 2, 0, 22 \ Edge 18 EDGE 2, 11, 1, 0, 22 \ Edge 19 EDGE 3, 12, 2, 1, 22 \ Edge 20 EDGE 10, 11, 12, 0, 14 \ Edge 21 EDGE 11, 12, 12, 1, 14 \ Edge 22 EDGE 12, 10, 12, 2, 14 \ Edge 23 .SHIP_BOA_FACES \ normal_x, normal_y, normal_z, visibility FACE 43, 37, -60, 31 \ Face 0 FACE 0, -45, -89, 31 \ Face 1 FACE -43, 37, -60, 31 \ Face 2 FACE 0, 40, 0, 31 \ Face 3 FACE 62, -32, -20, 31 \ Face 4 FACE -62, -32, -20, 31 \ Face 5 FACE 0, 23, 6, 31 \ Face 6 FACE -23, -15, 9, 31 \ Face 7 FACE 23, -15, 9, 31 \ Face 8 FACE -26, 13, 10, 31 \ Face 9 FACE 0, -31, 12, 31 \ Face 10 FACE 26, 13, 10, 31 \ Face 11 FACE 0, 0, -107, 14 \ Face 12
Name: SHIP_SIDEWINDER [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a Sidewinder Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_SIDEWINDER
.SHIP_SIDEWINDER EQUB 0 \ Max. canisters on demise = 0 EQUW 65 * 65 \ Targetable area = 65 * 65 EQUB LO(SHIP_SIDEWINDER_EDGES - SHIP_SIDEWINDER) \ Edges data offset (low) EQUB LO(SHIP_SIDEWINDER_FACES - SHIP_SIDEWINDER) \ Faces data offset (low) EQUB 61 \ Max. edge count = (61 - 1) / 4 = 15 EQUB 0 \ Gun vertex = 0 EQUB 30 \ Explosion count = 6, as (4 * n) + 6 = 30 EQUB 60 \ Number of vertices = 60 / 6 = 10 EQUB 15 \ Number of edges = 15 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUW 50 \ Bounty = 50 \ --- And replaced by: --------------------------------> EQUW 100 \ Bounty = 100 \ --- End of replacement ------------------------------> EQUB 28 \ Number of faces = 28 / 4 = 7 EQUB 20 \ Visibility distance = 20 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB 70 \ Max. energy = 70 \ --- And replaced by: --------------------------------> EQUB 73 \ Max. energy = 73 \ --- End of replacement ------------------------------> EQUB 37 \ Max. speed = 37 EQUB HI(SHIP_SIDEWINDER_EDGES - SHIP_SIDEWINDER) \ Edges data offset (high) EQUB HI(SHIP_SIDEWINDER_FACES - SHIP_SIDEWINDER) \ Faces data offset (high) EQUB 2 \ Normals are scaled by = 2^2 = 4 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB %00010000 \ Laser power = 2 \ \ Missiles = 0 \ --- And replaced by: --------------------------------> EQUB %00100000 \ Laser power = 4 \ Missiles = 0 \ --- End of replacement ------------------------------> .SHIP_SIDEWINDER_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX -32, 0, 36, 0, 1, 4, 5, 31 \ Vertex 0 VERTEX 32, 0, 36, 0, 2, 5, 6, 31 \ Vertex 1 VERTEX 64, 0, -28, 2, 3, 6, 6, 31 \ Vertex 2 VERTEX -64, 0, -28, 1, 3, 4, 4, 31 \ Vertex 3 VERTEX 0, 16, -28, 0, 1, 2, 3, 31 \ Vertex 4 VERTEX 0, -16, -28, 3, 4, 5, 6, 31 \ Vertex 5 VERTEX -12, 6, -28, 3, 3, 3, 3, 15 \ Vertex 6 VERTEX 12, 6, -28, 3, 3, 3, 3, 15 \ Vertex 7 VERTEX 12, -6, -28, 3, 3, 3, 3, 12 \ Vertex 8 VERTEX -12, -6, -28, 3, 3, 3, 3, 12 \ Vertex 9 .SHIP_SIDEWINDER_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 0, 5, 31 \ Edge 0 EDGE 1, 2, 2, 6, 31 \ Edge 1 EDGE 1, 4, 0, 2, 31 \ Edge 2 EDGE 0, 4, 0, 1, 31 \ Edge 3 EDGE 0, 3, 1, 4, 31 \ Edge 4 EDGE 3, 4, 1, 3, 31 \ Edge 5 EDGE 2, 4, 2, 3, 31 \ Edge 6 EDGE 3, 5, 3, 4, 31 \ Edge 7 EDGE 2, 5, 3, 6, 31 \ Edge 8 EDGE 1, 5, 5, 6, 31 \ Edge 9 EDGE 0, 5, 4, 5, 31 \ Edge 10 EDGE 6, 7, 3, 3, 15 \ Edge 11 EDGE 7, 8, 3, 3, 12 \ Edge 12 EDGE 6, 9, 3, 3, 12 \ Edge 13 EDGE 8, 9, 3, 3, 12 \ Edge 14 .SHIP_SIDEWINDER_FACES \ normal_x, normal_y, normal_z, visibility FACE 0, 32, 8, 31 \ Face 0 FACE -12, 47, 6, 31 \ Face 1 FACE 12, 47, 6, 31 \ Face 2 FACE 0, 0, -112, 31 \ Face 3 FACE -12, -47, 6, 31 \ Face 4 FACE 0, -32, 8, 31 \ Face 5 FACE 12, -47, 6, 31 \ Face 6
Name: SHIP_DRAGON [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a Dragon Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_DRAGON
\ --- Mod: Code added for Elite-A: --------------------> .SHIP_DRAGON EQUB 0 \ Max. canisters on demise = 0 EQUW 26192 \ Targetable area = 161.83 * 161.83 EQUB LO(SHIP_DRAGON_EDGES - SHIP_DRAGON) \ Edges data offset (low) EQUB LO(SHIP_DRAGON_FACES - SHIP_DRAGON) \ Faces data offset (low) EQUB 65 \ Max. edge count = (65 - 1) / 4 = 16 EQUB 0 \ Gun vertex = 0 EQUB 60 \ Explosion count = 13, as (4 * n) + 6 = 60 EQUB 54 \ Number of vertices = 54 / 6 = 9 EQUB 21 \ Number of edges = 21 EQUW 0 \ Bounty = 0 EQUB 56 \ Number of faces = 56 / 4 = 14 EQUB 32 \ Visibility distance = 32 EQUB 247 \ Max. energy = 247 EQUB 20 \ Max. speed = 20 EQUB HI(SHIP_DRAGON_EDGES - SHIP_DRAGON) \ Edges data offset (high) EQUB HI(SHIP_DRAGON_FACES - SHIP_DRAGON) \ Faces data offset (high) EQUB 0 \ Normals are scaled by = 2^0 = 1 EQUB %01000111 \ Laser power = 8 \ Missiles = 7 .SHIP_DRAGON_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX 0, 0, 250, 11, 6, 5, 0, 31 \ Vertex 0 VERTEX 216, 0, 124, 7, 6, 1, 0, 31 \ Vertex 1 VERTEX 216, 0, -124, 8, 7, 2, 1, 31 \ Vertex 2 VERTEX 0, 40, -250, 13, 12, 3, 2, 31 \ Vertex 3 VERTEX 0, -40, -250, 13, 12, 9, 8, 31 \ Vertex 4 VERTEX -216, 0, -124, 10, 9, 4, 3, 31 \ Vertex 5 VERTEX -216, 0, 124, 11, 10, 5, 4, 31 \ Vertex 6 VERTEX 0, 80, 0, 15, 15, 15, 15, 31 \ Vertex 7 VERTEX 0, -80, 0, 15, 15, 15, 15, 31 \ Vertex 8 .SHIP_DRAGON_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 1, 7, 1, 0, 31 \ Edge 0 EDGE 2, 7, 2, 1, 31 \ Edge 1 EDGE 3, 7, 3, 2, 31 \ Edge 2 EDGE 5, 7, 4, 3, 31 \ Edge 3 EDGE 6, 7, 5, 4, 31 \ Edge 4 EDGE 0, 7, 0, 5, 31 \ Edge 5 EDGE 1, 8, 7, 6, 31 \ Edge 6 EDGE 2, 8, 8, 7, 31 \ Edge 7 EDGE 4, 8, 9, 8, 31 \ Edge 8 EDGE 5, 8, 10, 9, 31 \ Edge 9 EDGE 6, 8, 11, 10, 31 \ Edge 10 EDGE 0, 8, 6, 11, 31 \ Edge 11 EDGE 0, 1, 6, 0, 31 \ Edge 12 EDGE 1, 2, 7, 1, 31 \ Edge 13 EDGE 5, 6, 10, 4, 31 \ Edge 14 EDGE 0, 6, 11, 5, 31 \ Edge 15 EDGE 2, 3, 12, 2, 31 \ Edge 16 EDGE 2, 4, 12, 8, 31 \ Edge 17 EDGE 3, 5, 13, 3, 31 \ Edge 18 EDGE 4, 5, 13, 9, 31 \ Edge 19 EDGE 3, 4, 13, 12, 31 \ Edge 20 .SHIP_DRAGON_FACES \ normal_x, normal_y, normal_z, visibility FACE 16, 90, 28, 31 \ Face 0 FACE 33, 90, 0, 31 \ Face 1 FACE 25, 91, -14, 31 \ Face 2 FACE -25, 91, -14, 31 \ Face 3 FACE -33, 90, 0, 31 \ Face 4 FACE -16, 90, 28, 31 \ Face 5 FACE 16, -90, 28, 31 \ Face 6 FACE 33, -90, 0, 31 \ Face 7 FACE 25, -91, -14, 31 \ Face 8 FACE -25, -91, -14, 31 \ Face 9 FACE -33, -90, 0, 31 \ Face 10 FACE -16, -90, 28, 31 \ Face 11 FACE 48, 0, -82, 31 \ Face 12 FACE -48, 0, -82, 31 \ Face 13 \ --- End of added code ------------------------------->
Name: SHIP_BUSHMASTER [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a Bushmaster Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_BUSHMASTER
\ --- Mod: Code added for Elite-A: --------------------> .SHIP_BUSHMASTER EQUB 0 \ Max. canisters on demise = 0 EQUW 4250 \ Targetable area = 65.19 * 65.19 EQUB LO(SHIP_BUSHMASTER_EDGES - SHIP_BUSHMASTER) \ Edges data offset (low) EQUB LO(SHIP_BUSHMASTER_FACES - SHIP_BUSHMASTER) \ Faces data offset (low) EQUB 81 \ Max. edge count = (81 - 1) / 4 = 20 EQUB 0 \ Gun vertex = 0 EQUB 30 \ Explosion count = 6, as (4 * n) + 6 = 30 EQUB 72 \ Number of vertices = 72 / 6 = 12 EQUB 19 \ Number of edges = 19 EQUW 150 \ Bounty = 150 EQUB 36 \ Number of faces = 36 / 4 = 9 EQUB 20 \ Visibility distance = 20 EQUB 74 \ Max. energy = 74 EQUB 35 \ Max. speed = 35 EQUB HI(SHIP_BUSHMASTER_EDGES - SHIP_BUSHMASTER) \ Edges data offset (high) EQUB HI(SHIP_BUSHMASTER_FACES - SHIP_BUSHMASTER) \ Faces data offset (high) EQUB 2 \ Normals are scaled by = 2^2 = 4 EQUB %00100001 \ Laser power = 4 \ Missiles = 1 .SHIP_BUSHMASTER_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX 0, 0, 60, 3, 2, 1, 0, 31 \ Vertex 0 VERTEX 50, 0, 20, 7, 5, 3, 1, 31 \ Vertex 1 VERTEX -50, 0, 20, 6, 4, 2, 0, 31 \ Vertex 2 VERTEX 0, 20, 0, 5, 4, 1, 0, 31 \ Vertex 3 VERTEX 0, -20, -40, 15, 15, 15, 15, 31 \ Vertex 4 VERTEX 0, 14, -40, 8, 8, 5, 4, 31 \ Vertex 5 VERTEX 40, 0, -40, 8, 8, 7, 5, 31 \ Vertex 6 VERTEX -40, 0, -40, 8, 8, 6, 4, 31 \ Vertex 7 VERTEX 0, 4, -40, 8, 8, 8, 8, 10 \ Vertex 8 VERTEX 10, 0, -40, 8, 8, 8, 8, 10 \ Vertex 9 VERTEX 0, -4, -40, 8, 8, 8, 8, 10 \ Vertex 10 VERTEX -10, 0, -40, 8, 8, 8, 8, 10 \ Vertex 11 .SHIP_BUSHMASTER_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 3, 1, 31 \ Edge 0 EDGE 0, 2, 2, 0, 31 \ Edge 1 EDGE 0, 3, 1, 0, 31 \ Edge 2 EDGE 0, 4, 3, 2, 31 \ Edge 3 EDGE 3, 5, 5, 4, 31 \ Edge 4 EDGE 2, 3, 4, 0, 31 \ Edge 5 EDGE 1, 3, 5, 1, 31 \ Edge 6 EDGE 2, 7, 6, 4, 31 \ Edge 7 EDGE 1, 6, 7, 5, 31 \ Edge 8 EDGE 2, 4, 6, 2, 31 \ Edge 9 EDGE 1, 4, 7, 3, 31 \ Edge 10 EDGE 5, 7, 8, 4, 31 \ Edge 11 EDGE 5, 6, 8, 5, 31 \ Edge 12 EDGE 4, 7, 8, 6, 31 \ Edge 13 EDGE 4, 6, 8, 7, 31 \ Edge 14 EDGE 8, 9, 8, 8, 10 \ Edge 15 EDGE 9, 10, 8, 8, 10 \ Edge 16 EDGE 10, 11, 8, 8, 10 \ Edge 17 EDGE 11, 8, 8, 8, 10 \ Edge 18 .SHIP_BUSHMASTER_FACES \ normal_x, normal_y, normal_z, visibility FACE -23, 88, 29, 31 \ Face 0 FACE 23, 88, 29, 31 \ Face 1 FACE -14, -93, 18, 31 \ Face 2 FACE 14, -93, 18, 31 \ Face 3 FACE -31, 89, -13, 31 \ Face 4 FACE 31, 89, -13, 31 \ Face 5 FACE -42, -85, -7, 31 \ Face 6 FACE 42, -85, -7, 31 \ Face 7 FACE 0, 0, -96, 31 \ Face 8 \ --- End of added code ------------------------------->
Name: SHIP_GECKO [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a Gecko Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_GECKO
.SHIP_GECKO EQUB 0 \ Max. canisters on demise = 0 EQUW 99 * 99 \ Targetable area = 99 * 99 EQUB LO(SHIP_GECKO_EDGES - SHIP_GECKO) \ Edges data offset (low) EQUB LO(SHIP_GECKO_FACES - SHIP_GECKO) \ Faces data offset (low) EQUB 65 \ Max. edge count = (65 - 1) / 4 = 16 EQUB 0 \ Gun vertex = 0 EQUB 26 \ Explosion count = 5, as (4 * n) + 6 = 26 EQUB 72 \ Number of vertices = 72 / 6 = 12 EQUB 17 \ Number of edges = 17 EQUW 55 \ Bounty = 55 EQUB 36 \ Number of faces = 36 / 4 = 9 EQUB 18 \ Visibility distance = 18 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB 70 \ Max. energy = 70 \ --- And replaced by: --------------------------------> EQUB 65 \ Max. energy = 65 \ --- End of replacement ------------------------------> EQUB 30 \ Max. speed = 30 EQUB HI(SHIP_GECKO_EDGES - SHIP_GECKO) \ Edges data offset (high) EQUB HI(SHIP_GECKO_FACES - SHIP_GECKO) \ Faces data offset (high) EQUB 3 \ Normals are scaled by = 2^3 = 8 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB %00010000 \ Laser power = 2 \ \ Missiles = 0 \ --- And replaced by: --------------------------------> EQUB %00100000 \ Laser power = 4 \ Missiles = 0 \ --- End of replacement ------------------------------> .SHIP_GECKO_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX -10, -4, 47, 3, 0, 5, 4, 31 \ Vertex 0 VERTEX 10, -4, 47, 1, 0, 3, 2, 31 \ Vertex 1 VERTEX -16, 8, -23, 5, 0, 7, 6, 31 \ Vertex 2 VERTEX 16, 8, -23, 1, 0, 8, 7, 31 \ Vertex 3 VERTEX -66, 0, -3, 5, 4, 6, 6, 31 \ Vertex 4 VERTEX 66, 0, -3, 2, 1, 8, 8, 31 \ Vertex 5 VERTEX -20, -14, -23, 4, 3, 7, 6, 31 \ Vertex 6 VERTEX 20, -14, -23, 3, 2, 8, 7, 31 \ Vertex 7 VERTEX -8, -6, 33, 3, 3, 3, 3, 16 \ Vertex 8 VERTEX 8, -6, 33, 3, 3, 3, 3, 17 \ Vertex 9 VERTEX -8, -13, -16, 3, 3, 3, 3, 16 \ Vertex 10 VERTEX 8, -13, -16, 3, 3, 3, 3, 17 \ Vertex 11 .SHIP_GECKO_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 3, 0, 31 \ Edge 0 EDGE 1, 5, 2, 1, 31 \ Edge 1 EDGE 5, 3, 8, 1, 31 \ Edge 2 EDGE 3, 2, 7, 0, 31 \ Edge 3 EDGE 2, 4, 6, 5, 31 \ Edge 4 EDGE 4, 0, 5, 4, 31 \ Edge 5 EDGE 5, 7, 8, 2, 31 \ Edge 6 EDGE 7, 6, 7, 3, 31 \ Edge 7 EDGE 6, 4, 6, 4, 31 \ Edge 8 EDGE 0, 2, 5, 0, 29 \ Edge 9 EDGE 1, 3, 1, 0, 30 \ Edge 10 EDGE 0, 6, 4, 3, 29 \ Edge 11 EDGE 1, 7, 3, 2, 30 \ Edge 12 EDGE 2, 6, 7, 6, 20 \ Edge 13 EDGE 3, 7, 8, 7, 20 \ Edge 14 EDGE 8, 10, 3, 3, 16 \ Edge 15 EDGE 9, 11, 3, 3, 17 \ Edge 16 .SHIP_GECKO_FACES \ normal_x, normal_y, normal_z, visibility FACE 0, 31, 5, 31 \ Face 0 FACE 4, 45, 8, 31 \ Face 1 FACE 25, -108, 19, 31 \ Face 2 FACE 0, -84, 12, 31 \ Face 3 FACE -25, -108, 19, 31 \ Face 4 FACE -4, 45, 8, 31 \ Face 5 FACE -88, 16, -214, 31 \ Face 6 FACE 0, 0, -187, 31 \ Face 7 FACE 88, 16, -214, 31 \ Face 8
Name: SHIP_PLATE [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for an alloy plate Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_PLATE
.SHIP_PLATE EQUB 0 + (8 << 4) \ Max. canisters on demise = 0 \ Market item when scooped = 8 + 1 = 9 (Alloys) EQUW 10 * 10 \ Targetable area = 10 * 10 EQUB LO(SHIP_PLATE_EDGES - SHIP_PLATE) \ Edges data offset (low) EQUB LO(SHIP_PLATE_FACES - SHIP_PLATE) \ Faces data offset (low) EQUB 17 \ Max. edge count = (17 - 1) / 4 = 4 EQUB 0 \ Gun vertex = 0 EQUB 10 \ Explosion count = 1, as (4 * n) + 6 = 10 EQUB 24 \ Number of vertices = 24 / 6 = 4 EQUB 4 \ Number of edges = 4 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUW 0 \ Bounty = 0 \ --- And replaced by: --------------------------------> EQUW 1 \ Bounty = 1 \ --- End of replacement ------------------------------> EQUB 4 \ Number of faces = 4 / 4 = 1 EQUB 5 \ Visibility distance = 5 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB 16 \ Max. energy = 16 \ --- And replaced by: --------------------------------> EQUB 8 \ Max. energy = 8 \ --- End of replacement ------------------------------> EQUB 16 \ Max. speed = 16 EQUB HI(SHIP_PLATE_EDGES - SHIP_PLATE) \ Edges data offset (high) EQUB HI(SHIP_PLATE_FACES - SHIP_PLATE) \ Faces data offset (high) EQUB 3 \ Normals are scaled by = 2^3 = 8 EQUB %00000000 \ Laser power = 0 \ Missiles = 0 .SHIP_PLATE_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX -15, -22, -9, 15, 15, 15, 15, 31 \ Vertex 0 VERTEX -15, 38, -9, 15, 15, 15, 15, 31 \ Vertex 1 VERTEX 19, 32, 11, 15, 15, 15, 15, 20 \ Vertex 2 VERTEX 10, -46, 6, 15, 15, 15, 15, 20 \ Vertex 3 .SHIP_PLATE_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 15, 15, 31 \ Edge 0 EDGE 1, 2, 15, 15, 16 \ Edge 1 EDGE 2, 3, 15, 15, 20 \ Edge 2 EDGE 3, 0, 15, 15, 16 \ Edge 3 .SHIP_PLATE_FACES \ normal_x, normal_y, normal_z, visibility FACE 0, 0, 0, 0 \ Face 0
Name: SHIP_BOULDER [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a boulder Deep dive: Ship blueprints
Context: See this variable on its own page References: This variable is used as follows: * XX21 uses SHIP_BOULDER
.SHIP_BOULDER EQUB 0 \ Max. canisters on demise = 0 EQUW 30 * 30 \ Targetable area = 30 * 30 EQUB LO(SHIP_BOULDER_EDGES - SHIP_BOULDER) \ Edges data offset (low) EQUB LO(SHIP_BOULDER_FACES - SHIP_BOULDER) \ Faces data offset (low) EQUB 45 \ Max. edge count = (45 - 1) / 4 = 11 EQUB 0 \ Gun vertex = 0 EQUB 14 \ Explosion count = 2, as (4 * n) + 6 = 14 EQUB 42 \ Number of vertices = 42 / 6 = 7 EQUB 15 \ Number of edges = 15 EQUW 1 \ Bounty = 1 EQUB 40 \ Number of faces = 40 / 4 = 10 EQUB 20 \ Visibility distance = 20 \ --- Mod: Code removed for Elite-A: ------------------> \ EQUB 20 \ Max. energy = 20 \ --- And replaced by: --------------------------------> EQUB 16 \ Max. energy = 16 \ --- End of replacement ------------------------------> EQUB 30 \ Max. speed = 30 EQUB HI(SHIP_BOULDER_EDGES - SHIP_BOULDER) \ Edges data offset (high) EQUB HI(SHIP_BOULDER_FACES - SHIP_BOULDER) \ Faces data offset (high) EQUB 2 \ Normals are scaled by = 2^2 = 4 EQUB %00000000 \ Laser power = 0 \ Missiles = 0 .SHIP_BOULDER_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX -18, 37, -11, 1, 0, 9, 5, 31 \ Vertex 0 VERTEX 30, 7, 12, 2, 1, 6, 5, 31 \ Vertex 1 VERTEX 28, -7, -12, 3, 2, 7, 6, 31 \ Vertex 2 VERTEX 2, 0, -39, 4, 3, 8, 7, 31 \ Vertex 3 VERTEX -28, 34, -30, 4, 0, 9, 8, 31 \ Vertex 4 VERTEX 5, -10, 13, 15, 15, 15, 15, 31 \ Vertex 5 VERTEX 20, 17, -30, 15, 15, 15, 15, 31 \ Vertex 6 .SHIP_BOULDER_EDGES \ vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 5, 1, 31 \ Edge 0 EDGE 1, 2, 6, 2, 31 \ Edge 1 EDGE 2, 3, 7, 3, 31 \ Edge 2 EDGE 3, 4, 8, 4, 31 \ Edge 3 EDGE 4, 0, 9, 0, 31 \ Edge 4 EDGE 0, 5, 1, 0, 31 \ Edge 5 EDGE 1, 5, 2, 1, 31 \ Edge 6 EDGE 2, 5, 3, 2, 31 \ Edge 7 EDGE 3, 5, 4, 3, 31 \ Edge 8 EDGE 4, 5, 4, 0, 31 \ Edge 9 EDGE 0, 6, 9, 5, 31 \ Edge 10 EDGE 1, 6, 6, 5, 31 \ Edge 11 EDGE 2, 6, 7, 6, 31 \ Edge 12 EDGE 3, 6, 8, 7, 31 \ Edge 13 EDGE 4, 6, 9, 8, 31 \ Edge 14 .SHIP_BOULDER_FACES \ normal_x, normal_y, normal_z, visibility FACE -15, -3, 8, 31 \ Face 0 FACE -7, 12, 30, 31 \ Face 1 FACE 32, -47, 24, 31 \ Face 2 FACE -3, -39, -7, 31 \ Face 3 FACE -5, -4, -1, 31 \ Face 4 FACE 49, 84, 8, 31 \ Face 5 FACE 112, 21, -21, 31 \ Face 6 FACE 76, -35, -82, 31 \ Face 7 FACE 22, 56, -137, 31 \ Face 8 FACE 40, 110, -38, 31 \ Face 9 EQUB 8 \ This byte appears to be unused
Save S.D.bin
PRINT "S.S.D ", ~CODE%, " ", ~P%, " ", ~LOAD%, " ", ~LOAD% SAVE "3-assembled-output/S.D.bin", CODE%, CODE% + &0A00