fight system and whatnot

This commit is contained in:
2025-10-29 01:47:45 +01:00
parent 527be3ee5d
commit 84f75cb2a7
41 changed files with 1433 additions and 57 deletions

16
scenes/menus/hud.tscn Normal file
View File

@@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=3 uid="uid://c48stuhi2qml3"]
[ext_resource type="PackedScene" uid="uid://b7bd4lqwlheti" path="res://scenes/menus/util/hearts.tscn" id="1_xmy64"]
[sub_resource type="GDScript" id="GDScript_xmy64"]
script/source = "class_name HUD
extends CanvasLayer
@onready var hearts: Hearts = $Hearts
"
[node name="HUD" type="CanvasLayer"]
script = SubResource("GDScript_xmy64")
[node name="Hearts" parent="." instance=ExtResource("1_xmy64")]
health = 7

View File

@@ -0,0 +1,95 @@
[gd_scene load_steps=10 format=3 uid="uid://b7bd4lqwlheti"]
[ext_resource type="Texture2D" uid="uid://5pbgeg3yx6cd" path="res://assets/textures/spritesheets/heart.png" id="1_fn71o"]
[ext_resource type="Script" uid="uid://cfplt163iotph" path="res://scripts/menus/util/hearts.gd" id="1_nty8h"]
[sub_resource type="AtlasTexture" id="AtlasTexture_xmy64"]
atlas = ExtResource("1_fn71o")
region = Rect2(33, 1, 14, 13)
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_tfgnj"]
load_path = "res://.godot/imported/heart.png-0efefdd245172a860e354a0c110700fc.ctex"
[sub_resource type="AtlasTexture" id="AtlasTexture_nty8h"]
atlas = SubResource("CompressedTexture2D_tfgnj")
region = Rect2(1, 1, 14, 13)
[sub_resource type="AtlasTexture" id="AtlasTexture_6ej26"]
atlas = SubResource("CompressedTexture2D_tfgnj")
region = Rect2(1, 1, 14, 13)
[sub_resource type="AtlasTexture" id="AtlasTexture_gx0d8"]
atlas = SubResource("CompressedTexture2D_tfgnj")
region = Rect2(1, 1, 14, 13)
[sub_resource type="AtlasTexture" id="AtlasTexture_prrtw"]
atlas = SubResource("CompressedTexture2D_tfgnj")
region = Rect2(1, 1, 14, 13)
[sub_resource type="AtlasTexture" id="AtlasTexture_yvsuk"]
atlas = SubResource("CompressedTexture2D_tfgnj")
region = Rect2(1, 1, 14, 13)
[node name="Hearts" type="Control"]
layout_mode = 3
anchors_preset = 0
offset_left = 8.0
offset_top = 8.0
offset_right = 8.0
offset_bottom = 8.0
script = ExtResource("1_nty8h")
[node name="BackgroundContainer" type="HBoxContainer" parent="."]
layout_mode = 0
offset_right = 86.0
offset_bottom = 13.0
[node name="TextureRect" type="TextureRect" parent="BackgroundContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_xmy64")
stretch_mode = 2
[node name="TextureRect2" type="TextureRect" parent="BackgroundContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_xmy64")
stretch_mode = 2
[node name="TextureRect3" type="TextureRect" parent="BackgroundContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_xmy64")
stretch_mode = 2
[node name="TextureRect4" type="TextureRect" parent="BackgroundContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_xmy64")
stretch_mode = 2
[node name="TextureRect5" type="TextureRect" parent="BackgroundContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_xmy64")
stretch_mode = 2
[node name="HeartContainer" type="HBoxContainer" parent="."]
layout_mode = 0
offset_right = 14.0
offset_bottom = 13.0
[node name="TextureRect" type="TextureRect" parent="HeartContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_nty8h")
[node name="TextureRect2" type="TextureRect" parent="HeartContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_6ej26")
[node name="TextureRect3" type="TextureRect" parent="HeartContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_gx0d8")
[node name="TextureRect4" type="TextureRect" parent="HeartContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_prrtw")
[node name="TextureRect5" type="TextureRect" parent="HeartContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_yvsuk")