LoadSoundmethod to the
sndHit = eng.LoadSound("hit") sndExplo = eng.LoadSound("explosion") sndShoot = eng.LoadSound("shoot")
TRUEparameter to the
sndEngine = eng.LoadSound("engine",True)
Return 0 End
You have created a method that will load all sounds we need for the game. A file extension was not given to the
LoadSound statement, as it will be added from fantomEngine, according to the platform on which you will build it. For the GLFW platform, you need WAV files.