Skip to main content
Glama

SpriteTerrain — Living HD-2D 47-Tile Blob & Open-World Forge

Stop spending 2–3 days hand-drawing 47-tile autotile transitions.
Drop 2–3 textures into SpriteTerrain (auto-seamed & palette-matched) to synthesize a complete 47-Tile Blob Autotile set with chamfered physics colliders, Normal Map Atlas, 8-frame flowing water, Shore SDF depth map, 4 anti-repetition interior variants, and 5 pixel-art tree species — previewed live across Top-Down, 2:1 Isometric, and Side-View up to 256×256 open worlds, and exported directly to Godot 4.3+, Tiled, LDtk, Unity 2D, and RPG Maker.


Why SpriteTerrain?

  • Drop-In Seamless Processing: Upload any raw image or AI texture — automatic half-shift diamond feathering (Auto-Seamless) and optional pixel palette quantization (Palette Match) eliminate cross-seams immediately, with full 128×128 (HD) tile support.

  • One Texture Set, Three Perspectives: Switch seamlessly between 3/4 Top-Down, 2:1 Isometric 2.5D, and Side-View Platformer using the exact same textures, biomes, and lighting.

  • Open-World Viewport Streaming (256×256): Paint across 5 terrain brushes (Grass, Water, Road, Sand, Cliff) with 40-step Undo/Redo (Ctrl+Z/Ctrl+Y), interactive Minimap navigation, and WASD camera roaming at 60 FPS.

  • 6 Built-In Biomes: Meadow→River, Meadow→Trail, Dirt→River, Snow→Ice Lake, Desert→Oasis, and Dungeon Basalt→Molten Lava.

  • WYSIWYG Multi-Engine Exports:

    • Godot 4.3+: TileSet (.tres) with CanvasTexture (diffuse + normal) & 47-tile chamfered physics_layer_0 colliders, runnable .tscn scene with pre-populated binary tile_map_data, and godot4_living_water.gdshader bound directly to the exported world_shore_sdf.png depth map.

    • Tiled: .tsx WangSet with per-tile <objectgroup> collision polygons + multi-layer .tmj (including Props_Objects).

    • LDtk: Native .ldtk project with IntGrid & pre-mapped 47-Tile autoLayerTiles.

    • Unity 2D: 47-rule RuleTile JSON manifest.

    • RPG Maker MZ/MV: Standard A2 autotile PNG sheet.

  • AI-Agent Native (CLI + MCP Server): Zero-dependency Node CLI and 3-tool JSON-RPC 2.0 MCP Server ready for Cursor, Claude Code, and Gemini CLI.


Related MCP server: aseprite-live-mcp

Quick Start

1. Zero-Build Web Studio (or GitHub Pages)

Open index.html (or apps/studio/index.html) directly in any modern browser — no build step required. To publish on GitHub Pages, simply enable Pages from the main branch root (/).

2. Headless CLI

node packages/cli/bin/spriteterrain.mjs generate   --seed 73104   --size 64x40   --tile 32   --proj topdown   --out ./export

3. MCP Server (Cursor / Claude Code / Gemini CLI)

Add SpriteTerrain to your MCP client config:

{
  "mcpServers": {
    "spriteterrain": {
      "command": "node",
      "args": ["packages/mcp-server/bin/mcp-server.mjs"]
    }
  }
}

Exposed MCP tools:

  • generate_terrain_bundle — generates Godot 4.3 .tres/.tscn/.gdshader, Tiled .tsx, and Unity RuleTile for any seed and dimensions.

  • inspect_47_bitmask — canonicalizes an 8-bit neighbor mask into its 47-Tile atlas coordinate and chamfered collision polygon.

  • generate_godot_water_shader — returns the Godot 4 canvas_item Living Water shader.


Testing

node tests/verify_core.mjs

License

MIT © SpriteTerrain Contributors

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers