source: 2011/26/JouniM/Pong/Pong/Pong/Peli.cs @ 2164

Revision 2164, 730 bytes checked in by juiitamm, 11 years ago (diff)

Talletus.

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     PhysicsObject pallo = new PhysicsObject (40.0, 40.0 ) ;
15        Add ( pallo );
16        pallo.Shape = Shape.Heart;
17        pallo.Color = Color.LimeGreen;
18        pallo.X = -300.0;
19        pallo.Y = 0.0;
20        Vector impulssi = new Vector(250.0, 45.0);
21        pallo.Hit(impulssi);
22   
23
24        Level.CreateBorders ( 1.1, false ) ;
25        pallo.Restitution = 1.1;
26        Level.BackgroundColor = Color.DarkGray;
27    }
28}
Note: See TracBrowser for help on using the repository browser.