scene

Main scene graph and render pipeline coordinator.

This module defines the Scene class which acts as the primary game session container. It instantiates and manages the world environment, 3D items, UI components, and handles the overarching rendering pipeline for the in-game state.

class scene.Scene(app, save_name, seed)[source]

Bases: object

Acts as the primary game session container.

Instantiates and manages the world environment, 3D items, UI components, and handles the overarching rendering pipeline for the in-game state.

Parameters:
  • app (Any) – The main application context.

  • save_name (str) – The filename/identifier for the world SQLite database.

  • seed (int) – The deterministic seed for world generation.

update()[source]

Ticks the overarching logic of the scene, progressing the world state, updating environmental visuals, and tracking physics for active items.

Return type:

None

render()[source]

Executes the multi-pass rendering pipeline. Draws the skybox, opaque chunks, entities, transparent layers (water/clouds), and UI.

Return type:

None