Genome2d is an efficient 2D engine. Currently, it supports flash (stage3d) and HTML5, because only the author is maintaining it, and the source code is not open.
I recently talked with the author about open source.
The author divides several modules and compilation is not very convenient. Here we will briefly introduce the flash compilation method.
Because the author converts the code to haxe, he needs to install haxe. Now genome2d is 1.0.277 and haxe is 3.1.3.
How can I install haxe and git? Here is the relationship between the local folder and git:
genome2d core [email protected]:pshtif/Genome2D-Core.git context flash [email protected]:pshtif/Genome2D-ContextFlash.git common [email protected]:pshtif/Genome2D-ContextCommon.gitout
The out directory is the output directory. After cloning according to the above correspondence, run haxe core \ build \ SWC. hxml in the genome2d directory to generate SWC,
Do not think it is done here, because haxe does not link the Lib catalog during the link, so open SWC and add the agal catalog with WinRAR or the like. Otherwise, an error will be reported during compilation.
<script name="com/adobe/utils/extended/AGALMiniAssembler" mod="1407288430000"> <def id="com.adobe.utils.extended:AGALMiniAssembler"/> <dep id="Array" type="e"/> <dep id="Boolean" type="s"/> <dep id="Number" type="e"/> <dep id="Object" type="i"/> <dep id="RegExp" type="s"/> <dep id="String" type="s"/> <dep id="flash.display3D:Context3D" type="s"/> <dep id="flash.display3D:Program3D" type="e"/> <dep id="flash.utils:ByteArray" type="s"/> <dep id="flash.utils:Dictionary" type="e"/> <dep id="flash.utils:Endian" type="e"/> <dep id="flash.utils:getTimer" type="e"/> <dep id="int" type="s"/> <dep id="trace" type="e"/> <dep id="uint" type="s"/> </script> <script name="fl
If you want to compile the HTML5 version, it is easier than the Flash version.
Put the author's GitHub address at: https://github.com/pshtif. you can study the interest of the author.
Genome2d Compilation Method