AmidosEngine is a FlashPunk inspired game engine base on Starling. It was created as a set of helping classes designed for fast development of games, something FlashPunk user are used to. The engine has a growing list of features, including world/entity structure, display classes as Spritemap
, Tilemap
, TileImage
and Background
, and sound classes, e.g Sfx
.
It also has data and UI classes, e.g. ButtonEntity
, as well as a 2D box collision system. It’s also possible to use cameras, but only move-based ones, no rotation or zooming. Finally it has a set of I/O events as multitouch and keyboard.
Sample
public class Main extends Sprite { public static const FRAMERATE:int = 30; public static const GAME_SCALE:Number = 2; private var mStarling:Starling; private var currentLoadingScreen:Bitmap; public function Main():void { // entry point AE.Initialize(); Starling.multitouchEnabled = true; Starling.handleLostContext = true; mStarling = new Starling(Game, stage, new Rectangle(0, 0, screenWidth, screenHeight)); mStarling.addEventListener(starling.events.Event.ROOT_CREATED, gameStarted); mStarling.start(); } private function gameStarted(e:starling.events.Event):void { mStarling.removeEventListener(starling.events.Event.ROOT_CREATED, gameStarted); AE.game.background.color = 0xFFCCCCCC; AE.assetManager.enqueue(EmbeddedGraphics); AE.assetManager.enqueue(EmbeddedSounds); AE.assetManager.enqueue(EmbeddedData); AE.assetManager.loadQueue(loadingFunction); } private function loadingFunction(ratio:Number):void { if (ratio == 1) { AE.game.ActiveWorld = new LoadingWorld(new DemoWorld() ,currentLoadingScreen); } } }
Via: FlashDaily.net
RT @as3gamegears: New: AmidosEngine (FlashPunk inspired game engine base on Starling) http://t.co/xykz421Gab #as3 #flash #gamedev via @Flas…
RT @as3gamegears: New: AmidosEngine (FlashPunk inspired game engine base on Starling) http://t.co/xykz421Gab #as3 #flash #gamedev via @Flas…