Skip to content

Instantly share code, notes, and snippets.

@Icarus-xx
Created July 16, 2011 08:56
Show Gist options
  • Save Icarus-xx/1086174 to your computer and use it in GitHub Desktop.
Save Icarus-xx/1086174 to your computer and use it in GitHub Desktop.
Config
import multiprocessing
procs = multiprocessing.cpu_count() - 1
if procs < 1: procs = 1
defaultZoom = 3
minZoom = 3
north_direction = "upper-left"
#optimizeimg = 3
rendermode = ['lighting-height', 'night', 'cave', 'subway-cave', 'subway-overlay']
rendermode_options = {
'cave' : {
'only_lit' : True,
'lighting' : True,
'depth_tinting' : True,
},
'lighting' : {'edge_opacity' : 0.5},
# 'night' : {'shade_strength' : 0.5},
}
custom_rendermodes = {
'normal-height' : {'parent' : 'normal',
'description' : 'normal mode, with height fading',
'options' : {'height_fading' : True}},
'lighting-height' : {'parent' : 'lighting',
'description' : 'lighting mode, with height fading',
'options' : {'height_fading' : True}},
'subway-cave' : {'parent' : 'cave',
'description' : 'a subway map, based on the cave rendermode',
'options' : {
'depth_tinting' : False,
'lighting' : True,
'only_lit' : True,
'min_depth' : 8,
'max_depth' : 20,
}
},
'subway-overlay' : {'parent' : 'mineral',
'description' : 'an overlay showing the location of minecart tracks',
'options' : {'minerals' : [
(27, (255, 234, 0)),
(28, (255, 234, 0)),
(66, (255, 234, 0)),
]}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment