diff --git a/luennot/luento16/HangryDog/Luokat.cs b/luennot/luento16/HangryDog/Luokat.cs index 0a98ae043a994c89004b6441bc55f1b49c96b08b..77f1e4a3438a0ef1266be3e952f4af074629d675 100644 --- a/luennot/luento16/HangryDog/Luokat.cs +++ b/luennot/luento16/HangryDog/Luokat.cs @@ -30,9 +30,8 @@ public class Efektit public class Syotava : PhysicsObject { public Syotava(PhysicsGame peli, double w, Vector p, string tunniste, int elinaika) - : base(w, w) + : base(w, w, p.X, p.Y) { - this.Position = p; this.Image = Game.LoadImage(tunniste); this.Height = this.Width * this.Image.Height / this.Image.Width; peli.Add(this); @@ -70,9 +69,8 @@ public class Elain : PhysicsObject // PlatformCharacter private bool vasen ; public Elain(PhysicsGame peli, double w, Vector p, string nimi, string tunniste) - : base(w, w) + : base(w, w, p.X, p.Y) { - this.Position = p; this.Image = Game.LoadImage(tunniste); this.Tag = tunniste; this.Height = this.Width * this.Image.Height / this.Image.Width;