I have a game which uses WCK and stage3D. I'd like it to run on both the web and mobile.
For mobile I'd like to use WCK to get the speed increase.
For the web I'd like to use Box2dAS so I don't have to pay the "speed tax"
Is there an easy way of changing which version gets used at compile time without needing to make large changes to all the code.
If we were using C I would use preprocessor directives. I'm not sure how to do this in Actionscript.
Any pointers would be great.
For mobile I'd like to use WCK to get the speed increase.
For the web I'd like to use Box2dAS so I don't have to pay the "speed tax"
Is there an easy way of changing which version gets used at compile time without needing to make large changes to all the code.
If we were using C I would use preprocessor directives. I'm not sure how to do this in Actionscript.
Any pointers would be great.