Skip to content
Snippets Groups Projects
Commit 2d14929f authored by Mäkinen Maria Isabella's avatar Mäkinen Maria Isabella
Browse files

kissa ai testi / kesken

parent 791d1ee8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
PhysicsObject kissa = new PhysicsObject(20.0, 20.0);
......
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