Description:
A Scene represents a single state of your game
(e.g. Main Menu, Gameplay, Pause Screen).
Each Scene is a QWidget and is managed by the
SceneManager.
Scenes handle game logic in update() and rendering
in draw(). Only one scene can be active at a time.
from VertexEngine.scenes import Scene
class Main(Scene):
def __init__(self, engine):
super().__init__(engine)
def update(self):
print("Updating game logic")
def draw(self, surface):
# Draw your game here
pass
on_enter()on_exit()update()draw(surface)engine (GameEngine)SceneManager