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

learn more… | top users | synonyms

1
vote
1answer
880 views

Android Fling Gesture, Animation And Collision - Resources?

I'm starting work on a 2D Android game where the player will put their finger on a game piece and do a fling gesture to throw the piece across the gameboard. I've gone through some Android ...
2
votes
2answers
433 views

How do I add a text area to my 3D android world

i am learning 3d game development on android , i was wondering is it possible to add text areas or any thing that allows a user to enter a text in a 3d world ? and how ?
0
votes
2answers
2k views

How can I handle a touch event in cocos2d for Android?

How can I handle a touch event in cocos2d for Android? And how to move a sprite using ccTouchesMoved?
2
votes
2answers
1k views

Best method for 2 layer tile based map scrolling

What is the best general approach to implement scrolling for a 2D tile based game? I need to scroll the map with a constant speed, lets say 2 pixels every frame (like in a top down shooter). The ...
4
votes
1answer
778 views

Is there a simple 2D Android barebones starter project?

I'm looking at creating a tower-defence-style game on Android, developed in Java. I'm spending a lot of time trying to just get a background image (drawn onto a canvas) that pans/zooms within the ...
-1
votes
2answers
2k views

Android NDK - moving .so files from one project to another

I have a small project I've coded for Android that uses a small about of NDK/JNI code. I'd like to share this code between two projects but I'm having little luck so far. First off, I've tried to ...
1
vote
2answers
751 views

Cocos 2D putting things on the cocos thread or not?

We are using Cocos 2D for Android and are unsure if it's a good thing to execute our non-ui tasks on the Cocos thread as a way to get the animations in our game to pause. What is the recommended ...
4
votes
1answer
2k views

OpenGL or Canvas?

I'm writing a 2D snake-like game for android (Hungry Birds, already in the market), and now I'm wondering if I should port it to OpenGL so that the performance can stay stable while I continuously add ...
1
vote
1answer
735 views

Bitmap to a custom coordinate pair when touched

I am completely lost and needed some help. I have a ontouchListener for a bitmap and know how to check if the touch was within the boundaries of the bitmap. But say I want the center of the image to ...
4
votes
1answer
1k views

Android Game Dev: Screen Scaling

This question is very closely related to a previous question of mine: Scaling a game view with letterboxes? My game runs at 480x800 right now but when the screen is smaller or bigger than that I ...
4
votes
1answer
2k views

Client/Server networking for mobile games

I am currently considering the pros and cons of two different approaches for networking an Android game. First, I will specify some details about the game and its requirements, and then I will ...
4
votes
1answer
796 views

Scaling a game view with letterboxes?

I'm creating an Android game and I want everyone who plays it -- no matter the size or shape of their screen -- to see the same 480x800 playfield but, depending on the actual resolution of their ...
5
votes
1answer
809 views

android game saving game state

I'm developing a game and i've ran into some questions about saving and resuming the game. Let's say i have 10 animated sprites drawn every frame (which move side to side) and everytime i press the ...
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 ...
1
vote
1answer
681 views

What is the best mechanism for controlling a character in a 2D Android game?

Im developing a 2D RPG for Android where the character can move up, down, left, and right like in top-down RPGs like Pokemon. What is the best input mechanism to use to control the character? A ...
5
votes
5answers
7k views

Moving from XNA to Android

I've been using XNA to learn game programming for some time, and I'm interested in moving to Android. Having said that; the learning curve to get started seems to have ramped up exponentially. I ...
-4
votes
1answer
94 views

Randomize Sprite moment Help needed [closed]

I am new to Android, I am developing a fighting game in Android with AndEngine. Now I want my enemies to mimic my player behavior and on base of score they should come up with different tactics. I ...
5
votes
3answers
784 views

What's the best control scheme for an arena shooter on a touchscreen phone?

I am developing Android an game. It's going to be a top-down shooter with stealth features. I am now thinking about how to the make controls. Most top-down games are now twin stick (joystick on the ...
3
votes
1answer
764 views

Android Coordinates

Is their a way to make it where no matter what the screen size is my sprites will always start at a certain position. I am trying to get my sprites to start in the lower right corner area of the ...
5
votes
3answers
618 views

Physics for Android Game

I'm making a 2D game for the Android phone, one that involves falling balls. I want to use a physics engine to properly simulate the balls falling and hitting other objects. I'm currently using ...
2
votes
1answer
193 views

Android SDK compatiblity question

i am just starting android app development. I was downloading SDK via the Android Manager. I had to select the SDK versions. I have a phone of android 2.1 So i selected only SDK 2.1 and its samples as ...
2
votes
1answer
956 views

android zoomable and scrollable board game

I'm developing a Android board game and have a question regarding creating a board that is zoomable and scrollable. The board contains a static background, characters (players) and the actual "level" ...
5
votes
3answers
1k views

Android collision detection of a 3d object based on a 2d projection

I am writing a game for android. We have an orthographic view setup, but the characters (ships, projectiles, etc). The enemies / characters will be able to rotate about the x axis. The problem is that ...
1
vote
2answers
2k views

Android landscape mode game

I am beginner in android game development. I want my game to run only in landscape fullscreen mode (currently I have Optimus 2X with resolution 800x480 in landscape), and I don't know how to set it. ...
1
vote
1answer
418 views

How can we match polygon data structure with a background image

I am referring to this fireball game. The ball will collide with background, which is in polygon form. I was wondering, how I can match my polygon data structure with the background image. Say, I ...
5
votes
3answers
4k views

What are some ways to separate game logic from animations and the draw loop?

