Created
June 12, 2021 10:18
-
-
Save PatrickKalkman/681019e58fbef8311c5e318d5789d7cb 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
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