Giter Club home page Giter Club logo

game-dev-pizza's Introduction

Phaser ES6 Boilerplate

This is an ES6-based boilerplate for creating a multiplayer game using Phaser and Webpack. It is very opinionated as it strips out various unneeded components from Phaser and uses howler.js rather than Phaser Audio.

The purpose of this repo is to be a starting point for creating a game. The idea is to copy the contents and then modify from there. Look at the usage below for instructions on how it all works.

Features

  • Phaser-CE through npm (automatic custom build).
  • Boilerplate written in ES6 class structure.
  • Heavily commented and stripped down for most minimal build.
  • Webpack + Bublé + PostCSS.
  • BrowserSync for livereload during development.
  • Stats.js for displaying FPS/MS.
  • phaser-manifest-loader for easy asset loading.
  • Separate builds for production and development.

Usage

Install the dependencies.

npm i

Start the development web server.

npm run dev

Access your project in the browser.

localhost:7777

Open a new terminal and run.

node server.js

Change your port to localhost:8081.

Then start building your game!

game-dev-pizza's People

Contributors

vrivanov avatar goldfire avatar shrike avatar plamenbotev avatar stzva avatar anarcroth avatar okaybenji avatar reloecc avatar

Stargazers

 avatar  avatar

Watchers

 avatar James Cloos avatar  avatar  avatar  avatar  avatar

Forkers

anarcroth

game-dev-pizza's Issues

Fix movement

Keep track of the order in which movement direction keys were pressed, so that if you press multiple direction keys and then release some of them, the movement will continue in the last pressed direction.

Fix starting explosion image

The starting explosion image is based on checking whether the neighboring tiles are free, whereas it should be checking if they are free OR destructible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.