0

added center to config.js, lets you set map center in world coords

By default, it is set to spawn. Also I changed defaultZoom to 2, which
looks better (the world used to show up as *tiny* by default).
This commit is contained in:
Aaron Griffith
2011-03-29 05:48:40 -04:00
parent 9b36d21c37
commit 9c25c6259c
4 changed files with 14 additions and 3 deletions

View File

@@ -94,6 +94,9 @@ class MapGen(object):
config = config.replace(
"{imgformat}", str(imgformat))
config = config.replace("{spawn_coords}",
json.dumps(list(self.world.spawn)))
# create generated map type data, from given quadtrees
maptypedata = map(lambda q: {'label' : q.rendermode.capitalize(),
'path' : q.tiledir}, self.quadtrees)