diff --git a/main.tscn b/main.tscn index 16f0d25..31c101e 100644 --- a/main.tscn +++ b/main.tscn @@ -19,7 +19,7 @@ unique_name_in_owner = true [node name="Player" parent="." instance=ExtResource("2_1bvp3")] unique_name_in_owner = true -position = Vector2(709, 2980) +position = Vector2(709, -2980) scale = Vector2(3, 3) [node name="Camera2D" type="Camera2D" parent="Player"] diff --git a/water/water.gd b/water/water.gd index 0d77b9a..5182d63 100644 --- a/water/water.gd +++ b/water/water.gd @@ -88,7 +88,6 @@ func update_shader(): tsunami_size = tsunami_size func _ready() -> void: - print("ready") print(name) update_shader() radius_base = rise_from @@ -127,15 +126,12 @@ func create_tsunami(angle : float, dir : int): $Tsunami.play("tsunami") func rise_water(): - print("ho") auto_rise = false $ParticleContainer.scale = Vector2.ONE * radius/3000 var pos = player.position var angle = atan2(pos.y, pos.x) $ParticleContainer.rotation = angle + PI/2 - $WaterRise.play("water_rise") await $WaterRise.animation_finished radius_base = radius_base + animation_height - print("hi") animation_height = 0