/phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.

Primary LanguageJavaScriptMIT LicenseMIT

Phaser CE Type-updated

This fork makes it easier to use Phaser CE for Typescript development.

Install

npm install --save-dev phaser-ce-type-updated

Usage

// tsconfig.json
{
  ...
  "include": [
    "./node_modules/phaser-ce-type-updated/typescript/phaser.d.ts",
    ...
  ]
}
// index.ts
import p2 = require('phaser-ce-type-updated/build/custom/p2');
import PIXI = require('phaser-ce-type-updated/build/custom/pixi');
import Phaser = require('phaser-ce-type-updated/build/custom/phaser-split');

(window as any).p2 = p2;
(window as any).PIXI = PIXI;
(window as any).Phaser = Phaser;