Guest User

Untitled

a guest
Jul 9th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. //Variables you can modify
  2. keyLeft = vk_left; //Key to move left
  3. keyRight = vk_right; //Key to move right
  4. keyJump = vk_shift; //Key to jump
  5. keyRun = vk_control; //Key to run
  6.  
  7.  
  8. fric = 0.1; //Friction: the acceleration of the player
  9. slow = 0.1; //The deacceleration of the player
  10. maxSpeed = 2; //Maximum speed while not running
  11. maxSpeedRunning = 4; //Maximum speed while running
  12. jumpHeight = 7; //How high the player can jump
  13. _gravity = 0.25; //The gravity the player has
  14.  
  15.  
  16. //Variables you don't want to mess around with
  17. view_object = id; //Makes sure the view is following the player
  18. ground = true; //We are on the ground on default
  19. global.vel = 0; //Our starting horizontal speed is 0
  20. vspeed = 0; //Our starting vertical speed is 0
  21. slowSlope = false; //We are not going slow up a slope
  22. fastSlope = false; //We are not going fast down a slope
  23. slopeAmount = 0; //We are not on a slope yet, so the slowness/speed factor of a slope is 0
  24. canhit = true; //We can get hit
Advertisement
Add Comment
Please, Sign In to add comment