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 openfl.display; | |
import lime.graphics.cairo.Cairo; | |
import lime.graphics.utils.ImageCanvasUtil; | |
import lime.ui.MouseCursor; | |
import lime.utils.ObjectPool; | |
import openfl._internal.renderer.cairo.CairoBitmap; | |
import openfl._internal.renderer.cairo.CairoDisplayObject; | |
import openfl._internal.renderer.cairo.CairoGraphics; |
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; | |
import lime.app.Application; | |
import lime.graphics.cairo.*; | |
import lime.graphics.opengl.*; | |
import lime.graphics.Image; | |
import lime.graphics.Renderer; | |
import lime.math.Matrix4; | |
import lime.utils.Float32Array; |
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; | |
import extension.gamecenter.GameCenter; | |
import extension.gamecenter.GameCenterEvent; | |
import flash.display.Sprite; | |
class Main extends Sprite { | |
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; | |
import lime.app.Application; | |
import lime.graphics.cairo.*; | |
import lime.graphics.opengl.*; | |
import lime.graphics.Image; | |
import lime.graphics.Renderer; | |
import lime.math.Matrix4; | |
import lime.utils.Float32Array; |
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; | |
import lime.graphics.cairo.*; | |
import lime.graphics.opengl.*; | |
import openfl.display.Bitmap; | |
import openfl.display.BitmapData; | |
import openfl.display.NativeSprite; | |
import openfl.display.Sprite; | |
import openfl.events.NativeRenderEvent; |
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 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); |
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 bitmapData = Assets.getBitmapData ("tiles.png"); | |
var tileset = new Tileset (bitmapData); | |
tileset.addTileRect (new Rectangle (0, 0, 100, 100)); | |
var tilemap = new Tilemap (800, 600); | |
var tile = new Tile (tileset, 0); | |
tilemap.addTile (tile); |
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 bitmapData = Assets.getBitmapData ("tiles.png"); | |
var tileset = new Tileset (bitmapData); | |
tileset.addTileRect (new Rectangle (0, 0, 100, 100)); | |
var tilemap = new Tilemap (800, 600); | |
var tilemapLayer = new TilemapLayer (tileset); | |
var tile = new Tile (0); |
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 com.eclecticdesignstudio.motion.Actuate; | |
import cpp.vm.Thread; | |
import nme.display.Sprite; | |
import nme.events.Event; | |
import nme.Lib; | |
class ThreadingExample extends Sprite { | |
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; | |
import flash.utils.ByteArray; | |
import openfl.Assets; | |
class CustomAssetLibrary extends AssetLibrary { | |