Changeset 1348


Ignore:
Timestamp:
2010-07-28 09:47:39 (9 years ago)
Author:
paaaanro
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2010/30/janiemit/pong/Peli.cs

    r1299 r1348  
    5050        vasenReuna = Level.CreateLeftBorder(); 
    5151 
    52  
    53  
     52        pallo = new PhysicsObject(40.0, 40.0); 
    5453        pallo.Restitution = (1.0); 
    5554        maila1 = LuoMaila(Level.Left + 20.0, 0.0, Color.GreenYellow); 
    5655        maila2 = LuoMaila(Level.Right - 20.0, 0.0, Color.Red);  
    5756        AddCollisionHandler(pallo, KasittelePallonTormays); 
    58  
     57        Add(pallo); 
    5958 
    6059 
     
    6463 
    6564    } 
     65 
    6666    void AloitaPeli() 
    6767    { 
    6868        Vector impulssi = new Vector(500.0, 0.0); 
    6969        pallo.Hit(impulssi); 
     70    } 
    7071 
    71     } 
    7272    PhysicsObject LuoMaila(double x, double y, Color vari) 
    7373    { 
Note: See TracChangeset for help on using the changeset viewer.