source: 2012/27/NikoKa/pong/pong/pong/pong.cs @ 3433

Revision 3433, 675 bytes checked in by juiitamm, 10 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 pong : PhysicsGame
10{
11    public override void Begin()
12    {
13        PhysicsObject pallo = new PhysicsObject(50, 50);
14        Add(pallo);
15        pallo.Shape = Shape.Circle;
16        pallo.Color = Color.Purple;
17        Vector impulssi = new Vector(500, 0);
18        pallo.Hit(impulssi);
19        // TODO: Kirjoita ohjelmakoodisi tähän
20
21        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
22        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
23 
24
Note: See TracBrowser for help on using the repository browser.