source: 2017/utsjoki/SimoR/Pong/Pong/Pong/Pong.cs @ 9057

Revision 9057, 548 bytes checked in by sieerinn, 2 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 Pong : PhysicsGame
10{
11    public override void Begin()
12    {
13        // TODO: Kirjoita ohjelmakoodisi tähän
14
15        PhysicsObject pallo = new PhysicsObject(40, 40);
16        pallo.Shape = Shape.Circle;
17        pallo.Color = Color.Red;
18        Add(pallo);
19       
20        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
21    }
22}
Note: See TracBrowser for help on using the repository browser.