mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-26 09:58:48 +01:00
move things around (it's getting late, time to stop fiddling with this pointlessly)
This commit is contained in:
parent
42baf07f03
commit
0d07ddd09f
1 changed files with 9 additions and 9 deletions
|
@ -16,6 +16,15 @@ function initialize_a_star( dom_container ) {
|
||||||
RIGHT : 'r'
|
RIGHT : 'r'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var state = {
|
||||||
|
moving : cell.BALL,
|
||||||
|
distance_travelled : 0,
|
||||||
|
level : 0,
|
||||||
|
board : "",
|
||||||
|
board_infos : { },
|
||||||
|
dom_container : dom_container
|
||||||
|
};
|
||||||
|
|
||||||
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#################",
|
||||||
" # # # # # ### 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 #################",
|
||||||
|
@ -326,15 +335,6 @@ function initialize_a_star( dom_container ) {
|
||||||
return sprites;
|
return sprites;
|
||||||
}
|
}
|
||||||
|
|
||||||
var state = {
|
|
||||||
moving : cell.BALL,
|
|
||||||
distance_travelled : 0,
|
|
||||||
level : 0,
|
|
||||||
board : "",
|
|
||||||
board_infos : { },
|
|
||||||
dom_container : dom_container
|
|
||||||
};
|
|
||||||
|
|
||||||
var starhtml = '<div class="gstar">';
|
var starhtml = '<div class="gstar">';
|
||||||
starhtml += '<aside id="help">' + format_help( state ) + '</aside>';
|
starhtml += '<aside id="help">' + format_help( state ) + '</aside>';
|
||||||
starhtml += '<canvas id="starboard" width="320" height="180"></canvas>';
|
starhtml += '<canvas id="starboard" width="320" height="180"></canvas>';
|
||||||
|
|
Loading…
Reference in a new issue