Files

26 lines
528 B
Python

# engine/scene.py
class Scene:
def __init__(self, manager):
self.manager = manager
def start(self):
"""Called when the scene starts."""
pass
def update(self, dt, time_left=None):
"""Called every frame."""
pass
def draw(self, screen):
"""Draw the scene on the screen."""
pass
def end(self, success):
"""Called when the scene ends."""
pass
def handle_event(self, event):
"""Called for each pygame event."""
pass