Skip to content
Snippets Groups Projects
Commit 6aec2e5c authored by Pekka Pihlajamaa's avatar Pekka Pihlajamaa
Browse files

varmuuskopsu

parent 123d22e3
No related branches found
No related tags found
No related merge requests found
...@@ -73,10 +73,13 @@ namespace Hiko ...@@ -73,10 +73,13 @@ namespace Hiko
} }
void LuoMaavihu(Vector paikka, double leveys, double korkeus) void LuoMaavihu(Vector paikka, double leveys, double korkeus)
{ {
PhysicsObject maavihu = new PhysicsObject(leveys, korkeus); PlatformCharacter maavihu = new PlatformCharacter(leveys, korkeus);
maavihu.Shape = Shape.Circle; maavihu.Shape = Shape.Circle;
maavihu.Color = Color.Blue; maavihu.Color = Color.Blue;
maavihu.Position = paikka; maavihu.Position = paikka;
PlatformWandererBrain tasoaivot = new PlatformWandererBrain();
tasoaivot.Speed = 100;
maavihu.Brain = tasoaivot;
maavihu.Image = LoadImage("örkki"); maavihu.Image = LoadImage("örkki");
Add(maavihu); Add(maavihu);
} }
......
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