diff options
| author | 1029chris <1029chris@gmail.com> | 2022-02-09 20:10:47 -0800 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2022-02-09 20:10:47 -0800 |
| commit | 0210b764c5e36cf2afdce7365325fa72ca701a01 (patch) | |
| tree | 2ba926a1eae1c3eeb582a0b569f03f56d139f6b6 | |
| parent | 454130dff8e601f0df00b377a7e373dea304c9ca (diff) | |
3shot sound implemented
| -rw-r--r-- | players.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/players.lua b/players.lua index c7ea70d..25f206b 100644 --- a/players.lua +++ b/players.lua @@ -111,10 +111,12 @@ function addplayer(x, y, sprite, bulletsprite) --addcircle(player.x+3, player.y+4, rnd(1)+0.5, rnd(1)-0.5, 1.5, rnd(0.4), 12) --end addbullet(player.x+3, player.y, 2, 0, false, player.bulletsprite) - sfx(9) if player.shoot3 then addbullet(player.x+3, player.y+3, 2, 0.25, false, player.bulletsprite) addbullet(player.x+3, player.y-3, 2, -0.25, false, player.bulletsprite) + sfx(12) + else + sfx(9) end player.shootcooldown = player.shootspeed end |
