108 lines
3.3 KiB
Text
108 lines
3.3 KiB
Text
[gd_scene load_steps=6 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"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ihc0q"]
|
|
radius = 4.0
|
|
height = 16.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_8u3aq"]
|
|
radius = 8.94427
|
|
|
|
[node name="Player" groups=["Player"] instance=ExtResource("1_kmfws")]
|
|
script = ExtResource("2_s0pfn")
|
|
|
|
[node name="CollisionShape2D" parent="." index="0"]
|
|
position = Vector2(0, 8)
|
|
rotation = 1.57079
|
|
shape = SubResource("CapsuleShape2D_ihc0q")
|
|
|
|
[node name="AnimatedSprite2D" parent="." index="1"]
|
|
visibility_layer = 4
|
|
scale = Vector2(1.5, 1.5)
|
|
sprite_frames = ExtResource("3_mlsai")
|
|
animation = &"IDLE"
|
|
frame_progress = 0.904526
|
|
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
|
|
|
|
[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
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control" index="0"]
|
|
layout_mode = 0
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="MoneyLabel" type="Label" parent="Camera2D/CanvasLayer/Control/HBoxContainer" index="0"]
|
|
layout_mode = 2
|
|
text = "MONEY"
|
|
|
|
[node name="MoneyValue" type="Label" parent="Camera2D/CanvasLayer/Control/HBoxContainer" index="1"]
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Camera2D/CanvasLayer/Control" index="1"]
|
|
layout_mode = 1
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 16.0
|
|
offset_top = -63.9999
|
|
offset_right = 312.0
|
|
offset_bottom = -29.0
|
|
grow_vertical = 0
|
|
scale = Vector2(1.5, 1.5)
|
|
size_flags_horizontal = 3
|
|
alignment = 1
|
|
|
|
[node name="RollCooldownBar" type="ProgressBar" parent="Camera2D/CanvasLayer/Control/VBoxContainer" index="0"]
|
|
layout_mode = 2
|
|
show_percentage = false
|
|
|
|
[node name="HealthBar" type="ProgressBar" parent="Camera2D/CanvasLayer/Control/VBoxContainer" index="1"]
|
|
layout_mode = 2
|
|
rounded = true
|
|
|
|
[node name="RollTimer" type="Timer" parent="." index="3"]
|
|
one_shot = true
|
|
|
|
[node name="RollCooldownTimer" type="Timer" parent="." index="4"]
|
|
one_shot = true
|
|
|
|
[node name="PickupArea" type="Area2D" parent="." index="5" groups=["Player"]]
|
|
collision_layer = 8
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickupArea" index="0"]
|
|
position = Vector2(0, 4)
|
|
shape = SubResource("CircleShape2D_8u3aq")
|
|
|
|
[connection signal="timeout" from="RollTimer" to="." method="_on_roll_timeout"]
|
|
[connection signal="timeout" from="RollCooldownTimer" to="." method="_on_roll_cooldown_timer_timeout"]
|