From f2af78d3191561beba0e734a936e4c9c0b923efb Mon Sep 17 00:00:00 2001 From: Pontus Alexander Date: Mon, 9 Mar 2020 20:31:26 +0100 Subject: [PATCH] Add shoot sound --- public/js/entities/Cannon.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/entities/Cannon.js b/public/js/entities/Cannon.js index bbf6e823..d6886eaf 100644 --- a/public/js/entities/Cannon.js +++ b/public/js/entities/Cannon.js @@ -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);