我决定在我完成学业之前尝试创造一个游戏。在网上搜索,我决定用python创建基本的游戏逻辑(为了简单和更快的开发时间),并用c#创建实际的I/O引擎(为了获得更好的性能)。具体地说,我在SFML库中使用Mono)。 在掌握了两种语言和ide之后,我一直在整合这两种语言,这导致我提出了三个问题(最重要的一个是第二个):
a.哪个模块应该封装另一个?python游戏逻辑应该调用c#I/O作为输入,然后更新它以获得输出,还是应该反过来呢?在
不管答案是什么,我怎么做?我没有找到任何关于移植或集成这两种语言的脚本或二进制文件的具体说明。在
c.模块间的调用是否会对性能造成严重损害?如果他们愿意,我是否应该用一种语言开发所有东西?在
谢谢!在
你考虑过铁蟒吗?集成很简单,因为它直接与.net一起工作,所以集成工作得非常好。在
诚恳地说,今天C#is给了你很多来自Python的商品。引用乔恩·斯凯特的话:
你也可以动态打字。这是一个新项目,我在这里只使用C。在
相关问题 更多 >
编程相关推荐