How to use the phaser-ce.Game function in phaser-ce

To help you get started, we’ve selected a few phaser-ce 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 amaccann / phaser-navmesh-generation / src / demo / index.js View on Github external
import 'phaser';

import { Game } from 'phaser-ce';
import DemoState from './demoState';

const config = {
  width: 800,
  height: 600,
  renderer: Phaser.AUTO,
  parent: '',
  transparent: false,
  antialias: true,
  physicsConfig: { arcade: true }
};

const game = new Game(config);
game.state.add('demo', DemoState);
game.state.start('demo');

phaser-ce

Phaser CE (Community Edition) is a fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis