Skip to content
Snippets Groups Projects
Commit cd2d4d3b authored by Toivanen Suvi Leena Anneli's avatar Toivanen Suvi Leena Anneli
Browse files

poistin turhat neliöt

parent b07ae576
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -18,6 +18,7 @@ public class pomppu_possu : PhysicsGame
{Level.Size = new Vector(1920, 1080);
SetWindowSize(1920, 1080);
CenterWindow();
Camera.ZoomToAllObjects(100);
Level.CreateBorders();
Level.Background.Color = Color.SpringGreen;
......@@ -29,17 +30,6 @@ public class pomppu_possu : PhysicsGame
Keyboard.Listen(Key.Left, ButtonState.Down, Liikuta, "Liikuttaa pelaajaa vasemmalle", pomppuPossu, new Vector(-1000,0));
Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikuttaa pelaajaa oikealle", pomppuPossu, new Vector(1000,0));
for (int i = 0; i < 20; i++)
{
Color[] varit = { Color.Red, Color.Yellow, Color.Green };
Megaporkkanat pisteet = new Megaporkkanat(50, 50, varit);
pisteet.Position = RandomGen.NextVector(Level.BoundingRect);
AddCollisionHandler<PhysicsObject, Megaporkkanat>(pomppuPossu, pisteet, TormattiinEsineeseen);
Add(pisteet);
}
for (int i = 0; i < 10; i++)
{
Color[] varit = { Color.Black, Color.White };
......
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