chore: update Godot version + fix timers issues
This commit is contained in:
parent
eabe566aca
commit
9a54675201
5 changed files with 5 additions and 4 deletions
|
|
@ -93,7 +93,7 @@ func spawnEnemy(enemyScene: PackedScene, laneToSpawn: int, delay: float) -> void
|
|||
var enemy : PathFollow3D = createEnemy(enemyScene)
|
||||
|
||||
if delay > 0:
|
||||
await get_tree().create_timer(delay).timeout
|
||||
await get_tree().create_timer(delay, false).timeout
|
||||
|
||||
paths[laneToSpawn].add_child(enemy)
|
||||
enemiesAlive += 1
|
||||
|
|
|
|||
|
|
@ -169,5 +169,5 @@ func toggleConnection(activate : bool) -> void:
|
|||
func disable(duration : float) -> void:
|
||||
state = STATE.DISABLED
|
||||
resting()
|
||||
await get_tree().create_timer(duration).timeout
|
||||
await get_tree().create_timer(duration, false).timeout
|
||||
state = STATE.REST
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ func updateWaveCooldownLabel(waveCooldown : float) -> void:
|
|||
else:
|
||||
$WaveCooldown.text = "\n\nNext wave : %3.1f" % waveCooldown
|
||||
waveCooldown -= tickDuration
|
||||
await get_tree().create_timer(tickDuration).timeout
|
||||
await get_tree().create_timer(tickDuration, false).timeout
|
||||
|
||||
$WaveCooldown.visible = false
|
||||
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ theme = ExtResource("5_wpcnu")
|
|||
script = ExtResource("2_sac4j")
|
||||
|
||||
[node name="WaveCooldown" type="Label" parent="."]
|
||||
process_mode = 1
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ resources_spreadsheet_view/freeze_first_column=true
|
|||
|
||||
config/name="Pole Pixel Defense Force"
|
||||
run/main_scene="uid://2xw1yn1tmlcy"
|
||||
config/features=PackedStringArray("4.4")
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[audio]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue