From 7709a74b598ab48db2f8939a128e65517eda377a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A4iv=C3=B6=20Jimi=20Sebastian?= <jiminaivo@gmail.com> Date: Tue, 12 Nov 2024 10:59:13 +0200 Subject: [PATCH] !KESKEN! hahmojen paikat --- SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs index 014136a..cf76761 100644 --- a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs +++ b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs @@ -45,7 +45,11 @@ public class SimulaattoriPeli : PhysicsGame Hahmot = new GameObject(450, 1000, Shape.Rectangle); //Luo Hahmojen alueen Hahmot.Color = Color.Pink; //Hahmojen valinta alueen väri Hahmot.Position = new Vector(-750, 0); //Hahmojen alueen sijainti - Add(Hahmot); //lisää hahmojen alueen + Add(Hahmot); //lisää hahmojen alueen + + HahmotPaikka = new GameObject(100, 100, Shape.Circle); //Luo hahmojen paikat + HahmotPaikka.Color = Color.White; //Hahmojen paikka väri + Hahmot.Add(HahmotPaikka); KESKEN Label hahmotOtsikko = new Label("Characters"); //teksti hahmojen alueelle hahmotOtsikko.TextColor = Color.Black; // tekstin väri -- GitLab