Closed RickieES closed 1 year ago
It seems we need an instance of ofSoundPlayer:
https://openframeworks.cc/documentation/sound/ofSoundPlayer/#show_play
We could do this in two different ways, always creating the instance for the entire application:
I think the better way would be adding listeners and events when firing or hitting an enemy, but i find it simpler if the scene handles this. Whenever the scene makes the shoot call (for example), it could call the play function as well and we dont have to worry about the instance being global.
Also, i suggest using this soundtrack VVVVVV - Positive Force as the main soundtrack in the game. Will probably need to find better candidates for the main menu VVVVVV - Predestined Fate and endscreen. All the VVVVVV soundtracks looks perfect for this (which i also recommend playing if you havent 😄)
Commit 6376860 adds some sound effects but the main soundtrack doesn't load for some reason. The file might be too large for it to load, but i'll keep testing.
We haven't added any sounds yet to the game.
Here there are some kind of game sound effects:
https://mixkit.co/free-sound-effects/game/ (mostly retro) https://www.zapsplat.com/sound-effect-category/game-sounds/ https://opengameart.org/content/library-of-game-sounds