Jump to content

Cross Compiling your ActionScript Starling Games to WebGL and JavaScript


renaun
 Share

Recommended Posts

For those times you have existing ActionScript code and want to try it on WebGL. Currently works best with Starling based games. Here is a demo:

http://renaun.com/html5/randoristarlingtest/hero.html

 

Summary is using Randori Compiler, KontikiJS, and Starling you can take your games to WebGL / HTML5. Its basically like a TypeScript type workflow but in ActionScript.

 

KontikiJS – https://github.com/renaun/KontikiJS
Randori Compiler (my fork) – https://github.com/renaun/randori-compiler
Randori SDK – https://github.com/RandoriAS/randori-sdk
Starling-Framework (my fork with minor changes) – https://github.com/renaun/Starling-Framework
HungryHero AS3 Sample Code – https://github.com/renaun/RandoriExamples/tree/master/HungryHeroJS

 

More info here:

http://renaun.com/blog/2013/09/cross-compiling-your-actionscript-starling-games-to-webgl-and-javascript/

 

In theory if you have AS3 game frameworks you could conceivably create JavaScript versions with this process. All outputted code is very readable and easy to edit. Since its compiled if you have all source it will only compile what you need, then with closure and min you get a pretty compact JS version of your game and framework code.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...