parametrable theme
This commit is contained in:
parent
4de9f3eaee
commit
3de7966666
2 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(
|
$(document).ready(
|
||||||
function() {
|
function() {
|
||||||
initialize_a_star( "#main", 0 );
|
initialize_a_star( "#main", 0, "cyco002" );
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var initialize_a_star = function( dom_container, level_index ) {
|
var initialize_a_star = function( dom_container, level_index, theme ) {
|
||||||
// kinda enums
|
// kinda enums
|
||||||
var cell = { WALL: '#', BALL: '@', CUBE: 'H', EMPTY: ' ', GIFT: 'x' };
|
var cell = { WALL: '#', BALL: '@', CUBE: 'H', EMPTY: ' ', GIFT: 'x' };
|
||||||
var direction = { UP: 38, DOWN: 40, LEFT: 37, RIGHT: 39 };
|
var direction = { UP: 38, DOWN: 40, LEFT: 37, RIGHT: 39 };
|
||||||
|
@ -305,7 +305,7 @@ var initialize_a_star = function( dom_container, level_index ) {
|
||||||
jQuery( dom_container ).html( starhtml );
|
jQuery( dom_container ).html( starhtml );
|
||||||
|
|
||||||
// Now we can collect some informations about this DOM branch we have
|
// Now we can collect some informations about this DOM branch we have
|
||||||
load_sprites( "HP48" );
|
load_sprites( theme );
|
||||||
var DOM_infos = {
|
var DOM_infos = {
|
||||||
container: dom_container,
|
container: dom_container,
|
||||||
canvas: {
|
canvas: {
|
||||||
|
|
Loading…
Reference in a new issue