跨平台2D游戏开发问题 [英] Cross platform 2D game development problem

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

问题描述

大家好,
我知道ObjC最适合iOS和Java for Android,对于台式机有更多选择.在大多数这些平台上都可以使用OpenGL/OpenGL ES.现在,我如何制作可以在iOS,Android和台式机(可能是Windows PC)上运行的跨平台2D游戏?感谢您的建议和技巧.

Hi all,
I know ObjC is the most suitable for iOS and Java for Android, for desktops there are more choice; and OpenGL / OpenGL ES is available on most of these platforms. Now how could I make a cross platform 2D game runs on iOS, Android and desktop (Windows PC might)? Suggestions and tips are appreciated.

推荐答案

您可以使用标准C ++编写游戏,并使用OpenGL ES进行图形处理.这样,您的游戏将(轻松)移植到iOS,Android,Windows,Linux和Mac. iOS版本将具有用于与iOS平台进行通信的Objective-C包装器. Android版本将使用 Android NDK [
You could write your game in standard C++ and use OpenGL ES for graphics. This way, your game will be (easily) portable to iOS, Android, Windows, Linux and Mac. The iOS version would have an Objective-C wrapper to communicate with the iOS platform. The Android version would use the Android NDK[^]. There are many resources for C++ development on all these platforms, you just need to Google it. Best of luck! :)


这个问题对这个论坛来说太过广泛了.尝试对您感兴趣的主题进行一些研究,如果遇到更具体的问题,请返回此处.
This question is far too wide for this forum. Try doing some research into the subjects you are interested in and come back here when you have a more specific problem.


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

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