drawing without com.stencyl.graphics.G - circle


Introduction:
Drawing without using com.stencyl.grahics.G could not only avoid game crashing in drawing bau can also help to improve performance 

Circle drawing applications: Usually used in splash radius as well as tower defense games. 

Code:

Explaination:
import com.stencyl.Engine; // assign Enigne.engine.transitionLayer to this.gr
import flash.display.Graphics; // this.gr is a Graphics variable and required to draw anything. 



 

No comments:

Post a Comment