2012-06-21 10:13:21 +02:00
|
|
|
ig.module(
|
|
|
|
'weltmeister.config'
|
|
|
|
)
|
2012-06-22 17:26:53 +02:00
|
|
|
.defines(function(){ "use strict";
|
2012-06-21 10:13:21 +02:00
|
|
|
|
|
|
|
wm.config = {
|
|
|
|
project: {
|
|
|
|
'modulePath': 'lib/',
|
|
|
|
'entityFiles': 'lib/game/entities/*.js',
|
|
|
|
'levelPath': 'lib/game/levels/',
|
|
|
|
'outputFormat': 'module', // 'module' or 'json'
|
|
|
|
'prettyPrint': false
|
|
|
|
},
|
|
|
|
|
|
|
|
'layerDefaults': {
|
|
|
|
'width': 30,
|
|
|
|
'height': 20,
|
|
|
|
'tilesize': 8
|
|
|
|
},
|
|
|
|
|
|
|
|
'askBeforeClose': true,
|
|
|
|
'loadLastLevel': true,
|
|
|
|
|
|
|
|
'entityGrid': 4,
|
|
|
|
'undoLevels': 50,
|
|
|
|
|
|
|
|
'binds': {
|
|
|
|
'MOUSE1': 'draw',
|
|
|
|
'MOUSE2': 'drag',
|
|
|
|
'SHIFT': 'select',
|
|
|
|
'CTRL': 'drag',
|
|
|
|
'SPACE': 'menu',
|
|
|
|
'DELETE': 'delete',
|
|
|
|
'BACKSPACE': 'delete',
|
|
|
|
'G': 'grid',
|
|
|
|
'C': 'clone',
|
|
|
|
'Z': 'undo',
|
2012-06-22 17:26:53 +02:00
|
|
|
'Y': 'redo',
|
|
|
|
'MWHEEL_UP': 'zoomin',
|
|
|
|
'PLUS': 'zoomin',
|
|
|
|
'MWHEEL_DOWN': 'zoomout',
|
|
|
|
'MINUS': 'zoomout'
|
2012-06-21 10:13:21 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
'view': {
|
2012-06-22 17:26:53 +02:00
|
|
|
'zoom': 1,
|
2012-06-22 18:20:41 +02:00
|
|
|
'zoomMax': 1,
|
|
|
|
'zoomMin': 1,
|
2012-06-21 10:13:21 +02:00
|
|
|
'grid': false
|
|
|
|
},
|
|
|
|
|
|
|
|
'labels': {
|
|
|
|
'draw': true,
|
|
|
|
'step': 32,
|
|
|
|
'font': '10px Bitstream Vera Sans Mono, Monaco, sans-serif'
|
|
|
|
},
|
|
|
|
|
|
|
|
'colors': {
|
|
|
|
'clear': '#000000',
|
|
|
|
'highlight': '#ceff36',
|
|
|
|
'primary': '#ffffff',
|
|
|
|
'secondary': '#555555',
|
|
|
|
'selection': '#ff9933'
|
|
|
|
},
|
|
|
|
|
|
|
|
'collisionTiles': {
|
|
|
|
'path': 'lib/weltmeister/collisiontiles-64.png',
|
|
|
|
'tilesize': 64
|
|
|
|
},
|
|
|
|
|
|
|
|
'api': {
|
|
|
|
'save': 'lib/weltmeister/api/save.php',
|
|
|
|
'browse': 'lib/weltmeister/api/browse.php',
|
|
|
|
'glob': 'lib/weltmeister/api/glob.php'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
});
|