Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var game = new Phaser.Game({
width: 375,
height: 667,
renderer: Phaser.CANVAS,
canvas: canvas
});
game.state.add('boot', new BootState(game));
game.state.add('preload', new PreloadState(game));
game.state.add('animation', new AnimationState(game));
game.state.add('menu', new MenuState(game));
game.state.add('submenu', new SubMenuState(game));
new BasicExamples(game);
new GameExamples(game);
new OpenExamples(game);
game.state.start('boot');