2023-09-17 22:35:27 -07:00
|
|
|
[gd_scene load_steps=11 format=3 uid="uid://dwbyhbaoutu7q"]
|
|
|
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cf1a0uk34o343" path="res://Assets/Sprites/Particles/lightning.png" id="1_bf8ae"]
|
|
|
|
[ext_resource type="Script" path="res://Entities/Lightning.cs" id="1_worfg"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://du5vhccg75nrq" path="res://BoundingBoxes/Hitbox.tscn" id="3_vlt1v"]
|
|
|
|
[ext_resource type="AudioStream" uid="uid://b1jmusgltouak" path="res://Assets/Sounds/lightning.wav" id="4_qxpk6"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bd8l8kafb42dt" path="res://Assets/Sprites/Particles/circle.png" id="5_vkpuj"]
|
|
|
|
|
|
|
|
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_3bsa7"]
|
|
|
|
light_mode = 1
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_1c3yr"]
|
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0]
|
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath("Sprite2D:visible")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [true]
|
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/path = NodePath("PointLight2D:energy")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 0,
|
|
|
|
"values": [0.5]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_jexpw"]
|
|
|
|
resource_name = "start"
|
|
|
|
length = 0.7
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0, 1, 2, 3, 4, 5]
|
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath("Sprite2D:visible")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.6),
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [true, false]
|
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/path = NodePath("PointLight2D:energy")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.7),
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
|
|
"update": 0,
|
2024-09-16 12:33:29 -07:00
|
|
|
"values": [1.0, 0.0]
|
2023-09-17 22:35:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_g3m4l"]
|
|
|
|
_data = {
|
|
|
|
"RESET": SubResource("Animation_1c3yr"),
|
|
|
|
"start": SubResource("Animation_jexpw")
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_f1v7c"]
|
|
|
|
radius = 8.0
|
|
|
|
|
|
|
|
[node name="Lightning" type="RigidBody2D" node_paths=PackedStringArray("Hitbox")]
|
|
|
|
collision_layer = 0
|
|
|
|
collision_mask = 0
|
|
|
|
script = ExtResource("1_worfg")
|
|
|
|
ProjectileName = "Lightning"
|
|
|
|
Hitbox = NodePath("Hitbox")
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
2024-09-16 12:33:29 -07:00
|
|
|
modulate = Color(4, 4, 4, 1)
|
2023-09-17 22:35:27 -07:00
|
|
|
material = SubResource("CanvasItemMaterial_3bsa7")
|
|
|
|
position = Vector2(0, 8)
|
|
|
|
texture = ExtResource("1_bf8ae")
|
|
|
|
centered = false
|
|
|
|
offset = Vector2(-16, -64)
|
|
|
|
hframes = 6
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_g3m4l")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Hitbox" parent="." instance=ExtResource("3_vlt1v")]
|
|
|
|
collision_layer = 0
|
2024-09-16 12:33:29 -07:00
|
|
|
priority = 5
|
2023-09-17 22:35:27 -07:00
|
|
|
Damage = 20.0
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" parent="Hitbox" index="0"]
|
|
|
|
shape = SubResource("CircleShape2D_f1v7c")
|
|
|
|
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
|
|
|
stream = ExtResource("4_qxpk6")
|
|
|
|
pitch_scale = 0.8
|
|
|
|
max_distance = 1024.0
|
|
|
|
attenuation = 0.25
|
|
|
|
bus = &"Effects"
|
|
|
|
|
|
|
|
[node name="PointLight2D" type="PointLight2D" parent="."]
|
|
|
|
energy = 0.5
|
|
|
|
texture = ExtResource("5_vkpuj")
|
|
|
|
texture_scale = 0.25
|
|
|
|
|
|
|
|
[editable path="Hitbox"]
|