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

Revision 8109, 851 bytes checked in by almajono, 3 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 name : PhysicsGame
10{
11    public override void Begin()
12    {
13        Surface level = Surface.CreateBottom(Level, 30, 100, 10, 100);
14        Add(level);
15
16        Gravity = new Vector(0.0, -800.0);
17
18        PhysicsObject leftTire = new PhysicsObject(50.0, 50.0, Shape.Circle);
19        PhysicsObject rightTire = new PhysicsObject(50.0, 50.0, Shape.Circle);
20        leftTire.X = -65.0;
21        leftTire.Y = 0.0;
22        rightTire.X = 65.0;
23        rightTire.Y = 0.0;
24        PhysicsStructure tires = new PhysicsStructure(leftTire, rightTire);
25        Add(tires);
26
27        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
28    }
29
30}
Note: See TracBrowser for help on using the repository browser.