Making a Map - Electric131/Sandustry-CustomMapLoader GitHub Wiki

This page is up to date as of v3.1.0

Making a Map

This guide covers what you'll need to know in order to make a map.

What is a map?

A map, in the context of this mod, is a folder containing the pngs the game needs, as well as some extra files such as metadata or a script. You can find a template map to work off here and you can check out the following pages for more information:

Map Making Tips and Tricks

Finding player Y

Manual Method: Fly around then run gameInstance.state.store.player.y in the console.

Math Method (Using only the map image): Find the pixel y in your map image, then calculate: ([pixel y]) * 4) - 30 (Note this formula gives the y of the player if they are standing on this pixel)

Creating the fog in fog_playtest.png

To avoid doing work by hand, you can look into my other project Sandustry Light Spreader which generates the fog texture from map_blueprint_playtest.png.