Skip to navigation

Drawing objects: objPolygonPhases

Name: objPolygonPhases [Show more] Type: Variable Category: Drawing objects Summary: The phase configuration for each object
Context: See this variable in context in the source code References: This variable is used as follows: * DrawObject uses objPolygonPhases

Most objects are drawn in one phase, but some are drawn in two phases. This can depend on the relative altitude of the object compared to the viewer (for the robot, the sentry or the Sentinel), or it can depend on the object's gaze direction as given in the object's yaw angle (for the meanie). See the DrawObject routine for details.
.objPolygonPhases EQUB %11 \ Object type 0: Robot Depends on altitude EQUB %11 \ Object type 1: Sentry Depends on altitude EQUB %00 \ Object type 2: Tree One phase EQUB %00 \ Object type 3: Boulder One phase EQUB %10 \ Object type 4: Meanie Depends on yaw EQUB %11 \ Object type 5: The Sentinel Depends on altitude EQUB %00 \ Object type 6: Sentinel's tower One phase EQUB %00 \ Object type 7: 3D text block 1 One phase EQUB %00 \ Object type 8: 3D text block 2 One phase EQUB %00 \ Object type 9: 3D text block 3 One phase EQUB &00 \ This byte appears to be unused