Canvas2D Isometric Renderer

SkillMonitoring & ops

Use when building a Canvas 2D renderer that draws an isometric tilemap and sprites efficiently with correct ordering.

Use Canvas2D Isometric Renderer in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Canvas2D Isometric Renderer and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Canvas2D Isometric Renderer skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Canvas2D Isometric RendererStart free

What this skill tells your AI

The instructions your AI receives, as published by 0xheycat/isometric-game-skills in skills/canvas2d-isometric-renderer/SKILL.md and read by Ahel’s review.

Overview

This skill builds the core render loop: draw ground tiles back-to-front, then depth-sorted objects, using the grid math transform and the atlas. It is the backbone every gameplay skill plugs into.

When to Use

  • You need to actually draw the isometric world.
  • Tiles or sprites render in the wrong order.
  • You are wiring grid math + atlas into a render loop.

Process

  1. Use isometric-grid-math for all coordinate conversions.
  2. Draw ground tiles in back-to-front order (by row+col).
  3. Draw objects/characters AFTER tiles, sorted by depth (see depth-sorting-occlusion).
  4. Source every image from the atlas (see spritesheet-atlas-packing).
  5. Apply the camera transform once per frame (see camera-pan-zoom-controls).
  6. Only draw tiles within the visible viewport (culling).
  7. Keep the draw loop pure - no allocations per frame.
for (const tile of tilesInView) drawTile(tile);
for (const obj of sortByDepth(objectsInView)) drawSprite(obj);

Rationalizations (Stop Lying to Yourself)

ExcuseReality
"I will draw everything every frame"Drawing off-screen tiles wastes the frame budget. Cull.
"Order does not matter much"Wrong order = objects behind walls. Sort every frame.

Red Flags - STOP if you catch yourself:

  • Drawing the entire map instead of the viewport.
  • Allocating arrays/objects inside the draw loop.
  • No separation between tile pass and object pass.

Verification

You are NOT done until every box is checked:

  • Ground tiles draw back-to-front correctly.
  • Objects draw after tiles in depth order.
  • Only visible tiles are drawn (culling works).

Signals

GitHub stars
25
Forks
3
Last commit
Aug 2026
Advanced
Item type
skill
Key
canvas2d-isometric-renderer
Source
github.com/0xheycat/isometric-game-skills