From 78b76aa470d4d4aaaf6a383296641cc4022925c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A4iv=C3=B6=20Jimi=20Sebastian?= <jiminaivo@gmail.com> Date: Fri, 29 Nov 2024 11:04:30 +0200 Subject: [PATCH] INFO NAPIT PAIKOILLAAN JA KAIKKI TOIMII YIPPE LIVE LOVE LAUGH JA SILLLEEEE --- .../SimulaattoriPeli/Content/GiantEtu.png | Bin 0 -> 1101 bytes .../SimulaattoriPeli/SimulaattoriPeli.cs | 370 +++++++++++++++++- .../SimulaattoriPeli/SimulaattoriPeli.csproj | 3 + 3 files changed, 361 insertions(+), 12 deletions(-) create mode 100644 SimulaattoriPeli/SimulaattoriPeli/Content/GiantEtu.png diff --git a/SimulaattoriPeli/SimulaattoriPeli/Content/GiantEtu.png b/SimulaattoriPeli/SimulaattoriPeli/Content/GiantEtu.png new file mode 100644 index 0000000000000000000000000000000000000000..5fadffd26bd73d61ae0ee9a07ac320a13e0aee58 GIT binary patch literal 1101 zcmV-T1hV^yP)<h;3K|Lk000e1NJLTq000;O000;W1^@s6;CDUv0004mX+uL$Nkc;* zaB^>EX>4Tx04R}tkv&MmKpe$iTeYGU!FCXF$k003MMWG-6^me@v=v%)FuC*#nlvOS zE{=k0!NHHks)LKOt`4q(Aou~|?BJy6A|?JWDYS_3;J6>}?mh0_0p4bnDMn8WP*hV- zC*ndbzbg1&F^CcLA%dXD3@w>i%))hi-NVDzyC~0cKlkStk_!d{JOXiyX}U?gK|H%@ zYMl3pL#!;y#OK75I$e<Xk?WGfZ=6dudwFI^&!*>zL&QR<i={4RWnCejAr8xmO8MTL z!!qYB&Puh;+V|uy3>4Ir4A*InBY`C(k%9mTbyQG=i72fqDF)KCA9wMO+5Qx{Byv^2 z$gzML6o|GT{11M2YZRxaoTNY;=zX!Qj|kx31zHWu`aZU-)(PNy2CmeOzt#liK1pwM zwD1uyybWAjcQk1axZD9opEOYyZOKQ|TPy<aXY@^ZAb1N5tU0~4_i_3FWT~s=8{ps& zm?%;9y34!!yL<chOuN4yp;2<V(iP0M00009a7bBm001r{001r{0eGc9b^rhX2XskI zMF;2$5(p9;+2!DF0000PbVXQnLvL+uWo~o;Lvm$dbY)~9cWHEJAV*0}P*;Ht7XSbP zH%UZ6R7l62mcMHnVHn3hCvv8pqSz?df1n%`&LxA}4W(0t&?!S&p)FpaB2Gdmxl)2o zlB7`GOfsZPr%ajL92}}$j#3K!F$7{#TBk&Bc{>!}dV1a&UwC<6zVAKX=icXg&-0vu z{}9YKlvxMiAj?iAN4xx<^}WK>+1YuIbgAxZ9}04iN+!tl`&dUO60?p@Sb1!bN+trY z78(nM*973=(Bl5bZ~q-^u5oc_O@`9bJ`9M$!&Oi3yQgi=&U>Vi3D)-t+$+8X;B)n* z3=x2jy^tCV9mn&bbg53Kk|UK&@TvUVGyYz-5mgNqIh)aFv}|7?vl-1-178PA5jBut zDWV37tn8k)U0|)*brJYYFPo8mfD!_PY3Nv+Yw`;*4V_xE%V6k^?O^D5Vzp+MP9-Pp z0s6-~03rlXe)`CD`0T;z6zMpz7dCD`TIb5-pcqd&xpArRBMEXow}W|zf~uhC9c;T2 zD4WqFanKD0Lx)DomI)bARhBol02Bof{o|dfY)m|PO@%vd?A<E>dN1C%@Di7dUT{2< zmp8WjL-ZxH;tJ2t4~>5t<E~qu)@5+H{`&ogYh7f_;+R!xg<Z`H)6j)!=yE@f+ts|t zW;Ef)F{{-HyP9_aL&qUqs$*C4#A8u@{r)3Y0Ij(1**e31oorJ0P9=v{+^2W2O*|F_ zARdd#(tML<Elfk_>Uto7+qageHM^LG4&Zs_#TS}az^m(lEP{(9+M>TJfqZ`f!<!M< T?m%k~00000NkvXXu0mjfk#zY6 literal 0 HcmV?d00001 diff --git a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs index cb8e4f5..d0bf5ae 100644 --- a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs +++ b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs @@ -68,7 +68,7 @@ public class SimulaattoriPeli : PhysicsGame } } - Label hahmotOtsikko = new Label("Characters"); //teksti hahmojen alueelle + Label hahmotOtsikko = new Label("CHARACTERS"); //teksti hahmojen alueelle hahmotOtsikko.TextColor = Color.Black; // tekstin väri hahmotOtsikko.Position = new Vector(Hahmot.X, Hahmot.Top - 40); // tekstin sijainti Hahmot.Add(hahmotOtsikko); // lisää tekstin @@ -78,7 +78,7 @@ public class SimulaattoriPeli : PhysicsGame Ohjeet.Position = new Vector(750, 0); //Ohjeiden alueen sijainti Add(Ohjeet); //lisää Ohjeiden alueen - Label OhjeetOtsikko = new Label("Guide"); //teksti hahmojen alueelle + Label OhjeetOtsikko = new Label("GUIDE"); //teksti hahmojen alueelle OhjeetOtsikko.TextColor = Color.Black; // tekstin väri OhjeetOtsikko.Position = new Vector(Ohjeet.X, Ohjeet.Top - 40); // tekstin sijainti Ohjeet.Add(OhjeetOtsikko); // lisää tekstin @@ -121,22 +121,368 @@ public class SimulaattoriPeli : PhysicsGame private void HahmoInfot() { - PushButton GiantInfo = new PushButton(185, 185, ""); - GiantInfo.Shape = Shape.Circle; - GiantInfo.Color = Color.Transparent; - GiantInfo.BorderColor = Color.Transparent; - GiantInfo.Position = new Vector(-850, 300); - Add(GiantInfo, 3); + PushButton GiantButton = new PushButton(185, 185, ""); + GiantButton.Shape = Shape.Circle; + GiantButton.Color = Color.Transparent; + GiantButton.BorderColor = Color.Transparent; + GiantButton.Position = new Vector(-850, 300); + Add(GiantButton, 2); - GiantInfo.Clicked += delegate - { - - }; + GameObject GiantInfo = new GameObject(450, 1000, Shape.Rectangle); + GiantInfo.Color = Color.MediumPurple; + GiantInfo.Position = new Vector(750, 0); + + Label GiantInfoOtsikko = new Label("GIANT"); + GiantInfoOtsikko.TextColor = Color.Black; + GiantInfoOtsikko.Position = new Vector(Ohjeet.X, Ohjeet.Top - 40); + GiantInfo.Add(GiantInfoOtsikko); + + PushButton GiantButtonClose = new PushButton(185, 185, ""); + GiantButtonClose.Shape = Shape.Circle; + GiantButtonClose.Color = Color.Transparent; + GiantButtonClose.BorderColor = Color.Transparent; + GiantButtonClose.Position = new Vector(-850, 300); + + //-------------------------------------------------------------------- + + + PushButton GoblinButton = new PushButton(185, 185, ""); + GoblinButton.Shape = Shape.Circle; + GoblinButton.Color = Color.Transparent; + GoblinButton.BorderColor = Color.Transparent; + GoblinButton.Position = new Vector(-650, 300); + Add(GoblinButton, 2); + + GameObject GoblinInfo = new GameObject(450, 1000, Shape.Rectangle); + GoblinInfo.Color = Color.MediumBlue; + GoblinInfo.Position = new Vector(750, 0); + + Label GoblinInfoOtsikko = new Label("GOBLIN"); + GoblinInfoOtsikko.TextColor = Color.Black; + GoblinInfoOtsikko.Position = new Vector(Ohjeet.X, Ohjeet.Top - 40); + GoblinInfo.Add(GoblinInfoOtsikko); + + PushButton GoblinButtonClose = new PushButton(185, 185, ""); + GoblinButtonClose.Shape = Shape.Circle; + GoblinButtonClose.Color = Color.Transparent; + GoblinButtonClose.BorderColor = Color.Transparent; + GoblinButtonClose.Position = new Vector(-650, 300); + + //-------------------------------------------------------------------- + + PushButton MageButton = new PushButton(185, 185, ""); + MageButton.Shape = Shape.Circle; + MageButton.Color = Color.Transparent; + MageButton.BorderColor = Color.Transparent; + MageButton.Position = new Vector(-850, 80); + Add(MageButton, 2); + + GameObject MageInfo = new GameObject(450, 1000, Shape.Rectangle); + MageInfo.Color = Color.MediumVioletRed; + MageInfo.Position = new Vector(750, 0); + + Label MageInfoOtsikko = new Label("MAGE"); + MageInfoOtsikko.TextColor = Color.Black; + MageInfoOtsikko.Position = new Vector(Ohjeet.X, Ohjeet.Top - 40); + MageInfo.Add(MageInfoOtsikko); + + PushButton MageButtonClose = new PushButton(185, 185, ""); + MageButtonClose.Shape = Shape.Circle; + MageButtonClose.Color = Color.Transparent; + MageButtonClose.BorderColor = Color.Transparent; + MageButtonClose.Position = new Vector(-850, 80); + + //-------------------------------------------------------------------- + + + PushButton ArcherButton = new PushButton(185, 185, ""); + ArcherButton.Shape = Shape.Circle; + ArcherButton.Color = Color.Transparent; + ArcherButton.BorderColor = Color.Transparent; + ArcherButton.Position = new Vector(-650, 80); + Add(ArcherButton, 2); + + GameObject ArcherInfo = new GameObject(450, 1000, Shape.Rectangle); + ArcherInfo.Color = Color.LightGreen; + ArcherInfo.Position = new Vector(750, 0); + + Label ArcherInfoOtsikko = new Label("ARCHER"); + ArcherInfoOtsikko.TextColor = Color.Black; + ArcherInfoOtsikko.Position = new Vector(Ohjeet.X, Ohjeet.Top - 40); + ArcherInfo.Add(ArcherInfoOtsikko); + + PushButton ArcherButtonClose = new PushButton(185, 185, ""); + ArcherButtonClose.Shape = Shape.Circle; + ArcherButtonClose.Color = Color.Transparent; + ArcherButtonClose.BorderColor = Color.Transparent; + ArcherButtonClose.Position = new Vector(-650, 80); + + + //---------------------------------------------------- + + PushButton SummonerButton = new PushButton(185, 185, ""); + SummonerButton.Shape = Shape.Circle; + SummonerButton.Color = Color.Transparent; + SummonerButton.BorderColor = Color.Transparent; + SummonerButton.Position = new Vector(-850, -140); + Add(SummonerButton, 2); + GameObject SummonerInfo = new GameObject(450, 1000, Shape.Rectangle); + SummonerInfo.Color = Color.RosePink; + SummonerInfo.Position = new Vector(750, 0); + Label SummonerInfoOtsikko = new Label("SUMMONER"); + SummonerInfoOtsikko.TextColor = Color.Black; + SummonerInfoOtsikko.Position = new Vector(Ohjeet.X, Ohjeet.Top - 40); + SummonerInfo.Add(SummonerInfoOtsikko); + PushButton SummonerButtonClose = new PushButton(185, 185, ""); + SummonerButtonClose.Shape = Shape.Circle; + SummonerButtonClose.Color = Color.Transparent; + SummonerButtonClose.BorderColor = Color.Transparent; + SummonerButtonClose.Position = new Vector(-850, -140); + + //-------------------------------------------------------------------- + + PushButton HealerButton = new PushButton(185, 185, ""); + HealerButton.Shape = Shape.Circle; + HealerButton.Color = Color.Transparent; + HealerButton.BorderColor = Color.Transparent; + HealerButton.Position = new Vector(-650, -140); + Add(HealerButton, 2); + + GameObject HealerInfo = new GameObject(450, 1000, Shape.Rectangle); + HealerInfo.Color = Color.LightYellow; + HealerInfo.Position = new Vector(750, 0); + + Label HealerInfoOtsikko = new Label("HEALER"); + HealerInfoOtsikko.TextColor = Color.Black; + HealerInfoOtsikko.Position = new Vector(Ohjeet.X, Ohjeet.Top - 40); + HealerInfo.Add(HealerInfoOtsikko); + + PushButton HealerButtonClose = new PushButton(185, 185, ""); + HealerButtonClose.Shape = Shape.Circle; + HealerButtonClose.Color = Color.Transparent; + HealerButtonClose.BorderColor = Color.Transparent; + HealerButtonClose.Position = new Vector(-650, -140); + + //-------------------------------------------------------------------- + + PushButton SamuraiButton = new PushButton(185, 185, ""); + SamuraiButton.Shape = Shape.Circle; + SamuraiButton.Color = Color.Transparent; + SamuraiButton.BorderColor = Color.Transparent; + SamuraiButton.Position = new Vector(-850, -360); + Add(SamuraiButton, 2); + + GameObject SamuraiInfo = new GameObject(450, 1000, Shape.Rectangle); + SamuraiInfo.Color = Color.Silver; + SamuraiInfo.Position = new Vector(750, 0); + + Label SamuraiInfoOtsikko = new Label("SAMURAI"); + SamuraiInfoOtsikko.TextColor = Color.Black; + SamuraiInfoOtsikko.Position = new Vector(Ohjeet.X, Ohjeet.Top - 40); + SamuraiInfo.Add(SamuraiInfoOtsikko); + + PushButton SamuraiButtonClose = new PushButton(185, 185, ""); + SamuraiButtonClose.Shape = Shape.Circle; + SamuraiButtonClose.Color = Color.Transparent; + SamuraiButtonClose.BorderColor = Color.Transparent; + SamuraiButtonClose.Position = new Vector(-850, -360); + +//-------------------------------------------------------------------- + + PushButton KnightButton = new PushButton(185, 185, ""); + KnightButton.Shape = Shape.Circle; + KnightButton.Color = Color.Transparent; + KnightButton.BorderColor = Color.Transparent; + KnightButton.Position = new Vector(-650, -360); + Add(KnightButton, 2); + GameObject KnightInfo = new GameObject(450, 1000, Shape.Rectangle); + KnightInfo.Color = Color.AshGray; + KnightInfo.Position = new Vector(750, 0); + Label KnightInfoOtsikko = new Label("KNIGHT"); + KnightInfoOtsikko.TextColor = Color.Black; + KnightInfoOtsikko.Position = new Vector(Ohjeet.X, Ohjeet.Top - 40); + KnightInfo.Add(KnightInfoOtsikko); + + PushButton KnightButtonClose = new PushButton(185, 185, ""); + KnightButtonClose.Shape = Shape.Circle; + KnightButtonClose.Color = Color.Transparent; + KnightButtonClose.BorderColor = Color.Transparent; + KnightButtonClose.Position = new Vector(-650, -360); + +//-------------------------------------------------------------------- + + GiantButton.Clicked += delegate + { + Add(GiantInfo,3); + Add(GiantButtonClose, 3); + Remove(GoblinInfo); + Remove(ArcherInfo); + Remove(MageInfo); + Remove(KnightInfo); + Remove(HealerInfo); + Remove(SamuraiInfo); + Remove(SummonerInfo); + }; + + GiantButtonClose.Clicked += delegate + { + Remove(GiantInfo); + Remove(GiantButtonClose); + }; + + //---------------------------------------------------- + + + GoblinButton.Clicked += delegate + { + Add(GoblinInfo,3); + Add(GoblinButtonClose, 3); + Remove(ArcherInfo); + Remove(MageInfo); + Remove(KnightInfo); + Remove(HealerInfo); + Remove(SamuraiInfo); + Remove(SummonerInfo); + Remove(GiantInfo); + }; + + GoblinButtonClose.Clicked += delegate + { + Remove(GoblinInfo); + Remove(GoblinButtonClose); + }; + + //---------------------------------------------------- + + ArcherButton.Clicked += delegate + { + Add(ArcherInfo,3); + Add(ArcherButtonClose, 3); + Remove(GoblinInfo); + Remove(MageInfo); + Remove(KnightInfo); + Remove(HealerInfo); + Remove(SamuraiInfo); + Remove(SummonerInfo); + Remove(GiantInfo); + }; + + ArcherButtonClose.Clicked += delegate + { + Remove(ArcherInfo); + Remove(ArcherButtonClose); + }; + + //---------------------------------------------------- + + + MageButton.Clicked += delegate + { + Add(MageInfo,3); + Add(MageButtonClose, 3); + Remove(GoblinInfo); + Remove(ArcherInfo); + Remove(KnightInfo); + Remove(HealerInfo); + Remove(SamuraiInfo); + Remove(SummonerInfo); + Remove(GiantInfo); + }; + + MageButtonClose.Clicked += delegate + { + Remove(MageInfo); + Remove(MageButtonClose); + }; + + //---------------------------------------------------- + + SummonerButton.Clicked += delegate + { + Add(SummonerInfo,3); + Add(SummonerButtonClose, 3); + Remove(GoblinInfo); + Remove(ArcherInfo); + Remove(MageInfo); + Remove(KnightInfo); + Remove(HealerInfo); + Remove(SamuraiInfo); + Remove(GiantInfo); + }; + + SummonerButtonClose.Clicked += delegate + { + Remove(SummonerInfo); + Remove(SummonerButtonClose); + }; + + //---------------------------------------------------- + + HealerButton.Clicked += delegate + { + Add(HealerInfo,3); + Add(HealerButtonClose, 3); + Remove(GoblinInfo); + Remove(ArcherInfo); + Remove(MageInfo); + Remove(KnightInfo); + Remove(SamuraiInfo); + Remove(SummonerInfo); + Remove(GiantInfo); + }; + + HealerButtonClose.Clicked += delegate + { + Remove(HealerInfo); + Remove(HealerButtonClose); + }; + + //---------------------------------------------------- + + SamuraiButton.Clicked += delegate + { + Add(SamuraiInfo,3); + Add(SamuraiButtonClose, 3); + Remove(GoblinInfo); + Remove(ArcherInfo); + Remove(MageInfo); + Remove(KnightInfo); + Remove(HealerInfo); + Remove(SummonerInfo); + Remove(GiantInfo); + }; + + SamuraiButtonClose.Clicked += delegate + { + Remove(SamuraiInfo); + Remove(SamuraiButtonClose); + }; + + //---------------------------------------------------- + + KnightButton.Clicked += delegate + { + Add(KnightInfo,3); + Add(KnightButtonClose, 3); + Remove(GoblinInfo); + Remove(ArcherInfo); + Remove(MageInfo); + Remove(HealerInfo); + Remove(SamuraiInfo); + Remove(SummonerInfo); + Remove(GiantInfo); + }; + + KnightButtonClose.Clicked += delegate + { + Remove(KnightInfo); + Remove(KnightButtonClose); + }; } } diff --git a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.csproj b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.csproj index 75bc4a4..51fa432 100644 --- a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.csproj +++ b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.csproj @@ -23,6 +23,9 @@ <None Update="Content\Giant VASEN.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> + <None Update="Content\GiantEtu.png"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </None> </ItemGroup> </Project> -- GitLab