Genome2d Compilation Method

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.