Changeset 4117 for 2013/24


Ignore:
Timestamp:
2013-06-13 13:31:02 (6 years ago)
Author:
juelreim
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/24/JuhoR/Pong/Pong/Pong/Pong.cs

    r4113 r4117  
    4141        pallo.KineticFriction = 0.0; 
    4242        pallo.MomentOfInertia = Double.PositiveInfinity; 
     43 
    4344        Add(pallo); 
    4445        AddCollisionHandler(pallo, KasittelePallonTormays); 
     
    7879        maila.X = x; 
    7980        maila.Y = y; 
     81         
    8082        maila.Restitution = 1.0; 
    8183        maila.KineticFriction = 0.0; 
     
    139141        Keyboard.Listen(Key.F1, ButtonState.Pressed, ShowControlHelp, "Näytä ohjeet"); 
    140142        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    141  
    142         ControllerOne.Listen(Button.DPadUp, ButtonState.Down, AsetaNopeus, "Liikuta mailaa ylös", maila1, nopeusYlos); 
    143         ControllerOne.Listen(Button.DPadUp, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
    144         ControllerOne.Listen(Button.DPadDown, ButtonState.Down, AsetaNopeus, "Liikuta mailaa alas", maila1, nopeusAlas); 
    145         ControllerOne.Listen(Button.DPadDown, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
    146  
    147         ControllerTwo.Listen(Button.DPadUp, ButtonState.Down, AsetaNopeus, "Liikuta mailaa ylös", maila2, nopeusYlos); 
    148         ControllerTwo.Listen(Button.DPadUp, ButtonState.Released, AsetaNopeus, null, maila2, Vector.Zero); 
    149         ControllerTwo.Listen(Button.DPadDown, ButtonState.Down, AsetaNopeus, "Liikuta mailaa alas", maila2, nopeusAlas); 
    150         ControllerTwo.Listen(Button.DPadDown, ButtonState.Released, AsetaNopeus, null, maila2, Vector.Zero); 
    151  
    152         ControllerOne.Listen(Button.Back, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    153         ControllerTwo.Listen(Button.Back, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    154143    } 
    155144 
Note: See TracChangeset for help on using the changeset viewer.