Changeset 2686 for 2012/JAO


Ignore:
Timestamp:
2012-04-16 10:59:31 (8 years ago)
Author:
anonymous
Message:

2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/JAO/roosa/pong/pong/pong/pong.cs

    r2676 r2686  
    1111    public override void Begin() 
    1212    { 
    13         // TODO: Kirjoita ohjelmakoodisi tähän 
    14  
     13        // TODO: alusta peli tässä  
     14        PhysicsObject pallo = new PhysicsObject(40.0, 40.0); 
     15        Add(pallo); 
     16        pallo.Shape = Shape.Circle; 
     17        pallo.X = -200.0; 
     18        pallo.Y = 0.0; 
     19        Vector impulssi = new Vector(500.0, 0.0); 
     20        pallo.Hit(impulssi); 
     21        Level.CreateBorders(1.0, false ); 
     22        pallo.Restitution = 1.0; 
     23        Level.BackgroundColor = Color.Black; 
     24        Camera.ZoomToLevel(); 
     25     
    1526        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
    1627        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
Note: See TracChangeset for help on using the changeset viewer.