Operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com

learn more… | top users | synonyms

82
votes
8answers
119k views

How do I get started making Android games? [closed]

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 ...
56
votes
15answers
56k views

2D Gaming Libraries/ Frameworks/ Engines for Android [closed]

Are any such things available to help me build my Android game?
28
votes
6answers
8k views

Should I be using Lua for game logic on mobile devices?

As above really, I'm writing an android based game in my spare time (android because it's free and I've no real aspirations to do anything commercial). The game logic comes from a very typical ...
28
votes
4answers
14k views

Workaround to losing the OpenGL context when Android pauses?

The Android documentation says: There are situations where the EGL rendering context will be lost. This typically happens when device wakes up after going to sleep. When the EGL context is ...
24
votes
3answers
14k views

Android game development in c++

So being a primarily c/c++ developer, I've always thought that the only option for mobile game development for me was using iOS, which allows for c/c++ (and minimising objective C). I heard from a ...
22
votes
7answers
15k views

Packaging HTML5 games as applications for iPhone/Android [closed]

Is it possible to package HTML5 game for iPhone and Android as an application or does it have to be accessed through a browser?
21
votes
3answers
8k views

Any open source game engines for Android? [closed]

Is there any open source android gaming engine ?
20
votes
5answers
5k views

Why is an engine like Unity3D emphasized over a native library like OpenGL for beginners?

I am just a beginner in 3D games, my preferred platform is Android. I posted a question in some other forum about "What to use: OpenGL or Unity3d?" They all emphasized Unity3D and using its built-in ...
19
votes
5answers
6k views

What should I keep in mind when making 2D games for multiple resolutions?

I'm making a 2D (Android) game. Android devices vary quite a lot in screen resolution; what do I need to keep in mind when making my game? Do I need to keep big versions of all images and scale down ...
19
votes
2answers
7k views

How many threads should an Android game use?

At minimum, an OpenGL Android game has a UI thread and a Renderer thread created by GLSurfaceView. Renderer.onDrawFrame() should be doing a minimum of work to get the higest FPS. The physics, AI, ...
18
votes
8answers
3k views

What all should be happening during the “Loading” screen?

Do I just need to be creating instances of all of my graphics into memory that are loaded from file? What is the best way to handle this? Do I just need some sort of assets manager that creates ...
18
votes
4answers
3k views

How to design an AssetManager?

What is the best approach to designing an AssestManager that will hold references to graphics, sounds, etc. of a game? Should these assets be stored in a key/value Map pair? I.e. I ask for ...
16
votes
5answers
3k views

Can I develop games for mobile platforms in C++?

I have a good grasp in C++ and C and have also experience developing AAA game using C++. Now, I'm shamelessly thinking to dive into mobile game development either in iOS or Android. Unfortunately, I ...
16
votes
4answers
10k views

How can I develop my Android game for different phone resolutions?

For instance, the Motorola Droid is as wide as the G1, but has more height. Should I try to spread the UI out across the extra height found on the Motorola Droid? How do others handle this problem? ...
15
votes
3answers
6k views

Is deferred rendering/shading possible with OpenGL ES 2.0 ?

I asked this on StackOverflow, but it might make more sense here: Has anyone implemented deferred rendering/shading under OpenGL ES 2.0? It doesn't support MRTs, so with only one color buffer, it's ...
15
votes
2answers
947 views

Graphics not being displayed on OUYA

I hope its not too early to be asking OUYA dev questions, but I just got my dev kit and I want to get my game running ASAP! I am using LibGDX as my framework for my game and launching the Android ...
15
votes
7answers
12k views

How to capture video of my mobile game?

I've been keeping a blog for my current Android game and as I get closer to an actual playable version of the game, screenshots just aren’t enough to show new progress anymore. What I need is video. ...
14
votes
2answers
25k views

Where are all the tutorials for libGDX? [closed]

I've searched online for help and tutorials on LibGDX but I couldn't really find any, except and the wiki for asking questions on stackexchange. Besides the source (demos) and wiki, is there any other ...
13
votes
16answers
6k views

Cross platform mobile game design - any options? [closed]

Are there any frameworks or projects that support cross-platform mobile game development? At the moment Titanium does cross platform development, but doesn't support high end graphics APIs, so many ...
13
votes
6answers
857 views

Phone for Android game development [closed]

I've been developing casual iPhone/iPod Touch games touch for about two years. I'd like to port some games to the Android platform. Since I'm stuck w/ a two year iPhone contract I don't want to get ...
13
votes
4answers
1k views

How can I implement a global high score ladder?

Are there any existing frameworks I can build on? Should I build my own? How can I prevent fake scores from being posted to it?
12
votes
6answers
5k views

Making (or emulating) a “D-Pad” on a touch-screen; virtual d-pad

With the proliferation of touch based devices, many lacking a true D-Pad, I'm wondering if anyone has any resources on how to emulate a D-Pad on a touch screen? I'm specifically interested in XNA ...
12
votes
4answers
17k views

Fastest way to draw quads in OpenGL ES?

I am using OpenGL ES 2.0 I have a bunch a quads to be drawn, would love to be able to have to pass only 4 vertices per quad as if I were using GL_QUADS, but basically I just want to know the best way ...
12
votes
3answers
806 views

How to decide how much to charge for development?

So two other friends and I are a very small game dev studio. So far we haven't released a game but we have 2 games almost ready to launch. A bigger studio saw our work and now they want to work with ...
12
votes
2answers
4k views

Play videos with LibGDX

Is there a way to play videos with LibGDX? I want to put a video as my splash screen in Android, but I dont want to use the Android SDK, because I am using LibGDX and I am almost finished :/
11
votes
4answers
1k views

