Skip to navigation

Title screen: DrawTitleObject

Name: DrawTitleObject [Show more] Type: Subroutine Category: Title screen Summary: Draw an object on the title screen
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * DrawTitleObjects calls DrawTitleObject

Arguments: A The type of object to draw Y The configuration to use when drawing the object: * 1 = the Sentinel on the main title screen or the robot on the secret code screen * 2 = the tower on which the Sentinel or robot stands
.DrawTitleObject JSR SpawnTitleObject \ Call SpawnTitleObject to spawn an object of type A in \ object #1, using the configuration specified in Y LDY #1 \ Call DrawObject with Y = 1 to draw object #1 and JMP DrawObject \ return from the subroutine using a tail call