encapsulate everything in initialize_a_star()

This commit is contained in:
Gwenhael Le Moine 2011-07-13 22:57:02 +02:00
parent 1c7c308c60
commit 032996dd52

View file

@ -1,3 +1,4 @@
function initialize_a_star( dom_container ) {
var LEVEL_HEIGHT = 9; var LEVEL_HEIGHT = 9;
var LEVEL_WIDTH = 16; var LEVEL_WIDTH = 16;
@ -325,7 +326,6 @@ function load_sprites( theme ) {
return sprites; return sprites;
} }
function initialize_a_star( dom_container ) {
var state = { var state = {
moving : cell.BALL, moving : cell.BALL,
distance_travelled : 0, distance_travelled : 0,