[Utility] Phaser Craft .

Recommended Posts

Hello everyone. I've create this plugin for Phaser, to make phaser more chainable.
The first stable version was created in January (2016) ,But i didn't have time to spread since.

I have used this class in over 30+ of my private projects.
And i experienced a great boost and well organized code on developing.


Examples :

Phaser vanilla.

var sprite = game.add.sprite(0,0,'phaser-dude');
sprite.x = 100;
sprite.y = 100;
sprite.tint = 0xFF0000;

same code in Craft :

var sprite = craft.$sprite('phaser-dude')

// phaser vanilla still works
sprite.x = 200;

The plugin are exported in UMD that means it work in global variable, ES6, webpack, browserify.
Craft are developed in ES6 and build using Gulp. Be welcome to contribute and be part of this.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.