Android is an operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com

learn more… | top users | synonyms

3
votes
2answers
1k views

What is causing these visual artifacts on my OpenGL sprites?

What could be the cause of the defects in my characters sprite? I am using OpenGL ES 2.0. I draw my sprites in a sprite batch that uses UV coordinates from one large texture atlas. If you look around ...
7
votes
1answer
2k views

Is it possible to use SFML with the Android NDK?

I've started using SFML recently and I absolutely love it. I'd like to make games that could be ported to android, linux, mac and windows, but it seems that SFML lacks portability. I've searched for ...
1
vote
1answer
595 views

Open GL ES 2.0 Android Texture,Shader, etc… loading

I have gotten texture's to load along with shader's however it seems that I can only create shaders and textures in onSurfaceCreated in my implementation of the render interface. Is this truly the ...
8
votes
3answers
4k views

Game server for an android/iOS turn-based board-game

I am currently programming an iPhone game and I would like to create an online multiplayer mode. In the future, this app will be port to Android devices, so I was wondering how to create the ...
7
votes
2answers
2k views

What do you use to support multiplayer turn-based network game for iOS and Android games?

If I'm doing a turn-based card game, what kind of technique do you use to support multiplayer gameplay over Internet? Is it socket? If it's socket, which SDK (CoronaSDK etc.) can provide solid ...
1
vote
0answers
845 views

Android develop a 3d racing game [closed]

Is there any tutorial to learn, how to develop a 3d racing game like this: ...
20
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, ...
7
votes
2answers
3k views

How well does Unity 3d work for both Android and iPhone?

First off this question might be a bit broad so I apologize if it is. I am really just looking for peoples experiences and personal knowledge on the subject. I am looking to create a game for both ...
1
vote
3answers
3k views

Cross-platform, free (for commercial use) C/C++ 2d game library or rendering engine? [closed]

i need a C/C++ engine that should be really cross platform (or at least windows, android, and iphone). The 2d engine should be written in C or (better) C++, should permit the rendering of animated ...
2
votes
0answers
539 views

How to create a collidable map with tiled for cocos2d (Android)? [closed]

I am using cocos2d to create a game for Android. I am making a map in Tiled Map Editor and added a property to the ground tiles. The property name is Collidable and its value is True. Now I have ...
1
vote
1answer
1k views

What is wrong with my collision detection code?

I want to check collision detection between two bitmaps but I am not getting how to do it. I read several queries and tutorials but didnt get properly. I want to check by their width and height. I ...
3
votes
2answers
1k views

Why does my position interpolation code result in “jumpy” motion?

I am developing an android game with box2d and use a fixed timestep system for advancing the physics. However as I use this system it requires the box2d positions to be interpolates. I read this ...
2
votes
1answer
346 views

Is it possible to build an app with Corona with only a PC, and expect it to reasonably run well on an iPhone?

