source: trunk/esimerkit/Pong/Vaihe1/Pong.cs @ 4058

Revision 3129, 498 bytes checked in by juiitamm, 6 years ago (diff)
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Jypeli;
6using Jypeli.Assets;
7using Jypeli.Controls;
8using Jypeli.Effects;
9using Jypeli.Widgets;
10
11public class Pong : PhysicsGame
12{
13    public override void Begin()
14    {
15        PhysicsObject pallo = new PhysicsObject(40.0, 40.0);
16        pallo.Shape = Shape.Circle;
17        Add(pallo);
18
19        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
20    }
21}
Note: See TracBrowser for help on using the repository browser.