fix hearts ui and do star stun ui
parent
076976db2c
commit
534a834213
|
@ -3,6 +3,7 @@
|
|||
[ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=1]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 8
|
||||
font_data = ExtResource( 1 )
|
||||
|
||||
[resource]
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
@ -157,10 +157,13 @@ func _physics_process(delta):
|
|||
get_input()
|
||||
|
||||
if stunned:
|
||||
$"../../UIWrapper/UI/Left/Debuffs/Stun/Sprite".visible = true
|
||||
stunned_timer += delta
|
||||
if stunned_timer >= 1.5:
|
||||
stunned = false
|
||||
$Stars.visible = false
|
||||
else:
|
||||
$"../../UIWrapper/UI/Left/Debuffs/Stun/Sprite".visible = false
|
||||
|
||||
var areas = $DirtCollision.get_overlapping_areas()
|
||||
slowed = false
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
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=4]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 93, 0, 31, 11 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 62, 0, 31, 11 )
|
||||
|
@ -28,7 +28,7 @@ region = Rect2( 0, 0, 31, 11 )
|
|||
|
||||
[resource]
|
||||
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,
|
||||
"name": "idle",
|
||||
"speed": 0.0
|
||||
|
|
Loading…
Reference in New Issue