Changeset 8484 for 2017


Ignore:
Timestamp:
2017-06-09 13:47:34 (2 years ago)
Author:
nupeohje
Message:
 
Location:
2017/23/EelisK/Windcaller
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 2017/23/EelisK/Windcaller/Windcaller/Windcaller/Windcaller.cs

    r8477 r8484  
    14751475        Keyboard.Listen(Key.Left, ButtonState.Down, MovePlayer, null, new Vector(-player1.nopeus, 0), Left); 
    14761476        Keyboard.Listen(Key.Right, ButtonState.Down, MovePlayer, null, new Vector(player1.nopeus, 0), Right); 
     1477        Keyboard.Listen(Key.N, ButtonState.Pressed, () => 
     1478        { 
     1479            player1.IgnoresCollisionResponse = true; 
     1480 
     1481        }, null); 
     1482        Keyboard.Listen(Key.N, ButtonState.Released, () => 
     1483        { 
     1484            player1.IgnoresCollisionResponse = false; 
     1485 
     1486        }, null); 
    14771487 
    14781488        //Keyboard.Listen(Key.Space, ButtonState.Pressed, CameraShake, null,20.0, 0.3); 
Note: See TracChangeset for help on using the changeset viewer.