AGENT SKILL

phaserjs-build-tilemaps

Integrate Phaser tilemaps, tilesets, layers and authored object data with validated coordinates, collisions and level identity.

License 许可
MIT
最近更新
2026-11-08
Stars
★ 4
Forks
3

01 前言 Front Matter

name
phaserjs-build-tilemaps
engines
[ "PHASERJS" ]
description
Integrate Phaser tilemaps, tilesets, layers and authored object data with validated coordinates, collisions and level identity.

02 资源文件 1

03 SKILL.md 正文

Build Phaser Tilemaps

When to use

Load or author tile-based levels, convert editor objects to gameplay entities, or diagnose tile collision and alignment.

Engine and dependencies

Before edits or tool launches, run resolve-engine.sh and resolve-skill.sh phaserjs-build-tilemaps; require compatibility and honor task override scope. Inspect the locked Phaser major, exporter/schema version, map orientation, selected physics plugin and world contract. Tiled or other editors are optional selected tools; no editor/plugin installation or map download is implied.

Workflow

  1. Validate map schema, dimensions, tile size, tileset image dependencies, margin/spacing and layer names before runtime construction. Reject unsupported external tilesets, chunking, orientation or export features explicitly rather than dropping content silently.
  2. Use the installed version's loader (tilemapTiledJSON where applicable), this.make.tilemap, addTilesetImage and createLayer. Match the authored tileset name to the runtime texture key; validate failed returns instead of continuing with blank layers.
  3. Specify layer origin, scale, camera/parallax behavior and world/tile coordinate conversion. Preserve flip/rotation flags and tileset GID ranges. Object layers require explicit shape, anchor and rotation conversion; image origins do not automatically match authored object positions.
  4. For Arcade, select collision indices/properties and validate body contacts with layer collision faces. For Matter, use the supported tile conversion path and authored shapes; never assume Arcade layer colliders operate in a Matter world.
  5. Convert spawn, trigger and navigation markers into validated content records with stable IDs. Keep mutable level state and save migrations separate from tile graphics. Dynamic tile edits must refresh relevant collision/navigation data and preserve no-loss persistence rules.
  6. Bound layer/chunk creation, visible work and memory. Phaser 3 custom pipelines and Phaser 4 render-node/GPU-layer behavior need version-specific review. Teardown owned objects/listeners without removing shared tileset textures still used by another scene.

Output and verification

Deliver import validation, layer/tileset mapping and coordinate/collision evidence. Test map edges, flipped tiles, scaled maps, object rotations, missing tilesets, triggers, save/reload and supported chunk boundaries. Inspect rendered alignment and physical contacts in the runtime. Read the Tilemap API as a versioned reference and select the host's matching version before implementation.

04 同仓库更多 Skills

TimothyMeadows
TimothyMeadows/Hephaera

verify-web3-game-lifecycle

Verify a game's selected Web3 asset, wallet, ownership and trading lifecycle with contract properties, canonical recovery, actual target evidence and separate release readiness.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

verify-onchain-game-assets

Verify exact on-chain game collection ownership and quantities at canonical blocks, reconcile inventory events, and design honest match admission. Use for ERC721/ERC1155 inventory, reorg recovery, reservations, or transfer-during-match rules.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

plan-web3-game-assets

Define an opt-in Ethereum, Base or Immutable game-asset lifecycle, including token identity, supply, rights, custody, game eligibility and chain-specific dependencies.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-wallets

Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-asset-trading

Integrate explicitly selected game asset settlement with exact unsigned intents, scoped approvals, idempotent operations and canonical receipt reconciliation. Use for NFT listing, buying, cancellation, retries or marketplace integration.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

build-evm-game-contracts

Author and verify host-owned EVM game collections and explicit mint, burn, craft or admin rules with pinned Solidity tooling. Use for contract source and deployment candidates; deployment and player signing require separate authorization.

★ 4