Created
January 11, 2013 00:37
-
-
Save hortonew/4507029 to your computer and use it in GitHub Desktop.
Pyglet - Control FPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyglet | |
screen = pyglet.window.Window(800,600) | |
def update(dt): | |
#update objects here | |
if __name__ == "__main__": | |
pyglet.clock.schedule_interval(update, 1/120.0) | |
pyglet.app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment