开发者

Runtime parsing in Android

I am writing a small game for the android platform (HTC Desire) and i am trying to implement a simple scripting language, mostly to set variables and check if condi开发者_运维技巧tions are met.

So I thought maybe there was a runtime parser in the android library, that way I can put some of the logic in scripts, instead of in the engine.

It's quite basic stuff, like setting variables; "skill_accuracy = 5", IF conditions "if (skill_accuracy > nme.accuracy) { hit = true}" and maybe call a function like "call level_won();" but Im guessing that can be done using method invokation.

Any ideas?


Do not invent the wheel. Use Android Scripting Environment

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