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