Side scroller terrain generating and scrolling [duplicate]

I am creating a side scroller game for android devices but I encountered a problem. The game looks like this: The black dot is a player. Player's x doesn't change, only the y does. When the player ...
11
votes
8answers
2k views

Converting a 2D curve into points for data storage

I’ve created an algorithm which converts any curve i.e. path into minimum number of points so that I can save it into a file or database. The method is simple: it moves three points in equal steps ...
11
votes
2answers
5k views

how should i develop my android game efficiently?

I have attached a image of a flow chart that i made in paint. The image shows how i want to develop my game. I want a game that runs great with smart coding that is easy to update and ad features ...
11
votes
2answers
871 views

How do I create a World Healing Wave effect?

I want to change my dark and depressing background to a happy grassy background, in real-time, such that the happy background is shown in a radius around a game character. A forcefield of happiness, ...
11
votes
2answers
8k views

How different is Java for JRE vs Java for Android?

I'm new to all this game developing, and I'm starting to learn java because I was told it was a great way to start. I want to later on create games for the android market, and want to get a good view ...
11
votes
4answers
4k views

What are the app file size limitations for different smartphone OSes & carriers?

I know the iPhone App Store limits how large an app can be in general and there are also limitations with AT&T over the size it can be to transmit over a data plan vs WiFi. I have no idea what, if ...
11
votes
2answers
2k views

How do some mobile games scale graphics so beautifully? [duplicate]

I'm working on my first Android game and have been struggling a bit with scaling. I've got 3 test devices 800x480, 1920x1080 and a 2560x1600 tablet. Some games look near perfect on all of them - many ...
10
votes
5answers
2k views

2D collision detection

Let's assume I'm using this character. How would you implement collision detection for it? Using a bounding box doesn't seem to be a good approximation, because the bird's shape is nowhere near a ...
10
votes
2answers
600 views

How can I tactfully ask users to help support my free game?

So, I have a game that has a few dedicated users, but very few actual users. It is a free game on the Android marketplace, supported via ads. I've been toying with the idea of periodically popping up ...
10
votes
1answer
832 views

How to reduce image size without pixelation?

I see lots of games with smooth edges characters and high res images, however when I try to reduce images to say 64x64 for my character I just get a pixelated mess. even if I start with a 64x64 canvas ...
10
votes
3answers
904 views

Keeping Android Screen bright during Game

I have a game that uses the accelerometer to move a guy back and forth on the screen. After a few seconds the screen goes dim. Is there any way to keep it alive and bright during the game activity?
10
votes
2answers
8k views

OpenGL ES 2.0 Point Sprites Size

I am trying to draw point sprites in OpenGL ES 2.0, but all my points end up with a size of 1 pixel...even when I set gl_PointSize to a high value in my vertex shader. How can I make my point sprites ...
10
votes
1answer
506 views

When and why is a Pool class needed to hold objects?

I've been studying opengl es and an example I saw was using a "Pool" class to keep track of touch and keyboard events. Could someone please explain how and why a pool class is needed. From what I was ...
10
votes
3answers
7k views

Best solution for multiplayer realtime Android game

I plan to make multiplayer realtime game for Android (2-8 players), and I consider, which solution for multiplayer organization is the best: Make server on PC, and client on mobile, all communition ...
10
votes
3answers
12k views

Resolution Independence in libGDX

How do I make my libGDX game resolution/density independent? Is there a way to specify image sizes as "absolute" regardless of the underlying density? I'm making a very simple kids game; just a bunch ...
10
votes
1answer
1k views

Use of Collections in Android Game Development is not encouraged?

While working on a game project for Android i was digging for some information on performance optimization for game code. And i came to know that use of Java Collections like List,Arraylist etc are ...
10
votes
3answers
2k views

Selling Android apps from Android-Market-unsupported countries

I am in Latvia (which the Android market doesn't support as a country for selling apps from), and I am thinking about the best way of monetizing my app. So far I've come up with these options: ...
10
votes
2answers
758 views

How well do functional languages perform on Android?

This is a special case of this question that I feel is particularly pertinent. I'm working on a game for Android, and I'm planning on using Scala with libgdx. I'm planning on making a performant ...
10
votes
2answers
310 views

Extrapolation breaks collision detection

Before applying extrapolation to my sprite's movement, my collision worked perfectly. However, after applying extrapolation to my sprite's movement (to smooth things out), the collision no longer ...
9
votes
3answers
9k views

Unity Android versus android SDK

I am familiar with Unity and in the process of learning android SDK when the announcement about unity android basic came out. What would be the advantages and disadvantages of using the android SDK ...
9
votes
3answers
9k views

Fitting Android game to different screen sizes

I am making an Android game that is only in portrait screen orientation. It works great when I run it on my phone, but when I run it on a tablet, even though the screen size is bigger, all of the ...
9
votes
3answers
3k views

Android: Angry Birds Scaling

Anyone have any idea how the scaling is accomplished in angry birds? I want to make sure my images/background always scale to match the screensize and this game seems to have a similar effect. I ...
9
votes
2answers
1k views

Android real time multiplayer over LAN [closed]

I've developed several games for the android platform and now planning to create my first multiplayer game. What I have in mind is basically just a 2-player game witch you can play with 2 phones over ...
8
votes
5answers
16k views

Number of Impressions on Admob for revenue

Just curious of a rough estimate: About how many impressions would it take to make 300 dollars a day in ad revenue? Thanks for any help!
8
votes
4answers
578 views

As an Android dev, what should I keep in mind for porting to iPhone?

As an Android game developer, what should I keep in mind while developing my game if I ever wanted to cross-platform the game to the iPhone? Any strategies, tips, etc. on porting to both of these ...