uberpong/dev/lib/weltmeister/config.js

78 lines
1.3 KiB
JavaScript
Raw Normal View History

ig.module(
'weltmeister.config'
)
2012-06-22 17:26:53 +02:00
.defines(function(){ "use strict";
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'
},
'view': {
2012-06-22 17:26:53 +02:00
'zoom': 1,
'zoomMax': 1,
'zoomMin': 1,
'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'
}
};
});