mirror of
https://github.com/ApfelTeeSaft/WarioWare-Black-and-WAH.git
synced 2026-08-26 19:33:45 +00:00
26 lines
528 B
Python
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
|