LoadSound
method to the game
class.Method LoadSounds:Int()
sndHit = eng.LoadSound("hit") sndExplo = eng.LoadSound("explosion") sndShoot = eng.LoadSound("shoot")
TRUE
parameter to the LoadSound
call.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.
18.222.138.230