60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://b4dy523l0o5k4"]
|
|
|
|
[ext_resource type="Script" path="res://src/scripts/actors/player.gd" id="1_qsdbk"]
|
|
|
|
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_lfcx7"]
|
|
size = Vector2(24, 56)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6sn6c"]
|
|
size = Vector2(24, 56)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_awwb1"]
|
|
bg_color = Color(0.164706, 0.164706, 0.164706, 1)
|
|
draw_center = false
|
|
border_width_left = 4
|
|
border_width_top = 4
|
|
border_width_right = 4
|
|
border_width_bottom = 4
|
|
border_blend = true
|
|
corner_radius_top_left = 2
|
|
corner_radius_top_right = 2
|
|
corner_radius_bottom_right = 2
|
|
corner_radius_bottom_left = 2
|
|
|
|
[node name="player" type="CharacterBody2D"]
|
|
script = ExtResource("1_qsdbk")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = SubResource("PlaceholderTexture2D_lfcx7")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_6sn6c")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
ignore_rotation = false
|
|
rotation_smoothing_enabled = true
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer"]
|
|
offset_left = 32.0
|
|
offset_top = 8.0
|
|
offset_right = 608.0
|
|
offset_bottom = 16.0
|
|
theme_override_font_sizes/font_size = 8
|
|
theme_override_styles/background = SubResource("StyleBoxFlat_awwb1")
|
|
step = 1.0
|
|
show_percentage = false
|
|
|
|
[node name="Label" type="Label" parent="CanvasLayer"]
|
|
offset_left = 32.0
|
|
offset_top = 16.0
|
|
offset_right = 176.0
|
|
offset_bottom = 39.0
|
|
text = "Nothing equipped."
|
|
|
|
[node name="cooldown_timer" type="Timer" parent="."]
|
|
wait_time = 0.5
|
|
|
|
[connection signal="timeout" from="cooldown_timer" to="." method="_on_cooldown_timer_timeout"]
|