edit

Phaser Node Kit

pnkit

Rapid Game Development with PhaserJS and Node for Modern Browsers.

What Is It?

Phaser Node Kit is a build tool and project template for creating PhaserJS games using NodeJS.

You may be asking yourself, why? And that I can't answer clearly. I just spend most of my time in the Node environment.

The build tool is basically a collection of some popular libraries to get your game built for distribution using Node. The project template is a minimal running Phaser.js game, with included states.

The major components consist of:

Node

Browserify

and of course...

PhaserJS

How It Works

Phaser Node Kit only cares about two types of files, javascript and everything else.

With the javascript, the kit will bundle up your game code with Browserify on changes. For everything else, the kit "hot" copies the files in and out of the build directory. The Phaser CE library is added as a vendor file when you initialize a new game project. It all allows you to make games quicker using Node.

Some Context

I've been playing with games for nearly two and a half decades. I was an ActionScript developer from version 1 through 3, and spent the last five working with the Lua game development community. Now I'm focusing my efforts on Phaser.js.

Being able to hit the ground running when inspiration calls is crucial. I prototype constantly (or just noodle around) and don't like to spend time on tooling.

The goal for Phaser Node Kit was to be able to get to the creative phase as quick as possible.

So with a pnkit init and a pnkit watch, I'm looking at a "live" build in my browser ready to hack on, with a build folder ready to serve or bundle with something like Cordova.

I hope it helps you to be more creative in your game development adventures as well.

^_^ Happy game making!