Created
November 5, 2011 00:38
-
-
Save orlp/1340879 to your computer and use it in GitHub Desktop.
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
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