Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. if (sprite.Window.Keyboard[Key.Right]) //right turn
  2. {
  3. if (speed.Y > 1.4f || acceleration.Y < -1.4f)
  4. {
  5. if (position.X < 90.0f)
  6. {
  7. position.X = position.X + 1.0f;
  8. }
  9. }
  10. }
  11.  
  12. public void Window_KeyLeft(object sender, KeyEventArgs e)
  13. {
  14. if (e.KeyCode == Keys.Left) return;
  15. {
  16. //change sprite
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement