Changeset 1330 for 2010/30/alkivima


Ignore:
Timestamp:
2010-07-27 14:57:35 (9 years ago)
Author:
alkivima
Message:

alotin autopelin teon

Location:
2010/30/alkivima
Files:
11 added
1 edited

Legend:

Unmodified
Added
Removed
  • 2010/30/alkivima/Pong/Peli.cs

    r1273 r1330  
    3030    { 
    3131    pallo = new PhysicsObject(40.0, 40.0); 
    32         //PhysicsObject pallo = new PhysicsObject(50.8, 40.0); 
    3332        pallo.Shape = Shapes.Circle; 
    34         //pallo.Shape = Shapes.Rectangle; 
    3533        pallo.X = 0.0; 
    3634        pallo.Y = 0.0; 
     
    4038        AddCollisionHandler(pallo, KasittelePallonTormays); 
    4139 
    42         maila1 = LuoMaila(Level.Left + 15.0, 0.0); 
    43         maila2 = LuoMaila(Level.Right - 15.0, 0.0); 
     40        maila1 = LuoMaila(Level.Left + 20.0, 0.0); 
     41        maila2 = LuoMaila(Level.Right - 20.0, 0.0); 
    4442 
    4543        vasenReuna = Level.CreateLeftBorder(); 
     
    8684        Keyboard.Listen(Key.S, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikuta mailaa alas", maila1, nopeusAlas); 
    8785        Keyboard.Listen(Key.S, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
    88  
     86         
    8987        Keyboard.Listen(Key.Up, ButtonState.Down, AsetaNopeus, "Pelaaja 2: Liikuta mailaa ylös", maila2, nopeusYlos); 
    9088        Keyboard.Listen(Key.Up, ButtonState.Released, AsetaNopeus, null, maila2, Vector.Zero); 
Note: See TracChangeset for help on using the changeset viewer.