added nice smoke puffs to interactible objects
This commit is contained in:
@@ -37,6 +37,13 @@ texture = ExtResource("1_hpvv5")
|
||||
shape = SubResource("RectangleShape2D_uvdjg")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="KeyInteractionArea" type="Area2D" parent="." unique_id=982067740]
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="KeyInteractionArea" unique_id=1640987231]
|
||||
shape = SubResource("RectangleShape2D_la1wf")
|
||||
debug_color = Color(0.70196074, 0.67558956, 0.17869899, 0.41960785)
|
||||
|
||||
[node name="SfxOpenKeyDoor" type="AudioStreamPlayer2D" parent="." unique_id=47303726]
|
||||
stream = ExtResource("3_la1wf")
|
||||
max_distance = 1485.0
|
||||
@@ -45,30 +52,29 @@ panning_strength = 1.09
|
||||
|
||||
[node name="SfxOpenStoneDoor" type="AudioStreamPlayer2D" parent="." unique_id=885417421]
|
||||
stream = ExtResource("4_18pbm")
|
||||
volume_db = -3.382
|
||||
max_distance = 1204.0
|
||||
attenuation = 6.498014
|
||||
panning_strength = 1.25
|
||||
|
||||
[node name="SfxOpenGateDoor" type="AudioStreamPlayer2D" parent="." unique_id=442358170]
|
||||
stream = ExtResource("6_ju5n0")
|
||||
volume_db = -4.65
|
||||
volume_db = -5.073
|
||||
pitch_scale = 1.1
|
||||
max_distance = 1246.0
|
||||
attenuation = 7.999997
|
||||
panning_strength = 1.3
|
||||
|
||||
[node name="KeyInteractionArea" type="Area2D" parent="." unique_id=982067740]
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="KeyInteractionArea" unique_id=1640987231]
|
||||
shape = SubResource("RectangleShape2D_la1wf")
|
||||
debug_color = Color(0.70196074, 0.67558956, 0.17869899, 0.41960785)
|
||||
|
||||
[node name="SfxDoorCloses" type="AudioStreamPlayer2D" parent="." unique_id=1074871158]
|
||||
stream = SubResource("AudioStreamRandomizer_ey00f")
|
||||
volume_db = -1.268
|
||||
volume_db = -6.925
|
||||
max_distance = 1289.0
|
||||
attenuation = 3.7321312
|
||||
attenuation = 7.209997
|
||||
panning_strength = 1.14
|
||||
|
||||
[node name="SfxCloseGateDoor" type="AudioStreamPlayer2D" parent="." unique_id=1825261269]
|
||||
stream = ExtResource("8_pg2b6")
|
||||
volume_db = -4.227
|
||||
max_distance = 1246.0
|
||||
attenuation = 8.282116
|
||||
panning_strength = 1.02
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://cxfvw8y7jqn2p" path="res://scenes/player.tscn" id="2"]
|
||||
[ext_resource type="Script" uid="uid://db58xcyo4cjk" path="res://scripts/game_world.gd" id="4"]
|
||||
[ext_resource type="Script" uid="uid://wff5063ctp7g" path="res://scripts/debug_overlay.gd" id="5"]
|
||||
[ext_resource type="AudioStream" uid="uid://dthr2w8x0cj6v" path="res://assets/audio/sfx/ambience/wind-castle-loop.wav.mp3" id="6_6c6v5"]
|
||||
[ext_resource type="TileSet" uid="uid://dqem5tbvooxrg" path="res://assets/gfx/RPG DUNGEON VOL 3.tres" id="9"]
|
||||
|
||||
[node name="GameWorld" type="Node2D" unique_id=430665106]
|
||||
@@ -37,3 +38,8 @@ script = ExtResource("5")
|
||||
light_mask = 1048575
|
||||
visibility_layer = 1048575
|
||||
color = Color(0.671875, 0.671875, 0.671875, 1)
|
||||
|
||||
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=1141138343]
|
||||
stream = ExtResource("6_6c6v5")
|
||||
autoplay = true
|
||||
stream_paused = true
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
[ext_resource type="AudioStream" uid="uid://dsokwxmutlwk5" path="res://assets/audio/sfx/environment/move_rock/rock_push_loop_02.mp3" id="25_1u1k0"]
|
||||
[ext_resource type="AudioStream" uid="uid://4ilddgc4lgyq" path="res://assets/audio/sfx/environment/crate/crash_table-04.wav" id="26_vfomk"]
|
||||
[ext_resource type="AudioStream" uid="uid://c7kc0aw0wevah" path="res://assets/audio/sfx/environment/crate/wood_impact_break.mp3" id="27_2p257"]
|
||||
[ext_resource type="Texture2D" uid="uid://bknascfv4twmi" path="res://assets/gfx/smoke_puffs.png" id="28_2p257"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_nyc8x"]
|
||||
radius = 4.0
|
||||
@@ -80,6 +81,71 @@ streams_count = 2
|
||||
stream_0/stream = ExtResource("26_vfomk")
|
||||
stream_1/stream = ExtResource("27_2p257")
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_ik3co"]
|
||||
particles_animation = true
|
||||
particles_anim_h_frames = 4
|
||||
particles_anim_v_frames = 2
|
||||
particles_anim_loop = false
|
||||
|
||||
[sub_resource type="Curve" id="Curve_dh4ly"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.780549, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_m11t2"]
|
||||
curve = SubResource("Curve_dh4ly")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_c8svp"]
|
||||
_limits = [0.0, 100.0, 0.0, 1.0]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.733167, 4.55855), 0.0, 0.0, 0, 0, Vector2(0.815461, 91.8906), 0.0, 0.0, 0, 0, Vector2(0.892768, 100), 0.0, 0.0, 0, 0]
|
||||
point_count = 4
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_ui3li"]
|
||||
curve = SubResource("Curve_c8svp")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_oexrv"]
|
||||
_limits = [0.0, 1.0, -1.0, 1.0]
|
||||
_data = [Vector2(-1, 0), 0.0, 0.0, 0, 0, Vector2(0.0124688, 1), 0.0, 0.0, 0, 0, Vector2(0.516209, 1), 0.0, 0.0, 0, 0, Vector2(0.947631, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 4
|
||||
|
||||
[sub_resource type="Curve" id="Curve_27s1c"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Curve" id="Curve_igjib"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveXYZTexture" id="CurveXYZTexture_tjjlx"]
|
||||
curve_x = SubResource("Curve_oexrv")
|
||||
curve_y = SubResource("Curve_27s1c")
|
||||
curve_z = SubResource("Curve_igjib")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_by4wh"]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.0224439, 1), 0.0, 0.0, 0, 0, Vector2(0.880299, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 4
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_sp8mg"]
|
||||
curve = SubResource("Curve_by4wh")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ejwle"]
|
||||
particle_flag_disable_z = true
|
||||
direction = Vector3(1, 0.2, 0)
|
||||
spread = 62.79
|
||||
initial_velocity_min = -30.0
|
||||
initial_velocity_max = 30.0
|
||||
directional_velocity_min = -25.0
|
||||
directional_velocity_max = 25.0
|
||||
directional_velocity_curve = SubResource("CurveXYZTexture_tjjlx")
|
||||
gravity = Vector3(0, 0, 0)
|
||||
damping_max = 100.0
|
||||
damping_curve = SubResource("CurveTexture_ui3li")
|
||||
scale_min = 0.8
|
||||
scale_max = 1.2
|
||||
scale_curve = SubResource("CurveTexture_sp8mg")
|
||||
color = Color(1, 1, 1, 0.709804)
|
||||
alpha_curve = SubResource("CurveTexture_m11t2")
|
||||
anim_offset_max = 1.0
|
||||
|
||||
[node name="InteractableObject" type="CharacterBody2D" unique_id=1472163831]
|
||||
collision_layer = 2
|
||||
collision_mask = 71
|
||||
@@ -147,3 +213,24 @@ volume_db = -2.611
|
||||
[node name="SfxBreakCrate" type="AudioStreamPlayer2D" parent="." unique_id=1799447869]
|
||||
stream = SubResource("AudioStreamRandomizer_ik3co")
|
||||
volume_db = -6.092
|
||||
|
||||
[node name="DragParticles" type="GPUParticles2D" parent="." unique_id=2123830325]
|
||||
z_index = -1
|
||||
y_sort_enabled = true
|
||||
material = SubResource("CanvasItemMaterial_ik3co")
|
||||
emitting = false
|
||||
amount = 16
|
||||
texture = ExtResource("28_2p257")
|
||||
lifetime = 0.66
|
||||
interp_to_end = 0.026
|
||||
preprocess = 0.16
|
||||
explosiveness = 0.15
|
||||
randomness = 0.63
|
||||
use_fixed_seed = true
|
||||
seed = 1565624367
|
||||
process_material = SubResource("ParticleProcessMaterial_ejwle")
|
||||
|
||||
[node name="TimerSmokeParticles" type="Timer" parent="DragParticles" unique_id=2105569542]
|
||||
wait_time = 0.07
|
||||
|
||||
[connection signal="timeout" from="DragParticles/TimerSmokeParticles" to="." method="_on_timer_smoke_particles_timeout"]
|
||||
|
||||
@@ -58,7 +58,7 @@ radius = 8.0
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_l71n6"]
|
||||
playback_mode = 1
|
||||
random_pitch = 1.0059091
|
||||
random_pitch = 1.0118532
|
||||
streams_count = 6
|
||||
stream_0/stream = ExtResource("13_fulsm")
|
||||
stream_1/stream = ExtResource("14_4r5pv")
|
||||
@@ -69,7 +69,7 @@ stream_5/stream = ExtResource("18_4ni07")
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_487ah"]
|
||||
playback_mode = 1
|
||||
random_pitch = 1.0059091
|
||||
random_pitch = 1.0118532
|
||||
streams_count = 7
|
||||
stream_0/stream = ExtResource("20_ujl30")
|
||||
stream_1/stream = ExtResource("21_31cv2")
|
||||
@@ -182,8 +182,10 @@ horizontal_alignment = 1
|
||||
|
||||
[node name="SfxWalk" type="AudioStreamPlayer2D" parent="." unique_id=1693322702]
|
||||
stream = SubResource("AudioStreamRandomizer_l71n6")
|
||||
volume_db = -12.0
|
||||
volume_db = -18.527
|
||||
max_distance = 1412.0
|
||||
attenuation = 8.282109
|
||||
panning_strength = 1.11
|
||||
|
||||
[node name="TimerWalk" type="Timer" parent="SfxWalk" unique_id=590325386]
|
||||
wait_time = 0.3
|
||||
@@ -191,12 +193,15 @@ one_shot = true
|
||||
|
||||
[node name="SfxDie" type="AudioStreamPlayer2D" parent="." unique_id=1173215688]
|
||||
stream = ExtResource("19_4r5pv")
|
||||
volume_db = -2.537
|
||||
attenuation = 8.876548
|
||||
bus = &"Sfx"
|
||||
|
||||
[node name="SfxTakeDamage" type="AudioStreamPlayer2D" parent="." unique_id=322150091]
|
||||
stream = SubResource("AudioStreamRandomizer_487ah")
|
||||
volume_db = -6.092
|
||||
attenuation = 7.7274756
|
||||
panning_strength = 1.1
|
||||
bus = &"Sfx"
|
||||
|
||||
[node name="SfxThrow" type="AudioStreamPlayer2D" parent="." unique_id=961008127]
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://bknascfv4twmi" path="res://assets/gfx/smoke_puffs.png" id="2_smoke"]
|
||||
|
||||
[node name="SmokePuff" type="Node2D" unique_id=243995580]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_puff")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1282738570]
|
||||
|
||||
Reference in New Issue
Block a user