Ported to Haxe 3/OpenFL
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
sample/Performance Example Assets Aug 29, 2013
src/com/asliceofcrazypie call initBlendFactors only one time Mar 29, 2015
.gitattributes Initial Commit Aug 29, 2013
.gitignore Initial Commit Aug 29, 2013
README.md Update README.md Aug 29, 2013



This is a class which extends openfl.display.Tilesheet and adds stage3D support to the drawTiles method, if available.

Ported to Haxe 3/OpenFL by AS3Boyan

Original repository: https://code.google.com/p/tilesheet-stage3d/

Currently it's not very fast at rendering lots of sprites, but at least, it's much better than default Flash fallback(In tilelayer). Also it has much lower CPU consumption.

How to use it

//Init Stage3D
#if flash11
    TilesheetStage3D.init(stage, 0, 5, init, Context3DRenderMode.AUTO);
function init(?result:String):Void
addEventListener(Event.ENTER_FRAME, onEnterFrame);
//Add this before calling drawTiles to onEnterFrame handler
#if flash11

You can use TilesheetStage3D under the terms of the MIT license.

OpenFL Stage3D drawTiles thread: http://www.openfl.org/developer/forums/general-discussion/stage3d-based-drawtiles-implementation-alpha/