且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

没有引擎的Andr​​oid 2D游戏开发

更新时间:2023-02-02 19:44:12

这是可能的,这被认为过于宽泛的问题 - 我们不能告诉你如何做一个游戏。但在回答你的最后一个问题:是的,OpenGL是使在2D或3D高性能游戏的***方式。如果你有一个更缓慢的移动,回合制游戏,那么你可以坚持一个画布 SurfaceView 甚至使用基本视图控件,建立一个游戏板的布局。

It's possible that this is considered too broad a question - we can't tell you how to make a game. But in response to your last question: yes, OpenGL is the best way to make a high performance game in 2D or 3D. If you have a more slow moving, turn based game, then you could stick to a Canvas on a SurfaceView or even use basic View widgets to build up the layout of a game board.

但是,如果这是你的第一场比赛,除非你有很多的时间和耐心,我会强烈建议您尝试现有的游戏引擎。你可能不知道多少工作进入一个像样的游戏引擎,直到你一半(或方式10%)为使一个。看一看像LibGDX发动机的来源,想一想它是否是诸如此类的事情,你能够写。

But if it's your first game, unless you have a lot of time and patience, I would strongly urge you to try an existing game engine. You may not realise how much work goes into a decent game engine until you're halfway (or 10% of the way) into making one. Have a look at the source of an engine like LibGDX and think about whether it's the sort of thing you'd be able to write.

有大量的信息在 Android的图形开发指南