mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-27 09:58:44 +01:00
cosmetics
This commit is contained in:
parent
3e192ee910
commit
7113035f06
1 changed files with 11 additions and 11 deletions
|
@ -4,6 +4,7 @@ function initialize_a_star( dom_container ) {
|
||||||
var direction = { UP: 'u', DOWN: 'd', LEFT: 'l', RIGHT: 'r' };
|
var direction = { UP: 'u', DOWN: 'd', LEFT: 'l', RIGHT: 'r' };
|
||||||
|
|
||||||
var assets = {
|
var assets = {
|
||||||
|
sprites: load_sprites( "HP48" ),
|
||||||
levels: [ "#################@## x#H## x #### ##x ## ## x #### x x x ## x x## x ## ##x x#################",
|
levels: [ "#################@## x#H## x #### ##x ## ## x #### x x x ## x x## x ## ##x x#################",
|
||||||
" # # # # # ### x @# #x #x x # # x x # # # x # # #H# x # # # # #xx## # # # # ",
|
" # # # # # ### x @# #x #x x # # x x # # # x # # #H# x # # # # #xx## # # # # ",
|
||||||
"################# x#@## ## ##H## #x x ## x x## x## #x x x# x### ##x #x x x####x ##x #################",
|
"################# x#@## ## ##H## #x x ## x x## x## #x x x# x### ##x #x x x####x ##x #################",
|
||||||
|
@ -28,8 +29,7 @@ function initialize_a_star( dom_container ) {
|
||||||
"#################x# #x# #x # ## # ##x # #x x ### #x x #### x # ###x ## #@#H x ################# ",
|
"#################x# #x# #x # ## # ##x # #x x ### #x x #### x # ###x ## #@#H x ################# ",
|
||||||
" ############## # # #x# #x # ## x # ### # x #x ## #x # xx x ###x # ## x ## #@#H x # ############## ",
|
" ############## # # #x# #x # ## x # ### # x #x ## #x # xx x ###x # ## x ## #@#H x # ############## ",
|
||||||
"################# # ### ##x x ##x### #x x# #### xx x# ## ## #x x # ## ## ## @#H###xx################# ",
|
"################# # ### ##x x ##x### #x x# #### xx x# ## ## #x x # ## ## ## @#H###xx################# ",
|
||||||
"################# # ## x ##x x ## #x x ## ## x ## #x ## #x x# x ## ##x #@ H ################# " ],
|
"################# # ## x ##x x ## #x x ## ## x ## #x ## #x x# x ## ##x #@ H ################# " ]
|
||||||
sprites: load_sprites( "HP48" )
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// First of all, setup our little DOM branch
|
// First of all, setup our little DOM branch
|
||||||
|
@ -54,7 +54,7 @@ function initialize_a_star( dom_container ) {
|
||||||
|
|
||||||
var level_infos = {
|
var level_infos = {
|
||||||
height: 9,
|
height: 9,
|
||||||
width:16,
|
width: 16,
|
||||||
cell: {
|
cell: {
|
||||||
width: DOM_infos.canvas.width / 16,
|
width: DOM_infos.canvas.width / 16,
|
||||||
height: DOM_infos.canvas.height / 9
|
height: DOM_infos.canvas.height / 9
|
||||||
|
@ -62,10 +62,10 @@ function initialize_a_star( dom_container ) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var state = {
|
var state = {
|
||||||
moving : cell.BALL,
|
moving: cell.BALL,
|
||||||
distance_travelled : 0,
|
distance_travelled: 0,
|
||||||
level : 0,
|
level: 0,
|
||||||
board : ""
|
board: ""
|
||||||
};
|
};
|
||||||
|
|
||||||
////// FUNCTIONS //////
|
////// FUNCTIONS //////
|
||||||
|
|
Loading…
Reference in a new issue