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

learn more… | top users | synonyms

0
votes
1answer
385 views

Determining the X, Y co-ordinates in sprite sheets

I am new to Android COCOS2D and developing a simple game to start with. I am developing a game for kids in which the kids shall spell out the names of the fruits they select. I have developed the ...
11
votes
2answers
6k 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 ...
-1
votes
3answers
531 views

How to create solid human characters in MAYA, so that their hands do not cut into bodies while signaling hand sign?

How to create solid human characters in MAYA, so that their hands do not cut into bodies while signaling hand signs? Or can I make the characters solid in Unity? I create animations in MAYA and import ...
0
votes
1answer
3k views

How do I animate a spritesheet in cocos2d Android

I'm trying to animate a sprite in a spritesheet, the goal is to make the character walk from left to right. I subclassed CCSprite: CharacterSprite. this is my code: ...
2
votes
2answers
690 views

Detecting image curve to move a truck on this surface

I have an image background in surface view I want to move something according to black surface.But i can not do this using height of this image as it return same height.and one more thing ...
1
vote
0answers
657 views

Android Game Development Tutorial [closed]

Is there a really good tutorial on Android game development? Provide some links, please.
1
vote
2answers
754 views

How can I disable/dim the screen when I click the pause button?

I am working in an android game using cocos2d. I want to dim the background screen when I click the pause button. How can I do this ?
3
votes
1answer
244 views

How can I organize code for views efficiently?

I'm making a video game for the Android platform and I need advice on the overall set up of the activities and views in the code. I don't need actual code, psuedocode will do, but actual code always ...
1
vote
2answers
2k views

Rotate a bitmap and bitmap is getting blur in android

I am developing an android game. and in this I want to move an object along a Bezier path. my object is rotating with some angle on this curve. I used this piece of code: public void update() { ...
4
votes
3answers
2k views

What 3D engine should I use for the browser, iPhone, and Android platforms?

I have a C++ game that has a 3D engine that works only in Windows. I'm wondering which engine I should use so that it can be used in a browser or in iPad (iPhone) and Android environments? Does anyone ...
-1
votes
1answer
297 views

Touching on the particular sprite from the spritesheet

I want to click on the particular sprite from the sprite sheet. For instance i have fruits sprite sheet i want to click on the particular fruit. Thanks, Jubin Mehta
5
votes
3answers
355 views

Pricing an application

I decided to make my application for free but introduce donation button. For this I would use paypal. What are the advantages of this monetization model and what are other models to consider? My ...
1
vote
4answers
538 views

How can I support scrolling when using batched rendering for my tiles?

I have tiled map 100*75 and tiles are 32*32 pixel.I want to use batching for performance .I don't figure it out , because of my game needs scrolling and every frame i draw 22*16 tiles (my screen is ...
1
vote
2answers
583 views

Android pong clone, having trouble getting the paddle to stop at the screen edge

Well, I'm obviously very new to game dev and android. I've got a ball bouncing around (successfully detecting screen edge collision so that the bitmap stays within screen) and a paddle that the user ...
1
vote
1answer
4k views

How to rotate a moving canvas in Android

I am developing an Android game. In this game some trains are moving on tracks. I am able to move trains horizontally and vertically using two train images for horizontal train and vertical train ...
2
votes
3answers
2k views

How do I change my gravity and jumping logic to put the character at a specific height at a specific point in time?

I'm making a 2D platformer on Android using libGDX. One thing I've had a problem with recently is gravity and jumping. I found a few tutorials on the internet and was able to come up with this... ...
1
vote
0answers
630 views

How to Store the game score in android cocos2d

I calculates the score in game project using android cocos2d, in that game after finishing the first level it goes to the next level, so i want to store that first level score and also add next level ...
6
votes
3answers
4k views

building a game for different resolution phones

I am starting some tests for building a game on the Android program. So far everything is working and seems nice. However I do not understand how to make sure my game looks correct on all phones as ...
1
vote
2answers
2k views

2d engine/library for android in C#

I'm looking for a good 2d engine or library (that supports physics) for Android. I have a restriction - language should be C#. It's not a requirement to use Mono Droid, but it seems that it is an ...
8
votes
1answer
5k views

VSync / real 30FPS on Android

I'm working on a game which can't run at Full speed on some devices. On Tegra2, with many optimizations, performance is near 40 fps. The framerate is stable but animations aren't smooth enough, so i ...
1
vote
0answers
544 views

Context Menu on Surface View [closed]

I'm making a game for Android. The game interface consists of a SurfaceView, with objects represented by drawable Bitmaps on it. Is there a way to long-press one of the bitmaps and call a context ...
1
vote
1answer
1k views

Scaling and new coordinates based off screen resolution

I'm trying to deal with different resolutions on Android devices. Say I have a sprite at X,Y and dimensions W,H. I understand how to properly scale the width and heigh dimensions depending on the ...
19
votes
5answers
7k 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 ...
16
votes
4answers
12k 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? ...
0
votes
2answers
578 views

Bitmap & Object Collision Help

Is it possible to detect when an object and a bitmap collide. I have an arraylist of sprites that I am shooting with an image. I tried using this method here but as soon as the bitmap appears the ...
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
601 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
870 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
8k 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
347 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
408 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
883 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
288 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
579 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
462 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
522 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 ...