Changeset 3454


Ignore:
Timestamp:
2012-07-02 14:58:57 (8 years ago)
Author:
nikatais
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/27/NikoKa/pong/pong/pong/pong.cs

    r3433 r3454  
    1111    public override void Begin() 
    1212    { 
    13         PhysicsObject pallo = new PhysicsObject(50, 50); 
    14         Add(pallo); 
    15         pallo.Shape = Shape.Circle; 
    16         pallo.Color = Color.Purple; 
    17         Vector impulssi = new Vector(500, 0); 
    18         pallo.Hit(impulssi); 
     13        PhysicsObject spyro = new PhysicsObject(100,0); 
     14        Add(spyro); 
     15        spyro.Shape = Shape.Diamond; 
     16        spyro.Color = Color.Purple; 
     17        Vector impulssi = new Vector(10000, 0); 
     18        spyro.Hit(impulssi); 
     19        Level.CreateBorders(1.0, false); 
     20        Level.BackgroundColor = Color.Black; 
     21        spyro.Restitution = 1.0; 
     22         
     23         
     24      
     25 
    1926        // TODO: Kirjoita ohjelmakoodisi tähän 
    2027 
    2128        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
    2229        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     30    } 
     31} 
    2332   
    2433 
Note: See TracChangeset for help on using the changeset viewer.