Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public class Game1 : Game
  2. {
  3. [...]
  4. private void HandleInput(GameTime gameTime)
  5. {
  6. if (Keyboard.GetState().IsKeyDown(Keys.Right))
  7. _playerShip.MoveRight();
  8.  
  9. [...]
  10.  
  11. if (Keyboard.GetState().IsKeyDown(Keys.Space))
  12. ShootLaser();
  13.  
  14. CheckPosition();
  15. }
  16. [...]
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement