Applications 🇷🇺 12.08.2026 15:03

AI Cartographer: How Maps Stitch into a Seamless World — Toolsets for PHP MMORPG Games, Part 21

AnthropicAnthropic
An indie developer building a 2D MMO server in PHP uses AI to automate map stitching, turning neighboring maps into seamless transitions. The AI handles data-heavy tasks like importing, cutting, and aligning maps, while a review panel and connection diagram catch errors. Graphic remastering is left to a generative model, but results still need manual fixes.
The author, who has been developing an authoritative server for a 2D MMO RPG in PHP and Symfony with a Unity client since 2022, describes how he automates map stitching with AI. Maps are imported from The Mana World, an open-source MMO, and each map is a separate server process. The AI performs over forty operations: importing a map archive, laying out obstacles, cutting dead edges, splitting maps into rooms, aligning borders, and moving properties. A transition diagram shows all connections and detects broken links, such as doors leading to missing zones or arrival points inside walls. The AI also handles tile property migration, but for graphics, the author uses a generative model (Claude for mechanical atlas work) to remaster tiles. The results are promising but have issues: transparency is filled with stone, some elements are redrawn incorrectly, and tiles shift by a couple of pixels. The author plans to fix this by cutting and adjusting each cell manually, and notes that a full palette must be updated at once to avoid style mismatches.
Abbreviations
PHP = Hypertext Preprocessor — Hypertext Preprocessor (язык программирования)
MMORPG = Massively Multiplayer Online Role-Playing Game — массовая многопользовательская ролевая онлайн-игра
MMO = Massively Multiplayer Online — массовая многопользовательская онлайн-игра
2D = Two-Dimensional — двухмерный
JSON-RPC = JSON Remote Procedure Call — JSON-протокол удалённого вызова процедур
MVP = Minimum Viable Product — минимально жизнеспособный продукт
NPC = Non-Player Character — неигровой персонаж
Source: Habr — хаб ИИ — original
Our earlier posts on this topic ↓
Fresh news