.PlayMusic STA musicCounter \ Set the musicCounter to the value in A to start the \ music playing from this point LDA #3 \ Set soundEffect = 3 to tell the ProcessSound routine STA soundEffect \ that this is music and should therefore be processed \ using the ProcessMusic routine RTS \ Return from the subroutine EQUB &23 \ This byte appears to be unusedName: PlayMusic [Show more] Type: Subroutine Category: Sound Summary: Play a piece of musicContext: See this subroutine in context in the source code References: This subroutine is called as follows: * MainGameLoop calls PlayMusic * PerformHyperspace calls PlayMusic * ProcessActionKeys (Part 2 of 2) calls PlayMusic * ShowGameOverScreen calls PlayMusic
Arguments: A The number of the music to play (which is expressed as a byte offset into the music data at musicData): * 0 = hyperspace * 25 = player has just transferred onto the Sentinel's tower * 40 = U-turn * 50 = game over * 66 = landscape successfully finished
[X]
Variable musicCounter in workspace Main variable workspace
A counter for the music currently being made, which counts up in the ProcessMusic routine while the music is being played
[X]
Variable soundEffect in workspace Main variable workspace
Determines how the current sound is processed by the ProcessSound routine