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 bd = Assets.getBitmapData("path/to/image.png"); | |
var a : Array<Array<BitmapData>> = []; | |
var xCount = 5; // berapa banyak tile horizontal | |
var yCount = 5; // berapa banyak tile vertikal | |
var tileWidth = Std.int(bd.width/xCount); // dibulatkan kebawah | |
var tileHeight = Std.int(bd.height/yCount); // dibulatkan kebawah |
NewerOlder