LoadSoundsmethod to the
Method LoadSounds:Int ()
LoadSoundmethod. The parameter is the filename of the sound, but without a file extension.
sndExplo = eng.LoadSound("explosion") sndShot = eng.LoadSound("shoot1")
Return 0 End
Even though we have only two sounds to load, with the
LoadSounds method you have a code section that you can easily expand once you want to add more sounds to the game.
In every game, you have a user interface (UI) that will let you control the game somehow and also inform the player about certain statistics of the game. For example, how ...