From 0670cb375e2cac529f1fccc400f510a83ec56369 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 13 Jul 2011 23:00:02 +0200 Subject: [PATCH] move things around (it's getting late, time to stop fiddling with this pointlessly) --- js/star.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/js/star.js b/js/star.js index c7dcf56..d616ccf 100644 --- a/js/star.js +++ b/js/star.js @@ -16,6 +16,15 @@ function initialize_a_star( dom_container ) { 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#################", " # # # # # ### 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 #################", @@ -326,15 +335,6 @@ function initialize_a_star( dom_container ) { return sprites; } - var state = { - moving : cell.BALL, - distance_travelled : 0, - level : 0, - board : "", - board_infos : { }, - dom_container : dom_container - }; - var starhtml = '
'; starhtml += ''; starhtml += '';