Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Procedural map generation via Python: How does the level data system work?

A topic by [Random Adjective] created 3 days ago Views: 31 Replies: 2
Viewing posts 1 to 3

Hi there! I absolutely love this project, it looks fantastic!

As a fellow developer working with mixed-initiative design and procedural content generation, your work really caught my eye. Right now, I use Python to generate "raw" map data, but I don't have a good environment to playtest these levels with real people.

I would love to integrate SMC into my pipeline and use it as a testing platform for the maps I generate with my tools. To see if that's possible, I was wondering: what kind of system or file format are you using to save and load community-made levels? (I usually work with JSON).

Thanks in advance for your time, and keep up the great work!

(+1)

Heya, glad to hear you're liking the game! I'm not sure if I fully understand your question yet, are you trying to create levels procedurally using algorithms?

The way SMC levels are shared is in the form of level codes, these are basically just large JSON strings that tell the game how to construct a level. People can simply share this level code around.

You can actually find a general structure overview of the level code on our wiki, which may be of help: https://wiki.levelsharesquare.com/SMC_help:Level_code

I appreciate your quick response. The information you've provided is very helpful to me, it's exactly what I wanted to find out. Thank you so much.