Skip to content

Instantly share code, notes, and snippets.

@MarcinMM
Created August 8, 2011 17:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save MarcinMM/1132219 to your computer and use it in GitHub Desktop.
Dweller: multi-layer image prototype
class MonsterGraphic extends Graphic {
public var creatureSprite:Spritemap;
public var armorSprite:Spritemap;
public var weaponSprite:Spritemap;
override public function render(target:BitmapData, point:Point, camera:Point):void {
creatureSprite.render(target, point, camera);
armorSprite.render(target, point, camera);
weaponSprite.render(target, point, camera);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment