source: 2016/25/PetteriR/Pang/Pang/Pang/Pang.cs @ 7451

Revision 7451, 748 bytes checked in by koannak, 5 years ago (diff)
Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class Pang : PhysicsGame
10{
11    public override void Begin()
12    {
13        // TODO: Kirjoita ohjelmakoodisi tähän
14        PhysicsObject pallo = new PhysicsObject(50, 50);
15        pallo.Shape = Shape.Circle;
16        pallo.Color = Color.Gold;
17        Add(pallo);
18        pallo.X = -200.0;
19        pallo.Y = 0.0;
20        Vector impulssi = new Vector(500.0, 0.0);
21        Level.Background.CreateGradient(Color.Black, Color.Blue);
22        Level.CreateBorders();
23
24
25
26
27        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
28
29    }
30}
Note: See TracBrowser for help on using the repository browser.