fix hearts (maybe)

main
Just Dzhi 2023-10-02 21:53:29 +04:00
parent 685f27fea6
commit 7ef466397a
2 changed files with 39 additions and 35 deletions

View File

@ -1,11 +1,11 @@
[gd_scene load_steps=33 format=2]
[gd_scene load_steps=26 format=2]
[ext_resource path="res://src/scenes/menu/background/background.png" type="Texture" id=1]
[ext_resource path="res://src/scenes/game/sprites/background_houses.png" type="Texture" id=2]
[ext_resource path="res://src/scenes/game/spell_holder.gd" type="Script" id=3]
[ext_resource path="res://res/themes/8px.tres" type="Theme" id=4]
[ext_resource path="res://src/models/player/Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/scenes/game/sprites/health/health.png" type="Texture" id=6]
[ext_resource path="res://src/scenes/game/sprites/health/health_spriteframes.tres" type="SpriteFrames" id=6]
[ext_resource path="res://src/scenes/game/sprites/cast_time.png" type="Texture" id=7]
[ext_resource path="res://src/scenes/game/card_placeholder.gd" type="Script" id=8]
[ext_resource path="res://res/sounds/card_select/card_select.ogg" type="AudioStream" id=9]
@ -28,38 +28,6 @@ extents = Vector2( 10, 60 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 140, 10.125 )
[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 6 )
region = Rect2( 155, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 6 )
region = Rect2( 93, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 6 )
region = Rect2( 124, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 6 )
region = Rect2( 62, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=11]
atlas = ExtResource( 6 )
region = Rect2( 31, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=12]
atlas = ExtResource( 6 )
region = Rect2( 0, 0, 31, 11 )
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ SubResource( 7 ), SubResource( 9 ), SubResource( 8 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
"loop": false,
"name": "idle",
"speed": 0.0
} ]
[sub_resource type="Animation" id=5]
length = 0.001
tracks/0/type = "value"
@ -228,7 +196,8 @@ margin_bottom = 40.0
[node name="HealthSprite" type="AnimatedSprite" parent="UIWrapper/UI/Left/Health"]
position = Vector2( 52, 156 )
frames = SubResource( 4 )
frames = ExtResource( 6 )
animation = "idle"
centered = false
[node name="PlayerIcon" type="Sprite" parent="UIWrapper/UI/Left"]

View File

@ -0,0 +1,35 @@
[gd_resource type="SpriteFrames" load_steps=8 format=2]
[ext_resource path="res://src/scenes/game/sprites/health/health.png" type="Texture" id=1]
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 1 )
region = Rect2( 155, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
region = Rect2( 93, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 1 )
region = Rect2( 124, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 62, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 31, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 31, 11 )
[resource]
animations = [ {
"frames": [ SubResource( 6 ), SubResource( 4 ), SubResource( 5 ), SubResource( 3 ), SubResource( 2 ), SubResource( 1 ) ],
"loop": false,
"name": "idle",
"speed": 0.0
} ]