Created
October 31, 2011 22:53
-
-
Save jgranick/1329311 to your computer and use it in GitHub Desktop.
Now using NME instead
This file contains 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
import nme.display.Sprite; | |
class SimpleHX extends Sprite { | |
public function new () { | |
super (); | |
var triangle = new Sprite (); | |
triangle.graphics.beginFill (0xFF0000); | |
triangle.graphics.moveTo (0, 0.5, 0); | |
triangle.graphics.lineTo (-0.5, -0.5, 0); | |
triangle.graphics.lineTo (0.5, -0.5, 0); | |
triangle.graphics.endFill (); | |
triangle.scaleX = 100; | |
triangle.scaleY = 100; | |
addChild (triangle); | |
} | |
public static main () { | |
new SimpleHX (); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment