Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PatrickKalkman/681019e58fbef8311c5e318d5789d7cb to your computer and use it in GitHub Desktop.
Save PatrickKalkman/681019e58fbef8311c5e318d5789d7cb to your computer and use it in GitHub Desktop.
class BaseState(object):
def __init__(self):
self.done = False
self.quit = False
self.next_state = None
self.screen_rect = pygame.display.get_surface().get_rect()
self.font = pygame.font.Font(None, 32)
def startup(self):
pass
def get_event(self, event):
pass
def update(self, dt):
pass
def draw(self, surface):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment