Changeset 1873 for 2011/23/tojukarp


Ignore:
Timestamp:
2011-06-10 11:14:38 (8 years ago)
Author:
tojukarp
Message:

New game

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/tojukarp/EuroPacman/EuroPacman/EuroPacman/Peli.cs

    r1842 r1873  
    4848        Keyboard.Listen(Key.Up, ButtonState.Down, Liiku, null, pacman, 30 * Vector.UnitY); 
    4949        Keyboard.Listen(Key.Down, ButtonState.Down, Liiku, null, pacman, -30 * Vector.UnitY); 
     50        Keyboard.Listen(Key.Enter, ButtonState.Pressed, UusiPeli, null); 
    5051 
    5152        AddCollisionHandler(pacman, PacmanTormaa); 
     53    } 
     54 
     55    void UusiPeli() 
     56    { 
     57        ClearAll(); 
     58        esCounter.Reset(); 
     59        Begin(); 
    5260    } 
    5361 
Note: See TracChangeset for help on using the changeset viewer.