source: 2013/30/TomiH/pong/pong/pong/pong.cs @ 4518

Revision 4518, 611 bytes checked in by totakahe, 7 years ago (diff)

Talletus.

Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class FysiikkaPeli1 : PhysicsGame
10{
11    public override void Begin()
12    {
13        // TODO: Kirjoita ohjelmakoodisi tähän
14        PhysicsObject pallo = new PhysicsObject(40.0, 40.0);
15        Add(pallo);
16        pallo.Shape = Shape.Circle;
17        pallo.Color = Color.Gold;
18        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
19        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
20    }
21}
Note: See TracBrowser for help on using the repository browser.