alignment

This commit is contained in:
Gwenhael Le Moine 2011-07-05 13:46:17 +02:00
parent 8eb840bb4c
commit f77ff767c9

View file

@ -2,33 +2,33 @@ var LEVEL_HEIGHT = 9;
var LEVEL_WIDTH = 16;
var cell= {
WALL: '#',
BALL: '@',
CUBE: 'H',
VOID: ' ',
GIFT: 'x'
WALL : '#',
BALL : '@',
CUBE : 'H',
VOID : ' ',
GIFT : 'x'
};
var direction = {
UP: 'u',
DOWN: 'd',
LEFT: 'l',
RIGHT: 'r'
UP : 'u',
DOWN : 'd',
LEFT : 'l',
RIGHT : 'r'
};
var css_classes = {
"@": "ball",
"H": "cube",
"#": "wall",
" ": "void",
"x": "gift"
"@" : "ball",
"H" : "cube",
"#" : "wall",
" " : "void",
"x" : "gift"
};
var options = {
starting_level: 0
starting_level : 0
};
var state = {
moving: cell.BALL,
moves: 0,
level: 0,
board: ""
moving : cell.BALL,
moves : 0,
level : 0,
board : ""
};
var levels = [ "#################@## x#H## x #### ##x ## ## x #### x x x ## x x## x ## ##x x#################",