Created
August 11, 2013 17:45
-
-
Save Orpheon/6206095 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| from __future__ import division, print_function | |
| import sys | |
| import pyglet | |
| window = pyglet.window.Window(800, 800, resizable=True) | |
| window.set_caption('Pyglet Testing') | |
| window.flip() | |
| image = pyglet.resource.image('Sprites/scout.png') | |
| def draw(dt): | |
| image.blit(700-dt, 400) | |
| while not window.has_exit: | |
| dt = pyglet.clock.tick() | |
| window.dispatch_events() | |
| window.clear() | |
| draw(dt) | |
| window.flip() | |
| print(dt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment