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
package com.eclecticdesignstudio.minehx; | |
import nme.display.Sprite; | |
import nme.system.Capabilities; | |
import nme.Assets; | |
/** | |
* ... |
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
var list:Vector.<Point> = new Vector.<Point>(); | |
list[0] = new Point(1, 1); | |
list[1] = new Point(-1, 1); | |
list[2] = new Point(-1, -1); | |
list[3] = new Point(1, -1); | |
var polygon:Polygon = new Polygon(list); | |
// INTERPRETATION 1: | |
// polygon is defined by vertices and represents a square the sides of which lie parallel |