simvx.graphics.web_export

Export a SimVX game as a standalone HTML file that runs in the browser via Pyodide.

Supports both 2D and 3D games – auto-detects 3D node usage and includes the appropriate WebGPU renderers (Renderer2D for 2D-only, CombinedRenderer for 3D).

Usage::

from simvx.graphics.web_export import export_web
export_web("my_game.py", "game.html",
           width=800, height=600, title="My Game", root_class="GameScene")

Or from the command line::

uv run python -m simvx.graphics.web_export \
    packages/graphics/examples/3d_lighting.py \
    --output lighting3d.html --width 1280 --height 720 \
    --root LightingScene --title "3D Lighting Demo"

Submodules

Package Contents

Data

API

simvx.graphics.web_export.__all__

[‘export_web’]