SHARE
TWEET

Untitled

a guest May 4th, 2013 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (keys.up && !keys.down) {
  2.     acceleration.add(0,0.001);
  3.     velocity.add(acceleration);
  4.     location.add(velocity);
  5.     showDebugInfo();
  6. }
  7.  
  8. if (keys.down && !keys.up) {
  9.     acceleration.add(0,-0.001);
  10.     velocity.add(acceleration);
  11.     location.add(velocity);
  12.     showDebugInfo();
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top