Operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com
1
vote
0answers
41 views
Detecting collision between ball (circle) and brick(rectangle)?
Ok so this is for a small uni project. My lecturer provided me with a framework for a simple brickbreaker game. I am currently trying to overcome to problem of detecting a collision between the two ...
-2
votes
1answer
30 views
Words matching system
There is a game called 94seconds and i'm interested in how they made words matching. I've decompiled apk and saw mongoDB and BSON classes and apparently they are used to store dictionaries for ...
0
votes
0answers
27 views
Using buttons on Smartphone shooter games
Just a simple and probably stupid question.
I noticed that many iOS and Android shooter games tend to avoid using traditional buttons in favour to autofire.
The very first reason to do so is to ...
0
votes
1answer
37 views
How do I stop overlapping shapes when collision detected in AndEngine?
I am making a very simple demo in AndEngine in which I have three rectangles: rect1, rect2 and rect3 in an ArrayList.
I register onAreaTouch as follows:
@Override
public boolean ...
-4
votes
0answers
31 views
Android WiEngine Random Sprite [closed]
I am creating a game just like Fruit Ninja in Android and I am stuck at one place:
I have to create Random sprites in Wiengine. Just like fruits move in Fruit Ninja I also want my sprites to move ...
-4
votes
0answers
35 views
Exploding, and breaking bodies in Box2d/LibGDX
I have a top down game in which a player is moving forward, and box2d bodies spawn in front of the player. Once a player hits the bodies, I intend to exaggerate normal physics a bit, and if the body ...
0
votes
3answers
86 views
Implementing a basic jump in libgdx
I have seen the document for libgdx and managed to move the character and also to implement bounds but the document does not show how to implement jumping.
I have downloaded the superjumper demo code ...
-3
votes
0answers
40 views
Layout of poker game in android? [closed]
its a run time game and i use the eclipse and presently its a two deal game. But i did not fix his layout. Which layout is better to use that game?
0
votes
1answer
50 views
How to scroll background image-Android App
Basically, I have a main menu, and I would like the background image to scroll (parallax I believe is the term? Like the Angry Bird's title screen background).
However, I'm used to just having a ...
0
votes
1answer
52 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
1answer
63 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.
2
votes
3answers
169 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. ...
-1
votes
1answer
34 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 ...
2
votes
1answer
59 views
How do I eliminate black bar artifacts in AndEngine/TMX plugin?
I used AndEngine gles1 along with the tmx plugin to generate my background maps. The image width is not fit to my virtual device, so I increased the tmx image size. Here is my code for the camera ...
0
votes
1answer
56 views
Animate Using setScale()
I want to animate my player from bigger size to smaller size and then smaller size to bigger size continuously.
We can use setScale() method to re-size any sprite but is there any way to animate with ...
-2
votes
0answers
44 views
My question about OpenGL [closed]
I am new android developer.just i want load .obj file to my application, i can't know opengl. please give some butter idea or how to understand opengl concept(give some book link).
3
votes
1answer
84 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 ...
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 ...
0
votes
1answer
68 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 ...
1
vote
1answer
155 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 ...
-3
votes
0answers
81 views
Poker Game Development [closed]
Starting from zero is overwhelming. I want to build a poker application (multi-user, multi-table etc). I am an older (talented) programmer who has never done any phone or java programming, so what ...
2
votes
1answer
75 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?
-3
votes
1answer
107 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 ...
0
votes
2answers
189 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 ...
2
votes
0answers
51 views
How can I access bitmaps created in another activity?
I am currently loading my game bitmaps when the user presses 'start' in my animated splash screen activity (the first / launch activity) and the app progresses from my this activity to the main game ...
3
votes
1answer
102 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
105 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 ...
3
votes
2answers
75 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 ...
0
votes
1answer
57 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 ...
1
vote
0answers
78 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, ...
1
vote
2answers
128 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();
...
3
votes
1answer
99 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?
2
votes
1answer
144 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 ...
-1
votes
2answers
215 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 ...
1
vote
1answer
122 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 ...
-2
votes
0answers
70 views
Hidden objects game on Android [closed]
I want to write simple hidden object game on Android on java, so, Ill apreciate a little help(advice), about representing all game stuff(background is background, interactive objects, targets, etc).
I ...
0
votes
2answers
183 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
0answers
52 views
Android Cocos2d - game crashes on device with different screen sizes
I have a game I'm building on android using cocos2d version 1-0. For most of the development I've been testing on my Galaxy Note 2 with a 5.5" screen. However when I tried testing on a smaller device ...
3
votes
1answer
100 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
0answers
86 views
Setting Coordinates to spawn Enemies [closed]
i'm making a game for android with libgdx and I created a BloonFactory class (the enemies are bloons :P)
The problem is that i have a shooter in the middle of the screen and I don't want to spawn ...
1
vote
2answers
162 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 ...
2
votes
2answers
93 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 ...
-1
votes
2answers
133 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 ...
2
votes
1answer
105 views
Android Virtual Pet Gameloop
Hello I'm looking for a bit of advice in which way is the best to proceed creating my applications 'gameloop' - It doesn't want to be a game loop in the truest sense since I'm not really rendering any ...
1
vote
1answer
142 views
When to use ShapeRenderer & SpriteBatch in libGdx?
As a beginner(in GdxLib+Android), i found that for rendering particular screen, we can render that using both ways then when to use specific ones?
&
What is the best option for Updating the ...
0
votes
4answers
262 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
61 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
63 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
92 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
70 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 ...