Changeset 2678 for 2012/JAO


Ignore:
Timestamp:
2012-04-16 10:57:57 (8 years ago)
Author:
anonymous
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/JAO/Sonja venäläinen/pong/pong/pong/pong.cs

    r2667 r2678  
    1111    public override void Begin() 
    1212    { 
     13        PhysicsObject pallo = new PhysicsObject(40.0, 40.0); 
     14        pallo.Shape = Shape.Circle; 
     15        Add(pallo); 
     16        pallo.X = -200.0; 
     17        pallo.Y = 0.0; 
     18        Vector impulssi = new Vector(500.0, 100); 
     19        pallo.Hit(impulssi); 
     20        Level.CreateBorders(); 
     21        pallo.Restitution = 1.0; 
     22        Level.CreateBorders(1.0, false); 
     23        Level.BackgroundColor = Color.Black; 
     24        Camera.ZoomToLevel(); 
     25 
     26 
     27 
     28 
    1329        // TODO: Kirjoita ohjelmakoodisi tähän 
    1430 
Note: See TracChangeset for help on using the changeset viewer.