Ignore:
Timestamp:
2016-06-17 10:24:10 (4 years ago)
Author:
eemjohla
Message:
 
File:
1 edited

Legend:

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

    r7295 r7407  
    3838    void LuoKentta() 
    3939    { 
    40         pallo = new PhysicsObject(40.0, 40.0); 
     40        pallo = new PhysicsObject(70.0, 70.0); 
    4141        pallo.Shape = Shape.Circle; 
    4242        pallo.Color = RandomGen.NextColor(); 
     
    4444        pallo.Y = 0.0; 
    4545        pallo.Restitution = 2.0; 
     46        pallo.Image = LoadImage("PallonKuva"); 
    4647 
    4748        Add(pallo); 
     
    7172 
    7273 
    73         Level.Background.Color = Color.Blue; 
     74        Level.Background.Image = LoadImage("Taustakuva"); 
     75        Level.Background.Color = RandomGen.NextColor(); 
    7476 
    7577        AddCollisionHandler(pallo, KasittelePallonTormays); 
     
    8587    PhysicsObject LuoMaila(double X, double Y) 
    8688    { 
    87         PhysicsObject maila = PhysicsObject.CreateStaticObject(20.0, 100.0); 
    88         maila.Shape = Shape.Hexagon; 
     89        PhysicsObject maila = PhysicsObject.CreateStaticObject(20.0, 130.0); 
     90        maila.Shape = Shape.Circle; 
    8991        maila.X = X; 
    9092        maila.Y = Y; 
     
    190192        pelaajan1Pisteet.Value = 0; 
    191193        pelaajan2Pisteet.Value = 0; 
    192       
    193        } 
     194        ClearAll(); 
     195        Begin(); 
     196 
     197    } 
    194198 
    195199} 
Note: See TracChangeset for help on using the changeset viewer.