Defining collision layers, Issue 3 Task 4
Validate Project / validate (push) Successful in 16s

This commit is contained in:
Andrew Yeet
2026-09-07 18:55:38 -07:00
parent 92cc3cb4ed
commit d632abd93c
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -17,3 +17,4 @@ osu!/
.env .env
.env.gitea .env.gitea
*.uid
+9
View File
@@ -1,5 +1,14 @@
# GameState.gd # GameState.gd
extends Node extends Node
# --- COLLISION LAYERS (TASK 4) ---
const LAYER_ENVIRONMENT = 1 # Environment/terrain
const LAYER_PLAYER = 2 # Player character
const LAYER_ENEMY = 3 # Enemy mobs
const LAYER_GOOSE_PROJECTILE = 4 # Goose projectiles
const LAYER_TURRET = 5 # Fixed towers/turrets
const LAYER_PICKUP = 6 # Currency, power-ups
const LAYER_UI_TRIGGER = 7 # UI interaction zones
var score = 0 var score = 0
var currency = 100 var currency = 100
var current_wave = 0 var current_wave = 0