mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2025-01-27 07:58:38 +01:00
one function initialize_a_star as the entry point
This commit is contained in:
parent
c2f5154137
commit
aa465179f8
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…
Add table
Reference in a new issue