Skip to content
Snippets Groups Projects
Commit 78b76aa4 authored by Näivö Jimi Sebastian's avatar Näivö Jimi Sebastian
Browse files

INFO NAPIT PAIKOILLAAN JA KAIKKI TOIMII YIPPE LIVE LOVE LAUGH JA SILLLEEEE

parent ee21b1f5
No related branches found
No related tags found
No related merge requests found
SimulaattoriPeli/SimulaattoriPeli/Content/GiantEtu.png

1.08 KiB

......@@ -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);
};
}
}
......
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment