feat: add procedural map generation example with MapBuilder library#20
Open
cryptochris8 wants to merge 1 commit intohytopiagg:mainfrom
Open
feat: add procedural map generation example with MapBuilder library#20cryptochris8 wants to merge 1 commit intohytopiagg:mainfrom
cryptochris8 wants to merge 1 commit intohytopiagg:mainfrom
Conversation
Adds a complete procedural map generation example demonstrating how to create voxel maps programmatically for Hytopia games. Includes: - MapBuilder library with building primitives (fillBox, fillCircle, buildWall, buildStairs, buildPillar, buildHollowBox, etc.) - Block texture registry with 181+ validated texture URIs - Sumo Arena generator (circular geometry, tiered seating, domed roof) - Floating Islands generator (terrain profiling, trees, bridges, ores) - Server entry point that loads generated maps by name - README with API documentation and tutorial Based on the MapTopia project (github.com/chrisreeves/MapTopia). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a complete procedural map generation example demonstrating how to create voxel maps programmatically using a reusable MapBuilder library.
Includes:
fillBox,fillCircle,buildWall,buildStairs,buildPillar,buildHollowBox, and moreBased on the MapTopia project. The MapBuilder library eliminates boilerplate when creating procedural maps and validates textures at build time to prevent client crashes from invalid URIs.
Test plan
npm install && npm run build:sumo— generatesoutputs/sumo-arena.jsonnpm run build:islands— generatesoutputs/floating-islands.jsonnpm run dev:sumo— server starts and loads sumo arena map🤖 Generated with Claude Code