Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public start(loader: ex.Loader) {
return super.start(loader);
}
}
const game = new Game();
const levelOne = new LevelOne(game);
const player = new Player();
player.addDrawing(Resources.Sword);
levelOne.add(player);
game.add('levelOne', levelOne);
let loader = new ex.Loader();
for (let key in Resources) {
loader.addResource(Resources[key]);
}
game.start(loader).then(() => {
game.goToScene('levelOne');
});