source: 2017/23/JouniP/Pallopeli/Pallopeli/Pallopeli/Pallopeli.cs @ 8452

Revision 8452, 746 bytes checked in by nupeohje, 6 years ago (diff)

taustaväri vaihdettu mustaan.

Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class Pallopeli : PhysicsGame
10{
11    public override void Begin()
12    {
13        // tehdään pallo:
14        PhysicsObject pallo = new PhysicsObject(100.0, 100.0);
15        pallo.Shape = Shape.Hexagon;
16        pallo.Color = Color.HotPink;
17        Add(pallo);
18
19        Gravity = new Vector(0.0, -300.0);  // painovoima!
20       
21        Level.CreateBorders(); // lisätään reunat
22        Level.Background.Color = Color.Black;
23
24            // tämäkin on kommentti.
25        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
26    }
27}
Note: See TracBrowser for help on using the repository browser.