Changeset 6422 for 2015


Ignore:
Timestamp:
2015-06-26 07:31:18 (4 years ago)
Author:
sieerinn
Message:

Peliohjaimella voi pelata.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun.cs

    r6421 r6422  
    13321332        Keyboard.Listen(Key.Up, ButtonState.Down, delegate { startingPlayers[1].Jump(PLAYER_SPEED * 2); }, "Player 2 jumps"); 
    13331333        Keyboard.Listen(Key.RightShift, ButtonState.Pressed, delegate { startingPlayers[1].UseImprovement(); }, "Player 2 uses their tools"); 
    1334         Keyboard.Listen(Key.Enter, ButtonState.Pressed, GetRidOfImprovement, "Player 1 throws their tools away", startingPlayers[1]); 
     1334        Keyboard.Listen(Key.Enter, ButtonState.Pressed, GetRidOfImprovement, "Player 2 throws their tools away", startingPlayers[1]); 
     1335 
     1336        ControllerOne.Listen(Button.DPadLeft, ButtonState.Down, delegate { startingPlayers[0].Walk(-PLAYER_SPEED); }, "Player 1 moves left"); 
     1337        ControllerOne.Listen(Button.DPadRight, ButtonState.Down, delegate { startingPlayers[0].Walk(PLAYER_SPEED); }, "Player 1 moves right"); 
     1338        ControllerOne.Listen(Button.A, ButtonState.Down, delegate { startingPlayers[0].Jump(PLAYER_SPEED * 2); }, "Player 1 jumps");    //Just PLAYER_SPEED felt alright as well 
     1339        ControllerOne.Listen(Button.RightTrigger, ButtonState.Pressed, delegate { startingPlayers[0].UseImprovement(); }, "Player 1 uses their tools"); 
     1340        ControllerOne.Listen(Button.LeftTrigger, ButtonState.Pressed, GetRidOfImprovement, "Player 1 throws their tools away", startingPlayers[0]); 
     1341 
     1342        ControllerOne.Listen(Button.DPadLeft, ButtonState.Down, delegate { startingPlayers[1].Walk(-PLAYER_SPEED); }, "Player 2 moves left"); 
     1343        ControllerOne.Listen(Button.DPadRight, ButtonState.Down, delegate { startingPlayers[1].Walk(PLAYER_SPEED); }, "Player 2 moves right"); 
     1344        ControllerOne.Listen(Button.A, ButtonState.Down, delegate { startingPlayers[1].Jump(PLAYER_SPEED * 2); }, "Player 2 jumps");    //Just PLAYER_SPEED felt alright as well 
     1345        ControllerOne.Listen(Button.RightTrigger, ButtonState.Pressed, delegate { startingPlayers[1].UseImprovement(); }, "Player 2 uses their tools"); 
     1346        ControllerOne.Listen(Button.LeftTrigger, ButtonState.Pressed, GetRidOfImprovement, "Player 2 throws their tools away", startingPlayers[1]); 
    13351347 
    13361348        Keyboard.Listen(Key.F8, ButtonState.Pressed, Invincibility, null); // Demonstraatio tarkoituksiin. 
Note: See TracChangeset for help on using the changeset viewer.