source: 2016/30/AleksiN/name/name/name/name.cs @ 8096

Revision 8096, 665 bytes checked in by empaheik, 3 years ago (diff)
RevLine 
[8096]1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class name : PhysicsGame
10{
11    public override void Begin()
12    {
13        PhysicsObject leftTire = new PhysicsObject(100.0, 100.0, Shape.Circle);
14        PhysicsObject rightTire = new PhysicsObject(100.0, 100.0, Shape.Circle);
15        Add(leftTire);
16        Add(rightTire);
17        leftTire.X = -100.0;
18        leftTire.Y = 0.0;
19        rightTire.X = 100.0;
20        rightTire.Y = 0.0;
21
22        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
23    }
24}
Note: See TracBrowser for help on using the repository browser.