All Projects → numbofathma → phaser-typescript-webpack

numbofathma / phaser-typescript-webpack

Licence: other
Another Phaser CE boilerplate using TypeScript and Webpack.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to phaser-typescript-webpack

phaser-particle-editor-plugin
This plugin creates particles based on JSON data generated by Phaser Particle Editor
Stars: ✭ 28 (+64.71%)
Mutual labels:  games, phaser, phaser-game
uglify
PHP wrapper to execute uglify-js/clean-css node package or fallback to PHP alternatives
Stars: ✭ 16 (-5.88%)
Mutual labels:  uglify, minify
phaser3-plugin-pathbuilder
Draw and edit Lines, Bezier Curves, Splines at runtime, explore your scene and export your paths to Phaser
Stars: ✭ 67 (+294.12%)
Mutual labels:  games, phaser
phaser multiplayer demo
HTML5 Multiplayer with Phaser and Go
Stars: ✭ 35 (+105.88%)
Mutual labels:  games, phaser
Games
一个基于Phaser的小游戏集合
Stars: ✭ 1,167 (+6764.71%)
Mutual labels:  games, phaser
phaser3-typescript-starter-kit
This repository contains the code necessary to start making a game in Phaser 3 using TypeScript.
Stars: ✭ 94 (+452.94%)
Mutual labels:  phaser, phaser-boilerplate
phaser-starter
Minimal starter project to get a Phaser game environment up and running with ease.
Stars: ✭ 73 (+329.41%)
Mutual labels:  phaser, phaser-boilerplate
phaser-parcel
A Phaser 3 game template using Parcel bundler
Stars: ✭ 64 (+276.47%)
Mutual labels:  phaser, phaser-boilerplate
phaser-jam-template
A Phaser Template to kick off your Game Jam with everything you need. Typescript, code quality, building for itch, various input methods, examples, bootloader, preloader, main game, end screen, credits screen and license screen.
Stars: ✭ 18 (+5.88%)
Mutual labels:  phaser, phaser-boilerplate
phaser-mario
Mario-like class for Phaser
Stars: ✭ 19 (+11.76%)
Mutual labels:  games, phaser
Dude-SideScroll
🎮 A side-scrolling adventure game.
Stars: ✭ 19 (+11.76%)
Mutual labels:  phaser, phaser-game
Terser Webpack Plugin
Terser Plugin
Stars: ✭ 1,687 (+9823.53%)
Mutual labels:  uglify, minify
Webpack Starter Basic
A simple webpack starter project for your basic modern web development needs.
Stars: ✭ 552 (+3147.06%)
Mutual labels:  phaser, webpack4
Opensc2k
OpenSC2K - An Open Source remake of Sim City 2000 by Maxis
Stars: ✭ 4,753 (+27858.82%)
Mutual labels:  phaser, phaser-game
template
使用 phaser3 + es6 + webpack4.8.1 配置开发游戏(基本模版)
Stars: ✭ 12 (-29.41%)
Mutual labels:  phaser, webpack4
minifier
Middleware to minify Html, CSS and Javascript responses
Stars: ✭ 15 (-11.76%)
Mutual labels:  uglify, minify
phaser3-typescript-template
A Phaser 3 TypeScript Template
Stars: ✭ 30 (+76.47%)
Mutual labels:  phaser-boilerplate, webpack4
Phaser3.Boilerplate
Phaser 3 Boilerplate project for rapid development.
Stars: ✭ 15 (-11.76%)
Mutual labels:  phaser, phaser-boilerplate
phaser-boilerplate
Phaser Boilerplate
Stars: ✭ 15 (-11.76%)
Mutual labels:  phaser, phaser-boilerplate
ubisoft-game-lab
Lumina - Ubisoft Game Lab 2016 Entry
Stars: ✭ 16 (-5.88%)
Mutual labels:  games

Phaser.io CE 2.15.0, Howler.js 2.1.3, TypeScript and Webpack 4.43, play nice together.

A bootstrap project to create games with Phaser.io, Howler.js, TypeScript and Webpack.

Features

  • Uses the latest Phaser CE
  • Uses Howler (an awesome audio library) - can be easily removed if one does not use it
  • TypeScript linter that checks TypeScript code for readability, maintainability, and functionality errors
  • Webpack 4 ready
  • Built-in commands to easily deploy code your code (minify, uglify, comments removal, etc)
  • Other awesome stuff!

Setup

To use this bootstrap you’ll need to install a few things before you have a working copy of the project.

1. Clone this repo:

Navigate into your workspace directory.

Run:

git clone https://github.com/numbofathma/phaser-typescript-webpack.git

2. Install node.js and npm:

https://nodejs.org/en/

3. Install dependencies:

Navigate to the cloned repo’s directory.

Run:

npm install

4. Run the development server:

Run:

npm run start

This will run a server so you can run the game in a browser.

Open your browser and enter localhost:8000 into the address bar.

As you change your code, Webpack will watch for changes and the browser will refresh.

5. Build for deployment:

Run:

npm run build

This will optimize and minimize the compiled bundle. Your code will be minified and uglyfied for reverse engineering protection. The vendor library will only be minified because uglify will add extra MBs to your game.

6. Extra features

I've also added a command that auto-fixes your code according to the rules in the .eslintrc.json file.

Run:

npm run lint:fix

...and also a commad to check your TypeScript types.

Run:

npm run check-types

Credits

Big thanks to this great repos:

https://github.com/lean/phaser-es6-webpack/tree/typescript
https://github.com/eduardonunesp/phaser-typescript-webpack-boilerplate
https://github.com/heathkit/phaser-typescript-webpack-starter/tree/master/src/sprites

Special thanks to: dimorphic


Made with <3 in Romania
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].