one function initialize_a_star as the entry point

This commit is contained in:
Gwenhael Le Moine 2011-07-13 16:45:02 +02:00
parent 1ce575bdeb
commit bf7f37a683
2 changed files with 6 additions and 2 deletions

View file

@ -50,8 +50,7 @@
<script src="js/star.js"></script>
<script>
state = load_level( levels, 0 );
start_loop( state, "#main" );
initialize_a_star( "#main" );
</script>
</body>
</html>

View file

@ -310,3 +310,8 @@ function start_loop( state, elt ) {
display_level( state, options.dom_place );
});
}
function initialize_a_star( elt ) {
state = load_level( levels, 0 );
start_loop( state, elt );
}