Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (keyboardState.IsKeyDown(Keys.W))
- {
- JumpisDown = true;
- }
- else
- {
- JumpisDown = false;
- }
- if (JumpisDown == true)
- velocityplayer.Y = -1;
- if (JumpisDown == false)
- {
- velocityplayer.Y = 2;
- }
- if (position.Y < 390)
- {
- if (keyboardState.IsKeyDown(Keys.W))
- {
- JumpisNotDown = true;
- }
- }
- if (JumpisNotDown == true)
- {
- JumpisNotNotDown = true;
- }
- if (JumpisNotNotDown == true)
- velocityplayer.Y = 2;
- if (JumpisNotNotDown == false)
- if (keyboardState.IsKeyDown(Keys.W))
- {
- JumpisDown = true;
- }
- velocityplayer.X *= demomanSpeed;
- position += velocityplayer;
- LockDemoMan();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement