Mapgen

From Spring
Revision as of 21:56, 7 February 2013 by Madrman (talk | contribs)
Jump to navigationJump to search

Spring 92.0 will contain a simple map generator. To test it, spring has to be started with a script.txt which contains the line:

[GAME]
MapSeed=123;

Where 123 can be replaced with any number to generate another map. MapName should not be present in script.txt

The generated map will be fairly generic map, aimed at TA-like mods. It currently takes into account the amount of players and the allies.

Future work will add lua bindings, allowing maps to be generated from lua. This way, mods could supply their own map generator.

for details see: https://github.com/spring/spring/commit/974e5b42c5bcde30a704218448aa288764642d55 https://github.com/MadrMan/spring/commits/mapgen