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 0000000..c80b43d Binary files /dev/null and b/src/scenes/game/sprites/stun/stun.png differ 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 0000000..19c0691 Binary files /dev/null and b/src/scenes/game/sprites/stun/stun_placeholder.png differ 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 +} ]