diff --git a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs index 014136a88345c14195ea373ecc65ff36070e4c21..cf76761ea85cd6560fdf247db9cb5c475db98879 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