Skip to content

Instantly share code, notes, and snippets.

View ekeeper's full-sized avatar

Valeriy Bokhan ekeeper

View GitHub Profile
@ekeeper
ekeeper / Gauge.as
Last active December 15, 2015 05:49 — forked from PrimaryFeather/Gauge.as
My version of Gauge extension for Starling (http://wiki.starling-framework.org/extensions/gauge). Vertical gauge was added. Thanks to Dima (deep).
package starling.extensions
{
import flash.geom.Point;
import starling.display.Image;
import starling.display.Sprite;
import starling.textures.Texture;
/* Usage:
var gauge:Gauge = new Gauge(texture);
@ekeeper
ekeeper / ClippedSprite.as
Created June 5, 2012 17:02 — forked from PrimaryFeather/ClippedSprite.as
Simple Sprite subclass with a rectangular mask in stage coordinates
package starling.extensions
{
import flash.display3D.Context3D;
import flash.geom.Point;
import flash.geom.Rectangle;
import starling.core.RenderSupport;
import starling.core.Starling;
import starling.display.DisplayObject;
import starling.display.Sprite;