From 54a8ffd0a90925dd0233566319bb36845eb19bbe Mon Sep 17 00:00:00 2001 From: Just Dzhi Date: Mon, 2 Oct 2023 19:11:24 +0400 Subject: [PATCH] cast_time and damage --- src/scenes/game/Game.tscn | 20 ++++++++++- src/scenes/game/sprites/cast_time.png | Bin 0 -> 1804 bytes src/scenes/game/sprites/cast_time.png.import | 35 +++++++++++++++++++ src/scenes/game/sprites/damage.png | Bin 0 -> 1830 bytes src/scenes/game/sprites/damage.png.import | 35 +++++++++++++++++++ 5 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 src/scenes/game/sprites/cast_time.png create mode 100644 src/scenes/game/sprites/cast_time.png.import create mode 100644 src/scenes/game/sprites/damage.png create mode 100644 src/scenes/game/sprites/damage.png.import diff --git a/src/scenes/game/Game.tscn b/src/scenes/game/Game.tscn index ef0fe04..4671dcc 100644 --- a/src/scenes/game/Game.tscn +++ b/src/scenes/game/Game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=28 format=2] +[gd_scene load_steps=30 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/cast_time.png" type="Texture" id=7] +[ext_resource path="res://src/scenes/game/sprites/damage.png" type="Texture" 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] @@ -251,6 +253,22 @@ margin_bottom = 3.0 margin_right = 40.0 margin_bottom = 40.0 +[node name="CastTime" type="Control" parent="UIWrapper/UI/Right"] +margin_right = 40.0 +margin_bottom = 40.0 + +[node name="CastTime" type="Sprite" parent="UIWrapper/UI/Right/CastTime"] +position = Vector2( 256, 140 ) +texture = ExtResource( 7 ) + +[node name="Damage" type="Control" parent="UIWrapper/UI/Right"] +margin_right = 40.0 +margin_bottom = 40.0 + +[node name="Damage" type="Sprite" parent="UIWrapper/UI/Right/Damage"] +position = Vector2( 256, 160 ) +texture = ExtResource( 8 ) + [node name="Cards" type="Control" parent="UIWrapper/UI"] visible = false margin_right = 320.0 diff --git a/src/scenes/game/sprites/cast_time.png b/src/scenes/game/sprites/cast_time.png new file mode 100644 index 0000000000000000000000000000000000000000..dc4630597d8ab42923755055195858637a9f19b0 GIT binary patch literal 1804 zcmcIl&5ImG9GwISaV3iAAts1TuVOUTboKWKnS|My)g7^Sm)*ha;=xo`RnIg#-PLyY z?#%ARAPRa60mUyoh=Lvj@#sPEFNisL@|K(e3h@#IDb(fxmvAuth3Z!gYzSB%pE-f|63;?xCN&N)1}S4R(t5N@;Frc=#%5M+L6tu zyHRZTuXt3%b;3lz>!Ub@>RRp0xlu~!7B8fL_oAdB|MvY4vJ|m~eBSi2pSE~ETH4F_ z`rdMv?rl+*$>+{WXGR_X#JnKVC>|uaH)_aZTo10x$BHbCONyqEURvYw*4uB%{8(KG}VDBn#AGD1l{KSgNsoMus4L?V$&L=uSYq9KFS$sFQz2Akwn zpP*yPh@^^I$K{-+g}%RkX&le0^I~xaSSr2u1kSs=DOc8bF19nu7k7A4%umVEz9>ZA z7x&RNd;JfEjLrzt?QAe^52Fen@EEXjs8z@MQm>V9Qi!Z8#9->w>XcE^^tvgXIv*uW z4D;toMb!Y_CIxTE;2QXa5mvhz_Dt-l+G(tN7*9%l2m&JoIask^QMh}MQs4JFNnVhI z@=m)UgQ$8GF)uI!JG2cA*}Cf>%QQmd=#GkXYGJ}1Ra3)>E*Reybi3?CIewB`CMaOc zy6G7@4{bFtkz)lGau}ewc3>dgvQ(;Z(}BQ_X9;L4Sp=UB8QhIps$zgh0;~n0VWH3s zZDgy4g9u|TGEFN`LuS~-pt5v_waxVB7m6$Kr(rSz;&MVE(~fH+%{2&e!XQK}WUgvrYGYfU@D8G>f(ekaKjT>IUCZNiFs!-d z5Y|-)hnN`U%nh1fAv}%UAlVn(J#gApWgZPb$|Qo4|*3? metGKVpKAQ9_s8>}E!bD&Cmw(M+Xb!MuR4p%?Qa$?y!AH+kvlj5 literal 0 HcmV?d00001 diff --git a/src/scenes/game/sprites/cast_time.png.import b/src/scenes/game/sprites/cast_time.png.import new file mode 100644 index 0000000..99ca894 --- /dev/null +++ b/src/scenes/game/sprites/cast_time.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/cast_time.png-236467b38d086f7887f1b94b4c0e9f8d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/game/sprites/cast_time.png" +dest_files=[ "res://.import/cast_time.png-236467b38d086f7887f1b94b4c0e9f8d.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/damage.png b/src/scenes/game/sprites/damage.png new file mode 100644 index 0000000000000000000000000000000000000000..d7dcacccbf93b46566f8ab4d280d444c0a4e2bce GIT binary patch literal 1830 zcmcIlJ#6Ge7&X!9xJ#5YG$=HduK^unkH_Bik8bbCWdm6WhbUR;LPf?i<6SGZ$JpNN zCgpY4oOCB71frp!LsSR~B%nfcNKjJIL4hbKK!VS^-n{^KA&uFwtoF9MdvITa>(Z6W@crcvYoEjIYQFtusVFPY)z>r1`yV{7D3{-j`v=uQ z@Vd`rs#7jQp-<8r(28>7)+DFwNK|Sl265KWe*5ApO^ta+yVDAAkZ+1%ynR}T{nMR3 zJ3V3^*KXZZZ%lk3NJT}}Nt$G(Kj~;wULVHw&xWQ>A=Obw+o%hw2f?noDGQ-GIzbF$ ztU8`ov`RL2y1aO&930+B$|Rjo!x+m;IAm7<;0Wqk@U8W06(Y=Ed@%tYkTqPtdmb z`yUE9TNKPkMKZOAGeaaI1@02C=2TzqZx(`9vgk{h%#+%kS5%3mx6~K!#2J_4@}*i) zGeLA|B{~|U26paC=jrxm>zSn@bJxd=1}{9aa8G-IOI?PwrM zk7Mpr>|x7{Y!pSFjR?0rwl|6xULBg8Wvx|lV01W%+RWyNMxld*2dXG_+KAdM z$BH5jnr%&eRCiM*vIryxcP&lj%#UP|Qs|#Jr2}E)*`V%bV24#~$0bB}(!3x0;_YUX z#Ok!^e9G!x?`W(JS#YiSIev_L7t=YT9S;SNo)i8IR?4Uv(?VOF5^k!OL~01 z^os@m6s0$|vLVd|0(MSAs~2O`Tg)sJ;lnq_0dZ8}&Oa&z8H7*aA# zijf)77IIoPL0-sBB#7NMNgJEgrL($8{NLGjNIgNBi7eN15b@yMaHB9n9JKbBru`F(wLIsW?o QdVP}hwsyLo+&;YfHz12XivR!s literal 0 HcmV?d00001 diff --git a/src/scenes/game/sprites/damage.png.import b/src/scenes/game/sprites/damage.png.import new file mode 100644 index 0000000..cf57789 --- /dev/null +++ b/src/scenes/game/sprites/damage.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/damage.png-add8d9c6f61d8b55c2333dfcd00b0797.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/game/sprites/damage.png" +dest_files=[ "res://.import/damage.png-add8d9c6f61d8b55c2333dfcd00b0797.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