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 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#################",
|
||||||
|
|
Loading…
Reference in a new issue