source: 2017/30/TimoH/ponki/ponki/ponki/ponki.cs @ 9235

Revision 9035, 709 bytes checked in by npo17_63, 3 years ago (diff)

walrus pelin alotus

Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class ponki : PhysicsGame
10{
11    public override void Begin()
12    {
13
14        PhysicsObject pallo = new PhysicsObject(40.0, 40.0);
15        pallo.Shape = Shape.Circle;
16        pallo.Color = Color.Black;
17        Add(pallo);
18        Vector impulssi = new Vector(1000.0, -500.0);
19        pallo.Hit(impulssi);
20
21
22        Level.CreateBorders(1.2, false);
23        Level.Background.Color = Color.Red;
24        pallo.Restitution = 1.2;
25
26
27        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
28    }
29}
Note: See TracBrowser for help on using the repository browser.