source: 2012/JAO/JuhoLehmusvyory/Pong/Pong/Pong/Pong.cs @ 2687

Revision 2687, 638 bytes checked in by anonymous, 8 years ago (diff)

tein pong-peliä

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(100, 100);
14        pallo.Shape = Shape.Circle;
15        Add(pallo);
16        pallo.Color = Color.Red;
17        Vector impulssi = new Vector(500, 0);
18        pallo.Hit(impulssi);
19       
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.