From 919771b67dcb858d20d7f17c8fcd40b861918fbd Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 9 Jan 2023 10:39:47 +0100 Subject: [PATCH] Tweak explosion a bit --- island/FunnyExplosion.tscn | 12 ++++++------ island/Temple.gd | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/island/FunnyExplosion.tscn b/island/FunnyExplosion.tscn index 380d003..7f85d14 100644 --- a/island/FunnyExplosion.tscn +++ b/island/FunnyExplosion.tscn @@ -19,7 +19,7 @@ [ext_resource type="Texture2D" uid="uid://sh6al31s6ghr" path="res://assets/explosion-9.png" id="17_p1w8b"] [ext_resource type="AudioStream" uid="uid://tho5brgaucvs" path="res://assets/explosion.wav" id="18_8xllm"] -[sub_resource type="AnimatedTexture" id="AnimatedTexture_ikahs"] +[sub_resource type="AnimatedTexture" id="AnimatedTexture_dw7h5"] frames = 18 speed_scale = 5.0 frame_0/texture = ExtResource("15_y8upx") @@ -58,22 +58,22 @@ frame_16/duration = 1.0 frame_17/texture = ExtResource("15_y8upx") frame_17/duration = 1.0 -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_t6dwm"] +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_x5uay"] render_priority = 1 transparency = 1 blend_mode = 1 shading_mode = 0 -albedo_texture = SubResource("AnimatedTexture_ikahs") +albedo_texture = SubResource("AnimatedTexture_dw7h5") texture_filter = 0 billboard_mode = 1 billboard_keep_scale = true -[sub_resource type="PlaneMesh" id="PlaneMesh_wyptu"] +[sub_resource type="PlaneMesh" id="PlaneMesh_2bqq6"] orientation = 2 [node name="FunnyExplosion" type="MeshInstance3D"] -material_override = SubResource("StandardMaterial3D_t6dwm") -mesh = SubResource("PlaneMesh_wyptu") +material_override = SubResource("StandardMaterial3D_x5uay") +mesh = SubResource("PlaneMesh_2bqq6") [node name="ExplosionSound" type="AudioStreamPlayer3D" parent="."] stream = ExtResource("18_8xllm") diff --git a/island/Temple.gd b/island/Temple.gd index fc7aa55..a68e97a 100644 --- a/island/Temple.gd +++ b/island/Temple.gd @@ -39,8 +39,8 @@ func try_to_explode(): exploded = true var explosion = explosion_scene.instantiate() var explosion_sound = explosion.get_node("ExplosionSound") - explosion.position = Vector3(1, 6, -1) - explosion.scale = Vector3(2, 2, 2) + explosion.position = pineglasses.position + Vector3.UP + explosion.scale = pineglasses.scale explosion_sound.connect("finished", win) add_child(explosion)