Build Your First World Map
Last updated
Last updated
Nearly all games will require you to build some kind of world map. Unless of course, you're building some space fighter game of sorts, which you can absolutely do with HYTOPIA
Let's get started building our first world map. Head over to our official map building tool at
For simplicity sake, we'll use the official HYTOPIA world map builder. Alternatively if you're feeling adventurous, the SDK exposes all of the features necessary to programmatically create your own map as well.
Once you've opened the map builder, you should see something like this:
You can select from a variety of default block types on the left, click in the world to place them, use a combination of the various fill tools, and more.
Once you're happy with your map, you're ready to export it and use it in your game.
Click the "Export" button near the bottom of the screen, you'll be prompted to download a .json file, this is your world map file. For this example, save it as map.json
into the assets
directory of your HYTOPIA project.
Now you're ready to load your map! We'll do this based on our boilerplate code for demonstration sake.
At the top of your index.ts
file in the root of your project directory, import the map.
Now, in your startServer
init function, we need to load the map into the world.
That's it!
You should be able to see your created map!
Now, start your server, and connect to it like usual through .
Enable Multiplayer Testing
Learn how to use ngrok.io to allow others to join and test your local HYTOPIA server.