A WIP 3d gladiatorial/sandbox/open-world rpg game example using the Ash framework ( http://github.com/nadako/Ash-HaXe ), Ash3D boiler-plate( http://github.com/Glidias/ash3d ) and a (currently Flash-based) LOD terrain engine ( http://github.com/Glidias/alternterrain ) to support large terrain environments.
Basic core component/system & boilerplate game logic/collisions are all coded in Haxe (which can act as a base for other target platforms..), but any engine/platform-dependant implementations (rendering, particles, bridging, etc.) are currently coded in pure Flash/AS3, currently targetting Alternativa3D engine. It's possible to use externs in Haxe, but accessing alternativa3d namespaced items for Alternativa3D isn't easy to do, and so having a means to deliver the final output through Flash/AIR is still the best option.
Some files to take note:
-
Arena_HaxeSWC.hxproj - This is used to test-run the core component/system game logic for Flash under Haxe.
-
src/compileswc.hxml - Run this file to immediatley compile Haxe source code from anywhere into a SWC that can be used in AS3 projects.
-
Arena_AS3.as3proj - AS3 Project. This is for performing the final compile to deliver under Flash/ Alternativa3D environment.
Any models and animations are from Gladiator HL mod http://www.moddb.com/mods/gladiator1 . Used with permission.