Skip to content

Instantly share code, notes, and snippets.

View lardratboy's full-sized avatar

Brad P. Taylor lardratboy

View GitHub Profile
@lardratboy
lardratboy / BPTDib.h
Created December 11, 2014 02:03
Another bit of code from BPainT this time from the windows display code
// BPTDib.h: interface for the BPTDib class.
//
// Copyright (c) 2000, Brad P. Taylor, LLC
//
// All rights reserved, unauthorized reproduction prohibited
//
// -- FILE NOTES --
//
//////////////////////////////////////////////////////////////////////
@lardratboy
lardratboy / BPTSRL.h
Created December 11, 2014 01:59
Adding some sample code for people to look at, here is a piece from BPainT this time
// BPTSRL.h: interface for the CBPTSRL class.
//
// Copyright (c) 2000, Brad P. Taylor, LLC
//
// All rights reserved, unauthorized reproduction prohibited
//
// -- FILE NOTES --
//
//////////////////////////////////////////////////////////////////////
@lardratboy
lardratboy / BPT_Pixels_2003.h
Last active August 29, 2015 14:09
Started looking at upgrading the pixel types used by the LSD engine, using this as an archive/reference.
// BPTLLC_Pixels.h
//
// Copyright (c) 2003, Brad P. Taylor, LLC
//
// All rights reserved, unauthorized reproduction prohibited
//
// -- FILE NOTES --
//
// **Portablilty warning**
//
@lardratboy
lardratboy / bpt_basic_phaser_prefabs.ts
Created August 29, 2014 19:59
my default base types for creating Phaser.Sprite and Phaser.Image prefabs for use with bpt_prefab.ts
// Author Brad P. Taylor ([email protected]) license MIT
///<reference path="../../../../bower_components/phaser-official/build/phaser.d.ts"/>
///<reference path="./prefab.ts"/>
module bpt {
// ------------------------------------------------------------------------
export class SpritePrefab extends Phaser.Sprite {
@lardratboy
lardratboy / bpt_rope.ts
Created August 28, 2014 19:51
Phaser + PIXI Rope (quick hack until official support)
class Rope extends Phaser.Group {
constructor(game, texture, points) {
PIXI.Rope.call(this, texture, points);
super(game);
}
}
bpt.prefab.applyMixins_( Rope,[PIXI.Strip,PIXI.Rope] );
@lardratboy
lardratboy / bpt_widget.ts
Created August 28, 2014 18:44
Phaser bpt widget base (work in progress)
// Author Brad P. Taylor ([email protected]) license MIT
export class WidgetPartDef<T> {
constructor( public Type:T, public regex:RegExp, public required:boolean = true ) {}
}
export class Widget<T> extends Panel {
constructor(game, public parts:T ) {
@lardratboy
lardratboy / bpt_flickrsprite.ts
Created August 28, 2014 18:38
Phaser flickr sprite helpers (work in progress)
// Author Brad P. Taylor ([email protected]) license MIT
///<reference path="../../../../bower_components/phaser-official/build/phaser.d.ts"/>
///<reference path="./prefab.ts"/>
///<reference path="./basic.ts"/>
///<reference path="../libs/collections.ts"/>
///<reference path="../../DefinitelyTyped/async/async.d.ts"/>
///<reference path="../../DefinitelyTyped/lodash/lodash.d.ts"/>
module bpt {
@lardratboy
lardratboy / bpt_prefab_extras.ts
Created August 28, 2014 18:35
Phaser bpt.Prefab breadthfirst/depthfirst children searching (work in progress)
// Author Brad P. Taylor ([email protected]) license MIT
///<reference path="../../../../bower_components/phaser-official/build/phaser.d.ts"/>
///<reference path="../../DefinitelyTyped/lodash/lodash.d.ts"/>
///<reference path="./prefab.ts"/>
///<reference path="./basic.ts"/>
// this really should just be a collection of utils
module bpt.prefab {
@lardratboy
lardratboy / extendedgroup.ts
Created August 28, 2014 18:33
Phaser group supports visual and input clipping (work in progress)
// Author Brad P. Taylor ([email protected]) license MIT
///<reference path="../../../../bower_components/phaser-official/build/phaser.d.ts"/>
///<reference path="../../DefinitelyTyped/lodash/lodash.d.ts"/>
///<reference path="./prefab.ts"/>
///<reference path="./prefab_extras.ts"/>
module bpt.prefab {
// ------------------------------------------------------------------------
@lardratboy
lardratboy / hvlayoutgroup.ts
Created August 28, 2014 18:31
Phaser group to layout children in rows or columns (work in progress)
// Author Brad P. Taylor ([email protected]) license MIT
///<reference path="../../../../bower_components/phaser-official/build/phaser.d.ts"/>
///<reference path="./extendedgroup.ts"/>
module bpt {
export interface ILayoutController {
onlayoutChange:Phaser.Signal;
requestLayout();
handleLayout();