using System; using System.Collections.Generic; using Jypeli; using Jypeli.Assets; using Jypeli.Controls; using Jypeli.Effects; using Jypeli.Widgets; public class Peli : PhysicsGame { public override void Begin() { Gravity = new Vector(0, -1000); for (int i = 0; i < 25; i++) { PhysicsObject norsupallo = new PhysicsObject(50, 50, Shape.Circle); norsupallo.Image = LoadImage("norsu"); norsupallo.X = RandomGen.NextDouble(Level.Left + 25, Level.Right - 25); norsupallo.Y = Level.Top - 25; Add(norsupallo); } Level.BackgroundColor = Color.DarkViolet; Level.CreateBorders(); } }