Skip to content

Instantly share code, notes, and snippets.

@Orpheon
Created August 11, 2013 17:45
Show Gist options
  • Select an option

  • Save Orpheon/6206095 to your computer and use it in GitHub Desktop.

Select an option

Save Orpheon/6206095 to your computer and use it in GitHub Desktop.
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