Correction du son des cristaux, ajout d'un fade out à tous les dialogues et correction de traduction
This commit is contained in:
@@ -16,6 +16,8 @@ const UPDATE_INTERVAL := 1.5
|
||||
const WIN_CRISTAL_SCENE = preload("res://entities/interactables/win_cristal/win_cristal.tscn")
|
||||
|
||||
var plant_looted : Array[Plant] = []
|
||||
var update_number = 0
|
||||
|
||||
|
||||
func _process(delta):
|
||||
%CPUParticles2D.emitting = started_time < WAVE_DURATION
|
||||
@@ -58,11 +60,13 @@ func update():
|
||||
p.produce_seed()
|
||||
plant_looted.append(p)
|
||||
|
||||
spawn_cristal()
|
||||
spawn_cristal(update_number)
|
||||
update_number += 1
|
||||
|
||||
|
||||
func spawn_cristal():
|
||||
func spawn_cristal(order := 0):
|
||||
var new_cristal := WIN_CRISTAL_SCENE.instantiate() as WinCristal
|
||||
new_cristal.order = order
|
||||
new_cristal.data = WinCristalData.random()
|
||||
|
||||
var random_angle = randf_range(-PI,PI)
|
||||
|
||||
Reference in New Issue
Block a user