【问题标题】:How to compile box2d with Monogame in visual studio 2012?如何在 Visual Studio 2012 中使用 Monogame 编译 box2d?
【发布时间】:2013-04-01 19:04:04
【问题描述】:

我正在尝试使用使用 2d 物理引擎的 Monogame 为 Windows 8 创建游戏。我找到了一个到 XNA 的 Box2d 端口,但是当我在 Visual Studio 2012 中打开解决方案时,我收到一条消息说

此版本的 XNA Game Studio 或此版本的 Visual Studio 不支持 Windows。

我开始为游戏编写一些代码,并想添加一个物理库。有人对如何使用 Box2d 或其他 XNA 物理引擎来完成此任务有任何建议吗?

【问题讨论】:

标签: windows-8 visual-studio-2012 box2d xna-4.0 monogame


【解决方案1】:

我设法让 Farseer Physics 与 MonoGame 一起工作。这并不太难,但我确实必须从源代码重新编译它,用 MonoGame 替换 XNA 引用。

我相信它与 Box2D 非常相似。

http://farseerphysics.codeplex.com/

对不起,我也没有更详细的教程来指点你。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-10-19
    • 2014-07-10
    • 1970-01-01
    • 1970-01-01
    • 2012-09-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多