Ignore:
Timestamp:
2016-06-14 13:52:54 (3 years ago)
Author:
tesatapa
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/24/EveliinaL/Pong/Pong/Pong/Pong.cs

    r7273 r7286  
    3737        pallo.Restitution = 1.0; 
    3838        pallo.KineticFriction = 0.0; 
    39         pallo.MomentOfInertia = Double.PositiveInfinity; 
     39        pallo.MomentOfInertia = double.PositiveInfinity; 
    4040        Add(pallo); 
    4141        AddCollisionHandler(pallo, KasittelePallonTormays); 
     
    4444        maila2 = LuoMaila(Level.Right - 20.0, 0.0); 
    4545 
    46         PhysicsObject vasenReuna = Level.CreateLeftBorder(); 
     46        vasenReuna = Level.CreateLeftBorder(); 
    4747        vasenReuna.Restitution = 1.0; 
    4848        vasenReuna.KineticFriction = 0.0; 
    4949        vasenReuna.IsVisible = false; 
    5050 
    51         PhysicsObject oikeaReuna = Level.CreateRightBorder(); 
     51        oikeaReuna = Level.CreateRightBorder(); 
    5252        oikeaReuna.Restitution = 1.0; 
    5353        oikeaReuna.KineticFriction = 0.0; 
     
    7070    PhysicsObject LuoMaila(double x, double y) 
    7171    { 
    72         PhysicsObject maila = PhysicsObject.CreateStaticObject(20.0, 100.0); 
    73         maila.Shape = Shape.Rectangle; 
     72        PhysicsObject maila = PhysicsObject.CreateStaticObject(30.0, 150.0); 
     73        maila.Shape = Shape.Ellipse; 
    7474        maila.X = x; 
    7575        maila.Y = y; 
Note: See TracChangeset for help on using the changeset viewer.