This commit is contained in:
2024-06-03 20:08:46 +03:00
parent 9cd5c1bd81
commit b0256d7ae3
4 changed files with 46 additions and 11 deletions

View File

@@ -49,7 +49,8 @@ function Player:init(x, y)
self.touchingCeiling = false
self.touchingWall = false
Player.dead = false
Player.bat = 10000
Player.fullBat = 10000
Player.bat = Player.fullBat
Player.dischargeRate = 1
Player.moveRight = false
self.lastDirection = nil
@@ -172,7 +173,7 @@ function Player:handleMovementAndCollisions()
self:boom()
return
elseif collisionTag == 154 then -- Baleba
self:boom(collisionObject)
--self:boom(collisionObject)
return
elseif collisionTag == 2 then -- Tank
self:boom()