Operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com
11
votes
8answers
851 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 ...
-3
votes
2answers
535 views
How to fire a bullet in a specific direction?
I am developing an Android game. I have problem with bullet firing. It's a space ship that has to fire bullets but right now it's firing in a random direction. I have to fire a bullet to the enemy ...
2
votes
3answers
296 views
What are the benefits of using a 2D game engine on Android?
I have thought about just coding a 2D game on Android using just pure Java and the Android SDK, no engines like libdgx, cocoa-2dx attached. I don't know if I really need to use a game engine or not. ...
0
votes
1answer
116 views
Is there a way to make a game using lwjgl work on android?
I'm working on a platformer and I'd like to make an android version. Do I need to rewrite everything for android, or can I use something to make the lwjgl code work with android?
0
votes
2answers
391 views
LibGDX Swipe Detection Left and Right
I have displayed an image at the center of the screen with libgdx. If I swipe left, the image should move to the left; and, if I swipe right, image should move to the right.
Subsequent swipes to the ...
0
votes
1answer
339 views
How to implement bullet physics in libgdx
I am new at game development want to know that how can I implement bullet physics in libgdx. I searched lot of things on Internet but nothing found worthy.
-1
votes
1answer
189 views
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo [closed]
03-08 10:43:47.360: W/dalvikvm(9089): Unable to resolve superclass of Lcom/example/demotilecollision/MainActivity; (167)
03-08 10:43:47.370: W/dalvikvm(9089): Link of class ...
0
votes
2answers
887 views
Libgdx Animation Timing
I'm having a small issue with libgdx animation.
I'm using getKeyFrame() to get the current frame of the animation and I'm updating the state time by adding on deltaTime in my update function for the ...
0
votes
1answer
126 views
Rotation of Rectangle along Y-axis transformed to parallelogram
After the rotation of a rectangular view along the Y-axis, about its center, transformed into parallelogram, how do I get the rotated parallelogram coordinates?
By Y-axis, I mean perpendicular to the ...
2
votes
0answers
27 views
How do I create a scrollableparallax background in AndEngine GLES1 [duplicate]
In my game I want my background to move side by side as the player moves on screen in AndEngine. I moved my sprite using analogScreenControl. I am using AndEngine GLES1. i don't want to move my ...
3
votes
1answer
296 views
How do I implement an AutoParallax Background in AndEngine GLES1?
I'm using AndEngine GLES1. In my game, I use AnalogOnScreenControl to move a sprite and when it moves vertically, the background image also moves vertically. I want to do something like this: that is ...
-1
votes
1answer
262 views
2d triangle with OpenGL-Es on Android
hey I am trying to draw a triangle on opengl es . I just followed a tutorial to do it. eventhough everything seems to be fine it does not work. everytime I run my code it sends me back to main menu.
...
7
votes
1answer
202 views
Collision Detection Slows Screen Drawing
I have recently been pursuing game development as a hobby, and decided that in order to learn the in's and out's of game development, that I should create a game and render everything myself (without ...
1
vote
1answer
257 views
How would I make an air hockey AI?
I am making an air hockey game for Android using AndEngine and its Box2D extension.
How would I make an AI for an air hockey game? For it to work the AI would not only need to move its paddle side ...
-4
votes
1answer
2k views
Difference between libgdx and andengine [closed]
How to choose between libgdx and andengine?. Some people suggest using ligdx. Some others prefer andengine. If someone is favouring one above the other what would he consider choosing betweeen the ...
-3
votes
1answer
141 views
java app goes too slow in android os [closed]
The problem is that my java app contains too many animated sprites and it runs very slowly on android system.
Does the usage of .gif animation instead of sprite animation will improve the speed?
I ...
7
votes
5answers
2k views
How can I refer to Android assets in other directories?
My project was initially not meant for Android, and its assets are organised along the following directory structure (I hope the ASCII art renders reasonably well):
/
+- engine/
| +- src/
| ...
2
votes
1answer
191 views
Android emulator with acceleration and gyroscope simulation
Is there an Android emulator that is compatible with eclipse that can simulate acceleration and tilting of a mobile device?
0
votes
1answer
122 views
Using compressed(ETC1) textures in LibGDX
I use standard android tool for compressing PNG texture and archiving it with gzip:
/android-sdks/tools/etc1tool texture.png --encodeNoHeader
gzip texture.pkm
Then I try to load it:
FileHandle ...
3
votes
1answer
159 views
Poor image quality on Android through Unity Remote
I have started to work on the company's latest project using Unity3D and the workflow is just awesome.
The problem is when running the game on a real Android device (using Unity Remote) the image ...
2
votes
2answers
339 views
How to Change default Mouse pointer on emulator in Android?
I want to change default mouse pointer in Android emulator. I want to change it for my game to use different type of cursor.I am using AndEngine for my game development. Is there nay way to change ...
4
votes
2answers
93 views
Should I target a mobile phone or simulation tools are good enough?
I'm starting mobile development, and I would want to know if it's necessary to target a specific smartphone, or nowadays one can run a simulation that will provide accurate data of how the game will ...
9
votes
2answers
6k 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 ...
3
votes
2answers
883 views
Making color of sprite darker or lighter
Is there any way to make a sprite darker or lighter in AndEngine? I dont want to use the alpha thing. Nor I want to loose the texture/design of the image.
1
vote
2answers
276 views
What matrix operations do I perform to translate then rotate then translate then rotate?
In an android game I want to draw a running leg. To output the thigh I do something like:
// legCX,legCY is the location on screen about which the leg rotates.
Matrix m = new Matrix();
...
1
vote
2answers
393 views
Detecting Screen Resolution in Android/AndEngine to display high or low quality images
I am developing a game with 1024x600 resolution. I can't target smaller resolution devices at this resolution, so I intend to use two graphics for the game. How do I detect which graphics to use for ...
1
vote
0answers
97 views
Using Gmail credentials to authenticate users [closed]
I am developing a game in which I want the user to be able to use their Google Mail account to log in. They should be able to simply click on a Gmail login button and be taken to the Gmail login page, ...
3
votes
1answer
233 views
How do I support variable screen ratios using AndEngine?
When displaying a background, AndEngine produces black bars above the image on certain devices. How do I support variable screen ratios for different devices using AndEngine?
1
vote
1answer
220 views
How to detect screen boundary using AndEngine GLES1?
I am using the AnalogOnScreenControl to move my sprite around the screen. I would like to restrict the sprite so it can not move outside the screen boundaries.
I have tried putting a line at the ...
3
votes
1answer
294 views
Max texture size Android : which settings for 2048x2048?
I want to use a texture atlas of 2048 x 2048 in my game, and I would like to warn the users with a "too low" device to not download the game.
With a texture atlas of this size, what requirements ...
2
votes
1answer
199 views
Shooting Bullets Around a Sphere
I currently have a ship that can orbit around a sphere freely controlled by a joystick. There is a separate joystick that controls the gun and starts shooting when it is touched.
Right now the ...
0
votes
2answers
330 views
Drawing Sprites in Android OpenGL efficiently?
I want to basically give myself some sprite drawing functions (making use of openGL) such as;
draw(Texture,x,y)
I want to do this using OpenGL-ES 2.0 on Android. Since the textures can be varying ...
-1
votes
2answers
401 views
How to make a map [closed]
For school my group and I are going to make a 2d turn based strategy game on android.
We are trying to make a simple version of Advanced Wars(screenshot1 Gameplay).
But we don't really know how to ...
2
votes
4answers
474 views
Changing background images frequently within a specific time range with Cocos2D
I am working on a game development project for Android. We use the Cocos2d framework. I have to design a page which contains two background images, I need to switch these images repeatedly within ...
8
votes
4answers
555 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 ...
1
vote
1answer
112 views
Horizontal scroll only part of the view
I would like to know the best way on how to implement horizontal scrolling to only part of the view and vertical scrolling to complete view. I was able to achieve horizontal and vertical scrolling to ...
2
votes
2answers
213 views
How do I store level-data in Android?
I'm building a game where enemies come in waves. I want to create a file where I can define data about the waves (# of enemies, spawn times, speeds, etc.). I come from a background in iOS and would ...
0
votes
2answers
290 views
Memory clean up in scene management (AndEngine)
I have developed and launched a game called Bicycle Doodle GLD.
In this game, I load all the game resources at the initial loading scene. The game contains 24 levels, so only the resources that ...
0
votes
2answers
777 views
How to use the box2d contact listener in android (java port)?
I don't have any idea about the box2d collision detection in android. I googled and got results that suggest to use the contact listener but I don't know how to use it in android java.
0
votes
1answer
186 views
To stop Spite animation scrolling along the background in openGL ES
After using the endless road algorithm as described here, I also implemented the scrolling of walls along with it.
I have the walk animation of the person which is stationed at the center of the ...
3
votes
3answers
626 views
Where and how to check if game was developed with bought Unity3D licence (not cracked app)?
We hired an external team from Eastern country. They built our mobile game app using Unity3d which we paid a lot of $K. We asked them to only use the software with bought license, not cracked one, and ...
0
votes
4answers
334 views
hidden cost while deploying game with unity3d
I just started learning unity3d. I created a small 2d game, I want to host for windows, iphone, ipad, android, windows 8, xbox and even in websites.
I created it using free unity3d editor. Now I want ...
0
votes
0answers
72 views
Pong Game, Multitech problem [closed]
I am trying to implement pong Game, I have two classes as "PongGameView" and "GameState"
i implemented multitouch event implemented in "PongGameView" and passing the x cooridantes of the pads to ...
-1
votes
1answer
95 views
How to get started with 3D apps for android and iOS? [closed]
I have developed a few simple android apps. I want to build apps and games with 3D environment. For eg like this. Kindly tell me how to get started ? Also, I would like to convert my android app/game ...
0
votes
1answer
325 views
JBox2D simple example for Android? [closed]
I'm starting to develop an Android game. I've already installed jBox2D but I can't find complete code to develop a simple application from scratch using this framework.
Thanks in advance!
2
votes
0answers
134 views
Camera - View matrix in Android + openGLES 2
I am trying to use the touch screen on the tablet to control my camera movements and generate the view matrix accordingly.
I get the x and y coordinates of the screen and after doing some sanity ...
0
votes
1answer
186 views
Game development for android using JQueryMobile or any OpenSource alternative for absolute beginners [closed]
I hope it doesn't really sound odd as this questions is for Game-development for Android Devices for absolute beginers. The reason for me asking is currently I am learning the Native App Development ...
0
votes
1answer
81 views
Devices or Smartphones That Can Run and Displayed Images Properly While Power of 2 Code is Disabled
Before making game apps, I want to have any certain smartphone device brands that runs on OpenGL. I have to make a code for images that doesn't need to required power of 2 images so that I can resize ...
-1
votes
1answer
324 views
Create Box2D and engine polygon Box2D body without sprite
Hey I have created my body using following code: (please read full description)
Body polyBody;
final BodyDef mBodyDef = new BodyDef();
mBodyDef.type = BodyDef.BodyType.DynamicBody;
...
0
votes
0answers
31 views
pygame android preplash image stays for ever [closed]
I am facing strange problem for my small game written in python I am pushing this to andorid using this doc http://pygame.renpy.org/index.html
But my android-presplash.jpg stays for ever in the ...

