1 decade ago by salsa
How I can change to a new level?
First a load the level Dungeon_a .. but after I wanna change for the Dungeon_b
Im trying to use:
But doesnt work... :(
Whats is wrong?
How to do this work?
Thanks
First a load the level Dungeon_a .. but after I wanna change for the Dungeon_b
Im trying to use:
ig.game.loadLevel(LevelDundeon_b);
But doesnt work... :(
ig.module(
'game.main'
).requires(
'impact.game',
'game.entities.main-player',
'game.entities.player',
'impact.debug.debug',
'game.levels.dungeon_a',
'game.levels.dungeon_b'
).defines(function(){
RPG = ig.Game.extend({
init: function() {
this.loadLevel(LevelDungeon_a);
},
update: function() {
this.parent();
},
draw: function() {
this.parent();
}
});
});
Whats is wrong?
How to do this work?
Thanks
