开发者

Runtime parsing in Android

开发者 https://www.devze.com 2023-01-21 05:50 出处:网络
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.

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

精彩评论

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