Pixelated World Map Generation for 2d RTS

Godot Version

GODOT 4.3 Stable

Question

I’m trying to make an 2D rts type game, where i need a world map that is pixelated. I don’t know how to describe it but basically square tiles where you can build on, troops can move through and stuff like that.

Is there somewhere i can find a map like this or code one myself?

Thanks

If I understand correctly, you want to generate a map made up of tiles. The tile sprite should be determined by perlin noise. There are some tutorials related to this concept: https://www.youtube.com/results?search_query=godot+2d+procedural+noise+grid

This one in particular seems promising:

Here is a related godot project: GitHub - DennisSmuda/godot-chunking-system: Demo on how to make a 2D grid-based map with FastNoise and infinite movement in every Direction. Uses multithreading to load/unload chunks of the map! 🌎

Of course you could have a static, pre-generated map if you prefer but the process is a little different for that.

Once you have the grid working, you can start implementing grid-based placement:
https://www.youtube.com/results?search_query=godot+2d+grid+based+placement

You can adjust your search terms for Youtube and Github and you’ll probably find what you’re looking for.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.