mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-27 09:58:44 +01:00
alignment
This commit is contained in:
parent
8eb840bb4c
commit
f77ff767c9
1 changed files with 19 additions and 19 deletions
|
@ -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#################",
|
||||
|
|
Loading…
Reference in a new issue