Skip to navigation

Setup: StartGame

Name: StartGame [Show more] Type: Subroutine Category: Setup Summary: Reset the high score, set up the gunfire sound envelope and start a new game
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * DrawCanopy calls StartGame
.StartGame LDA #0 \ Set the high score in (highScoreHi highScoreLo) to 0 STA highScoreHi STA highScoreLo LDA #14 \ Call DefineEnvelope with A = 14 to set up the second JSR DefineEnvelope \ sound envelope \ Fall through into NewGame to start a new game