如何使用jint和XNA构建游戏引擎?
我想在 XNA 中创建一个具有脚本编写能力的游戏引擎 (Jint)。我该怎么做呢? (前进方向的总体思路 - 不一定是细节)。
谢谢
问
I want to create a game engine in XNA that has scripting abilities (Jint). How do I go about doing this? (General idea of the direction to proceed - not necessarrily deatils).
Thanks
Q
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如你所说,你用 C# 制作你的游戏引擎。您嵌入 Jint 并向其公开游戏引擎的相关部分,并为游戏引擎的客户端提供一种方法来注册响应游戏事件或您计划的任何内容而运行的脚本。
如果你更具体地了解你缺乏方向的地方,你可能会从这里的人那里得到更具体的方向:)
不要破坏你在这里的乐趣,但如果你不得不问这个问题,也许你应该考虑一个不太雄心勃勃的项目,比如构建 Jint支持现有的 XNA 游戏引擎吗?这会让你更有机会获得更具体的东西,而不仅仅是从中获得学习经验。
It's really just as you say, you make your game engine, in C#. You embed Jint and expose the relevant parts of your game engine to it, and provide a way for clients of your game engine to register scripts that run in response to game events or whatever you have planned.
If you are more specific about where you lack direction, you may get more specific direction from people here :)
Not to spoil your fun here, but if you had to ask this question, maybe you should consider a less ambitious project, like building Jint support into an existing XNA game engine? That would give you much better odds of getting something more concrete than just a learning experience out of this.