From d1a05227bb1bb095edea842ab8500a4667908a1e Mon Sep 17 00:00:00 2001 From: jbourqueendless <164198892+jbourqueendless@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:20:20 -0500 Subject: [PATCH] Add touchscreen controls to HUD and cleaned up extra assets - Added PNG assets and nodes required for touchscreen controls. - Implemented three touchscreen buttons using Control UI and button nodes. - Enabled touchscreen-only visibility and updated unhandled input logic for HUD. - Adjusted buttons for better alignment and functionality. - Removed unused assets, files, and scenes accidentally included in the project. --- assets/controls/flatDarkA.png | Bin 0 -> 1012 bytes assets/controls/flatDarkA.png.import | 34 ++++++++++++++++++++++ assets/controls/flatDarkB.png | Bin 0 -> 1018 bytes assets/controls/flatDarkB.png.import | 34 ++++++++++++++++++++++ assets/controls/flatDarkDown.png | Bin 0 -> 982 bytes assets/controls/flatDarkDown.png.import | 34 ++++++++++++++++++++++ assets/controls/flatDarkLeft.png | Bin 0 -> 968 bytes assets/controls/flatDarkLeft.png.import | 34 ++++++++++++++++++++++ assets/controls/flatDarkRight.png | Bin 0 -> 950 bytes assets/controls/flatDarkRight.png.import | 34 ++++++++++++++++++++++ assets/controls/flatDarkUp.png | Bin 0 -> 962 bytes assets/controls/flatDarkUp.png.import | 34 ++++++++++++++++++++++ assets/controls/flatLightA.png | Bin 0 -> 1009 bytes assets/controls/flatLightA.png.import | 34 ++++++++++++++++++++++ assets/controls/flatLightB.png | Bin 0 -> 990 bytes assets/controls/flatLightB.png.import | 34 ++++++++++++++++++++++ assets/controls/flatLightDown.png | Bin 0 -> 993 bytes assets/controls/flatLightDown.png.import | 34 ++++++++++++++++++++++ assets/controls/flatLightLeft.png | Bin 0 -> 977 bytes assets/controls/flatLightLeft.png.import | 34 ++++++++++++++++++++++ assets/controls/flatLightRight.png | Bin 0 -> 966 bytes assets/controls/flatLightRight.png.import | 34 ++++++++++++++++++++++ assets/controls/flatLightUp.png | Bin 0 -> 977 bytes assets/controls/flatLightUp.png.import | 34 ++++++++++++++++++++++ hud.tscn | 32 +++++++++++++++++++- scripts/hud.gd | 1 + 26 files changed, 440 insertions(+), 1 deletion(-) create mode 100644 assets/controls/flatDarkA.png create mode 100644 assets/controls/flatDarkA.png.import create mode 100644 assets/controls/flatDarkB.png create mode 100644 assets/controls/flatDarkB.png.import create mode 100644 assets/controls/flatDarkDown.png create mode 100644 assets/controls/flatDarkDown.png.import create mode 100644 assets/controls/flatDarkLeft.png create mode 100644 assets/controls/flatDarkLeft.png.import create mode 100644 assets/controls/flatDarkRight.png create mode 100644 assets/controls/flatDarkRight.png.import create mode 100644 assets/controls/flatDarkUp.png create mode 100644 assets/controls/flatDarkUp.png.import create mode 100644 assets/controls/flatLightA.png create mode 100644 assets/controls/flatLightA.png.import create mode 100644 assets/controls/flatLightB.png create mode 100644 assets/controls/flatLightB.png.import create mode 100644 assets/controls/flatLightDown.png create mode 100644 assets/controls/flatLightDown.png.import create mode 100644 assets/controls/flatLightLeft.png create mode 100644 assets/controls/flatLightLeft.png.import create mode 100644 assets/controls/flatLightRight.png create mode 100644 assets/controls/flatLightRight.png.import create mode 100644 assets/controls/flatLightUp.png create mode 100644 assets/controls/flatLightUp.png.import diff --git a/assets/controls/flatDarkA.png b/assets/controls/flatDarkA.png new file mode 100644 index 0000000000000000000000000000000000000000..1a5c1aee138a649e4963233e15da5cdc5688a873 GIT binary patch literal 1012 zcmVh&OBJn#Kjn*QO$Y(4Tn^`IFS+#t? zccG4eUj!Z&9$W=BR6*?G@%U9lfx4hhs5=-8{*Ve9JdpZuMYSlRfLQ=KgL}%*+dkC? zIe7)nSm53;JiL{fLt~)_U_pCU;Kw8l5>yqt$64u-B*)26DD+FDQSe}l+(Da3z*B$K z-n)Q%pw=JQ)>U~|cp9}J*V)BeubxjSY(TfVVNm3Y+&Od z(wOkX+2O?6kM1g=?k;MLJDpBft!y?Mk`Vs~i6}KHolajL2}OXnAQZLnPf?VI07s({ z&2f<0+Sg1-u8k@A{RV@94%l=$)xB;s8ua{xlmHs#(RfG>AeF|H%Viy?$z<{nYBrmt zWr?XY2!40_xru>db8PNfUoqh zN~J=!7or0!6bd>p=kwVTnAnWz|I-k#<7Ne|ID}0|IW+>Arxm?cl^X+z%aEv`cq%cXCWd_HgKd);oAj2d%LNmNjY!moLJ(`<}Yk6H#zFH zV{jVJvz^=s4A0hh^g2d6YSUxG_{6J*U5<7o~Vzd&>~0gr4cpHNaj z$vP%_nuJU?h$tD{;D$0xaUeK^n$ePa+D|iMK_=5LrvMe0gjSmLC78XDVxS(Jq2zj< zncQ>a4;h@8td}(}4b45beoeZ(`uCjrJvR&v)Cps7I2`^H@PpiYW>NDu7`sPDe5{MQ&qnWMy)w27m4V0000NbL<;0v5eQ7mjkusVnc7J`Mg;saO+)`G2AXklTY zB8b*GJF@q%9#>u6>`pd2f$3u0{mf)0Gs)=jAhu{U`a2Sd{0#>-GMU3L3nS@^V>4X1stI06K>6lwr1g zDlc-d3*1kE?}p{UQECnk3o`%<+C70EQ)rN&s@OBm$cz+no%H#9e|Q=N8`j7bJhKq+ zlwY;$6mU9f{ef*=XHJEuQR|uQDh<E4O z9z2Z+InE{>Yd40gxQ4qhA0!rwvCU?~p0)LQ&8pR^P!PY9MA!gdZK+gB2!NL)6!!Y} z4nSzatb^ElUp;`eT8-uNc~&ZwSgX}y+wJzIPp{V#V{eQd_tOKY*RRv*T=hAh&tk+0 zodPf(j|->97l7CgVH9AYP`K)|SS-Y_#7+R%Xf$s6WHK27_^uUhHk;!3f=&dO%jF25 zSwC)zmDOwMbeaGfwZb6BMGoEYK)Gy?&F)1V1K-oyyb$Q?J)qu~=l~a+$T;ZMIx4g)}0U z6eo5z?p-%Vgst2qJLklJ>U=&IC!i`qNPoB683H#Rk69v-5G$llNhJ?DI@)34Xa}h=hvU9*WQ*V!lejvy*NVVtBG2#CMj&`UqAqV-cdd}>zNor%YtzInO{$k*QQZVtYsJ`FL&hx-EiJ$! zTgfMs5>T?PiMAFYlMNzD1vmIY8C)Dl4xv`G6us={BV!>hYwCBcFgP$KtigW2|DVSVO`Vxp&EH_G zUV-)hZ!usD%o6Wk#GS?{KQKGBibQV{c?-a;OG>?f?J)07*qoM6N<$g5+b&qyPW_ literal 0 HcmV?d00001 diff --git a/assets/controls/flatDarkB.png.import b/assets/controls/flatDarkB.png.import new file mode 100644 index 0000000..b135c11 --- /dev/null +++ b/assets/controls/flatDarkB.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://csmnti2si6uth" +path="res://.godot/imported/flatDarkB.png-54d11fc27dc8b1091e12acec5401f9e0.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatDarkB.png" +dest_files=["res://.godot/imported/flatDarkB.png-54d11fc27dc8b1091e12acec5401f9e0.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatDarkDown.png b/assets/controls/flatDarkDown.png new file mode 100644 index 0000000000000000000000000000000000000000..35f000a6310fba4081907ba79417b377ffff35c8 GIT binary patch literal 982 zcmV;{11bE8P)cw}dCLfhQ#Xo7d1kHh`$9rlXC-2C@W7N*a3D0AdMrv`B0qF9&6!%rJrc z*!S3uuVhWbIL?RddwpzQf`Dj~$>jHVJpMZv48nfD9}S1YLz#llCglVFi#md~7+w}H zo&eh=ATFcPC{|HW7wSaaolfVMQ_%22$;&O0a#jVb1keMX=|XRdk{7v2f%{(YY)lVU z4RbUWJ%9zRsNl;q8YG4)yT_I3kw(sw-EQ}fN~a(&M_$loBj6?9>c$puKMd;+ws$?- z3NJUT&*DQG-QNXxd5B^|I)!(01zz64XorX}z(sg@h}uFOSLQs*oY)q4+8|<~-WGT{ zh`ZLuc?uwIn!;PO6V-X%|m-0%B4aZXnG!4 zu_*i2aY#03I-SPb?KZAsr_(83E|=mEUpf@*A4oQ4zu(7A?0&y9hH_}k+^52fnF|>~ zvyA`?gKLIZU@^cm)p^(s@X4950%w~6ehI8ua+S>hzsOyzM%WAxCEFzO0PB^SbY54D7Cx*=)< zcsw3s6AZo4N`Tkv)d+yPHN(JU2cgQW1lUw!YqB=hn?Pj3`|*?(^Bzc5h-`RI zM>|Y7)>{@L8(!gYUmV$DH|!lm6X2l~9`!ZhQcV#=Q{cV4e8Y4m`GTXnpTRc%vf{kT zM||6UwM)s>FMmTx!Hp&9!{(L%469!Cx_EFo<+)C71P||<>QdvnYv_k=#i8qOZ8o^2 z>GLIM%A4S7t{BlAGHrpVH35%nDW51Qpj@33MU#-Z29c7%4G(l7#KGneHKV2JX+Pg2 zs5K+guTKH0FbS7_>*_kMY8rSPyS(+n%=fSDTdKpSOnl!h5=v-d?G^hSXhr>ag zn1g%0-oKy?miEj=?q@JARbYMoEC%Xerg;AkqsEV!0dWqa0000jbVXQnQ*UN;cVTj6 z0AhJAVr*}3WMp|RV{&KQKGBibQV{c?-a;OG>?f?J)07*qoM6N<$ Ef_=)mO8@`> literal 0 HcmV?d00001 diff --git a/assets/controls/flatDarkDown.png.import b/assets/controls/flatDarkDown.png.import new file mode 100644 index 0000000..251ddba --- /dev/null +++ b/assets/controls/flatDarkDown.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dnp7jtypbl5fd" +path="res://.godot/imported/flatDarkDown.png-015ba7fc4eaf832ed5bb675c8ad9c765.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatDarkDown.png" +dest_files=["res://.godot/imported/flatDarkDown.png-015ba7fc4eaf832ed5bb675c8ad9c765.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatDarkLeft.png b/assets/controls/flatDarkLeft.png new file mode 100644 index 0000000000000000000000000000000000000000..94c8227680201e3d0b2941938c3d8b3d6cabccb4 GIT binary patch literal 968 zcmV;(12_DMP)O5H%GYEfO2ZIt@rFx8pGcOcqT-)DV@VRy8_QNFys*72Dk{%gh=M0!=aX`9IIaY0P1i!q>t@#xum1f zNbg#x!D)U5@7A{4tzPF^I#}=y-mPf~HmEWlMd4`y_|2F|I?iR_X##lXSWAVg%EHqG z@Gjg{7kHWgqW?=0N%(oE(j*IpNoJkaO?L4e!=4+R66D zTyZ}sc$8EB8YkocC=HJkpbzjUjZfqQyjlX(1h19=tNM8XVBWR0Famu8IG@k`07zLJ zj%}370Ktyjk=6o{%#r4Z1!{mu78B%3WlBRNOL1~$a3@wz8VhIyn=`*x9Y<;T1tH3_?l%O_M!y2{b-k!qhH~K zl7$mXT8hn;0gTHY^*RP{M&!AQHbQ{+5Ot|=+%*nUx8&3fr#3%0r5W@Rh;$QN)rw)& zknsf~sQ`~_l20NMP_C|ttRiHtK@?GN!wp?PDe5{MQ&qnWMy)w27m4V0000ug9qmY5U=Kh+Nl8Nw7eE|=juwdvu=5`cqrmbp z14-<7Y$*-e%}jnIv12=?RwI;tzyG(_>-}rD+i|Pa`tEc(>mm(*o3t_h7k$*KA{Z-G8{QP41;WN=Z^cD8^O0J_FACCs+(WFSXh;BFh9jqM?* zWsaA{44{JcsNu_G4H8S0dd3x*ku3MgMx*g%Qz>}ZBlmb`7Vwg9bsh@1JIi`ZtzCDa z!ZVij&ij(a^p^n7gy?NaXYh_v;F$`>IYgKN65*K;otZjP_B@h3u`2MKLBv75D)0=5 z%gWn%79h?)g%?#7o&hmZjZ2}KIeJtG&(7;o@Nh;{aBrTQGn3`0(0(uFLZ%ITdJ62Z zQ}(6eP*Bg?Q-y-~0f(0y32$sod^Q{o`R;{W zjAqQXN5TkVbPpg4XTdAs01>R%Dvu(<0pgW1;bb@$6>5lAhBYU5RT-g#c;)WmWM`EX zN{D%oC}egoOGG2F4Bp;kb_E; z@UDVNA%-<6;r$A0h89?-hIcnhE0olZi=WS>i>h>L2d8BmLR!b&bYG-wX?9kz_Au3# z!=;+hXv96WZO%T$7Z6P&9J7)Gyq77yRlnM06To&dTaB8Tbf!g!BO1=skLIf){vB0000jbVXQnQ*UN;cVTj60AhJAVr*}3WMp|RV{&KQKGBibQ YV{c?-a;OG>?f?J)07*qoM6N<$f_$pGv;Y7A literal 0 HcmV?d00001 diff --git a/assets/controls/flatDarkRight.png.import b/assets/controls/flatDarkRight.png.import new file mode 100644 index 0000000..8c54a1e --- /dev/null +++ b/assets/controls/flatDarkRight.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cwxk6km6rqwl3" +path="res://.godot/imported/flatDarkRight.png-482440e3ee7d656161b860db319aec8e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatDarkRight.png" +dest_files=["res://.godot/imported/flatDarkRight.png-482440e3ee7d656161b860db319aec8e.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatDarkUp.png b/assets/controls/flatDarkUp.png new file mode 100644 index 0000000000000000000000000000000000000000..7e5dc75ae82342904253ba85edc7a8bd1ff2a1ea GIT binary patch literal 962 zcmV;z13mnSP)V=8pn03oHq- zXT~2RxmbyHoFDegcsw4Wh*1WE!QXzr|G(4eB<*%P?RLBCG7X>2+Z6wcJ|bTPFN+t? zfh}_ohhDFj>1gN+eWLG1qw&WnXn3Lg<>I{UbO9>?bd6`aFx%4nMNU-Uel|QC>cOgI zj=^FEa6x<3@MVeyiKWUt>cFaK5-wt#!Gtf$=8b!RI) zWm)gYmo%oo3-DBkWJ|h$cX9=uYG8~*gd5-@JQbobSH~5d$D$K`foBXNHtN2>Qy?zA z_wzJBT-1dZ`wCBi7zc~XVVNaHR2cWp>q_vjM-1RT+&334%PBy6T*{?f8^rViu-8G^ zw}wN?VAC|sw%hHk;cp4!`qiM|{6NAW$K!GKOe8=ABhk7K@XqIR_DbgSxlCOs!D)U6 zPY}fT8Ni(l@UAkO%~*pCqKrpXco2LZ|0lwja5~PPz>@&+&avhSSJi>X4e>7AWh*>x zh_^!`o8fUnyc|MN>pv6lxFBBiAm!fIBs>-3Xf&eR8&k#oDBxXXzu#xW;gBXyNCA)% z9wo#JKo{XrLNp2xgFhaR8K;*Zavl-weCdhr1X*s}z{WQ*UfH6xz z)fIrZto{J7Mo6DK2ijJEcZW)x$C|bRygSz9JXp6C;6s)cS89ii03T92IG3@F0H3D& zB4sN8EZ1J9`f^;VLA1E;F{YTyHyp+U(ULmnCe*otZ|{uwe6>r<)vs_vNyCjLDaq!- z047zhdL05dCGz}9ZG-^tN7Utm>#j*yx)qmhxV2g1mS(7zV5n|_tF>ZCYsmNl(P#l4 z*GfLIlz?(oCz2K+a}6R(1vfm<1s4a0L#!1orI-DDQ=nExrQc8jRAUj^Q1(-gtFx3C z3>7!)ev_g`{xX2mQ}r^TG&DtR{lvMt`bACsg$aX$KB0qKt=3oMgA_9}R(=NKPzBcY zXED$RXNmW3_O60PntIKQKGBibQV{c?-a;OG>?f?J)07*qoM6N<$g4*A-XaE2J literal 0 HcmV?d00001 diff --git a/assets/controls/flatDarkUp.png.import b/assets/controls/flatDarkUp.png.import new file mode 100644 index 0000000..85c38db --- /dev/null +++ b/assets/controls/flatDarkUp.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://uib6aoa0jw6w" +path="res://.godot/imported/flatDarkUp.png-6446423be785d9ad806028ffd83fb926.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatDarkUp.png" +dest_files=["res://.godot/imported/flatDarkUp.png-6446423be785d9ad806028ffd83fb926.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightA.png b/assets/controls/flatLightA.png new file mode 100644 index 0000000000000000000000000000000000000000..7e6613886577aca4d2b7a322ffc043b57ab797d3 GIT binary patch literal 1009 zcmVPqNbCQ{y%)sGtZ%lIXIdf*toRhhQ0-{{6*PoiE{dzneBcn}?rUY#8**=^L*C^yg z;9=pxpU>y|e!pLIK?2u;Yr?fvRsA6qGlU=qU+kDcn;AZJQdJ@kd7zxHk+B znKE+=oT3vG_%ca@1XIPeFGA8B)USbeoqORvm;F)tD z=Lv`t7qQ?$MnliJM9%8S?r{_M%oH;!h^DNBh1X|n5$Da|zS(r$O*v3#135j$<(-uM z=r|aYzxX;7SU+GyAGL7AV_yBVC4)#~*+NrTgnXac0tne+K<12r5D$pbV!F_n&#%Vk$ko6W}d z_jbF@0E3!ukYfzckokOW1GHMLY{#qBs_po8yJdi3H0*Rbk<~(UfJQVQ2o3}EkZ!l@ z8$5fp@pw!FAok|)DDbFgA+SRYq>smAEP$%2;s?^0xxh-LVgu4>H1uAt=h>V9Tdfu< zKr<(Zxs>SyVsyy&^AO%pGGlXz6KgeYzu!lK;XDVXfQVyY6D^_Y1Ob_sDCgB`HOvs~ z3oWJZ1fgkKp!1f?B^fj3MWwh7gqJmAIgmattjCaVyR>*~M=0-m;BCF4%=dkJ8>0y( zo?CtM{8CK_?OX5`Uy;s(wNQ}u@f%7X1LxpxEb(S@kIYNR7Y#3r?G^W3BGpDzJ5o z5i;2zqEv9RDpo2IjCpI+ik8&Ne)>5JGL?S01gO9wv>BLP^b3^5iWk=e!7a#Xou5FR zdkP>k2hO7~_b5$A17jTAQ@XnP;PpTwl5jW{w5jp)cOee~nrQ)@TK_!Y5)zhT0c&EG zc>fEx1Vhl%W*HFx001p?MObuGZ)S9NVRB^vVtFoNY;SL5WO*)Qa(QrcZ!T$VVP|D7 fP)Z)9b1s0M%T00000NkvXXu0mjfqOs5{ literal 0 HcmV?d00001 diff --git a/assets/controls/flatLightA.png.import b/assets/controls/flatLightA.png.import new file mode 100644 index 0000000..c896c21 --- /dev/null +++ b/assets/controls/flatLightA.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://crocudarwwiec" +path="res://.godot/imported/flatLightA.png-13c0106a0029e003fabb7a508c013a3a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightA.png" +dest_files=["res://.godot/imported/flatLightA.png-13c0106a0029e003fabb7a508c013a3a.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightB.png b/assets/controls/flatLightB.png new file mode 100644 index 0000000000000000000000000000000000000000..2e38c2fd24083e661f5578c0cbc53905c94f0799 GIT binary patch literal 990 zcmV<410np0P)P0?Q9Mx~%5CXrkf=~@05vo;G)Rbunj)g62!aD}03=?C5IER_6w(%WS9oU>@c3VJ$P^XOM%mHTVTudPA#;=V zOjdb#_YgBPX?PIkK#?TCqz)0%03G4oLrg8z(Z%OU@rikXml{M^sI#02%sKaYo`5`Y zm9IC z2`iOKFV_qP0~~8(40XRS+BF)D&}pGtCsYMslLN0usQuQFuC?;>iV71i0Jn2w>7Yu-oktz%V`#w9T?CUx+*k62K&BOrz0|4-muQ z@UQ^;{XVK(5ZEb|NOwA&hwF;PqWnY}LoG0_3Ab7;sqgL91Tk!7K7*Oh=WMlFvE_2f z#^W)oR;#{2gik=W2AU{#Nee?WLO$6;5(h*;g!Gp9= zkoM6RN*@#F@Lw#^Ve>bYmxv!4ZVB5h@7u=ejX>z0sxC1;I5f$0BbqLKwfO+grhW+t z*1N*`Cg|ELCMabQ-a{rY5L0cyqg%@-KeJ7}dy%d_G1DewxD-W{dYKQKGBibQV{c?-a;OG>?f?J) M07*qoM6N<$f{}>B$^ZZW literal 0 HcmV?d00001 diff --git a/assets/controls/flatLightB.png.import b/assets/controls/flatLightB.png.import new file mode 100644 index 0000000..29c844e --- /dev/null +++ b/assets/controls/flatLightB.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cqvf6pc6yekku" +path="res://.godot/imported/flatLightB.png-efad50bd67fa14fc3e61affea3e7850f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightB.png" +dest_files=["res://.godot/imported/flatLightB.png-efad50bd67fa14fc3e61affea3e7850f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightDown.png b/assets/controls/flatLightDown.png new file mode 100644 index 0000000000000000000000000000000000000000..3ba108f8b488ed5b67a6682ef451f0ffad98ceaa GIT binary patch literal 993 zcmV<710MW|P)lzPTr#bmfQrU$Erc?K?4!VEvA zXpk7H+#XlaBjwGLr_<@T&Y(bT=qvgx0$%!y&XlDFZ{&`y8)doS8H^9Z)UgXYPESry)nhh1BB&^L>^!>`&oqI6b@_$_%jc3zWX`= zFk;pH8~_-5fNcR%t1S==pq%J{RY$48eYe{!eI%y3Fgg#l#3ZnhVOj*jJy@pIzAd(i~ajoRjyJ1USy~x!$(P$Ae*C4V~aLX!I#tzJR z3)YI3(#w991q(5ietij0jYViJc)J(}k}b;@7Xrb}#Cctrq0YSokk)}KD9jz23^bVI za8Kvz>LcpGBPaq+1}#cI{{&qycxDDP%KmvkQWI930UL6bc>f2g=`z$X+KFiZ001p? zMObuGZ)S9NVRB^vVtFoNY;SL5WO*)Qa(QrcZ!T$VVP|D7P)Z)9b1s0M%T P00000NkvXXu0mjfS!BXJ literal 0 HcmV?d00001 diff --git a/assets/controls/flatLightDown.png.import b/assets/controls/flatLightDown.png.import new file mode 100644 index 0000000..57f7dc4 --- /dev/null +++ b/assets/controls/flatLightDown.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cbieuf3n6iqko" +path="res://.godot/imported/flatLightDown.png-fc02fbb80ca7839a8a1b41ce1ee02bd4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightDown.png" +dest_files=["res://.godot/imported/flatLightDown.png-fc02fbb80ca7839a8a1b41ce1ee02bd4.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightLeft.png b/assets/controls/flatLightLeft.png new file mode 100644 index 0000000000000000000000000000000000000000..ff2e21871ed681e2ac2f8bf975f10bfb706807d2 GIT binary patch literal 977 zcmV;?11|iDP)L}a8bae+PpAt4EQa{)9l5g8#Xks!pw+dpbX^e{C2 zvg>c#C0Ro-(~pmOxop=2fuI}?hu^2u>Em*_gvp4K5f>cz-4Xs4*9cq@yewY)dcDri z=krE2B)Ar?iEHn6yI)p8!wV%ZI7r5)G9=Ja+|veaixSQFr-TIehI?q0nWx}lMJD(% zsX@Y2r8TagM)LW|-AbqCKELr4sRohBDLS|S+p>u_I&`=@Ap-w)5(l(x2v|>Ew3+RNSa^4yN~gB%$rmxrOH)h;V}Wsl)Ksjj|m{;YmrDI&+GMi zrQxvwye&eR_J4qfoURJIDgz0*t|a{C2Tjg>O~bnnXuGz#v8lSB6g-`#f2$Lk04NPl zD?k_E=?p%B3-DSAkO^KZ0anfPJit_#;CT&n5#VC6a08&u&Ec3v*$fcuv?tOm5Va-J zCTf8U5Vh3=O)X_gL)4^!q0!YiDTqkuHTl4S@q(&ph=8|TF7*{uB})2rAkvler52TD zvstSFW)_vCmNly++boh<)|6aWFAI@Ho_1+TZtW-okwKoeb}($~Edo(jI#SDgAGfzj zKiE5nEW5K_ZuMn2RFel0Rc-?9o6>LbMdJIo?E{}zs}*PP@JG8E(msDe>22a%{KOK= zW^*#_3(Fof+<0tXdEcf|Zv>C-Th*n)fy2<7Zb{Sir#3V2V&5;J#(cN2z6rMWipfh^ z8t)Z)9b1s0M%T00000NkvXXu0mjfZY0Lz literal 0 HcmV?d00001 diff --git a/assets/controls/flatLightLeft.png.import b/assets/controls/flatLightLeft.png.import new file mode 100644 index 0000000..4638782 --- /dev/null +++ b/assets/controls/flatLightLeft.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c6ic03u2yvnk6" +path="res://.godot/imported/flatLightLeft.png-7417751073a90d250b770e32ab2c47c9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightLeft.png" +dest_files=["res://.godot/imported/flatLightLeft.png-7417751073a90d250b770e32ab2c47c9.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightRight.png b/assets/controls/flatLightRight.png new file mode 100644 index 0000000000000000000000000000000000000000..5beac4f8c7ba333b9e1897ed98a68684511be19e GIT binary patch literal 966 zcmV;%13CPOP))34Tn` zATdm{jRLjcS@Fyw;HAIlN?9tUv>3Ll5gR&nDhsRVcl?Da*0|^g# zJRa3zu~5_LRJZwjuHO@)g`w!V51_{5u^Np=g@*SIhlAX?P>RzGZTk*S8pKlPT1v3s z9Xv@8!Ah+0_ykZ2#DX!AC;?)@v6d9Bstb@CVjsK$8$PKuN~HMu^S=GzHOV zfX}wwZau&*Z8Dj7fL)sh=rxe9Etg9=fK;2qrNF~-k}$BEIO#~6fR{VcRIxzU;pH(w zs#GQ?yeKlWH$bO2sj_ig@HU%`v1p9W&QS$a(Gj>0uENU$sV!ipCBQ2+9{y-oPuk~CD1CIC>z`PXve{gi_JvIk8YUiF z?)N3FY9n}b-=Z!p4jhJl=r$a>{?ujxUhL~7bXf29RyV=bS}|2FOYb#gh60ha0FP@W zpUQ?UdG#V!=R~7L$XtWSQo${&SQ$Go=dD>QT1qebS!FE5RQmNLKzl4gYr*Pb7D$%N zUt9|Ww-TpyRf0PA54S63fa4;n#Xa5897`uZmrfKQKGBibQV{c?-a;OG>?f?J)07*qoM6N<$f(Ws*rvLx| literal 0 HcmV?d00001 diff --git a/assets/controls/flatLightRight.png.import b/assets/controls/flatLightRight.png.import new file mode 100644 index 0000000..ea2fcbc --- /dev/null +++ b/assets/controls/flatLightRight.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dsght3iwomray" +path="res://.godot/imported/flatLightRight.png-084b80e4bde0175c530c7761108ec3b7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightRight.png" +dest_files=["res://.godot/imported/flatLightRight.png-084b80e4bde0175c530c7761108ec3b7.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightUp.png b/assets/controls/flatLightUp.png new file mode 100644 index 0000000000000000000000000000000000000000..9f3ac223d0b48ced8c99edce154c329b1f7e7a3b GIT binary patch literal 977 zcmV;?11|iDP)^hYO&ssivc3B^reI$j*N>Am%Z^ zd?mJ%Sh7|tvGei6i52!)!OM+|Rnz;6MyZvJoG`vvqf?tV#D?x4YA_hw z6u)zjmktH{2OJ)9ys3WO$Si z(@iMT^PdiQR1nj7(B#@zC%k)zo6W}D+SpXy&jh@y_WOOc+wIKc2~7Yr3C|?N6rhdp zOhVKO5D(w$^+@2Ef~XbXcswSBcU9yQMFQji@2Vc4ivUNX5es;jN<;!&tyW|n_+E9c zP6FM<;eZHFNC6HJ0Pe3bu^N+CAaI`FN(Iu?rE8J_ra3|CtxVw-7?SVCNd}ni&QT;( zZ2@?z>h}N}r1Yt4prr!LZ7NZ2Yf1%}+t#GqSeFX$p-PLYv_m4mhtdwpVJs0~VYx3# zwmiUc^0d^K;!q8;#Z9*{4O`!oRf#XMB~A8COxFs&Ju~9+(XK|;=T9iT4V=rLSmIJ_ z&dmD4ss{~YkL?!s#kG1Pcy#||U1}US4E@lpICTA~%^bYQ_e*H7-fgXKf~~z`UWF{J z_mFV~qSgjHwzYgJ8n)WI7uh-|8f`*m8$^;0Zdu35$bva z#U``@Ru{v7vt;q&oFTX=JF9yo=yT5jq&RR-8gqvx9S!C<+|#Z)9b1s0M%T00000NkvXXu0mjfYU{-2 literal 0 HcmV?d00001 diff --git a/assets/controls/flatLightUp.png.import b/assets/controls/flatLightUp.png.import new file mode 100644 index 0000000..630a156 --- /dev/null +++ b/assets/controls/flatLightUp.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://djok3hg16clb2" +path="res://.godot/imported/flatLightUp.png-e0999bebff59f3ba425854735cb865dd.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightUp.png" +dest_files=["res://.godot/imported/flatLightUp.png-e0999bebff59f3ba425854735cb865dd.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/hud.tscn b/hud.tscn index 802f9ca..becb27c 100644 --- a/hud.tscn +++ b/hud.tscn @@ -1,7 +1,10 @@ -[gd_scene load_steps=3 format=3 uid="uid://jt80gv02u4f2"] +[gd_scene load_steps=6 format=3 uid="uid://jt80gv02u4f2"] [ext_resource type="Script" path="res://scripts/hud.gd" id="1_8msyy"] [ext_resource type="Texture2D" uid="uid://d3um1i1lgu153" path="res://assets/heart.png" id="2_yyptq"] +[ext_resource type="Texture2D" uid="uid://c6ic03u2yvnk6" path="res://assets/controls/flatLightLeft.png" id="3_cxgb6"] +[ext_resource type="Texture2D" uid="uid://dsght3iwomray" path="res://assets/controls/flatLightRight.png" id="4_x1c4s"] +[ext_resource type="Texture2D" uid="uid://crocudarwwiec" path="res://assets/controls/flatLightA.png" id="5_p3p2e"] [node name="HUD" type="CanvasLayer"] script = ExtResource("1_8msyy") @@ -98,3 +101,30 @@ offset_bottom = 284.0 texture = ExtResource("2_yyptq") expand_mode = 1 stretch_mode = 1 + +[node name="MovePlayerLeft" type="TouchScreenButton" parent="."] +texture_filter = 1 +position = Vector2(80, 845) +scale = Vector2(2.3, 2.3) +texture_normal = ExtResource("3_cxgb6") +passby_press = true +action = "player_1_left" +visibility_mode = 1 + +[node name="MovePlayerRight" type="TouchScreenButton" parent="."] +texture_filter = 1 +position = Vector2(400, 845) +scale = Vector2(2.3, 2.3) +texture_normal = ExtResource("4_x1c4s") +passby_press = true +action = "player_1_right" +visibility_mode = 1 + +[node name="Jump" type="TouchScreenButton" parent="."] +texture_filter = 1 +position = Vector2(1695, 845) +scale = Vector2(2.3, 2.3) +texture_normal = ExtResource("5_p3p2e") +passby_press = true +action = "player_1_jump" +visibility_mode = 1 diff --git a/scripts/hud.gd b/scripts/hud.gd index d3ea7b2..e004ffa 100644 --- a/scripts/hud.gd +++ b/scripts/hud.gd @@ -31,6 +31,7 @@ func _unhandled_input(event): event is InputEventKey or event is InputEventJoypadButton or event is InputEventJoypadMotion + or event is InputEventScreenTouch ) and %Start.is_visible_in_tree() ):