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

Revision 3454, 838 bytes checked in by nikatais, 8 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 spyro = new PhysicsObject(100,0);
14        Add(spyro);
15        spyro.Shape = Shape.Diamond;
16        spyro.Color = Color.Purple;
17        Vector impulssi = new Vector(10000, 0);
18        spyro.Hit(impulssi);
19        Level.CreateBorders(1.0, false);
20        Level.BackgroundColor = Color.Black;
21        spyro.Restitution = 1.0;
22       
23       
24     
25
26        // TODO: Kirjoita ohjelmakoodisi tähän
27
28        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
29        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
30    }
31}
32 
33
Note: See TracBrowser for help on using the repository browser.