开发跨平台游戏,开发人员在多个平台上 [英] Developing a cross-platform game, with developers on multiple platforms

查看:165
本文介绍了开发跨平台游戏,开发人员在多个平台上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将开始使用OpenGL开发一个跨平台游戏,我正在寻找一些建议。我有一个合作伙伴在Windows上编码,但我在Mac上编码。是否同时开发 ON 是否可行?

I'm about to embark on building a cross-platform game using OpenGL, and I'm looking for some advice. I have a partner who codes on Windows, but I code on a Mac. Is it sanely feasible to develop ON both at the same time?

这是我们当前计划的设置。任何反馈将不胜感激,因为它似乎有点头痛,到目前为止设置一切。

This is our currently planned setup. Any feedback would be appreciated, as it seems to be a bit of a headache so far setting everything up. Does this seem like a good way to go about things?

计划(到目前为止)工具/库:


  • Eclipse作为IDE(因此我们可以使用相同的项目文件,是否正确?)

  • OpenGL用于显示图形

  • SDL用于获取输入,计时器,窗口等,但我现在也在考虑GLFW

  • CMake构建项目

  • 源代码管理的Git(这对我已经很舒服了)

  • Eclipse as an IDE (so we can use the same project files, correct?)
  • OpenGL for displaying graphics
  • SDL for getting input, timers, windowing, etc., but I am now also considering GLFW
  • CMake to build the project
  • Git for source control (This I am quite comfortable with already)

推荐答案

在我看来,设置跨平台项目的问题主要在于图书馆的选择。我认为OpenGL和SDL就足够了。我也会考虑为那些不是由SDL提供的那些部分包括Boost。

In my opinion, the problem in setting up a cross-platform project lies mostly in the choice of libraries. I would assume that OpenGL and SDL would be sufficient. I would also consider including Boost for those parts which are not provided by SDL.

关于CMake:它是一个很好的构建工具,在Windows和Mac。如果您是CMake新手,请查看这个问题,还可以查看一个知名的引擎,如 Ogre 以及他们如何设置他们的项目。

With respect to CMake: it is a good build-tool, both on Windows and Mac. In case you are new to CMake, have a look at this question, but also look at a well-known engine like Ogre and how they have setup their project.

我建议你创建好的CMakeLists文件,然后它并不重要,你使用哪个IDE。您可以在Mac上使用XCode或纯Makefiles,而在Windows上使用Visual Studio或Makefiles(或Eclipse)。也许甚至可以设置一个小型的Linux电脑(例如使用Virtual Box和Ubuntu),你也可以在Linux上测试你的跨平台性。

I would advise you to create good CMakeLists files and then it does not really matter which IDE you use. You could use XCode or plain Makefiles on your Mac, while using Visual Studio or Makefiles (or Eclipse) on Windows. Perhaps it is even possible to setup a small Linux pc (e.g. with Virtual Box and Ubuntu) and you can test your "cross-platformness" on Linux as well.

尊重Git:最大的优势是,你有自己的本地存储库,您可以在其中分支和合并,而不需要访问一些中央存储库。请小心你跟踪某种中央分支。

With respect to Git: the biggest advantage is that you have your own local repository in which you can branch and merge all you want without needing to access some central repository. Do take care that you keep track of some sort of central branch.

这篇关于开发跨平台游戏,开发人员在多个平台上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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