使用Javascript(或类似)的C#XNA游戏脚本 [英] Javascript (or similar) gaming scripts for C# XNA

查看:175
本文介绍了使用Javascript(或类似)的C#XNA游戏脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我准备自己尚未开发XNA C#另一场比赛。

Lately I am preparing myself to develop yet another game in XNA C#.

我最后一次在XNA C#做过游戏,我跑进不必地图和定制数据添加到游戏的这个问题。每次我想在新内容添加或更改某些值的游戏角色什么的,我不得不重建整个游戏还是什么 - 这可能需要相当长的时间。

The last time I worked on a game in XNA C#, I ran into this problem of having to add maps and customizable data into the game. Each time I want to add in new content or change some values to the game character or something, I had to rebuild the whole game or what - which can take quite some time.

有没有我可以编写脚本,游戏加载,可以通过我的XNA C#游戏中解释,而无需编译内容什么办法?我期待在希望的JavaScript。

Is there any way which I can write gaming scripts to load the content that can be interpreted by my XNA C# game without having to compile? I am looking at hopefully Javascript.

我希望我能在功能和其他小API,它可以从外部游戏脚本调用操纵比赛或负载增加数据等。我不关心游戏被黑客攻击,因为它是相当早着呢 - 发展是非常优先的

I would hope that I can add in functions and other small API which can be called from the external gaming script to manipulate the game or load data so on. I am not concerned about the game being hacked since it's quite early yet - the development is of much priority.

任何帮助,将不胜感激。

Any help would be greatly appreciated.

推荐答案

您可以尝试 Jint 这是一个开源的JavaScript解释器写在C#

You can try Jint which is a open source Javascript interpreter written in C#

这篇关于使用Javascript(或类似)的C#XNA游戏脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