All Projects → webcaetano → phaser-boilerplate

webcaetano / phaser-boilerplate

Licence: MIT license
Phaser Boilerplate

Programming Languages

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

Projects that are alternatives of or similar to phaser-boilerplate

phaser-parcel
A Phaser 3 game template using Parcel bundler
Stars: ✭ 64 (+326.67%)
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 (+20%)
Mutual labels:  phaser, phaser-boilerplate
phaser-starter
Minimal starter project to get a Phaser game environment up and running with ease.
Stars: ✭ 73 (+386.67%)
Mutual labels:  phaser, phaser-boilerplate
phaser3-typescript-starter-kit
This repository contains the code necessary to start making a game in Phaser 3 using TypeScript.
Stars: ✭ 94 (+526.67%)
Mutual labels:  phaser, phaser-boilerplate
phaser-typescript-webpack
Another Phaser CE boilerplate using TypeScript and Webpack.
Stars: ✭ 17 (+13.33%)
Mutual labels:  phaser, phaser-boilerplate
Phaser3.Boilerplate
Phaser 3 Boilerplate project for rapid development.
Stars: ✭ 15 (+0%)
Mutual labels:  phaser, phaser-boilerplate
phaser multiplayer demo
HTML5 Multiplayer with Phaser and Go
Stars: ✭ 35 (+133.33%)
Mutual labels:  phaser
phaser-super-storage
A cross platform storage plugin for Phaser
Stars: ✭ 49 (+226.67%)
Mutual labels:  phaser
grid-engine
An exceptional plugin for grid-based features in the Phaser 3 framework.
Stars: ✭ 124 (+726.67%)
Mutual labels:  phaser
blocker
🎮 (WIP - phase 3) Multiplayer online game using Phaser + WebSocket (Socket.IO)
Stars: ✭ 48 (+220%)
Mutual labels:  phaser
phaser-plugin-debug-arcade-physics
Draws properties of Arcade Physics bodies. Phaser 2/CE
Stars: ✭ 18 (+20%)
Mutual labels:  phaser
ts-phaser-bomb-game
Bomberman clone using websockets and phaser 3
Stars: ✭ 18 (+20%)
Mutual labels:  phaser
chunks tutorial
Small demo showing how to load and manage tilemap chunks on the fly with Phaser 3
Stars: ✭ 41 (+173.33%)
Mutual labels:  phaser
phaser-mario
Mario-like class for Phaser
Stars: ✭ 19 (+26.67%)
Mutual labels:  phaser
phaser-sat-example
An experiment that uses sat-js with Phaser.
Stars: ✭ 14 (-6.67%)
Mutual labels:  phaser
phaser-plugin-game-scale
Scale or resize the game canvas. Phaser v3.15 only
Stars: ✭ 35 (+133.33%)
Mutual labels:  phaser
phaser3-typescript-template
A Phaser 3 TypeScript Template
Stars: ✭ 30 (+100%)
Mutual labels:  phaser-boilerplate
Dude-SideScroll
🎮 A side-scrolling adventure game.
Stars: ✭ 19 (+26.67%)
Mutual labels:  phaser
phaser-candy-crush
Candy crush like game made with Phaser HTML5 game engine
Stars: ✭ 46 (+206.67%)
Mutual labels:  phaser
gstatsjs
Graphics statistic (DrawCalls and TextureCount) for WebGL
Stars: ✭ 48 (+220%)
Mutual labels:  phaser

Phaser logo

Phaser.io Boilerplate in Gulp ES6 (babel)

Features

  • ES6
  • Craft.js - helper for create and extend phaser objects functions in a chainable way
  • Utils.js - common gaming functions

Installation

git clone [email protected]:webcaetano/phaser-boilerplate.git
cd phaser-boilerplate
npm install && bower install

Usage

Start Developing server

gulp 

Create a distribution version

gulp build

Deploy to gh-pages

gulp deploy
  • Change gulp/build.js adress repo [email protected]:webcaetano/phaser-boilerplate.git for yours

Deploy to surge

gulp surge
  • Change gulp/build.js adress repo domain: 'phaser-boilerplate.surge.sh' for yours

Release a patch version (it auto change package.json and bower.json)

gulp patch
// 1.0.0 -> 1.0.1

Release a minor version

gulp minor
// 1.0.1 -> 1.1.0

Release a major version

gulp major
// 1.1.0 -> 2.0.0

Example of craft.js

var group = craft.$g(); // create a group // .$g() is alias for .$group()

var sprite = craft.$sprite('phaser') // create the sprite with key 'phaser'
.$set({
	x:100,
	y:100,
	name:'foo'
}) // set atributes based on a object
.$mid() // same as sprite.anchor.setTo(0.5)
.$into(group) // insert into group
.$tint('#FF0000'); // tint accept '#' or '' 

var ball = craft.$circle({ 
	fill:'#FF00FF',
	size:40
}) // same as game.add.graphics(0,0).beginFill(0xFF00FF).drawCircle(0,0,40)
.$set({
	x:200,
	y:200,
}) // set position
.$into(group) // insert into group

Result : http://phaser-boilerplate.surge.sh

See Also

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].