Skip to navigation

Aviator on the BBC Micro

Visibility: maxObjDistance

Name: maxObjDistance [Show more] Type: Variable Category: Visibility Summary: The furthest distance at which each object is visible
Context: See this variable in context in the source code References: This variable is used as follows: * CheckObjDistance calls maxObjDistance

Objects are only shown if they are closer than the distance in this table, so this table contains the maximum visible distance for each object. The table is indexed by object ID, so for object ID X, maxObjDistance,X contains the maximum distance at which that object is visible, in any of the individual axes. The initial contents of the last five bytes of this table contains workspace noise and is ignored. It actually contains snippets of the original source code.
.maxObjDistance EQUB 108 \ Object 0 EQUB 125 \ Object 1 EQUB 125 \ Object 2 EQUB 125 \ Object 3 EQUB 125 \ Object 4 EQUB 125 \ Object 5 EQUB 40 \ Object 6 EQUB 40 \ Object 7 EQUB 110 \ Object 8 EQUB 110 \ Object 9 EQUB 58 \ Object 10 EQUB 66 \ Object 11 EQUB 30 \ Object 12 EQUB 30 \ Object 13 EQUB 30 \ Object 14 EQUB 30 \ Object 15 EQUB 125 \ Object 16 EQUB 125 \ Object 17 EQUB 125 \ Object 18 EQUB 125 \ Object 19 EQUB 125 \ Object 20 EQUB 125 \ Object 21 EQUB 125 \ Object 22 EQUB 125 \ Object 23 EQUB 125 \ Object 24 EQUB 125 \ Object 25 EQUB 125 \ Object 26 EQUB 125 \ Object 27 EQUB 125 \ Object 28 EQUB 125 \ Object 29 EQUB 25 \ Object 30 EQUB 90 \ Object 31 EQUB 90 \ Object 32 EQUB 90 \ Object 33 EQUB 125 \ Object 34 EQUB 58 \ Object 35 EQUB 66 \ Object 36 EQUB 78 \ Object 37 EQUB 69 \ Object 38 EQUB 32 \ Object 39