Skip to content

Instantly share code, notes, and snippets.

@alamboley
Created November 6, 2012 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alamboley/4022074 to your computer and use it in GitHub Desktop.
Save alamboley/4022074 to your computer and use it in GitHub Desktop.
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