Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am new to game development. I am interested in developing 2D games for the Android platform. What is the best place to start with (i.e) What are the basics and how to proceed? I already have programming experience in Java but don't have any experience with graphics or animation.

share|improve this question

closed as not a real question by Byte56, John McDonald, doppelgreener, Tetrad Sep 19 '12 at 16:08

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Please make your question (title) slightly more descriptive. –  Ricket Aug 31 '10 at 12:59
1  
Do you have experience with Android? –  Noctrine Aug 31 '10 at 13:03
2  
@Ricket or we could do it for him :) –  Andrew Russell Aug 31 '10 at 13:03
    
Thanks a lot for that! @Andrew Russell –  Ragunath Jawahar Aug 31 '10 at 15:01
    
I am curious on whether OpenGL, while faster, drains more battery than regular 2D using surface view or whatever other method. Does anyone know an answer? –  kelmer Apr 30 '12 at 14:43

8 Answers 8

up vote 59 down vote accepted

Android might not be the best choice for starting game development because you would be learning several different things at the same time (Android SDK, making games, optimization, different phone models, etc.). Consider making some simple Java games on your computer to get familiar with making games in general; this tutorial looks like a good place to start.

Once you're comfortable with both Java and game development, start with the Android tutorials. The development guide is very useful, in particular you need to know Android fundamentals and activity life cycle, as well as graphics. Get the Android samples and check out the Lunar Lander and Snake game samples (there's also JetBoy, but that's focused on the JetPlayer).

The canvas class is actually good enough for most 2D games, but if you need better performance or want to move to 3D graphics later you will have to learn OpenGL ES. However, this is beyond the scope of getting started (unless you already know OpenGL).

share|improve this answer
    
Exactly what I was looking for. Thanx @Firas Assaad –  Ragunath Jawahar Aug 31 '10 at 15:14
    
Another good resource is the book Hello, Android which explores making a Sudoku game over several chapters, including drawing using canvas and handling user input. There's also a chapter on 3D graphics that builds a textured rotating cube. –  Firas Assaad Aug 31 '10 at 19:27
    
I have just moved from BlackBerry to Android game dev and I want to throw my hat in with Firas: the Canvas class offers more than enough performance for a 2D game. There is no need to add the extra complexity of OpenGL when you start. –  ADB Sep 4 '10 at 12:25
    
I agree with this answer, but Android isn't the worse place to get started! My very first programming project was a comic book viewer. Then, I made a puzzle game, and now I'm making a 2D game with OpenGL ES 2.0 graphics. I've learned on one heck of a curve, but in the last 9 months, Android has helped me get a good foundation in Java, SQLite, and OpenGL along with a great start with OOP and game development concepts. I could have done worse than learning how to program with Android. –  Amplify91 May 30 '11 at 19:51

Check this link and pick one you feel comfortable with.. http://buildmobile.com/android-development-do-you-know-your-options/#fbid=7Sng9luT-3C

share|improve this answer
2  
Answers that are just a link to an external site are not particularly helpful, because the moment the page goes offline the answer is useless. –  doppelgreener Oct 11 '12 at 13:37

I am also new to android game development, and I find the open source game engine AndEngine a pretty good tool to start with. It's got a bunch of examples and a fairly active community.

http://www.andengine.org/

share|improve this answer

All of these are really good answer. But I am a little surprised that no one has mentioned jMonkeyEngine yet.

Its java, its shader based, its super easy to begin with, very good documentation, awesome community, fast bug fixes, comes with a game development enviroment(jMP based on NetBeans platform) & its evolving very very fast.

I would emphasis more on it because, game development and making a library that someone will be using to make a game is quite different. So, if you want to make a game not a game engine, just jump right in jMonkey Engine with your eyes closed. :)

share|improve this answer
    
I did a quick google search about jMonkeyEngine and Android. I presumed that as Android uses it's own Java interpreter that jMonkeyEngine wouldn't work on it. It's still Java though, so maybe they would have made a port. In any event, a minute of research implies that it's a work in progress. –  xuincherguixe Jul 28 '12 at 1:00
    
jME works on android, there are several projects on the store. I suggest you, posting in their forum for technical specifications. –  iamcreasy Jul 28 '12 at 1:22

I strongly recommend the Airplay SDK as it works on windows and deploys to most smart phones. They also have a great Indie license.

share|improve this answer
    
I'm a Java developer, seems Airplay SDK is a C++ / XCode SDK? –  Ragunath Jawahar Sep 1 '10 at 2:43
    
Airplay SDK is Marmalade SDK now. It has separate SDKs for C++, Lua, HTML5 and Objective C –  noob Nov 19 '13 at 17:31

Processing.org is another good place to start for (somewhat simplified) coding/development before diving into the Android SDK. It works on Max/Windows/Linux and has a version developed specifically for Android deployment. I highly recommend it - as long as you have an Android phone you can deploy games/apps to your phone that you make with that version of Processing. Hope it helps.

share|improve this answer
    
You can also publish to the Android market as of the latest version, although I have not tried. –  gary Aug 31 '10 at 22:12
    
I have heard that Processing has performance issues with Android, is that true? –  Ragunath Jawahar Sep 1 '10 at 2:42
    
I haven't tried enough different things to give a well-backed true/false answer. My programs seem to behave fine on Android. I'd say search the web, search processing's android forum, etc... Or just try it out. ;) –  gary Sep 1 '10 at 3:29
    
Ok, I'll check that out @gary comtois –  Ragunath Jawahar Sep 2 '10 at 3:22

If you're already familiar with Android and doing basic UI applications with it, then you'll want to take a look at this multi-part tutorial that explains drawing graphics to an Android screen.

share|improve this answer
    
Thanks @Bryan Denny –  Ragunath Jawahar Aug 31 '10 at 15:05
2  
the link appears to be broken - perhaps the site exists no longer –  Nasir Jan 5 '13 at 1:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.