ClubWumpus / Flappy-Wumpus

A bad game about a dead meme.
https://flappy.clubwump.us/
MIT License
4 stars 3 forks source link

Sounds #40

Closed AGenericGamer closed 8 years ago

AGenericGamer commented 8 years ago

For the love of god we need to figure out how enchant.js uses sounds so we can use all the assets in our sounds folder (flap, score, death, ect.)

Stoupedog commented 8 years ago

Apparently using sounds through enchant.js can be pretty buggy (I tried and failed). As game.js is still a javascript file, this kinda format seems to work: var gameOverSound = new Audio('sounds/game-over.mp3'); gameOverSound.play();

Added flap and game over sounds in https://github.com/ClubWumpus/Flappy-Wumpus/commit/5648de4defd8b238b317a4d357b66e599d35d4dd