Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var bitmapData = Assets.getBitmapData ("tiles.png");
var tileData = new TileData (bitmapData, new Rectangle (0, 0, 100, 100));
var tilemap = new Tilemap (800, 600);
var tile = new Tile (tileData);
tilemap.addTile (tile);
addChild (tilemap);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment