add gitignore

This commit is contained in:
Nikolay Fedorov
2026-04-22 14:54:35 +03:00
parent 716d0e7d1f
commit 1973cc3a3c
96 changed files with 20 additions and 373 deletions
+3 -2
View File
@@ -9,6 +9,7 @@ const CAM_DIST := 8.0
const MOUSE_SENS := 0.18
const PITCH_MIN := 5.0
const PITCH_MAX := 70.0
const SPAWN_TIME := 10
var cam_yaw: float = 0.0
var cam_pitch: float = 28.0
@@ -48,7 +49,7 @@ func _input(event: InputEvent) -> void:
var motion := event as InputEventMouseMotion
if motion != null and Input.mouse_mode == Input.MOUSE_MODE_CAPTURED:
cam_yaw -= motion.relative.x * MOUSE_SENS
cam_pitch -= motion.relative.y * MOUSE_SENS
cam_pitch += motion.relative.y * MOUSE_SENS
cam_pitch = clampf(cam_pitch, PITCH_MIN, PITCH_MAX)
if event.is_action_pressed("ui_cancel"):
@@ -209,7 +210,7 @@ func _on_spawn_timer() -> void:
if not game_active or upgrading:
return
_spawn_enemy()
spawn_timer.wait_time = 10 # max(0.25, 1.4 - wave * 0.07)
spawn_timer.wait_time = SPAWN_TIME # max(0.25, 1.4 - wave * 0.07)
func _spawn_enemy() -> void:
var enemy := ENEMY_SCENE.instantiate() as CharacterBody3D