source: 2011/24/PauliN/Futis.cs @ 2040

Revision 1991, 795 bytes checked in by paaaanro, 8 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 Peli : PhysicsGame
10{
11    public override void Begin()
12    {
13        // TODO: Kirjoita ohjelmakoodisi tähän
14       
15    PhysicsObject pallo = new PhysicsObject(45, 45);
16    pallo.Shape = Shape.Circle;
17    Add ( pallo );
18    pallo.X = 0;
19    pallo.Y = 100;
20    pallo.Color = Color.Yellow;
21    pallo.Restitution = 0.8;
22
23
24    Level.BackgroundColor = Color.LightBlue;
25
26
27
28    Vector impulssi = new Vector(0, -200);
29    pallo.Hit(impulssi);
30
31    Level.CreateLeftBorder();
32
33    Level.CreateBottomBorder();
34
35    Level.CreateRightBorder();
36
37    Level.CreateTopBorder();
38
39
40
41    }
42   
43
44
45
46}
Note: See TracBrowser for help on using the repository browser.