Skip to content

Commit

Permalink
Add shoot sound
Browse files Browse the repository at this point in the history
  • Loading branch information
pomle committed Mar 9, 2020
1 parent 750c205 commit f2af78d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/js/entities/Cannon.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ function createCannonFactory(entityFactory, audio) {
}
}

entity.sounds.add('shoot');

const bullet = createBullet();
bullet.vel.set(80, 0);
bullet.pos.copy(entity.pos);
Expand Down

0 comments on commit f2af78d

Please sign in to comment.