fix hearts ui and do star stun ui

main
Just Dzhi 2023-10-02 23:39:14 +04:00
parent 076976db2c
commit 534a834213
4 changed files with 9 additions and 5 deletions

View File

@ -3,6 +3,7 @@
[ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=1] [ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=1]
[sub_resource type="DynamicFont" id=1] [sub_resource type="DynamicFont" id=1]
size = 8
font_data = ExtResource( 1 ) font_data = ExtResource( 1 )
[resource] [resource]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -157,10 +157,13 @@ func _physics_process(delta):
get_input() get_input()
if stunned: if stunned:
$"../../UIWrapper/UI/Left/Debuffs/Stun/Sprite".visible = true
stunned_timer += delta stunned_timer += delta
if stunned_timer >= 1.5: if stunned_timer >= 1.5:
stunned = false stunned = false
$Stars.visible = false $Stars.visible = false
else:
$"../../UIWrapper/UI/Left/Debuffs/Stun/Sprite".visible = false
var areas = $DirtCollision.get_overlapping_areas() var areas = $DirtCollision.get_overlapping_areas()
slowed = false slowed = false

View File

@ -6,14 +6,14 @@
atlas = ExtResource( 1 ) atlas = ExtResource( 1 )
region = Rect2( 155, 0, 31, 11 ) 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] [sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 1 ) atlas = ExtResource( 1 )
region = Rect2( 124, 0, 31, 11 ) region = Rect2( 124, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
region = Rect2( 93, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=3] [sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 ) atlas = ExtResource( 1 )
region = Rect2( 62, 0, 31, 11 ) region = Rect2( 62, 0, 31, 11 )
@ -28,7 +28,7 @@ region = Rect2( 0, 0, 31, 11 )
[resource] [resource]
animations = [ { animations = [ {
"frames": [ SubResource( 6 ), SubResource( 4 ), SubResource( 5 ), SubResource( 3 ), SubResource( 2 ), SubResource( 1 ) ], "frames": [ SubResource( 6 ), SubResource( 5 ), SubResource( 4 ), SubResource( 3 ), SubResource( 2 ), SubResource( 1 ) ],
"loop": false, "loop": false,
"name": "idle", "name": "idle",
"speed": 0.0 "speed": 0.0