OpenParable
Skip to content
← Back to skills

Rexboard Map Generation And Import

Development
rexboard-map-generation-and-import

Rexboard Map Generation And Import is an Agent Skill for development published in the rexrainbow/phaser3-rex-notes repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use this skill when working with RexBoard hexagonMap, HexagonMap helpers, GetHexagonMap, GetParallelogramMap, GetTriangleMap, generated board coordinate sets, create board from tilemap, createBoardFromTilemap, or map-driven createTileTexture workflows. Triggers on: RexBoard hexagonMap, GetHexagonMap, GetParallelogramMap, GetTriangleMap, createBoardFromTilemap, board tilemap import.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/rexrainbow/phaser3-rex-notes/blob/HEAD/skills/rexboard/rexboard-map-generation-and-import/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/rexboard-map-generation-and-import, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

RexBoard Map Generation And Import

Use this skill for RexBoard helper APIs that create coordinate sets or derive boards from data.

Use This First

Choose the import/generation path:

NeedUse
Hexagon-shaped coordinate sethexagonMap.hexagon(board, radius)
Triangle-shaped coordinate sethexagonMap.triangle(board, type, height)
Parallelogram coordinate sethexagonMap.parallelogram(board, type, width, height)
Board from Phaser tilemapcreateBoardFromTilemap(tilemap, layers)
Texture for generated tilescreateTileTexture(board, key, ...)

Required Setup

This skill assumes RexBoard setup. Hexagon map helpers need an existing board or logic board because coordinate generation depends on board/grid behavior.

References

Read these only when needed:

  • references/hexagon-map.md: HexagonMap.hexagon, triangle, and parallelogram signatures and coordinate application.
  • references/tilemap-board.md: CreateBoardFromTilemap workflow and layer argument forms.
  • references/map-generation-recipes.md: reduced recipes for hexagon, triangle, parallelogram, and tilemap import.

Core Rules

  • Hexagon map helpers return TileXYType[]; they do not create boards or render tiles.
  • Use board.fit(tileXYArray) when generated coordinates should define board extents.
  • createBoardFromTilemap returns a Board from a Phaser tilemap and selected layers.
  • createTileTexture creates texture assets, not board coordinates or chess placement.
  • Keep generated coordinate sets separate from rendering and gameplay population.

Source File Map

  • plugins/board/hexagonmap/index.d.ts: helper namespace shape.
  • plugins/board/hexagonmap/GetHexagonMap.d.ts: hexagon coordinate helper.
  • plugins/board/hexagonmap/GetTriangleMap.d.ts: triangle coordinate helper.
  • plugins/board/hexagonmap/GetParallelogramMap.d.ts: parallelogram coordinate helper.
  • plugins/board/tilemap/CreateBoardFromTilemap.d.ts: tilemap-to-board helper.
  • plugins/board/texture/CreateTileTexture.d.ts: board tile texture helper.

Related Skills

  • rexboard-grids-and-coordinates: board/grid coordinate behavior.
  • rexboard-board-and-chess: board dimensions, fit, and chess population.
  • rexboard-rendered-tiles-and-pieces: generated tile textures and rendered board objects.

Gotchas

  • createBoardFromTilemap returns a board from a Phaser tilemap; verify layers and tileZ conventions before adding game rules.
  • Hexagon map helpers are exposed as this.rexBoard.hexagonMap.*, not this.rexBoard.add.*.
  • Tilemap import and rendered tile texture workflows overlap; route rendering details to rexboard-rendered-tiles-and-pieces.