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

pallot lisätty hahmojen paikoiksi valikkoon

parent d27e034c
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ public class SimulaattoriPeli : PhysicsGame
private GameObject Areena; //luo areenan alueen
private GameObject Hahmot; //luo hahmojen valinta alueen
private GameObject Ohjeet; //luo ohjeet
private GameObject HahmotPaikka;
public override void Begin()
{
......@@ -55,10 +55,16 @@ public class SimulaattoriPeli : PhysicsGame
Hahmot.Position = new Vector(-750, 0); //Hahmojen alueen sijainti
Add(Hahmot); //lisää hahmojen alueen
HahmotPaikka = new GameObject(150, 150, Shape.Circle); //Luo hahmojen paikat
HahmotPaikka.Color = Color.White; //Hahmojen paikka väri
HahmotPaikka.Position = new Vector(-750, 300);
Add(HahmotPaikka);
for (int jakso = 0; jakso < 2; jakso++)
{
for (int rivi = 0; rivi < 4; rivi++)
{
GameObject HahmotPaikka = new GameObject(150, 150, Shape.Circle); //Luo hahmojen paikat
HahmotPaikka.Color = Color.White; //Hahmojen paikka väri
HahmotPaikka.Position = new Vector(-850 + jakso * 200, 300 - rivi * 220);
Add(HahmotPaikka);
}
}
Label hahmotOtsikko = new Label("Characters"); //teksti hahmojen alueelle
hahmotOtsikko.TextColor = Color.Black; // tekstin väri
......
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