Created
July 12, 2016 15:08
-
-
Save jgranick/568bcadee92ffb6e1c44cfa421a9aeae to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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