add gitignore
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user