Changeset 8843 for 2017/27/MikaelL


Ignore:
Timestamp:
2017-07-03 14:57:15 (2 years ago)
Author:
npo17_33
Message:

olen menossa 3ja4 vaihteessa

Location:
2017/27/MikaelL/pong
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 2017/27/MikaelL/pong/pong/pong/pong.cs

    r8830 r8843  
    3131        pallo.X = -200.0; 
    3232        pallo.Y = 0.0; 
     33 
     34        PhysicsObject maila = PhysicsObject.CreateStaticObject(20.0, 100.0); 
     35        maila.Shape = Shape.Rectangle; 
     36        maila.X = Level.Left + 20.0; 
     37        maila.Y = 0.0; 
     38        maila.Restitution = 1.0; 
     39        Add(maila); 
    3340        Level.CreateBorders(1.0, false); 
    3441        pallo.Restitution = 1.0; 
     
    3845 
    3946    } 
     47    void AloitaPeli () 
     48    { 
     49        Vector inpulssi = new Vector(500.0, 0.0); 
     50        pallo.Hit(inpulssi); 
     51    } 
    4052} 
Note: See TracChangeset for help on using the changeset viewer.