cleanup: QOL improvements — gitignore, Tags constants, remove debug artifacts

- Add .DS_Store, unused/, .vscode/settings.json to .gitignore
- Add .editorconfig (tabs for Lua, LF, UTF-8)
- Fix duplicate submodule entry in .gitmodules
- Add Tags table (player, tank, ground, granade, ammoCrate) — replace magic numbers
- Add SCREEN_W/SCREEN_H constants
- Fix leaked global variable `c` in Game.lua
- Remove Noble.showFPS = true from BomberScene
- Remove debug print() calls from granade, enemy, BomberScene
- Fix clean_build_dir glob bug in both build scripts
- Make PLAYDATE_SDK_PATH configurable via env var
This commit is contained in:
2026-02-24 12:48:00 +01:00
parent 8a039adc05
commit 348bd4fe64
17 changed files with 58 additions and 27 deletions

View File

@@ -30,7 +30,7 @@ function Player:init(x, y)
CollideGroups.wall
})
self:setCollideRect(3, 19, 60, 33)
self:setTag(1)
self:setTag(Tags.player)
-- Physics properties
self.fallSpeed = 0.05
@@ -188,13 +188,13 @@ function Player:handleMovementAndCollisions()
end
end
if collisionTag == 3 then -- Ground
if collisionTag == Tags.ground then
self:boom()
return
elseif collisionTag == 154 then -- Baleba
elseif collisionTag == Tags.granade then
self:boom(collisionObject)
return
elseif collisionTag == 2 then -- Tank
elseif collisionTag == Tags.tank then
self:boom()
BigBoom()