From 5ccb31784d10707f9fecdeada65f84ac93bf0fa9 Mon Sep 17 00:00:00 2001 From: Luna Brovchuk Date: Sat, 30 Sep 2023 18:21:33 +0200 Subject: [PATCH] Add Spell Cells --- src/models/spell_cell/SpellCell.tscn | 13 +++++++ src/models/spell_cell/sprites/spell_frame.png | Bin 0 -> 1762 bytes .../spell_cell/sprites/spell_frame.png.import | 35 ++++++++++++++++++ src/scenes/game/Game.tscn | 23 +++++++++++- src/scenes/game/spell_holder.gd | 9 +++++ src/scenes/game/sprites/background_houses.png | Bin 0 -> 4756 bytes .../game/sprites/background_houses.png.import | 35 ++++++++++++++++++ src/scenes/game/sprites/background_stones.png | Bin 0 -> 3968 bytes .../game/sprites/background_stones.png.import | 35 ++++++++++++++++++ 9 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 src/models/spell_cell/SpellCell.tscn create mode 100644 src/models/spell_cell/sprites/spell_frame.png create mode 100644 src/models/spell_cell/sprites/spell_frame.png.import create mode 100644 src/scenes/game/spell_holder.gd create mode 100644 src/scenes/game/sprites/background_houses.png create mode 100644 src/scenes/game/sprites/background_houses.png.import create mode 100644 src/scenes/game/sprites/background_stones.png create mode 100644 src/scenes/game/sprites/background_stones.png.import diff --git a/src/models/spell_cell/SpellCell.tscn b/src/models/spell_cell/SpellCell.tscn new file mode 100644 index 0000000..d50ca36 --- /dev/null +++ b/src/models/spell_cell/SpellCell.tscn @@ -0,0 +1,13 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://src/models/spell_cell/sprites/spell_frame.png" type="Texture" id=1] + +[node name="SpellCell" type="Control"] +margin_right = 14.0 +margin_bottom = 14.0 + +[node name="Frame" type="Sprite" parent="."] +texture = ExtResource( 1 ) +centered = false + +[node name="Spell" type="Sprite" parent="."] diff --git a/src/models/spell_cell/sprites/spell_frame.png b/src/models/spell_cell/sprites/spell_frame.png new file mode 100644 index 0000000000000000000000000000000000000000..4887c462e2c0d627408cf6be3486ad3927629b7d GIT binary patch literal 1762 zcmcIl&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x} zPK}J(wFoXjvihg`vkAgu((bV6}q<2f%e<=^c(Yd1Iu+~Gh;14W>mUJp=8 z$C9XyHIaIjwcG7Fa%Ab@T!*DfAJXl;xE>5E>tsA70G3@$eea6_1jE?@L!vCHB~Ux5 z*P|w&>@vB?`Hh8KqN14xyEr}3}7NIufR)! zXB?j3pu*u-NgyoP=#st`xY5@mhgTXrR+YmhTv$`SPu>IOUHrI?gtO>(dCb*sWHP)@ zD$USM7Is2+Vc>z4ScEs-f5_`;X@ng;QmLoMoKOH>ZJ>35Uw)_t$=Dgk-RolDp6L z+@i>)jyJ9e4JGTPxYY};J^kC|Wrb5-w>f(m*H<@B>X+_r1`#a}SD!U*-r(flqN8;~ z>*$7Ohl?TWXV>qnfA;9pA9XkJbxV&?zhBspBh5Vj*{$1UXYbFuIJNDmm%2~Y>^{?6 zTC(TmmS3b?&_p%9nzZJ%)i?5o_MNMnKd^mg@1g=z9yQ<%fTrHxTVj`joZ#Q5q#R_yW1wT=rL=Oq-}L`r`i8Go~IDVBEQ!mifNm%0YE z#dK`{{&%lCC$}ZEG+9bx-dtx9?4L)Le|3Lm`>na3Y{Iwn{AOs*FX!cMTLk+bD*br{ zmo~-XlXY93Uo*-7+!xW^zja0nN zn@>D?CEed#XgjdA&TxSFA<0C?oVb$y{2s$qF*bc99N5;bR9+}nFM z4A|N`bB7Xhp&?6k+hbR9`&P8gjH|M_e;o7H^uFFX>pe%-8md1%Q}{sbENa&aAkmYU z)=2h0*pu~m*QqajG3)mmh^y|o!sDA)oz^t2y_)&=_%73o1z)B#AMrN7*7k$s)t8(< z!m4e*E1tb@keS|h)^MnlhR!h8NdrNKf>UAAemf>E@ z+SZNTGi~hyc_}?TqB?4_ln_3}=NKa&~4;#{Tp*HU9!F C25HRz literal 0 HcmV?d00001 diff --git a/src/scenes/game/sprites/background_stones.png.import b/src/scenes/game/sprites/background_stones.png.import new file mode 100644 index 0000000..39cdccc --- /dev/null +++ b/src/scenes/game/sprites/background_stones.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/background_stones.png-4770615c08d52e38430ff8f769652a72.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/game/sprites/background_stones.png" +dest_files=[ "res://.import/background_stones.png-4770615c08d52e38430ff8f769652a72.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