added so player can cast Flame spell
This commit is contained in:
86
src/scenes/attack_spell_flame.tscn
Normal file
86
src/scenes/attack_spell_flame.tscn
Normal file
@@ -0,0 +1,86 @@
|
||||
[gd_scene format=3 uid="uid://b8k3m2n4p5q6r"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dwthqtcn5sqoj" path="res://assets/gfx/fx/flames/nedladdning (14).png" id="1_52nqi"]
|
||||
[ext_resource type="Script" uid="uid://pufa280hfhiy" path="res://scripts/attack_spell_flame.gd" id="1_flame"]
|
||||
[ext_resource type="Shader" uid="uid://c40fb6mfe76g3" path="res://shaders/fire_light.gdshader" id="3_g5mbl"]
|
||||
[ext_resource type="AudioStream" uid="uid://d1ylxthy45aw" path="res://assets/audio/sfx/environment/fireplace/fireplace-01.mp3" id="4_n6h4x"]
|
||||
[ext_resource type="AudioStream" uid="uid://dd6xrtcx2vtlx" path="res://assets/audio/sfx/environment/fireplace/fireplace-02.mp3" id="5_2hde6"]
|
||||
[ext_resource type="AudioStream" uid="uid://bjlq8la2amdut" path="res://assets/audio/sfx/environment/fireplace/fireplace-03.mp3" id="6_sy6oy"]
|
||||
[ext_resource type="AudioStream" uid="uid://cxw5pdksu1o8v" path="res://assets/audio/sfx/environment/fireplace/fireplace-04.mp3" id="7_l6fjl"]
|
||||
[ext_resource type="AudioStream" uid="uid://cxtp23isjsfvw" path="res://assets/audio/sfx/environment/fireplace/fireplace-05.mp3" id="8_rlm0w"]
|
||||
[ext_resource type="AudioStream" uid="uid://rtn5i86tlqyh" path="res://assets/audio/sfx/environment/fireplace/fireplace-06.mp3" id="9_8o5sr"]
|
||||
[ext_resource type="AudioStream" uid="uid://jri0jevyl5d3" path="res://assets/audio/sfx/wizard/incantations/spell_effect.mp3" id="10_2hde6"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_rach5"]
|
||||
shader = ExtResource("3_g5mbl")
|
||||
shader_parameter/brightness_multiplier = 3.0
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_lquwl"]
|
||||
offsets = PackedFloat32Array(0.743, 0.74418604)
|
||||
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 0)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_w00nx"]
|
||||
gradient = SubResource("Gradient_lquwl")
|
||||
fill = 1
|
||||
fill_from = Vector2(0.508547, 0.487179)
|
||||
fill_to = Vector2(0.974359, 0.0470085)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_flame"]
|
||||
size = Vector2(16, 16)
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_1qtic"]
|
||||
streams_count = 6
|
||||
stream_0/stream = ExtResource("4_n6h4x")
|
||||
stream_1/stream = ExtResource("5_2hde6")
|
||||
stream_2/stream = ExtResource("6_sy6oy")
|
||||
stream_3/stream = ExtResource("7_l6fjl")
|
||||
stream_4/stream = ExtResource("8_rlm0w")
|
||||
stream_5/stream = ExtResource("9_8o5sr")
|
||||
|
||||
[node name="FlameSpell" type="Node2D" unique_id=250449910]
|
||||
script = ExtResource("1_flame")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=546834923]
|
||||
texture = ExtResource("1_52nqi")
|
||||
hframes = 4
|
||||
vframes = 4
|
||||
frame = 4
|
||||
|
||||
[node name="ExplosionInit" type="Sprite2D" parent="." unique_id=123456789]
|
||||
visible = false
|
||||
texture = ExtResource("1_52nqi")
|
||||
hframes = 4
|
||||
vframes = 4
|
||||
|
||||
[node name="TorchLight" type="PointLight2D" parent="." unique_id=1247002844]
|
||||
modulate = Color(1.353256, 1.353256, 1.353256, 1)
|
||||
z_index = 10
|
||||
material = SubResource("ShaderMaterial_rach5")
|
||||
position = Vector2(0, -1)
|
||||
blend_mode = 2
|
||||
texture = SubResource("GradientTexture2D_w00nx")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="." unique_id=556563630]
|
||||
collision_layer = 4
|
||||
collision_mask = 3
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=520125161]
|
||||
shape = SubResource("RectangleShape2D_flame")
|
||||
debug_color = Color(0.70196074, 0, 0.09064378, 0.41960785)
|
||||
|
||||
[node name="LifetimeTimer" type="Timer" parent="." unique_id=77775231]
|
||||
wait_time = 2.0
|
||||
one_shot = true
|
||||
|
||||
[node name="SfxFire" type="AudioStreamPlayer2D" parent="." unique_id=8963001]
|
||||
stream = SubResource("AudioStreamRandomizer_1qtic")
|
||||
volume_db = 4.996
|
||||
max_distance = 1040.0
|
||||
attenuation = 2.2973964
|
||||
panning_strength = 1.09
|
||||
|
||||
[node name="SfxInit" type="AudioStreamPlayer2D" parent="." unique_id=467371620]
|
||||
stream = ExtResource("10_2hde6")
|
||||
attenuation = 1.5157177
|
||||
panning_strength = 1.04
|
||||
bus = &"Sfx"
|
||||
14
src/scenes/debuff_burn.tscn
Normal file
14
src/scenes/debuff_burn.tscn
Normal file
@@ -0,0 +1,14 @@
|
||||
[gd_scene format=3 uid="uid://debuff_burn_12345"]
|
||||
|
||||
[ext_resource type="Texture2D" path="res://assets/gfx/fx/burn.png" id="1_burn"]
|
||||
[ext_resource type="Script" path="res://scripts/debuff_burn.gd" id="1_script"]
|
||||
|
||||
[node name="DebuffBurn" type="Node2D"]
|
||||
script = ExtResource("1_script")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_burn")
|
||||
hframes = 4
|
||||
vframes = 4
|
||||
frame = 0
|
||||
z_index = 5
|
||||
@@ -29,8 +29,13 @@
|
||||
[ext_resource type="AudioStream" uid="uid://bdhmel5vyixng" path="res://assets/audio/sfx/player/take_damage/player_damaged_07.wav.mp3" id="26_gl8cc"]
|
||||
[ext_resource type="AudioStream" uid="uid://4vulahdsj4i2" path="res://assets/audio/sfx/swoosh/throw_01.wav.mp3" id="27_31cv2"]
|
||||
[ext_resource type="AudioStream" uid="uid://w6yon88kjfml" path="res://assets/audio/sfx/nickes/lift_sfx.ogg" id="28_pf23h"]
|
||||
[ext_resource type="AudioStream" uid="uid://d4kjyb1olr74s" path="res://assets/audio/sfx/weapons/bow/bow_draw-02.mp3" id="30_gl8cc"]
|
||||
[ext_resource type="AudioStream" uid="uid://b6klanrso0vvq" path="res://assets/audio/sfx/weapons/bow/bow_release_1.mp3" id="30_md1ol"]
|
||||
[ext_resource type="AudioStream" uid="uid://mbtpqlb5n3gd" path="res://assets/audio/sfx/weapons/bow/bow_no_arrow.mp3" id="31_487ah"]
|
||||
[ext_resource type="AudioStream" uid="uid://b6mwlp2ap0wbj" path="res://assets/audio/sfx/weapons/bow/bow_release2.mp3" id="31_bj30b"]
|
||||
[ext_resource type="AudioStream" uid="uid://cgya50qrx8gms" path="res://assets/audio/sfx/weapons/bow/buckle_bow.mp3" id="32_gl8cc"]
|
||||
[ext_resource type="AudioStream" uid="uid://d1ut5lnlch0k2" path="res://assets/audio/sfx/weapons/bow/bow_release3.mp3" id="32_jc3p3"]
|
||||
[ext_resource type="AudioStream" uid="uid://bvi00vbftbgc5" path="res://assets/audio/sfx/player/ultra_run/shinespark_start.wav" id="35_bj30b"]
|
||||
[ext_resource type="AudioStream" uid="uid://0xm3gyh8051h" path="res://assets/audio/sfx/wizard/incantations/indignation.mp3" id="36_jc3p3"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_wqfne"]
|
||||
colors = PackedColorArray(0, 0, 0, 1, 1, 0.13732082, 0.092538536, 1)
|
||||
@@ -275,6 +280,14 @@ stream_4/stream = ExtResource("24_wqfne")
|
||||
stream_5/stream = ExtResource("25_wnwbv")
|
||||
stream_6/stream = ExtResource("26_gl8cc")
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_bj30b"]
|
||||
playback_mode = 1
|
||||
random_pitch = 1.0123794
|
||||
streams_count = 3
|
||||
stream_0/stream = ExtResource("30_md1ol")
|
||||
stream_1/stream = ExtResource("31_bj30b")
|
||||
stream_2/stream = ExtResource("32_jc3p3")
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_hhpqf"]
|
||||
random_pitch = 1.0630184
|
||||
streams_count = 1
|
||||
@@ -457,7 +470,7 @@ shadow_enabled = true
|
||||
max_distance = 100.0
|
||||
|
||||
[node name="SfxBowShoot" type="AudioStreamPlayer2D" parent="." unique_id=340970961]
|
||||
stream = ExtResource("30_gl8cc")
|
||||
stream = SubResource("AudioStreamRandomizer_bj30b")
|
||||
pitch_scale = 1.33
|
||||
attenuation = 6.7271657
|
||||
|
||||
@@ -465,3 +478,18 @@ attenuation = 6.7271657
|
||||
stream = SubResource("AudioStreamRandomizer_hhpqf")
|
||||
max_distance = 1455.0
|
||||
attenuation = 7.4642572
|
||||
|
||||
[node name="SfxBuckleBow" type="AudioStreamPlayer2D" parent="." unique_id=1991119205]
|
||||
stream = ExtResource("32_gl8cc")
|
||||
attenuation = 7.727478
|
||||
panning_strength = 1.03
|
||||
|
||||
[node name="SfxSpellCharge" type="AudioStreamPlayer2D" parent="." unique_id=282455991]
|
||||
stream = ExtResource("35_bj30b")
|
||||
|
||||
[node name="SfxSpellIncantation" type="AudioStreamPlayer2D" parent="." unique_id=300820616]
|
||||
stream = ExtResource("36_jc3p3")
|
||||
volume_db = 5.729
|
||||
attenuation = 7.727487
|
||||
panning_strength = 1.04
|
||||
bus = &"Sfx"
|
||||
|
||||
Reference in New Issue
Block a user