So I understand that Corona allows me to "write once," and deploy on both iPhone and Android. And I understand that I cannot get any iPhone app into the app store without having (at the moment of ...
3
votes
2answers
2k views

How to make a background fill the screen on different-resolution phones?

I am developing my first Android OpenGL game. It's a 2D game and I would like the background to always fill the screen. I've managed to achieve this by stretching the texture to fit the size of the ...
1
vote
1answer
1k views

How should I structure my Android platform board game?

I'm new to developing Android games, but not new to developing mobile games (J2ME). I'm currently developing a board game, for a school project, with 2 things - a board and a spinning wheel (both are ...
0
votes
1answer
549 views

Opengl scrolling world guidance

I'm looking for a tutorial about how to implement a horizontally scrolling background with various objects that auto-scrolls as your character/player moves just like various car/motorbikes games. ...
2
votes
2answers
405 views

What causes “ETC1 cannot be resolved” errors when building AndEngine?

I just got the latest AndEngine code from Mercurial, added Android 1.6 to my Order/Export tab, and cleaned everything (including a "Fix" command as instructed by the console). Regardless of which ...
3
votes
1answer
878 views

Developing for Chrome App/Android?

I have been developing for win7 mobile (XNA/silverlight and will continue to do so, love everything about it) but I wanted to branch a few of my more polished games to google app store online, and ...
6
votes
3answers
286 views

How can I deploy an Android game without going through the marketplace?

How do I deploy an Android app without publishing it in the marketplace? Let me back up a minute. I have short release cycles (2-4 weeks or less), and I would like to release a partially complete, ...
0
votes
1answer
575 views

How can I create a game as a live wallpaper?

I have a space shooter game for Android and I want to implement it as a live wallpaper. Any ideas on how this can be done? Or better yet can anyone help me / provide a template that calls a "ship" ...
2
votes
2answers
457 views

How do I handle user input with good class structure/architecture for an Android game?

How do I handle user input having "good" class structure and following normal game architecture*?(see below). At first I didn't think this question was Android specific, although, after seeing a great ...
1
vote
2answers
3k views

What is an appropriate OpenGL(ES)-based game engine meeting these criteria?

I want to try my hands on a little shooter on the Android platform, and I'm looking for a full-featured 3D game engine. I can't afford to pay more than 400 € for a license, so expensive engines are ...
1
vote
5answers
2k views

Is there a SDK for 2D games that will deploy to PC, Flash and Android? [closed]

Is there such thing as an SDK or toolset that can produce Windows, Flash, and Android executables from the same source? Something like "write once, run in all three platforms?"
2
votes
0answers
509 views

How can I keep a SmartFox server connection alive while waiting for a client to connect? [closed]

I am making a game using SmartFox Server. During testing, if I take a few minutes before loading the game, SmartFox stops running and I can't connect. So I then have to restart SmartFox, which is very ...
0
votes
1answer
1k views

Equivalent of glDrawTexfOES in OpenGL ES 2.0?

I have been using the glDrawTexf extension to draw labels in my Android app using OpenGL ES 1.1. But I have now moved to OpenGL ES 2.0 and can't figure out what is the equivalent of this call? I ...
-1
votes
1answer
1k views

Tower Defense Game SurfaceView Structure

I am building a tower defense game for android where you have to defend the base from mobsters who have a bounty on your head. You start out with a certain amount of life, every time an enemy reaches ...
0
votes
1answer
1k views

How do I implement a subclass of CCSprite?

Can someone tell me how to subclass CCSprite on Android? I've added this snippet of code into my CharacterSprite: public static CharacterSprite sprite(String fileName) { return new ...
8
votes
3answers
1k views

Android threads trouble wrapping my head around design

I am having trouble wrapping my head around game design. On the android platform, I have an activity and set its content view with a custom surface view. The custom surface view acts as my panel and I ...
8
votes
3answers
756 views

How should I structure my classes to allow for multithreaded simulation?

In my game, there are plots of land with buildings (houses, resource centers). Buildings like houses have tenants, rooms, add-ons, et cetera, and there are several values that have to be simulated ...
2
votes
1answer
1k views

Getting errors while compiling Irrlicht for Android

I was trying to compile the Irrlicht port for Android but I continue getting errors while following these instructions. I created a jni folder inside my project folder and the contents looked like ...
-1
votes
1answer
673 views

Best Android gaming engine for Billiards game? [closed]

What is the best engine/way to go with when implementing a 2D billiards game? I am thinking about Emini Physics Engine, which is free for use and stuff, but maybe you can give me some pitfalls about ...
-4
votes
1answer
267 views

Why does this CCSprite subclass code throw an exception?

I have one problem in inheriting CCSprites in Java. Here is part of my code: public class Block extends CCSprite { static Block temp=null; static Block newBlock(tetrominoTypes blockType) { ...
2
votes
2answers
2k views

What is an efficient way to deal with large, scrolling background images?

In my mobile game you basically you just fly up (infinite height) and collect stars. I have many quite large background images, scaled down so that their width is the same as the device width. Then ...
6
votes
4answers
430 views

Adaptive Characters: AI Solution Needs a Problem

Have sophisticated adaptive programming, will travel - so to speak. I'm part of a group that developed sophisticated learning / adaptive software for robotics. The system "thinks" via its simulator, ...
2
votes
4answers
3k views

What 2D engine can I use to port my flash game to iOS and Android? [closed]

I would like to port my 2D flash game to Android and iOS. Is there any cross platform engine you could recommend? Corona is the only promising one I have found so far.
1
vote
2answers
619 views

Enemy class architecture

I'm developing a game for Android in Java. I would like to know how a good Enemy class architecture could be implemented. I've created an abstract class called Enemy. It stores common properties like ...
2
votes
1answer
1k views

2D physics performance on iPhone/Android using Unity 3D?

I've been looking into making 2D games with Unity. One thing which concerns me is the performance of the physics engine. Since Unity is a 3D game engine I'm going to have to assume it uses a 3D ...
0
votes
1answer
4k views

Loading Bitmap by name in Android

Currently, I'm loading images as follows: sampleimage= BitmapFactory.decodeResource(context.getResources(), R.drawable.sampleimage); This automatically chooses the correct image from the ...
0
votes
2answers
221 views

Which parts of my game should be Activity objects?

Currently my game has an Activity for the splash screen then it starts the main class activity then it starts a menu activity then from the menu there is an activity for each option (only two at the ...
2
votes
2answers
2k views

How are the graphical effects in the Android game Orbital created?

I would be very grateful if someone could tell me how the graphics (and in particular, the lighting effects) for this game, Orbital, are created. Would it be OpenGL? For some background: I'm new to ...
-1
votes
1answer
959 views

Collision detection problem

I am a novice in android. It's my first game, so I am trying to make a frogger clone. I am getting a problem in collision detection. In logcat, even though the frog is not moving and not colliding ...
11
votes
2answers
9k 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 ...
1
vote
2answers
733 views

Game Loop: Should resources be initialized in the game loop or in the respective classes? (both?)

For example, lets say we have an enemy class in my Android game project. I am initializing the enemy bitmap to be used with certain sprites in my game loops init. I am then calling the respective ...
4
votes
2answers
1k views

2D game - Missile shooting problem on Android

I have to make a tank that sits still but moves his turret and shoots missiles. As this is my first Android application ever and I haven't done any game development either, I've come across a few ...
13
votes
6answers
871 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 ...
1
vote
2answers
599 views

Android BitmapFactory.decodeStream loading BGR format?

It is very odd.I want to load .png file via asset manager which is provided by android sdk. AssetManager manager; /........./ BitmapFactory.decodeStream(manager.open(path)); It returns ...
1
vote
1answer
288 views

Why does this code work for a stationary object, but not a moving one?

I use the following chunk of code to make bullets that fire towards the player's ship: @Override public void onTimePassed(final TimerHandler pTimerHandler) { pTimerHandler.reset(); ...
2
votes
2answers
3k views

What would be the simplest way to create a 2D board game for Android?

I'd like to create a very simple 2D board game for Android, it would be a concept/mockup so I can see how the game works out. Let's for the sake of this question that it's a clone of Othello - board ...
1
vote
1answer
928 views

Android : Some textures not loading after resuming twice

This is an odd one. When I press home and then restart my game I reload all my textures (checking glIsTexture on the id's first). If I do this once, all textures load as expected, but if I do it ...
0
votes
2answers
661 views

Graphical Android game: Bad performance in some situations

I am developing a simple graphical game for Android (Java and OpenGL ES). There is no high-end graphics involved, basically a few (less than 10) sprites and some (about 10) dynamically drawn ...