I have only previously made flash games, using MovieClips and such to separate out my animations from my game logic. Now I am getting into trying my hand at making a game for Android, but the game ...
0
votes
2answers
1k views

Android: Layouts and views or a single full screen custom view?

I'm developing an Android game, and I'm making it so that it can run on low end devices without GPU, so I'm using the 2D API. I have so far tried to use Android's mechanisms such as layouts and ...
2
votes
1answer
4k views

Faster way to draw dynamic meshes in OpenGL ES

I'm writing a 3D game which is going to inlcude some dynamic meshes. For now, my code looks like this : private float[] mVertices; private FloatBuffer mVertexBuffer; public void onDrawFrame(GL10 ...
-1
votes
3answers
259 views

Populating NPC's Outside Of Loop

This was my original question: Populating Sprites I used the following code to spawn Enemy Sprites in my game. I have 2 types that I was using and it would display one then remove it and display the ...
0
votes
1answer
711 views

2D game physics, doing it right

I have a ball that you can make jump, I have a sneaking suspicion I'm doing this wrong. It works now, to the extend that gravity pulls the object down toward the ground, but I'm having trouble ...
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 ...
2
votes
2answers
206 views

android game - lock_layer timed out

I'm developing a (scroll) game and i'm getting weird messages in LogCat: lock_layer() timed out but didn't appear to need to be locked and we recovered(..) lock_layer timed out (is the CPU ...
7
votes
2answers
371 views

android game - how to store game elements so gc wont fire

I'm developing a android game and I have a question about storing the game elements without firing garbage collector. My game needs a collection where the game elements are stored according to x,y ...
0
votes
1answer
2k views

Java/Android pixel perfect hit detection

I am making a game for android which I need hit detection between two objects. The first bitmap I have is a flying superhero, and the second bitmap is anything that he collides with. The superhero ...
5
votes
4answers
3k views

Is it possible to develop games using Google's App Inventor?

Google's App Inventor is a WYSIWYG application development environment for Android. It allows you to control logic of your program using jigsaw type pieces. Is it possible to develop games using ...
5
votes
1answer
309 views

Is it okay to release a playable, but not graphical, game to the Android Marketplace?

I'm working on my first simple game for release. I'm going to have it to a point of being playable, interface complete, but very few if any graphics, and no overall style aside from the basic Android ...
4
votes
5answers
613 views

Flash Game not working on Android

I am not sure if I will be able to provide enough information for someone to answer this question, but any ideas might help. I am creating a tower defense game in Flash and I eventually want to make ...
5
votes
2answers
1k views

Most useful free third party Android Game libraries?

Since I have started finding a good third party libraries for game development on android platform, Im getting confused. So want to know from the people who are already using some of the game ...
-2
votes
1answer
802 views

Want to develop android game

I want to develop a 3D multiplayer game for android , what is the best game engine , what is the best software to create 3d objects to import them to android ? Thank you .
2
votes
1answer
526 views

OpenGL ES GL_FIXED versus GL_FLOAT

I am writing an app for Android, using OpenGL ES 1.x I am confused as to whether I should use GL_FLOAT or GL_FIXED, the priority being performance regarding GPU operations(does GL_FIXED need to be ...
-3
votes
1answer
349 views

Populating Sprites

I am making a android game, it's a tower/base defense like type of game (yea I know it is kind of confusing), I was wondering if anyone knows a good way to have the attacking sprites randomly generate ...
6
votes
1answer
2k views

Rotation of bitmap using a frame by frame animation

I have one large bitmap that has four frames drawn on it and I only draw one at a time by looping through the bitmap by increments to animate walking. I can get the bitmap to rotate correctly when it ...
5
votes
1answer
195 views

How to test a network game on a mobile device

I am looking to test a network game with say, 10 or more users, on a mobile device. Think of it like an MMO with a lot less users. (Assuming I can get 10 running, I'd test for more users later) The ...
4
votes
3answers
420 views

How to improve my Pong like game

I have published a free game on Android Market called AstroTennis. This is like a classic pong game, but it has an asteroid moving in the middle which deflects the ball making it sometimes harder to ...
0
votes
1answer
2k views

Android sidecroller template

I want to create a sidescroller game for Android but it seems stupid to reinvent the wheel and since there are a lot of android sidescroller games already out I though that there must be some sort of ...
6
votes
1answer
298 views

Should I distribute different versions of the same game for different mobile platforms?

I'm currently making a game on the Android platform. I don't know whether to do a "smartphone edition" and a "tablet edition" or simply to do one edition. If I put high definition textures, the users ...
3
votes
1answer
184 views

What are the specifications for 3D animated game assets on the Android platform?

(apologies if this is phrased vaguely due to my lack of knowledge; I'm happy to change the question entirely if someone can suggest a more realistic query) I'm getting a grip on creating 3D ...
3
votes
6answers
1k views

Should I go with Windows Phone 7 or Try Android? [closed]

I already know C# and am familiar with XNA. So it would make sense to develop for the Windows Phone 7, but would it be worth while to learn Java, get familiar with Android, and instead develop for ...
6
votes
1answer
992 views

Adding a simple mix() destroys the framerate

I have a very simple shader and added linear fog via mix like this: finalColor = mix(finalColor, vec3(0.5, 0.8, 0.95), vUVoutAndViewZ.z); Note that the view Z distance is in the variable that also ...
5
votes
3answers
8k views

Android - Efficient way to draw tiles in OpenGL ES

I am trying to write efficient code to render a tile based map in android. I load for each tile the corresponding bitmap (just one time) and then create the according tiles. I have designed a class to ...