Changeset 4644 for 2013/30


Ignore:
Timestamp:
2013-07-24 18:52:50 (6 years ago)
Author:
alraniko
Message:
 
Location:
2013/30/AleksiK
Files:
59 added
6 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/AleksiK/Hazy Maze Game/Hazy Maze Game/Hazy Maze Game/Hazy_Maze_Game.cs

    r4633 r4644  
    8686 
    8787        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    88         Level.Background.Color = Color.Black; 
     88        Level.BackgroundColor = Color.Black; 
    8989 
    9090        LuoKolikkoLaskuri(); 
  • 2013/30/AleksiK/Pong/Pong/Pong/Pong.cs

    r4520 r4644  
    115115        Keyboard.Listen(Key.Left, ButtonState.Down, AsetaNopeus, null, maila2, nopeusVasen); 
    116116        Keyboard.Listen(Key.Left, ButtonState.Released, AsetaNopeus, null, maila2, Vector.Zero); 
     117 
     118 
     119 
     120        Keyboard.Listen(Key.I, ButtonState.Down, AsetaPallonNopeus, null, pallo, nopeusYlos); 
     121        Keyboard.Listen(Key.I, ButtonState.Released, AsetaPallonNopeus, null, pallo, Vector.Zero); 
     122        Keyboard.Listen(Key.K, ButtonState.Down, AsetaPallonNopeus, null, pallo, nopeusAlas); 
     123        Keyboard.Listen(Key.K, ButtonState.Released, AsetaPallonNopeus, null, pallo, Vector.Zero); 
     124 
     125        Keyboard.Listen(Key.L, ButtonState.Down, AsetaPallonNopeus, null, pallo, nopeusOikea); 
     126        Keyboard.Listen(Key.L, ButtonState.Released, AsetaPallonNopeus, null, pallo, Vector.Zero); 
     127        Keyboard.Listen(Key.J, ButtonState.Down, AsetaPallonNopeus, null, pallo, nopeusVasen); 
     128        Keyboard.Listen(Key.J, ButtonState.Released, AsetaPallonNopeus, null, pallo, Vector.Zero); 
    117129    } 
    118130 
     
    132144 
    133145        maila.Velocity = nopeus; 
     146    } 
     147 
     148    void AsetaPallonNopeus(PhysicsObject pallo, Vector nopeus) 
     149    { 
     150        pallo.Velocity = nopeus; 
    134151    } 
    135152 
Note: See TracChangeset for help on using the changeset viewer.