Skip to content

Instantly share code, notes, and snippets.

@orlp
Created November 5, 2011 00:38
Show Gist options
  • Save orlp/1340879 to your computer and use it in GitHub Desktop.
Save orlp/1340879 to your computer and use it in GitHub Desktop.
from __future__ import division, print_function
import pyglet
import map
import function
class Game:
PHYSICS_TIMESTEP = 1/60 # how often the physics should be updated in seconds
def __init__(self, window):
self.window = window
self.xview = 0.0
self.yview = 0.0
self.map = map.Map(self, "twodforttwo_remix")
self.test = function.load_sprite("maps/twodforttwo_remix")
def render(self, alpha):
#self.map.draw(self)
self.test.image.blit(0, 0)
def update(self, dt):
self.xview += 100 * dt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment