Changeset 1725 for 2011/23


Ignore:
Timestamp:
2011-06-06 15:26:02 (8 years ago)
Author:
tipan
Message:

Tein Pongia.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/tipan/Pong/Pong/Pong/Peli.cs

    r1715 r1725  
    99public class Peli : PhysicsGame 
    1010{ 
    11     Vector nopeusYlos = new Vector(0, 200); 
    12     Vector nopeusAlas = new Vector(0, -200); 
     11    Vector nopeusYlos = new Vector(0, 400); 
     12    Vector nopeusAlas = new Vector(0, -400); 
    1313 
    1414    PhysicsObject pallo; 
     
    1818    PhysicsObject vasenReuna; 
    1919    PhysicsObject oikeaReuna; 
     20    PhysicsObject ylaReuna; 
     21    PhysicsObject alaReuna; 
    2022 
    2123    IntMeter P1score; 
     
    5456        oikeaReuna.IsVisible = false; 
    5557 
    56         PhysicsObject ylaReuna = Level.CreateTopBorder(); 
    57         ylaReuna.Restitution = 1.0; 
     58        ylaReuna = Level.CreateTopBorder(); 
     59        ylaReuna.Restitution = 2.0; 
    5860        ylaReuna.IsVisible = false; 
    5961 
    60         PhysicsObject alaReuna = Level.CreateBottomBorder(); 
    61         alaReuna.Restitution = 1.0; 
     62        alaReuna = Level.CreateBottomBorder(); 
     63        alaReuna.Restitution = 2.0; 
    6264        alaReuna.IsVisible = false; 
    6365 
     
    7981            P2score.Value += 1; 
    8082        } 
     83        if (kohde == ylaReuna) 
     84        { 
    8185 
     86        } 
     87        if (kohde == alaReuna) 
     88        { 
     89 
     90        } 
    8291    } 
    8392 
Note: See TracChangeset for help on using the changeset viewer.