From 2d14929fedf57c311caf6b3e1d117f3597a96b61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A4kinen=20Maria=20Isabella?= <makinenmaria27@gmail.com>
Date: Thu, 14 Nov 2024 09:44:24 +0200
Subject: [PATCH] kissa ai testi / kesken

---
 .../SimulaattoriPeli/SimulaattoriPeli.cs           | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs
index 1608cc0..aed1a8d 100644
--- a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs
+++ b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs
@@ -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);
-- 
GitLab