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>
|
||||
state = load_level( levels, 0 );
|
||||
start_loop( state, "#main" );
|
||||
initialize_a_star( "#main" );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue