Changeset 1320 for 2010/30


Ignore:
Timestamp:
2010-07-27 13:04:38 (9 years ago)
Author:
nilaiton
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2010/30/nilaiton/Pong/Peli.cs

    r1310 r1320  
    4242        maila2 = LuoMaila(Level.Right - 20.0, 0.0); 
    4343        pallo.Color = Color.Fuchsia; 
    44         pallo.Velocity = new Vector ( 20.0, 20.0); 
     44        pallo.Velocity = new Vector ( 35.0, 35.0); 
    4545 
    4646        PhysicsObject pallo2; 
    4747 
    4848        pallo2 = new PhysicsObject(60.0, 60.0); 
    49         pallo2.Shape = Shapes.Triangle; 
     49        pallo2.Shape = Shapes.Rectangle; 
    5050        Add(pallo2); 
    5151        pallo2.X = -200.0; 
     
    5555        
    5656        pallo2.Color = Color.SkyBlue; 
    57         pallo2.Velocity = new Vector(20.0, 20.0); 
     57        pallo2.Velocity = new Vector(35.0, 35.0); 
    5858        pallo2.Restitution = 1.0; 
    59         AddCollisionHandler(pallo, KasittelePallonTormays); 
     59        AddCollisionHandler(pallo2, KasittelePallonTormays); 
     60 
     61        PhysicsObject pallo3; 
     62 
     63        pallo3 = new PhysicsObject(50.0, 50.0); 
     64        pallo3.Shape = Shapes.Circle; 
     65        Add(pallo3); 
     66        pallo3.X = -140.0; 
     67        pallo3.Y = 6.0; 
     68        pallo3.CanRotate = true; 
     69        pallo3.KineticFriction = 0.0; 
     70 
     71        pallo3.Color = Color.Maroon; 
     72        pallo3.Velocity = new Vector(35.0, 35.0); 
     73        pallo3.Restitution = 1.0; 
     74        AddCollisionHandler(pallo3, KasittelePallonTormays); 
    6075       
     76 
    6177        vasenReuna = Level.CreateLeftBorder(); 
    6278        vasenReuna.Restitution = 1.0; 
Note: See TracChangeset for help on using the changeset viewer.