Giter Club home page Giter Club logo

phaser3-webpack-es6-dev-starter's Introduction

Development set up for Phaser 3, Webpack, and ES6.

This is the final version of the project we create in https://snowbillr.github.io/blog/2018-04-09-a-modern-web-development-setup-for-phaser-3/.

For a guide on the concepts included in this project and how to build it from scratch, take a look at the blog post.

Using This Project

  1. Make a directory somewhere in your file system where you want to keep your project.
  2. cd into that directory from the command line.
  3. Clone this project with git clone https://github.com/snowbillr/phaser3-webpack-es6-dev-starter.git.

Installing Dependencies

  1. Follow the blog post for instructions on how to install Yarn if you don't already have it installed.
  2. From the cloned project's directory, run yarn install.

Running The Project

Once you've installed the project's dependencies, you can run the project using Webpack Dev Server.

  1. From your project's directory, run yarn webpack-dev-server.
  2. Open up your browser to http://localhost:8080.
  3. You should see a web page with a black box that says "Hello Phaser!" in green text. That's our game!
  4. 🎉

Because you are running the project through Webpack Dev Server, any time you make a change to your source code, the browser will automatically refresh with your updated code.

phaser3-webpack-es6-dev-starter's People

Contributors

snowbillr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

phaser3-webpack-es6-dev-starter's Issues

Webpack 4

Are there any updates planned for Webpack 4?

Minor improvements

Hi Snowbillr,
Thanks for this starter repo and the accompanying blog post—great stuff!
I had a couple of minor improvements in mind, like npm scripts, auto-adding the script tags of the bundles inside the HTML, and adding some production pipeline. The idea is still to keep the starter lean and minimal.

Would you mind a PR?

Thanks a mill in advance,
Stephan

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.