one function initialize_a_star as the entry point
This commit is contained in:
parent
1ce575bdeb
commit
bf7f37a683
2 changed files with 6 additions and 2 deletions
|
@ -50,8 +50,7 @@
|
||||||
|
|
||||||
<script src="js/star.js"></script>
|
<script src="js/star.js"></script>
|
||||||
<script>
|
<script>
|
||||||
state = load_level( levels, 0 );
|
initialize_a_star( "#main" );
|
||||||
start_loop( state, "#main" );
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -310,3 +310,8 @@ function start_loop( state, elt ) {
|
||||||
display_level( state, options.dom_place );
|
display_level( state, options.dom_place );
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function initialize_a_star( elt ) {
|
||||||
|
state = load_level( levels, 0 );
|
||||||
|
start_loop( state, elt );
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue