Skip to content

Instantly share code, notes, and snippets.

View lardratboy's full-sized avatar

Brad P. Taylor lardratboy

View GitHub Profile
@lardratboy
lardratboy / bpt.scale9.ts
Last active September 30, 2015 18:59
Phaser Scale9 sprite supports tiled or basic scaling
// Author Brad P. Taylor ([email protected]) license MIT
///<reference path="../../../../bower_components/phaser-official/build/phaser.d.ts"/>
///<reference path="./prefab.ts"/>
// TODO - support PIXI.Texture/BaseTexture/Atlas (if texture then use inner texture)
// TODO - error checking ? possibly correct bad snap requests (not multiple)
module bpt {
export class Scale9 extends Phaser.Group {
@lardratboy
lardratboy / bpt.prefab.ts
Last active August 29, 2015 14:03
Phaser.io Prefab/Scene Layout Factory - early pass
// Author Brad P. Taylor ([email protected]) license MIT
///<reference path="../../../../bower_components/phaser-official/build/phaser.d.ts"/>
/*
Pefab JSON configuration / layout format details
Every Prefab registered is automatically associated with an [OPTIONAL] .json file, the
members of this .json data blob if present are currently processed as follows.