I have an idea for a game with multiple types with differences, sharing all the same base code (think Pokemon, but with more difference) is there a way to do that? For example, using #if example --code-- #end
, like html5/windows specific content? And if so, how would you build it (lime test windows -example)?
Based on lime help
:
-Dvalue -- Specify a define to use when processing other commands
So by executing lime test windows -Dmydefine
you should then be able to use the compiler define to do conditional compilation in your code :
#if mydefine
// your specific code
#end
Is it what you are looking for ?