[Example] Loading a basic random map

Hi! I complete some algorithms to load basic random maps as part of a project.

I think it can be useful to other users.

This project recursively loads a random map every time the user press ‘spacebar’. There are 3 types of items in the map: an user base, an enemy base and rocks. The algorithms make sure the user base and enemy base will never be overlapped or located at the borders. The borders are always “sealed” with obstacles and the density of obstacles in the map can be changed modifying a single value.

Here the project: basic_random_map.zip (22.8 KB)

:sunglasses: