Skip to content

Instantly share code, notes, and snippets.

@meyer9
Created August 13, 2012 14:52
Show Gist options
  • Save meyer9/3341453 to your computer and use it in GitHub Desktop.
Save meyer9/3341453 to your computer and use it in GitHub Desktop.
def update
gravity=0.5
self.vspeed+=gravity
self.position[1]+=self.vspeed
if self.position[1]>400-64:
self.position[1]=400-64
self.vspeed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment