Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cloakedninjas/phaser-typescript-boilerplate
Barebones boilerplate for Phaser using Typescript
https://github.com/cloakedninjas/phaser-typescript-boilerplate
boilerplate javascript phaser phaserjs typescript
Last synced: 15 days ago
JSON representation
Barebones boilerplate for Phaser using Typescript
- Host: GitHub
- URL: https://github.com/cloakedninjas/phaser-typescript-boilerplate
- Owner: cloakedninjas
- Archived: true
- Created: 2015-12-08T20:31:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-27T05:50:08.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T12:59:23.246Z (3 months ago)
- Topics: boilerplate, javascript, phaser, phaserjs, typescript
- Language: JavaScript
- Homepage:
- Size: 462 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phaser Typescript Boilerplate
> ⚠️ **Phaser 3 boilerplate available !**
> This repo is no longer maintained, see boilerplate for v3 here: https://github.com/cloakedninjas/phaser3-typescript-boilerplate## Introduction
Unopinionated (mostly) package containing bare bones Phaser game, containing:
* Phaser 2 or CE
* Typescript
* Grunt build process
* Basic game
* Preload State, with loading bar
* Game State## Installing
`git clone --depth 1 https://github.com/cloakedninjas/phaser-typescript-boilerplate.git`
An install script is provided which will perform the following:
- Install npm dependencies
- Ask which version of Phaser you want to install (latest official 2.x or Community Edition)
- Ask you for a namespace for your project
- Set the namespace for the base files providedYou can run it with `bin/install`
## Building
- `grunt dev` for single build or `grunt watch` to compile as you make changes.
- `grunt prod` for production (minified) build## Running
Built files are placed into the `public/` directory. Point a webserver at it, and you're away!
`http-server public`