Created
November 6, 2012 02:05
-
-
Save alamboley/4022074 to your computer and use it in GitHub Desktop.
How to specify the view (Citrus Engine recipe)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If you want to use Blitting view instead of the SpriteView override this method in your State class : | |
//Make sure and call this override to specify Blitting mode. | |
override protected function createView():CitrusView { | |
return new BlittingView(this); | |
} | |
//Using Starling or Away3D you don't need to override the view since it uses StarlingState/Away3D which already specify StarlingView/Away3DView. | |
//Don't forget that your Main class should extend StarlingCitrusEngine or Away3DCitrusEngine. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment