项目介绍

hasanharman/isomiddleearth 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,目前获得 835 个 Star、71 次 Fork。

仓库全名
hasanharman/isomiddleearth
Star 数
835
Fork 数
71
未关闭 Issue
2

README 摘要

Iso Middle Earth An isometric Middle-earth builder for crafting maps across multiple realms, tile by tile. Features • Demo • Getting Started • Usage • JSON Format • Collections • Tech Stack Demo Live: https://isomiddleearth.com/ Features Isometric canvas with hover preview 7 realms: shire, gondor, mordor, lothlorien, rohan, moria, rivendell mixed mode for cross-realm builds Adjustable grid size from 3x3 to 20x20 6…

完整内容见 GitHub 原始 README 或本页 。

常见问题

isomiddleearth 用什么语言开发?

主要使用 TypeScript 编写,目前有 835 个 Star。

如何获取 isomiddleearth 的源码?

可以直接克隆仓库:git clone https://github.com/hasanharman/isomiddleearth.git,默认分支为 main;安装与运行步骤见仓库 README。

isomiddleearth 最近还在维护吗?

仓库最近一次更新为 5月8日,当前有 2 个未关闭 Issue;Star 数为 835,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

An isometric world‑builder set in Tolkien’s Middle‑earth, where you create and shape your own landscapes inspired by its iconic lands and lore.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
982
价值分
522
活跃状态
活跃

语言占比

CSS
JavaScript
TypeScript

贡献者

README

Iso Middle Earth Logo

Iso Middle Earth

An isometric Middle-earth builder for crafting maps across multiple realms, tile by tile.

Features • Demo • Getting Started • Usage • JSON Format • Collections • Tech Stack

Next.js React TypeScript pnpm License

Demo

Iso Middle Earth Preview

Live: https://isomiddleearth.com/

Features

  • Isometric canvas with hover preview
  • 7 realms: shire, gondor, mordor, lothlorien, rohan, moria, rivendell
  • mixed mode for cross-realm builds
  • Adjustable grid size from 3x3 to 20x20
  • 6 grouped tile categories: Terrain, Water & Bridges, Trees & Vegetation, Dwellings, Buildings, Decorations
  • Asset picker tabs for Buildings and Characters
  • Character overlays (currently includes 8 Hobbit sprites)
  • Paint with click/drag, right-click to clear
  • Undo support (Cmd/Ctrl + Z)
  • PNG export
  • JSON export/import from the toolbar
  • Community collections browser at /collections with pagination
  • Deep-link loading with /?collection=<id>
  • Persisted local state via Zustand (localStorage)

Getting Started

Prerequisites

Installation

git clone https://github.com/hasanharman/isomiddleearth.git
cd isomiddleearth
pnpm install
pnpm dev

Open http://localhost:3000.

Usage

  1. Pick a realm (or Mixed) from the top location selector.
  2. Choose an asset tab in the bottom bar:
    • Buildings to place terrain/building tiles
    • Characters to place character overlays
  3. Click or drag to paint.
  4. Right-click to clear (character clears first if present on that tile).
  5. Use toolbar actions for undo, grid resize, PNG export, and JSON export/import.

JSON Format

Toolbar JSON import/export expects this shape:

{
  "schemaVersion": 1,
  "id": "my-map",
  "name": "My Map",
  "author": {
    "name": "Anonymous",
    "github": "your-github-username"
  },
  "createdAt": "2026-02-24T00:00:00.000Z",
  "location": "mixed",
  "gridSize": 7,
  "map": [
    [[0, 0, "shire"], [2, 4, "gondor"]],
    [[1, 6, "mordor"], [3, 2, "rivendell"]]
  ]
}

Notes:

  • map tiles can be [row, col] or [row, col, realm]
  • row and col are non-negative integers
  • gridSize must be between 3 and 20
  • current JSON import/export is tile-map based (character overlays are not part of this format yet)

Tile and Character Assets

  • Tile source: public/tiles/<realm>/r<row>-c<col>.png
  • Character source: public/characters/<character-realm>/<character-id>.png
  • Sprite canvas size: 130x230
  • Isometric tile footprint on canvas: 128x64

You can add new tile coordinates with any non-negative row/col; runtime falls back to r0-c0 if a specific tile image is missing.

Collections

Community maps live in collections/maps and are listed at /collections.

  • API endpoint: GET /api/collections/:id
  • Schema: collections/schema/map.schema.json
  • Docs: collections/README.md
  • Validation script:
pnpm validate:collections

To load a collection directly in the editor:

  • /?collection=<map-id>

Tech Stack

  • Next.js 16
  • React 19
  • TypeScript
  • Zustand
  • Tailwind CSS
  • Radix UI / shadcn components

Contributing

Issues and pull requests are welcome: hasanharman/isomiddleearth

Star History

Star History Chart

评论

暂无评论