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:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export PLAYDATE_SDK_PATH="/Users/oleksiiilienko/Developer/PlaydateSDK"
|
||||
export PLAYDATE_SDK_PATH="${PLAYDATE_SDK_PATH:-/Users/oleksiiilienko/Developer/PlaydateSDK}"
|
||||
|
||||
# Check for color by variable and tput command
|
||||
if [[ -z $NOCOLOR && -n $(command -v tput) ]]; then
|
||||
@@ -103,7 +103,7 @@ function make_build_dir() {
|
||||
function clean_build_dir() {
|
||||
if [[ -d "${BUILD_DIR}" ]]; then
|
||||
log "Cleaning build directory..."
|
||||
rm -rfv "${BUILD_DIR}/*"
|
||||
rm -rfv "${BUILD_DIR}"/*
|
||||
chk_err
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user