From e3c0302cfb2555286d7eafc4216bb2a471f84634 Mon Sep 17 00:00:00 2001 From: DominikaMa3ur Date: Mon, 20 Dec 2021 18:07:41 +0000 Subject: [PATCH 1/2] Create draft PR for #265 From 670712907329df4459adf7caa8c3bcb59259446e Mon Sep 17 00:00:00 2001 From: DominikaMa3ur <169584@stud.prz.edu.pl> Date: Wed, 19 Jan 2022 21:29:37 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Mechanizm=20=C5=82adowania=20sk=C3=B3rek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Hero/1.png | Bin 0 -> 5186 bytes Assets/Hero/1.png.import | 34 ++++++++++ Assets/Hero/2.png | Bin 0 -> 6778 bytes Assets/Hero/2.png.import | 34 ++++++++++ Assets/Hero/Hero0.png | Bin 0 -> 4709 bytes Assets/Hero/Hero0.png.import | 34 ++++++++++ Assets/Hero/Hero1.png | Bin 0 -> 4933 bytes Assets/Hero/Hero1.png.import | 34 ++++++++++ Assets/Hero/Hero2.png | Bin 0 -> 4933 bytes Assets/Hero/Hero2.png.import | 34 ++++++++++ Assets/Hero/Hero3.png | Bin 0 -> 4935 bytes Assets/Hero/Hero3.png.import | 34 ++++++++++ Scenes/Actors/Player.gd | 17 ++++- Scenes/Actors/Player.tscn | 31 ++++++++- Scenes/Levels/Spawning_enemies.gd | 16 ----- Scenes/title_screen/TitleScreen.tscn | 34 ++++++---- Scenes/title_screen/custom/custom.gd | 29 +++++++++ Scenes/title_screen/custom/custom.tscn | 84 +++++++++++++++++++++++++ Scenes/title_screen/title_screen.gd | 3 +- autoloads/bufor.gd | 3 + 20 files changed, 387 insertions(+), 34 deletions(-) create mode 100644 Assets/Hero/1.png create mode 100644 Assets/Hero/1.png.import create mode 100644 Assets/Hero/2.png create mode 100644 Assets/Hero/2.png.import create mode 100644 Assets/Hero/Hero0.png create mode 100644 Assets/Hero/Hero0.png.import create mode 100644 Assets/Hero/Hero1.png create mode 100644 Assets/Hero/Hero1.png.import create mode 100644 Assets/Hero/Hero2.png create mode 100644 Assets/Hero/Hero2.png.import create mode 100644 Assets/Hero/Hero3.png create mode 100644 Assets/Hero/Hero3.png.import create mode 100644 Scenes/title_screen/custom/custom.gd create mode 100644 Scenes/title_screen/custom/custom.tscn diff --git a/Assets/Hero/1.png b/Assets/Hero/1.png new file mode 100644 index 0000000000000000000000000000000000000000..abb07bc1012397a47a945e90c6853ca4ef7ec72c GIT binary patch literal 5186 zcmeHKd0Z3M77ofTQVUosP#J?Onq;z*ln~hoHOONTM666EGa*7qNCpzHSY*+nXhjQ8 z7Lm0sMe2$|#foSJ>%!vl9u-RwMQl|nTBz&038?UU{m0*X{m&$m%$)n3@1FCWb8lv{ zg97~~TiRQaNTkUkfA3)M3xi{ZxheQwRk@>)M4EUtB{YHvMzoMht;FSV7(^tiFbLDh zaS}<_c`tm~)>(6{p7+_gdj?F%+}vdUi^K5nnk}JMuO^)jy(IIp+c>4O#M`&-#igH{ zo@e>aY5B8seq@eWAy-*^!2j&O&)N46#72q#c>j+jgkP!??62-)-FRfpzj}D6Hm`Nl z%Q<&yOLM}GIrSdzzg6&Q?V`YM(`!vUcipbIH);8nf!gMsPwOcg@*lMvS$Y)zUey0$ zu-wsW*5eNaPJ7$-2Y#mWar=oygx1cUS8UW^e)RdKJj7NzlLsFh?g%Il=I0c^TelbG z#A-H^W!>*BvapTbqwx9jSo)tI7Ol>CQSp4k@{h$!?W1=g2tf@m*w|&w=UaHmqfcYhg2-icv83^Z2O(MLlV4(q;0p^57$guBmAzS z(PfU<#-@}UZY(_!S5|c`zdpbs`DgRu#Z!D2{4+`WWzmC2To3eo;mpFu^RnvbX_s6w zr`y)?(kG?0{)=u>9-pj;K?`YDT6*b#(twXhxW@BW%msFqNC;wgDy)EaO?IPps z^0XgjO9;jDbMQqu0;7Z-=1^I(Bx%;elDTS=u$u#29%07o@{sh77_zBx>Rjs#>Tma( zQ?rW(`<<^3PvvpTp4v9oS#(WOKRA}UHnK>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c(4oq_{G8D22^HI6NuJz)=RrKqW=_zDl(M z0p*k{5E({O#mfu>dcpY~K_UT}L51H~g5nSY2Mz+V7(t;WA#X-PK=g9bIV=W; z!Q}8@9*50gGTwleVrmU&MLj7UrZQND5q(|wARC}8qHk0{V6cN^_+DxZA(ZM+r7})H z*2e_tJq`U0xs6oCU#Jk|DswPSYHu3i^AkcP#`hJrtla{2B<%qC1J5}E(dcR&#qD8gcea_ z9x{+A$Od$fAscAkh?eum!?iJ(UMLu>ZkSG?yM{6td^V5IW-oy0d>AIv{{9?!h?K+P zGEfSNN*ELt4~HoTljTa0aCmGsO2;L12|7OL|1C#eD1*)iA0|9LM>m>&?|M~MH`;#{ zegrUPvjf_U*uW+V_GH@YO?gx_eXsnDuhEA48)pF2? zZ>7Lnf!}r4|4lB-H;;8#Jh;`N#jx9alfzMR(iJv#=rT$&ouxlHzSg8D$X-Fih zv;HvBRSA=T(Tos@eavnf+1gE=QMDyxHZV;md?E-hr9%I7Kr-C3Vp2#eCt@J|J!|+{ z>uCVAP~`0q8qsv`(t-C$kkv$b(~FPS&x}gQeL{Ot$qjQ0D=E4(9gYS-Qre~&+6-gM TZd>oI`b&{dpm&XDboze)6w0hQ literal 0 HcmV?d00001 diff --git a/Assets/Hero/1.png.import b/Assets/Hero/1.png.import new file mode 100644 index 00000000..ed33c906 --- /dev/null +++ b/Assets/Hero/1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/1.png-d1f6badde5a4c680b0c0135f6558dc2d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Hero/1.png" +dest_files=[ "res://.import/1.png-d1f6badde5a4c680b0c0135f6558dc2d.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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/Assets/Hero/2.png b/Assets/Hero/2.png new file mode 100644 index 0000000000000000000000000000000000000000..59e6d2967a7699bb65c213c01ae3c63a0c9a156c GIT binary patch literal 6778 zcmeHKdpuNY+aBeV(@qqjOp_gA%z4I4hRTqsoGIkAW@gP8jG1Nz6FEdmBs(^HSAyOzwiBL|GsyBe>L-)HEZ3^eP7RgU(fZdb+02% z4%<|fbd+E)m@3_l<^uhrp`VtbJan|b*t!e`Q|ydz^ANiL;c$VF&*lb$aPd9?2nQux zHVh`|8T-jIZIq%$Tc}L(T`~la4P zpdY&5F_m(9^~Bl*kD}Vt9RH}4_j8~{9bezlrpwp$*ZIbvCl5{yy)?PNzSlanv+kZ< z0`(`3YZ>x1ZbN%^iOBPr&kU=5bYJ+>Hr1=S$Gk(FozwMu70|?-+IP>|M#*N^6)|$E z8B9gx#J3(xlh-~tU^VvkIkM|fe!cvhaw+Z5txc<9UOxV9ER#R(Yk`aBU}B6WYs>Uw z=33sLOK1&ilUz@q*}T&m*u4%29+)PT!|ETWyDq=xkTk#Pu2miJ7j@Z5x`-Knt1a@# ziFt*qeGU6|#|&ma@#(E=DTf*NJw4&SUsh)K{?5cN1@lD1z(DRkGzmXN4 z4{0)G^e)6kitOKTLYkhfwWZ1+8dsQfOqs(>3RR*41GV&Y$b&zM%&G=6BiDYP=>rsY zT?Qpx9}LMtA*+$pK(@fzh#b@V6f9CDyeKZw+iKc%*7tvB^&OoIxp9Y1MW z-cEe4r#xF+@p|LM(krt%D-3+MuG?{ZqkXl?8>I|9_rV$WQ(WZ)br~%qtAcWJ*Qjq-9X*#vF&60XRGQE;k@Aw%LYnSd$k6l8^(0ISUbik ziP;-#9b9}0=6=rQ9VA{!`S85|O*m>UJkQTJK(Dl``QpmFb=tlp`uA_9mULUtlmW!zPF&HhiJ?_o8B*RT~1!$JexIIyPmVId<}Fic5{BFY}~7qa|x}GNaKq z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xp1?(KW{ zdL1tDS8e%{#|R5GDVO`!$%Vpp_y7VIx}31WF{jVDbe50##he;07?{t33_FUO2^gnh-O?a zSewKYBEf8eCG&`}qDTT?twjk8GJ_0}g7u0t8qv>&;H#C&xKVSrI24FRq0vadf~3n(VX&U0(#BTszwx2u6YT~m$Fd_!XVLP z5JX}~nFtAHG1w$F!h~3Cn9XJ(vN2FXl@5bd2x@`?;A92Bp`#oroyw$=By@?C#E{5f z5{FHnPm)mSEVhg;V?a{r7>Ee10(2#uGBzp`loUY09E8PzsSpX0!88(s$&ivbwD}Se zYd(!7fjA5f1A@&^QiQuutyRLHoC+l@M=2VW+^jGW&JBzd@`yAt^j;E~0%J1Zz$1!a zgb)$^UL#g0(P#`d(Me@7XbcXM#$mAO3@VlV-Y5pu>Od=+K&cR!#xQG4b>V_+0JE^E zQ2~Hi4wB*WwJ40KwPLk8g-0~SL@;@p`XB1i^k%BI!PcBosKX;!DTFxM9QR* z5Hhr`)AnJx=lN$CtAw8n&@VC#n#Q}A9yaeneVAQA`# zf#Sqp208-ma5(&V=v;G;!7`#_QS9}~gZC3W&iNKuzesR}CO>R3t+F!As|438Ii{5b dP+c)3+a852edcxluo&Rsgu&s0>Y#+|{{m-t?2-Tg literal 0 HcmV?d00001 diff --git a/Assets/Hero/Hero0.png.import b/Assets/Hero/Hero0.png.import new file mode 100644 index 00000000..2e5c697f --- /dev/null +++ b/Assets/Hero/Hero0.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/Hero0.png-3d0c21abfdb9ebfa5095f2e373bc2d4d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Hero/Hero0.png" +dest_files=[ "res://.import/Hero0.png-3d0c21abfdb9ebfa5095f2e373bc2d4d.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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/Assets/Hero/Hero1.png b/Assets/Hero/Hero1.png new file mode 100644 index 0000000000000000000000000000000000000000..3a4556c128c05ab669edbef7d5e0527b127dcb0e GIT binary patch literal 4933 zcmeHKYg7|w8cq}qB3`ya*#csWSI|i&$s{B(fRY3fAV2{T5RXnKGmwT{NJc>Lf+ASK z8(zRFSP((1N)b^Dii-*&3W!qI#r3vc(7G!{IjhvVb-x5uIPD+LuK!F z0unk;Z#=cqKjUSs@648yTN28n?;W9jlbPW_+VT{8vJd*ua-=oOhpju++wr3EU{Aoq z?z+%_ymrgpCz&$0=U*-43B$vEKNn8Q%b66Jm-M1fR&jlM+>FZ{znAd&l?4?IHu+_} zp(m0FTDBuIp9f8L$=++26{jBe_3e?O721U|{r2^%@z8z2nIoSb)csi5cwvr9OxH+{ z@GezBP4nk--P?jPlvQLRtgWB5<$0Y`%s;!1#ZGBDTUgX=gOPV1t=i_pL(bbT+xt^c z(f-DDDI-0OvzuF;V<^7&v!^T?d-}O{SL_Izr8S+2^;Or-N#~0&?fKlngaw>IGZ>)=XLmqS1B-N>C zO7Yf)^yz`rgTGWxUO8K&DldRvs;_K-x-A*Qxp2m>>U3EA^Pq! zNAp{vdjwwvcUC|;1huU$2d8AN`&<<|>O#~ky1!`E%Av~AT23TsDIEDp)6GfuRz(ofoXg^^%_pb;t|}FAeh; z+e*K;rC1a_-ZAk<4~Jska>tmZ@UovKAsR(ktm}yDYchOt=F^rK=A^b@tN|)QD~$tI4`{C z@b_s?%4&0ZXTLe^b8zvch4!}chNFjw8x1ZE9lMh@_Ie+=5RmP+JXlOzrLLb;Q<3`m ze9hykdajJSZO@F)*O#iC4lZg5C<_+LTsz2&=b49^oF74Lsikc<9zF2f@L=N(yrRR| z@3Wk!HTI)Cp3E#6=92izWnYxMW98W?!DTQ18MaS$HILP z;X#c%)>NZUYhdPeQ;qfo|DG++WnDT73qLB~YZ1{Kas(HX&nqEN&>DMl32;v`*#$7%FljGs^b zg+bS-y%-C4N?2)>;PD!HstFHI4UWK4wU|)N@bR`2r-%T64kuB1iY`HK7NvMGthgeu zwwPHAx;2E&DCgwqiw!h|7NiYAG}@V29iO=?0ECiNSD09Rg&c#<@VSghpa zWM(p#X)wjH*g~O@1#?&&4g?|~^D;e&ra*f06bnQ@h7>nrCXJEQ81!@tCaN+lCA}C7 z;HST>PiIsr-@)t611tbOSShHH#b&}RosKm)!%WJO0LVZ=f0$v80E3(rhMNsbO&Bgq z!u8~o!4PWfUA}RtDZ$!~8e`!JxDJGx!LIBfTly=Mq3<#*6vSzCMr#%zdq^ayA>NZU zq&ADk+RorYK>9n}A<=Jpw+4eKrBWm{U`s9KDWqNu%l;y@0n?~O)+Owz7T_ujfj9&V zLx`G(K`0*)Kmv>h^986tz{iL|Pzt@7MD-YMfdb%64Zy*097R0U2qYv_D1;CQ4hcB~ z7xLsFFrSOVh+5z|2qMI!0jfk323KW)QUfSdi1CFe8-`#4V6}s0 zL=qE@k_J%& zZ(>H1aJ6+Kkk{|R;!%AZ4sP%PMZL9a{@}DYe4&b~Qo#_Hi}ApL6MRUe=5ZiQ00Vjn zwtyh8q3C7Sf+}$u6VhbW*p$K7%xX3J+ zErMYN>*Mz*#MlI;272ajFaeN}5QkKVkPq=W7+WC3xF|xXh8F$5^(c(sutgjgv^lg# zG0QT$-X5!%^}B=b4;VD;05|Lr7RwxY!oT)_k1NL8S}l=8;%E~?wV z4Om7Q<cu;0y-VESab0IDtMp~o)e^Us49kiNTrKCcqgA(t&EBKs Qx&u6lLKZBo@LjUzzwDze0{{R3 literal 0 HcmV?d00001 diff --git a/Assets/Hero/Hero1.png.import b/Assets/Hero/Hero1.png.import new file mode 100644 index 00000000..75acfe5f --- /dev/null +++ b/Assets/Hero/Hero1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/Hero1.png-1f84cb387534816874b7623f2a0ac9d7.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Hero/Hero1.png" +dest_files=[ "res://.import/Hero1.png-1f84cb387534816874b7623f2a0ac9d7.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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/Assets/Hero/Hero2.png b/Assets/Hero/Hero2.png new file mode 100644 index 0000000000000000000000000000000000000000..7dec1e2a0000f070d09c942724c87c1addab083b GIT binary patch literal 4933 zcmeHKX;c$g7A{1aMMbBDp%s@hIxb+6%1ROw5ebk0K?YE;!K0N*1p?Vfid|b2Q2}LX z#de_;To6=Hkg-K&L>3iAMbW0kR*+V3X&sdIz^L8MtAGe+`j2PEe^gSHSNGlfy?4L+ z)jg?HKVQ$W)|0Fu2pTJui2cEDCOGXazW`U}(#e$&G@>IRFqrU1V`05Pr&OtNn26Wo zFdnB;LQq`G^PG?}+v#IAv@T2WhOMTf{Lo#Fv2Cw@&rfV&89ltcr=_&toIdiB{bT*A zw}Kk`nftaa^6w5cWJrn*RNGC-3_E!g*NMiz%ocy;i7R+FYp z?U?Z9d{$3no@m@Q;!cmfTl1o_nA*piulQArvD#}+Of2jymD9A-G8;2aRCesuF0?xG z<=vCI8OK`d+bZ+NTX#>N`4^72z!^TG&q}k&pEcJzs^|I};i&Iz;yVxZqCpRGF5gSc zuYM%5tv}?E)OKg*zqPHGrLFT_)b?wFm%X|Di+#m{0^$7l9R9|Q{LF5GgP&rr*m%0~ zguqX&ulQ9p@s6ME>bn(i;={yDY2Wf}du8bCi`B__^&>H&y>rdhH4)+0>|Tkl>|D5b z_qdnVfod!}gi{W!@0gK6%+C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vKY3KWQl zC*mQv1xiU^!8(Hm2klgA@FbG0*CtsuXu>hSNQszh9KibfZp1W#9(VF9}o%ssReJR0Fwpb2;hbWHORTnkWQZ-3SNf2<3IQJbH%KuxB#`lzeiohHwGLPY z>qBFV42InZ`fbJ7w0SfzT2m5fko5zr5hI-(k53Hn1ExSppr1VX-Y+-(92g9nO62UB z_KN-yH^ZX;k-wuUal%=z4c48B (0.6-nieskończoność), poniżej 0.6 przeciwnicy za daleko odlatują @@ -164,7 +167,9 @@ func _ready(): #po inicjacji bohatera "60healthPotion" : 0, "Empty" : 0 } - UpdatePotions() + UpdatePotions() + if Bufor.tekstury != null: + aktulizujSkorki() func _process(delta): @@ -600,3 +605,11 @@ func on_skill_used(ability,mana_used): $CoolDownS3.start(25) else: $CoolDownS4.start(50) + +func aktulizujSkorki(): + if Bufor.tekstury != null: + tekstury = Bufor.tekstury + if tekstury[0] >= 0: + $PlayerSprite.texture = load("res://Assets/Hero/Hero" + str(tekstury[0]) + ".png") + $PlayerSprite/x1.frame = tekstury[1] + $PlayerSprite/x2.frame = tekstury[2] diff --git a/Scenes/Actors/Player.tscn b/Scenes/Actors/Player.tscn index be2bb44f..f7a6c9a0 100644 --- a/Scenes/Actors/Player.tscn +++ b/Scenes/Actors/Player.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=36 format=2] +[gd_scene load_steps=38 format=2] [ext_resource path="res://Assets/Hero/RedHero.png" type="Texture" id=1] [ext_resource path="res://Scenes/Actors/Player.gd" type="Script" id=2] @@ -7,6 +7,8 @@ [ext_resource path="res://Scenes/title_screen/music/projekt_8bit.ogg" type="AudioStream" id=5] [ext_resource path="res://Assets/Enemies/shadow.png" type="Texture" id=6] [ext_resource path="res://Assets/Light/Light.tscn" type="PackedScene" id=7] +[ext_resource path="res://Assets/Hero/1.png" type="Texture" id=8] +[ext_resource path="res://Assets/Hero/2.png" type="Texture" id=9] [sub_resource type="Gradient" id=1] offsets = PoolRealArray( 0, 0.794702, 1 ) @@ -102,6 +104,18 @@ tracks/0/keys = { "update": 1, "values": [ 1, 2, 3, 4, 5, 6, 7 ] } +tracks/1/type = "value" +tracks/1/path = NodePath("PlayerSprite/x1:position") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6 ), +"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ), +"update": 1, +"values": [ Vector2( 0, 0 ), Vector2( 0, 1 ), Vector2( 0, 0 ), Vector2( 0, -1 ), Vector2( 0, -2 ), Vector2( 0, -1 ), Vector2( 0, 0 ) ] +} [sub_resource type="Animation" id=14] resource_name = "skok" @@ -192,7 +206,9 @@ color_ramp = SubResource( 24 ) [sub_resource type="OccluderPolygon2D" id=28] polygon = PoolVector2Array( -5, -4, 5, -4, 5, 9, -5, 9 ) -[node name="Player" type="KinematicBody2D" groups=["Player"]] +[node name="Player" type="KinematicBody2D" groups=[ +"Player", +]] collision_mask = 6 script = ExtResource( 2 ) @@ -214,7 +230,16 @@ position = Vector2( 0, -4 ) scale = Vector2( 1.5, 1.5 ) texture = ExtResource( 1 ) hframes = 9 -frame = 8 +frame = 7 + +[node name="x1" type="Sprite" parent="PlayerSprite"] +texture = ExtResource( 8 ) +hframes = 3 + +[node name="x2" type="Sprite" parent="PlayerSprite"] +show_behind_parent = true +texture = ExtResource( 9 ) +hframes = 3 [node name="PlayerCollision" type="CollisionShape2D" parent="."] position = Vector2( 0, 7.109 ) diff --git a/Scenes/Levels/Spawning_enemies.gd b/Scenes/Levels/Spawning_enemies.gd index ddc26df4..d173cdd6 100644 --- a/Scenes/Levels/Spawning_enemies.gd +++ b/Scenes/Levels/Spawning_enemies.gd @@ -101,22 +101,6 @@ func _on_Node2D_body_entered(body): #Funkcja,która się aktywuje po wejsciu w k call_deferred("add_child",bossIns) #dodawanie sceny boss'a bossIns.connect("died", self, "open") #polaczenie sygnalu ktory otwiera drzwi po zabiciu bossa close_door() #zamkniecie drzwi - elif is_sklep: - if odwiedzony == false: - weapon() - potion() - var popup = load("res://Scenes/UI/Sklep_ceny.tscn") - popup = popup.instance() - popup.rect_scale.x = 0.5 - popup.rect_scale.y = 0.5 - call_deferred("add_child", popup) - popups[body] = popup - odwiedzony = true - Bufor.in_sklep = true - elif is_sklep == false: - if body in popups: - popups[body].call_deferred('free') - Bufor.in_sklep = false id_list.append(current_id) if body.is_in_group("Enemy"): #zamykanie drzwi po wejsciu do pokoju close_door() diff --git a/Scenes/title_screen/TitleScreen.tscn b/Scenes/title_screen/TitleScreen.tscn index 6acbf9c1..8a823dba 100644 --- a/Scenes/title_screen/TitleScreen.tscn +++ b/Scenes/title_screen/TitleScreen.tscn @@ -15,7 +15,7 @@ [ext_resource path="res://Scenes/Actors/OctoBoss/octo3.png" type="Texture" id=13] [ext_resource path="res://Scenes/title_screen/MenuLights.gd" type="Script" id=14] -[sub_resource type="SpriteFrames" id=2] +[sub_resource type="SpriteFrames" id=1] animations = [ { "frames": [ ExtResource( 9 ), ExtResource( 9 ), ExtResource( 9 ), ExtResource( 9 ), ExtResource( 9 ), ExtResource( 9 ), ExtResource( 9 ), ExtResource( 13 ), ExtResource( 9 ), ExtResource( 9 ), ExtResource( 12 ), ExtResource( 9 ), ExtResource( 9 ) ], "loop": true, @@ -23,27 +23,27 @@ animations = [ { "speed": 2.0 } ] -[sub_resource type="AtlasTexture" id=3] +[sub_resource type="AtlasTexture" id=2] atlas = ExtResource( 11 ) region = Rect2( 0, 0, 46, 56 ) -[sub_resource type="AtlasTexture" id=4] +[sub_resource type="AtlasTexture" id=3] atlas = ExtResource( 11 ) region = Rect2( 0, 56, 46, 56 ) -[sub_resource type="AtlasTexture" id=5] +[sub_resource type="AtlasTexture" id=4] atlas = ExtResource( 11 ) region = Rect2( 0, 112, 46, 56 ) -[sub_resource type="SpriteFrames" id=6] +[sub_resource type="SpriteFrames" id=5] animations = [ { -"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 3 ), SubResource( 4 ), SubResource( 4 ), SubResource( 4 ), SubResource( 3 ), SubResource( 4 ), SubResource( 3 ), SubResource( 5 ), SubResource( 3 ), SubResource( 3 ), SubResource( 3 ), SubResource( 3 ) ], +"frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 2 ), SubResource( 3 ), SubResource( 3 ), SubResource( 3 ), SubResource( 2 ), SubResource( 3 ), SubResource( 2 ), SubResource( 4 ), SubResource( 2 ), SubResource( 2 ), SubResource( 2 ), SubResource( 2 ) ], "loop": true, "name": "pandoboss_menu", "speed": 2.0 } ] -[sub_resource type="DynamicFont" id=1] +[sub_resource type="DynamicFont" id=6] font_data = ExtResource( 5 ) [node name="TitleScreen" type="Control"] @@ -74,9 +74,9 @@ __meta__ = { modulate = Color( 0.160784, 0.12549, 0.12549, 0.588235 ) position = Vector2( 226.176, 732.406 ) scale = Vector2( 5.22092, 5.22092 ) -frames = SubResource( 2 ) +frames = SubResource( 1 ) animation = "octoboss_menu" -frame = 5 +frame = 12 playing = true flip_h = true @@ -84,9 +84,9 @@ flip_h = true modulate = Color( 0.160784, 0.12549, 0.12549, 0.588235 ) position = Vector2( 1198.72, 619.51 ) scale = Vector2( 9.61799, 9.61799 ) -frames = SubResource( 6 ) +frames = SubResource( 5 ) animation = "pandoboss_menu" -frame = 2 +frame = 4 playing = true [node name="Menu" type="VBoxContainer" parent="."] @@ -138,7 +138,7 @@ scene_to_load = "res://Scenes/title_screen/game/ExitScene.tscn" margin_top = 640.0 margin_right = 699.0 margin_bottom = 685.0 -custom_fonts/font = SubResource( 1 ) +custom_fonts/font = SubResource( 6 ) text = "Version v0.2.1 By SKNI KOD" @@ -234,4 +234,14 @@ position = Vector2( 649.631, 193.124 ) rotation = 3.14159 region_rect = Rect2( 32, 42, 19, 14 ) +[node name="custom" type="Button" parent="."] +margin_left = 1211.82 +margin_top = 16.8725 +margin_right = 1259.82 +margin_bottom = 64.8725 +__meta__ = { +"_edit_use_anchors_": false +} + [connection signal="fade_finished" from="FadeIn" to="." method="_on_FadeIn_fade_finished"] +[connection signal="pressed" from="custom" to="." method="_on_custom_pressed"] diff --git a/Scenes/title_screen/custom/custom.gd b/Scenes/title_screen/custom/custom.gd new file mode 100644 index 00000000..8731955d --- /dev/null +++ b/Scenes/title_screen/custom/custom.gd @@ -0,0 +1,29 @@ +extends Node2D + +func gotowe(): + var skorka = 0 + var peleryna = 0 + var akcesoria = 0 + if $skorki/wybor.get_selected_items().size() > 0: + skorka = $skorki/wybor.get_selected_items()[0]-1 + if $peleryny/wybor.get_selected_items().size() > 0: + peleryna = $peleryny/wybor.get_selected_items()[0] + if $akcesoria/wybor.get_selected_items().size() > 0: + akcesoria = $akcesoria/wybor.get_selected_items()[0] + Bufor.tekstury = [skorka,akcesoria,peleryna] + get_tree().change_scene_to(load("res://Scenes/title_screen/TitleScreen.tscn")) + + +func wybranaPeleryna(index): + $manekin/peleryna.frame = index + + +func wybranaSkorka(index): + if index > 0: + $manekin.texture = load("res://Assets/Hero/Hero" + str(index-1) + ".png") + else: + $manekin.texture = load("res://Assets/Hero/RedHero.png") + + +func wybraneAkcesoria(index): + $manekin/akcesoria.frame = index diff --git a/Scenes/title_screen/custom/custom.tscn b/Scenes/title_screen/custom/custom.tscn new file mode 100644 index 00000000..a5fb9349 --- /dev/null +++ b/Scenes/title_screen/custom/custom.tscn @@ -0,0 +1,84 @@ +[gd_scene load_steps=6 format=2] + +[ext_resource path="res://icon.png" type="Texture" id=1] +[ext_resource path="res://Scenes/title_screen/custom/custom.gd" type="Script" id=2] +[ext_resource path="res://Assets/Hero/RedHero.png" type="Texture" id=3] +[ext_resource path="res://Assets/Hero/2.png" type="Texture" id=4] +[ext_resource path="res://Assets/Hero/1.png" type="Texture" id=5] + +[node name="custom" type="Node2D"] +z_index = 16 +script = ExtResource( 2 ) + +[node name="peleryny" type="Node2D" parent="."] +position = Vector2( 0, 232 ) + +[node name="wybor" type="ItemList" parent="peleryny"] +margin_left = 16.0 +margin_top = 24.0 +margin_right = 768.0 +margin_bottom = 240.0 +items = [ "", ExtResource( 1 ), false, "", ExtResource( 1 ), false, "", ExtResource( 1 ), false, "", ExtResource( 1 ), false ] +allow_reselect = true +max_columns = 5 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="skorki" type="Node2D" parent="."] + +[node name="wybor" type="ItemList" parent="skorki"] +margin_left = 16.0 +margin_top = 24.0 +margin_right = 1264.0 +margin_bottom = 240.0 +items = [ "", ExtResource( 1 ), false, "", ExtResource( 1 ), false, "", ExtResource( 1 ), false, "", ExtResource( 1 ), false ] +allow_reselect = true +max_columns = 5 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="akcesoria" type="Node2D" parent="."] +position = Vector2( 0, 464 ) + +[node name="wybor" type="ItemList" parent="akcesoria"] +margin_left = 16.0 +margin_top = 24.0 +margin_right = 768.0 +margin_bottom = 240.0 +items = [ "", ExtResource( 1 ), false, "", ExtResource( 1 ), false, "", ExtResource( 1 ), false, "", ExtResource( 1 ), false ] +allow_reselect = true +max_columns = 5 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="gotowe" type="Button" parent="."] +margin_left = 1024.0 +margin_top = 672.0 +margin_right = 1036.0 +margin_bottom = 692.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="manekin" type="Sprite" parent="."] +position = Vector2( 1040, 440 ) +scale = Vector2( 16, 16 ) +texture = ExtResource( 3 ) +hframes = 9 + +[node name="peleryna" type="Sprite" parent="manekin"] +show_behind_parent = true +texture = ExtResource( 4 ) +hframes = 3 + +[node name="akcesoria" type="Sprite" parent="manekin"] +texture = ExtResource( 5 ) +hframes = 3 + +[connection signal="item_selected" from="peleryny/wybor" to="." method="wybranaPeleryna"] +[connection signal="item_selected" from="skorki/wybor" to="." method="wybranaSkorka"] +[connection signal="item_selected" from="akcesoria/wybor" to="." method="wybraneAkcesoria"] +[connection signal="pressed" from="gotowe" to="." method="gotowe"] diff --git a/Scenes/title_screen/title_screen.gd b/Scenes/title_screen/title_screen.gd index 91c5e75c..6347e96d 100644 --- a/Scenes/title_screen/title_screen.gd +++ b/Scenes/title_screen/title_screen.gd @@ -16,4 +16,5 @@ func _on_Button_pressed(scene_to_load):#dodaje animację przyciemniania przy prz func _on_FadeIn_fade_finished():#przechodzi do wybranej sceny get_tree().change_scene(scene_path_to_load) - +func _on_custom_pressed(): + get_tree().change_scene_to(load("res://Scenes/title_screen/custom/custom.tscn")) diff --git a/autoloads/bufor.gd b/autoloads/bufor.gd index 677634e6..569db4e8 100644 --- a/autoloads/bufor.gd +++ b/autoloads/bufor.gd @@ -11,3 +11,6 @@ var second_weapon_stats = null var equipped = null var potions = null var potions_amount = null + +# przechowuje informacje o wyglądzie gracza +var tekstury = [0, 0, 0]