RickieES / GCPractica1

0 stars 0 forks source link

Sounds!! #8

Closed RickieES closed 1 year ago

RickieES commented 1 year ago

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

RickieES commented 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:

alejleal commented 1 year ago

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.

alejleal commented 1 year ago

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 😄)

alejleal commented 1 year ago

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.

alejleal commented 1 year ago

Commit 4cad166 completes this