deltaluca / nape

Haxe/AS3 Physics Engine
http://napephys.com
Other
542 stars 77 forks source link

feature request: actionscript3 source needed. #51

Closed alexlee85 closed 10 years ago

deltaluca commented 11 years ago

.. For any particular reason? Compiling nape to AS3 source code is not going to give you anything remotely resembling readable code, compiling it would... take a long time, and the result would not be as efficient as the haxe compiler .swc

alexlee85 commented 11 years ago

Thanks for your reply, just for learning and debugging :) I don't understand why you create a tool named caxe to generate haxe source code. Is it possible generate actionscript code use caxe?

deltaluca commented 11 years ago

It is not.

caxe is used, because when I started developing nape, the haxe language was not as advanced as it is today, and using a preprocessor gave me the abiliity to do things, with nice looking code that were not possible at the time.

Nowadays, haxe is advanced enough to be able to do everything in nape without use of a pre-processor, but it would take a long time to translate nape into pure haxe.

Haxe does compile to AS3 source code as well... But you're really not going to learn anything from the output.