diff options
| -rw-r--r-- | logic/controller.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/controller.lua b/logic/controller.lua index 44867bf..211a745 100644 --- a/logic/controller.lua +++ b/logic/controller.lua @@ -13,6 +13,11 @@ local function playerChangeNextBullet(key) elseif key == "e" then G.player.nextBullet = G.player.nextBullet +1 end + + local i = tonumber(key) + if i ~= nil then + G.player.nextBullet = i + end end local function playerPressKeysToMoves(dt) |
