From c8802072c93981d571985d671570305fabd8a8f0 Mon Sep 17 00:00:00 2001 From: Just Dzhi Date: Mon, 2 Oct 2023 14:40:04 +0400 Subject: [PATCH] Import stun icons --- src/scenes/game/Game.tscn | 29 ++++++++++++++- src/scenes/game/sprites/stun/stun.png | Bin 0 -> 260 bytes src/scenes/game/sprites/stun/stun.png.import | 35 ++++++++++++++++++ .../game/sprites/stun/stun_placeholder.png | Bin 0 -> 135 bytes .../sprites/stun/stun_placeholder.png.import | 35 ++++++++++++++++++ .../stun/stun_placeholder_spriteframes.tres | 19 ++++++++++ .../game/sprites/stun/stun_spriteframes.tres | 19 ++++++++++ 7 files changed, 135 insertions(+), 2 deletions(-) create mode 100644 src/scenes/game/sprites/stun/stun.png create mode 100644 src/scenes/game/sprites/stun/stun.png.import create mode 100644 src/scenes/game/sprites/stun/stun_placeholder.png create mode 100644 src/scenes/game/sprites/stun/stun_placeholder.png.import create mode 100644 src/scenes/game/sprites/stun/stun_placeholder_spriteframes.tres create mode 100644 src/scenes/game/sprites/stun/stun_spriteframes.tres diff --git a/src/scenes/game/Game.tscn b/src/scenes/game/Game.tscn index 1de65bd..08cb372 100644 --- a/src/scenes/game/Game.tscn +++ b/src/scenes/game/Game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=25 format=2] +[gd_scene load_steps=27 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] @@ -6,6 +6,8 @@ [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/stun/stun_placeholder_spriteframes.tres" type="SpriteFrames" id=7] +[ext_resource path="res://src/scenes/game/sprites/stun/stun_spriteframes.tres" type="SpriteFrames" id=8] [ext_resource path="res://src/scenes/game/sprites/player_icon.png" type="Texture" id=10] [ext_resource path="res://src/scenes/game/game.gd" type="Script" id=11] [ext_resource path="res://src/scenes/game/sprites/ui_background.png" type="Texture" id=12] @@ -176,12 +178,35 @@ margin_bottom = 2.0 margin_right = 40.0 margin_bottom = 40.0 +[node name="Stun" type="Control" parent="UIWrapper/UI/Left"] +margin_right = 40.0 +margin_bottom = 40.0 + +[node name="StunPlaceholder1" type="AnimatedSprite" parent="UIWrapper/UI/Left/Stun"] +position = Vector2( 59, 144 ) +frames = ExtResource( 7 ) +animation = "idle" + +[node name="StunIcon1" type="AnimatedSprite" parent="UIWrapper/UI/Left/Stun/StunPlaceholder1"] +frames = ExtResource( 8 ) +animation = "idle" + +[node name="StunPlaceholder2" type="AnimatedSprite" parent="UIWrapper/UI/Left/Stun"] +position = Vector2( 76, 144 ) +frames = ExtResource( 7 ) +animation = "idle" + +[node name="StunIcon2" type="AnimatedSprite" parent="UIWrapper/UI/Left/Stun/StunPlaceholder2"] +frames = ExtResource( 8 ) +animation = "idle" +frame = 1 + [node name="Health" type="Control" parent="UIWrapper/UI/Left"] margin_right = 40.0 margin_bottom = 40.0 [node name="HealthSprite" type="AnimatedSprite" parent="UIWrapper/UI/Left/Health"] -position = Vector2( 52, 148 ) +position = Vector2( 52, 156 ) frames = SubResource( 4 ) animation = "idle" centered = false diff --git a/src/scenes/game/sprites/stun/stun.png b/src/scenes/game/sprites/stun/stun.png new file mode 100644 index 0000000000000000000000000000000000000000..c80b43d788fce2e3cf7dcf734f93a99d18e2a30d GIT binary patch literal 260 zcmV+f0sH=mP)Px#zDYzuR5*>@Q#%gAFbsW09l1mgkdXs0ch3$RD+gg^WM}WpAvi#fVg@it6E`*z zQ=b&+CAQx4M*-Fj62i>?Q=Nzb5c;G^^tRf#MM7kR=rvnJCuF!>0U%HQc0Zm^?z$|r zI^?1N8}sfM6IChZNXOfQ5uym?JekO;QN=7n8V>uiOzW=dcnnG5OX4llSu8g!M^fH( z(f+qJTO(xveB5o*%k$ncrQ%fRGA;>v$(oTsK6(xM=y~?M61)KQNi*G9_O(I)0000< KMNUMnLSTYJpk;>u literal 0 HcmV?d00001 diff --git a/src/scenes/game/sprites/stun/stun.png.import b/src/scenes/game/sprites/stun/stun.png.import new file mode 100644 index 0000000..5eb5995 --- /dev/null +++ b/src/scenes/game/sprites/stun/stun.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/stun.png-f5e4ed74df3e2817a0ad4eff0a7611e8.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/game/sprites/stun/stun.png" +dest_files=[ "res://.import/stun.png-f5e4ed74df3e2817a0ad4eff0a7611e8.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/src/scenes/game/sprites/stun/stun_placeholder.png b/src/scenes/game/sprites/stun/stun_placeholder.png new file mode 100644 index 0000000000000000000000000000000000000000..19c069186c8dbee2824892be6ed6ba6fd00e81b4 GIT binary patch literal 135 zcmeAS@N?(olHy`uVBq!ia0vp^GC<77!3HF4glkxU6k~CayA#8@b22Z197j(V#}JF& zWRYOQw1k9&ALkvU5^7E^beU!+wnEKK$n=noQlz|ar<4ZUVzIs`i>!w$TDP$4@J#qL h;fa%k*W@+)3`^xW7O1}SI{`F|!PC{xWt~$(699s_CTsuz literal 0 HcmV?d00001 diff --git a/src/scenes/game/sprites/stun/stun_placeholder.png.import b/src/scenes/game/sprites/stun/stun_placeholder.png.import new file mode 100644 index 0000000..325f0a6 --- /dev/null +++ b/src/scenes/game/sprites/stun/stun_placeholder.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/stun_placeholder.png-4d0d785459a5a75ff5881ccaedad8418.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/game/sprites/stun/stun_placeholder.png" +dest_files=[ "res://.import/stun_placeholder.png-4d0d785459a5a75ff5881ccaedad8418.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/src/scenes/game/sprites/stun/stun_placeholder_spriteframes.tres b/src/scenes/game/sprites/stun/stun_placeholder_spriteframes.tres new file mode 100644 index 0000000..566d743 --- /dev/null +++ b/src/scenes/game/sprites/stun/stun_placeholder_spriteframes.tres @@ -0,0 +1,19 @@ +[gd_resource type="SpriteFrames" load_steps=4 format=2] + +[ext_resource path="res://src/scenes/game/sprites/stun/stun_placeholder.png" type="Texture" id=1] + +[sub_resource type="AtlasTexture" id=1] +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 14, 14 ) + +[sub_resource type="AtlasTexture" id=2] +atlas = ExtResource( 1 ) +region = Rect2( 14, 0, 14, 14 ) + +[resource] +animations = [ { +"frames": [ SubResource( 1 ), SubResource( 2 ) ], +"loop": false, +"name": "idle", +"speed": 0.0 +} ] diff --git a/src/scenes/game/sprites/stun/stun_spriteframes.tres b/src/scenes/game/sprites/stun/stun_spriteframes.tres new file mode 100644 index 0000000..cf4072f --- /dev/null +++ b/src/scenes/game/sprites/stun/stun_spriteframes.tres @@ -0,0 +1,19 @@ +[gd_resource type="SpriteFrames" load_steps=4 format=2] + +[ext_resource path="res://src/scenes/game/sprites/stun/stun.png" type="Texture" id=1] + +[sub_resource type="AtlasTexture" id=1] +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 14, 14 ) + +[sub_resource type="AtlasTexture" id=2] +atlas = ExtResource( 1 ) +region = Rect2( 14, 0, 14, 14 ) + +[resource] +animations = [ { +"frames": [ SubResource( 1 ), SubResource( 2 ) ], +"loop": false, +"name": "idle", +"speed": 0.0 +} ]