Skip to content
Snippets Groups Projects
Commit b51f4694 authored by Vesa Lappalainen's avatar Vesa Lappalainen :bicyclist:
Browse files

varoituksia pois ElaimetPerimalla

parent 77f80f9b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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