mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-27 09:58:44 +01:00
we know where to find the levels
This commit is contained in:
parent
435498c074
commit
d34666810a
1 changed files with 3 additions and 3 deletions
|
@ -164,9 +164,9 @@ function initialize_a_star( dom_container ) {
|
||||||
full_display_on_canvas( DOM_infos.container + " #starboard" );
|
full_display_on_canvas( DOM_infos.container + " #starboard" );
|
||||||
}
|
}
|
||||||
|
|
||||||
function load_level( levelset, index ) {
|
function load_level( index ) {
|
||||||
state.level = index;
|
state.level = index;
|
||||||
state.board = levelset[ state.level ];
|
state.board = levels[ state.level ];
|
||||||
state.distance_travelled = 0;
|
state.distance_travelled = 0;
|
||||||
state.moving = cell.BALL;
|
state.moving = cell.BALL;
|
||||||
return state;
|
return state;
|
||||||
|
@ -346,7 +346,7 @@ function initialize_a_star( dom_container ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
////// MAIN (so to speak) //////
|
////// MAIN (so to speak) //////
|
||||||
state = load_level( levels, 0 );
|
state = load_level( 0 );
|
||||||
|
|
||||||
start_loop( );
|
start_loop( );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue