Vertex Docs

Scene.update()

Description: The update() method contains all game logic that must run continuously while the scene is active. This method is automatically called every frame by the GameEngine and is responsible for handling input, movement, physics, timers, and other logical operations.

Without update(), your game would render visuals but nothing would move, react, or respond to player input.

Example: Usage

from VertexEngine.scenes import Scene

class Main(Scene):
    def __init__(self, engine):
        super().__init__(engine)

    def update(self):
        # Handle input
        # Update positions
        # Run game logic
        pass

Parameters

Responsibilities

Returns

None. This method updates the internal state of the scene each frame.

Notes