How to use the open/index.js function in open

To help you get started, we’ve selected a few open examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github channingbreeze / phaser-wxdemo / js / main.js View on Github external
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');

open

Open stuff like URLs, files, executables. Cross-platform.

MIT
Latest version published 8 months ago

Package Health Score

79 / 100
Full package analysis