Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Changed fireball sound when hitting solid objects
Browse files Browse the repository at this point in the history
Changed the fireball sound so that it plays Kick.wav when hitting enemies, and Bump.wav when hitting solid objects.
  • Loading branch information
dwilhelmi committed Oct 18, 2013
1 parent 2afbd76 commit f32d6e7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions things.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,12 @@ function FireBall(me, moveleft) {
}
function fireEnemy(enemy, me) {
if(!me.alive || me.emerging || enemy.nofire || enemy.height <= unitsize) return;
playLocal("Kick.wav", me.right);
if(!enemy.solid) {

if(enemy.solid) {
playLocal("Bump.wav", me.right);
}
else {
playLocal("Kick.wav", me.right);
enemy.death(enemy, 2);
scoreEnemyFire(enemy);
}
Expand Down

0 comments on commit f32d6e7

Please sign in to comment.