tutorial_04_(sound_2d).jpg

Functions:

Sound: sce::registerSound()
sce::playSound()
sce::stopSound()
Input: sce::isButtonUpToDown()
sce::getMouseCursorPos()

Scripts:

menu.aud: spaceSky
backgroundMusic
buttonPushSound

Topics

Sounds are also defined in scripts. The two sound sripts can be found in file: "menu.aud". To get more information about sounds and scripting check section : "Concepts and Definitions" topic: "Audio". The tutorial shows you how to load, play and stop sounds.
This tutorial also should show you how to react on mouse coursor input, using the ingame mouse coursor!





SourceForge.net Logo