Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Game1 : Game
- {
- [...]
- private void HandleInput(GameTime gameTime)
- {
- if (Keyboard.GetState().IsKeyDown(Keys.Right))
- _playerShip.MoveRight();
- [...]
- if (Keyboard.GetState().IsKeyDown(Keys.Space))
- ShootLaser();
- CheckPosition();
- }
- [...]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement