Нью баланс
This commit is contained in:
+5
-5
@@ -10,7 +10,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
|
||||
const SPAWN_TIME := 5
|
||||
|
||||
var arena_size: float = 14.0
|
||||
var cam_yaw: float = 0.0
|
||||
@@ -149,7 +149,7 @@ var rocks_on_field: int = 0
|
||||
var rocks_pending: int = 0
|
||||
|
||||
func _get_rock_limit() -> int:
|
||||
return mini(2 + (wave + 1) / 2, 7)
|
||||
return mini(3 + (wave + 1) / 2, 7)
|
||||
|
||||
func _spawn_rocks() -> void:
|
||||
var limit := _get_rock_limit()
|
||||
@@ -158,7 +158,7 @@ func _spawn_rocks() -> void:
|
||||
|
||||
var sticks_on_field: int = 0
|
||||
var sticks_pending: int = 0
|
||||
const STICK_LIMIT := 2
|
||||
const STICK_LIMIT := 3
|
||||
|
||||
func _spawn_sticks() -> void:
|
||||
for i in range(STICK_LIMIT):
|
||||
@@ -177,7 +177,7 @@ func _on_stick_destroyed() -> void:
|
||||
return
|
||||
if sticks_on_field + sticks_pending < STICK_LIMIT:
|
||||
sticks_pending += 1
|
||||
await get_tree().create_timer(20.0).timeout
|
||||
await get_tree().create_timer(10.0).timeout
|
||||
sticks_pending -= 1
|
||||
if game_active:
|
||||
_spawn_single_stick()
|
||||
@@ -213,7 +213,7 @@ func _on_rock_destroyed() -> void:
|
||||
return
|
||||
if rocks_on_field + rocks_pending < _get_rock_limit():
|
||||
rocks_pending += 1
|
||||
await get_tree().create_timer(20.0).timeout
|
||||
await get_tree().create_timer(10.0).timeout
|
||||
rocks_pending -= 1
|
||||
if game_active:
|
||||
_spawn_single_rock()
|
||||
|
||||
Reference in New Issue
Block a user