Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to specify the view (Citrus Engine recipe)
// 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