Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (sprite.Window.Keyboard[Key.Right]) //right turn
- {
- if (speed.Y > 1.4f || acceleration.Y < -1.4f)
- {
- if (position.X < 90.0f)
- {
- position.X = position.X + 1.0f;
- }
- }
- }
- public void Window_KeyLeft(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Left) return;
- {
- //change sprite
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement