Ignore:
Timestamp:
2017-07-26 14:49:34 (2 years ago)
Author:
npo17_57
Message:

Reunat, räjähdys ja pistelaskuri lisätty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2017/30/SamuliR/Pong/Pong/Pong/Pong.cs

    r9067 r9136  
    1212public class Pong : PhysicsGame 
    1313{ 
    14     Vector nopeusYlos = new Vector(0, 200); 
    15     Vector nopeusAlas = new Vector(0, -200); 
     14    Vector nopeusYlos = new Vector(0, 1200); 
     15    Vector nopeusAlas = new Vector(0, -1200); 
    1616 
    1717    PhysicsObject pallo; 
     
    3636    { 
    3737        pallo = new PhysicsObject(40.0, 40.0); 
    38         pallo.Shape = Shape.Triangle; 
    39         pallo.X = -200.0; 
     38        pallo.Shape = Shape.Circle; 
     39        pallo.X = -400.0; 
    4040        pallo.Y = 0.0; 
    4141        pallo.Restitution = 1.0; 
     
    6868        alaReuna.KineticFriction = 0.0; 
    6969 
    70         Level.BackgroundColor = Color.Beige; 
     70        Level.BackgroundColor = Color.Red; 
    7171 
    7272        Camera.ZoomToLevel(); 
     
    139139 
    140140        Keyboard.Listen(Key.F1, ButtonState.Pressed, ShowControlHelp, "Näytä ohjeet"); 
    141         Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     141        Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, "Lopeta peli"); 
    142142 
    143143        ControllerOne.Listen(Button.DPadUp, ButtonState.Down, AsetaNopeus, "Liikuta mailaa ylös", maila1, nopeusYlos); 
Note: See TracChangeset for help on using the changeset viewer.