From 6b513ed5baadbfd0c969aadaba585092fa4e690a Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 14 Jul 2011 10:29:20 +0200 Subject: [PATCH] we know where to find the levels --- js/star.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/star.js b/js/star.js index c5d5185..cab192c 100644 --- a/js/star.js +++ b/js/star.js @@ -164,9 +164,9 @@ function initialize_a_star( dom_container ) { full_display_on_canvas( DOM_infos.container + " #starboard" ); } - function load_level( levelset, index ) { + function load_level( index ) { state.level = index; - state.board = levelset[ state.level ]; + state.board = levels[ state.level ]; state.distance_travelled = 0; state.moving = cell.BALL; return state; @@ -346,7 +346,7 @@ function initialize_a_star( dom_container ) { } ////// MAIN (so to speak) ////// - state = load_level( levels, 0 ); + state = load_level( 0 ); start_loop( );