StormyExtraction/scenes/game/entities/player/player.tscn
2024-09-15 00:04:31 +02:00

481 lines
15 KiB
Text

[gd_scene load_steps=24 format=3 uid="uid://0duodsosmfpq"]
[ext_resource type="PackedScene" uid="uid://b18cf4i8v6a1" path="res://scenes/game/entities/entity.tscn" id="1_kmfws"]
[ext_resource type="Script" path="res://scenes/game/entities/player/player.gd" id="2_s0pfn"]
[ext_resource type="SpriteFrames" uid="uid://dv18sf3aj0n1h" path="res://scenes/game/entities/player/player.tres" id="3_mlsai"]
[ext_resource type="Texture2D" uid="uid://drjv0kpcfubr0" path="res://Assets/Icons/Dollar.png" id="4_6t857"]
[ext_resource type="Theme" uid="uid://brft526ygjv2u" path="res://Theme/Hud.tres" id="4_pkh7x"]
[ext_resource type="Script" path="res://scenes/game/entities/player/camera.gd" id="4_pm6vd"]
[ext_resource type="Texture2D" uid="uid://doeb4tgupsuhn" path="res://Assets/LightRadius.png" id="4_rgjff"]
[ext_resource type="PackedScene" uid="uid://c2lwkqoigo128" path="res://scenes/game/Hitbox/hit_box.tscn" id="5_al0qa"]
[ext_resource type="Texture2D" uid="uid://b27g8eulkxvyr" path="res://Assets/Icons/Health.png" id="6_4smqb"]
[ext_resource type="StyleBox" uid="uid://cicm0nqh0g7fd" path="res://Theme/RollBar.tres" id="7_0w6mh"]
[ext_resource type="StyleBox" uid="uid://31r7sc1edews" path="res://Theme/Empty.tres" id="7_luccy"]
[ext_resource type="StyleBox" uid="uid://6x7dblrcglcl" path="res://Theme/HealthBar.tres" id="8_kgbvc"]
[ext_resource type="Texture2D" uid="uid://c2o4115sewunm" path="res://Assets/Icons/Roll.png" id="10_1rhoe"]
[ext_resource type="Texture2D" uid="uid://caumye6m8df7a" path="res://Assets/Icons/Storm.png" id="12_7rs7u"]
[ext_resource type="StyleBox" uid="uid://db7h680qdfcrv" path="res://scenes/menu/startMenu/Storm.tres" id="12_wohun"]
[sub_resource type="CircleShape2D" id="CircleShape2D_7ukjs"]
radius = 8.94427
[sub_resource type="Animation" id="Animation_4p2qj"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera2D/CanvasLayer/Control/Storm:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Camera2D/CanvasLayer/Control/Storm:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Camera2D/CanvasLayer/Control/IntroductionLabel:visible_ratio")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Camera2D/CanvasLayer/Control/WARNING:visible_ratio")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Camera2D/CanvasLayer/Control/ColorRect:modulate")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_7uqa8"]
resource_name = "StormTimerAppear"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera2D/CanvasLayer/Control/Storm:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Camera2D/CanvasLayer/Control/Storm:scale")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_8ahng"]
resource_name = "StormTimer"
length = 0.8
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera2D/CanvasLayer/Control/Storm:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.4, 0.8),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.1, 1.1), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_1uxm1"]
resource_name = "Introduction"
length = 21.0
step = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera2D/CanvasLayer/Control/IntroductionLabel:visible_ratio")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1.5, 4.5, 6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [0.0, 1.0, 1.0, 0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Camera2D/CanvasLayer/Control/WARNING:visible_ratio")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(7, 9, 12, 14),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [0.0, 1.0, 1.0, 0.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Camera2D/CanvasLayer/Control/ColorRect:modulate")
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(15, 16.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
tracks/3/type = "method"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath(".")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 16.5),
"transitions": PackedFloat32Array(1, 1),
"values": [{
"args": [],
"method": &"pause"
}, {
"args": [],
"method": &"resume"
}]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1cg8p"]
_data = {
"Introduction": SubResource("Animation_1uxm1"),
"RESET": SubResource("Animation_4p2qj"),
"StormTimer": SubResource("Animation_8ahng"),
"StormTimerAppear": SubResource("Animation_7uqa8")
}
[sub_resource type="CircleShape2D" id="CircleShape2D_8u3aq"]
radius = 8.94427
[sub_resource type="CircleShape2D" id="CircleShape2D_bjveg"]
radius = 8.94427
[node name="Player" groups=["Player"] instance=ExtResource("1_kmfws")]
light_mask = 1536
visibility_layer = 1536
collision_layer = 1536
collision_mask = 46
script = ExtResource("2_s0pfn")
[node name="CollisionShape2D" parent="." index="0"]
position = Vector2(0, 4)
rotation = 1.57079
shape = SubResource("CircleShape2D_7ukjs")
[node name="AnimatedSprite2D" parent="." index="1"]
light_mask = 1024
visibility_layer = 1024
scale = Vector2(1.5, 1.5)
sprite_frames = ExtResource("3_mlsai")
animation = &"DOWN"
metadata/_aseprite_wizard_config_ = {
"layer": "",
"o_ex_p": "",
"o_folder": "",
"o_name": "",
"only_visible": false,
"slice": "",
"source": "res://Assets/Player/Player.ase"
}
metadata/_aseprite_wizard_interface_config_ = {
"layer_section": false,
"slice_section": false
}
[node name="Camera2D" type="Camera2D" parent="." index="2"]
zoom = Vector2(4, 4)
limit_smoothed = true
position_smoothing_enabled = true
drag_horizontal_enabled = true
script = ExtResource("4_pm6vd")
[node name="CanvasLayer" type="CanvasLayer" parent="Camera2D" index="0"]
[node name="Control" type="Control" parent="Camera2D/CanvasLayer" index="0"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource("4_pkh7x")
[node name="HBoxContainer" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control" index="0"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="TextureRect" type="TextureRect" parent="Camera2D/CanvasLayer/Control/HBoxContainer" index="0"]
layout_mode = 2
texture = ExtResource("4_6t857")
[node name="MoneyLabel" type="Label" parent="Camera2D/CanvasLayer/Control/HBoxContainer" index="1"]
visible = false
layout_mode = 2
text = "MONEY"
[node name="MoneyValue" type="Label" parent="Camera2D/CanvasLayer/Control/HBoxContainer" index="2"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Camera2D/CanvasLayer/Control" index="1"]
modulate = Color(1, 1, 1, 0.901961)
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 16.0
offset_top = -120.0
offset_right = 517.0
offset_bottom = -49.0
grow_vertical = 0
scale = Vector2(1.5, 1.5)
size_flags_horizontal = 3
alignment = 1
[node name="HBoxContainer2" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/VBoxContainer" index="0"]
layout_mode = 2
size_flags_vertical = 3
[node name="TextureRect" type="TextureRect" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer2" index="0"]
layout_mode = 2
texture = ExtResource("10_1rhoe")
expand_mode = 2
[node name="RollCooldownBar" type="ProgressBar" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer2" index="1"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
theme_override_font_sizes/font_size = 16
theme_override_styles/background = ExtResource("7_0w6mh")
theme_override_styles/fill = ExtResource("7_luccy")
fill_mode = 1
show_percentage = false
[node name="HBoxContainer" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/VBoxContainer" index="1"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer" index="0"]
layout_mode = 2
texture = ExtResource("6_4smqb")
expand_mode = 2
[node name="HealthBar" type="ProgressBar" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer" index="1"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 16
theme_override_styles/background = ExtResource("7_luccy")
theme_override_styles/fill = ExtResource("8_kgbvc")
rounded = true
[node name="ObjectValues" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control" index="2"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -288.0
offset_top = -112.0
offset_right = -22.0
offset_bottom = -12.0
grow_horizontal = 0
grow_vertical = 0
alignment = 2
[node name="MoneyLabel" type="Label" parent="Camera2D/CanvasLayer/Control/ObjectValues" index="0"]
layout_mode = 2
text = "+"
[node name="ObjectMoneyValue" type="Label" parent="Camera2D/CanvasLayer/Control/ObjectValues" index="1"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="Camera2D/CanvasLayer/Control/ObjectValues" index="2"]
layout_mode = 2
texture = ExtResource("4_6t857")
[node name="STORMWARNINGLabel" type="Label" parent="Camera2D/CanvasLayer/Control" index="3"]
visible = false
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -0.5
offset_right = 0.5
offset_bottom = 67.0
grow_horizontal = 2
text = "STORMWARNING"
[node name="Storm" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control" index="4"]
visible = false
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -320.0
offset_top = 67.0
offset_right = 320.0
offset_bottom = 152.0
grow_horizontal = 2
pivot_offset = Vector2(320, 42)
[node name="TextureRect" type="TextureRect" parent="Camera2D/CanvasLayer/Control/Storm" index="0"]
layout_mode = 2
texture = ExtResource("12_7rs7u")
expand_mode = 2
[node name="ProgressBar" type="ProgressBar" parent="Camera2D/CanvasLayer/Control/Storm" index="1"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
theme_override_styles/background = ExtResource("7_luccy")
theme_override_styles/fill = ExtResource("12_wohun")
show_percentage = false
[node name="AnimationPlayer" type="AnimationPlayer" parent="Camera2D/CanvasLayer/Control" index="5"]
process_mode = 3
root_node = NodePath("../../../..")
libraries = {
"": SubResource("AnimationLibrary_1cg8p")
}
[node name="ColorRect" type="ColorRect" parent="Camera2D/CanvasLayer/Control" index="6"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
[node name="WARNING" type="Label" parent="Camera2D/CanvasLayer/Control" index="7"]
process_mode = 3
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -500.0
offset_top = -500.0
offset_right = 500.0
offset_bottom = 500.0
grow_horizontal = 2
grow_vertical = 2
text = "WARNING"
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 3
visible_characters = 0
visible_ratio = 0.0
[node name="IntroductionLabel" type="Label" parent="Camera2D/CanvasLayer/Control" index="8"]
process_mode = 3
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -500.0
offset_top = -500.0
offset_right = 500.0
offset_bottom = 500.0
grow_horizontal = 2
grow_vertical = 2
text = "INTRODUCTION"
horizontal_alignment = 1
vertical_alignment = 1
visible_characters = 0
visible_ratio = 0.0
[node name="RollTimer" type="Timer" parent="." index="3"]
one_shot = true
[node name="RollCooldownTimer" type="Timer" parent="." index="4"]
one_shot = true
[node name="InteractionArea" type="Area2D" parent="." index="5" groups=["Player"]]
collision_layer = 64
collision_mask = 24
[node name="CollisionShape2D" type="CollisionShape2D" parent="InteractionArea" index="0"]
position = Vector2(0, 4)
shape = SubResource("CircleShape2D_8u3aq")
[node name="PointLight2D" type="PointLight2D" parent="." index="6"]
position = Vector2(0, 4)
color = Color(0.74978, 0.74978, 0.74978, 1)
energy = 0.5
range_item_cull_mask = 3647
shadow_enabled = true
shadow_item_cull_mask = 10
texture = ExtResource("4_rgjff")
texture_scale = 2.0
[node name="HitBox" parent="." index="7" instance=ExtResource("5_al0qa")]
[node name="CollisionShape2D" parent="HitBox" index="0"]
position = Vector2(0, 4)
shape = SubResource("CircleShape2D_bjveg")
[node name="StormTimerDamage" type="Timer" parent="." index="9"]
one_shot = true
[connection signal="animation_finished" from="Camera2D/CanvasLayer/Control/AnimationPlayer" to="." method="_on_animation_player_animation_finished"]
[connection signal="timeout" from="RollTimer" to="." method="_on_roll_timeout"]
[connection signal="timeout" from="RollCooldownTimer" to="." method="_on_roll_cooldown_timer_timeout"]
[connection signal="signalHit" from="HitBox" to="." method="_on_hit_box_signal_hit"]
[connection signal="timeout" from="StormTimerDamage" to="." method="_on_storm_timer_damage_timeout"]
[editable path="HitBox"]