Last Modified: 1/3/2021
Sets the music track to be played with the XgmPlayMusic command.
Name | Type | Required | Description |
MusicTrack | Line Label | Yes | The line label where the music track data is located. |
Syntax: XgmTrack <MusicTrack> |
XgmTrack MyMusicTrack XgmStartMusic On vInt GoSub Vbl Enable vInt playing = True While 1 j = JoyPad() If j.7 Then If playing = True Then XgmStopMusic playing = False Else playing = True XgmResumeMusic End If End If WaitPadUp 0 Sleep 1 Wend Vbl: XgmVintProc Return Asm MyMusicTrack: INCBIN "C:\SecondBASICStudio\bin\mymusic.xgc" align 256 End Asm |