Skip to content

Instantly share code, notes, and snippets.

@andrewschmidt
Created January 7, 2014 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewschmidt/8293953 to your computer and use it in GitHub Desktop.
Save andrewschmidt/8293953 to your computer and use it in GitHub Desktop.
gravityBug
from scene import *
class MyScene (Scene):
def setup(self):
tilt = gravity()
self.default_tilt = {'x': tilt.x, 'y': tilt.y}
print(tilt.x, tilt.y)
def draw(self):
background(0, 0, 0)
def touch_began(self, touch):
pass
def touch_moved(self, touch):
pass
def touch_ended(self, touch):
pass
run(MyScene())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment