tools.compose_gameboard module

GameGirl Color – Pillow-based gameboard compositor.

Layers character sprites, enemies, and items onto scene backgrounds at specified coordinates with z-ordering. # 🎮💀 CORRUPTED CANVAS ENGINE

async tools.compose_gameboard.run(background, sprites=None, width=1024, height=576, ctx=None)[source]

Compose a gameboard scene from layered assets.

Parameters:
  • background (str) – Background asset name or URL.

  • sprites (list[dict[str, Any]] | None) – List of sprite placement dicts.

  • width (int) – Canvas width.

  • height (int) – Canvas height.

  • ctx (ToolContext | None) – Tool execution context.

Returns:

JSON result.

Return type:

str