Operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com
0
votes
0answers
9 views
What is the better way of generating levels in android game using LibGDX
I downloaded the source code of metagun for android from
https://github.com/libgdx/libgdx/tree/master/demos/metagun/metagun-android
The game uses a png image to create the level. It uses the ...
0
votes
0answers
11 views
Time on touch events?
Whats the best way to have a touch even cause an action for a specific period of time or deltaTime?
It seems like it should be simple, but I have tried while and for loops based on int counts for ...
3
votes
3answers
542 views
How to move a sprite automatically using a physicsHandler in Andengine?
I use a DigitalOnScreenControl (knob with a four-directional arrow control) to move the entity and the entity which is bound to a physicsHandler.
physicsHandler.setEntity(sprite);
...
-1
votes
1answer
41 views
Android TCG structural design [closed]
I started developing tcg for android, using ADT bundle.
What is the right approach/way for making/storing cards/game info, local sqlite, some kind of data file? some service? or something else?
0
votes
1answer
17 views
Problem with Widget Event Reporting in Libgdx
So I'm trying to test an ImageButton on an Android device. I can get the button to appear on the screen, but when I press it nothing happens or appears on the log. Here is what I have in the Show() ...
0
votes
0answers
17 views
Flickering GUI on Android
New version of Unity is causing rather weird problems on Galaxy S device. The GUI starts to flicker, tear and disappear altogether at random in different screens. But this only happens on the second ...
1
vote
1answer
488 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
1answer
73 views
Will Google Play Game Services allow asynchronous gameplay
Will the Google Play Game Services multiplayer allow asynchronous (turn-by-turn) gameplay like DrawSomething?
I've checked the docs but cannot find anything except a few mentions via a separate ...
0
votes
1answer
42 views
How can I draw a small bitmap on a larger bitmap at a particular position? (Canvas / SurfaceView)
I'm building a game that requires additive blending of colours for certain bitmaps.
Say I have 4 different types object, there are maybe ten of each type on the screen with each type having a ...
1
vote
0answers
40 views
Accessing variables from non-neighbouring classes specifically in game development (Android)
Edit
Using direct access while breaking the law of demeter looks like this:
res.sprite.drawQuad(res.sprite.xScreen,res.sprite.yScreen, mMVPMatrix);
Using proxy methods / getters / setter looks ...
0
votes
0answers
38 views
Making Puzzle Bubble type game in AndEngine [closed]
I want to make Puzzle Bubble clone game and I need some serious help.
Can you please tell me using physics what should I start with? I mean how can I make addictive levels and How can I reflect the ...
0
votes
1answer
408 views
Making body(box2d) a spite(andengine) in android
I can't make body(box2d) a spite(andengine) and at the same time i wanna apply MoveModifier to sprite which is body.if i can make just body,it works namely the srites can collide.if i can apply just ...
1
vote
1answer
155 views
How do I make a scrolling background a la “Temple Run”?
I am looking to create a scrolling background much like "Temple Run" so that it may appear as though you are running down a hallway. Would someone please be able to point me in the right direction?
I ...
0
votes
1answer
18 views
Android cocos2d getting a sprite to continuously move to a dynamic position
I tried using the MoveTo method in cocos2d to get a sprite to continuously follow my player sprite:
CCMoveTo actionMove = CCMoveTo.action(actualDuration, player.getPosition());
CCSequence actions = ...
-2
votes
0answers
58 views
andengine Tower Defence game - Enemy<-Weapon interaction [migrated]
What is the most correct from the performance point of view - algorithm of interaction between Enemy and Weapon(bullet maybe more correct here) ?
Should every sprite every single bullet check for ...
0
votes
0answers
15 views
How to get sprites react to touches in cocos2d-android
i have 1 gun when tap on any area on the screen bullets fires out, but according to my requirement there are 3 guns(sprites) when touched on any of the sprites bullets must fire up, when googled i ...
3
votes
1answer
980 views
How to move gameobject with touch on Android
I'm trying to make a game where you control a character via touch on Android devices.
The player will have two degrees of movement.
When you touch the touch screen and move your finger, the game ...
0
votes
1answer
38 views
How do you implement Libgdx touchDragged?
I'm a beginner in Java and in Game Development too. I was following some tutorials, but now I'm stuck on implementing a touchDragged listener using libgdx,
Can anyone suggest how to drag the image ...
1
vote
1answer
97 views
How do I convert my XNA game to Android without using MonoGame?
I want to convert my XNA Game to Android, but I don't want to use MonoGame or ExEn. How can I do this?
-1
votes
0answers
26 views
Skins for libGDX user interface [closed]
I am making a user interface in libGDX using the scene2d.ui portion of the library. To make a button, however, I need to have a skin. I was wondering if there is some sample premade skins available by ...
-2
votes
0answers
79 views
getting “lag” in my game
I'm having some lag problems. It's not because the amount of processes on my cellphone. I guess it's the timing of sending and receiving information from my server.
My game consists of moving around ...
-1
votes
0answers
84 views
Should I use Java, HTML5, or Unity 3D for my Game? [closed]
I am developing a game and I would like the game to be available on the iPad, Android Tablets, Mac, and Windows. I've already began developing the game in Java, which will ensure support for the ...
-1
votes
0answers
18 views
improving performance of NME for Android
I'm still new to NME and I'm making a game for Android.
I'm using FlashDevelop to build and testing on a Galaxy S Advance.
But I'm not getting the performance I want. Is the phone too slow to handle ...
1
vote
1answer
26 views
How to check default axis orientation on device?
I am developing a game which uses the accelerometer to move the character. It works fine on all the mobile phones tested on.
However when testing on a tablet, it seems the y and x axis are reversed I ...
0
votes
0answers
19 views
Android cocos2d getting collision detection to work only on some frames of animation
I have an animated bomb sprite in my game and use CGRect for collision detection:
for (CCSprite bomb : _bombs) {
CGRect bombRect = CGRect.make(bomb.getPosition().x - (scaleFactor * ...
5
votes
2answers
746 views
Implementing fog of war in opengl es 2.0 game
Hi game development community, this is my first question here! ;)
I'm developing a tactics/strategy real time android game and I've been wondering for some time what's the best way to implement an ...
4
votes
1answer
165 views
Android game loop's effect on cpu/battery usage - unexpected results
I will try to keep this question as concise and as readable as I can.
I recently came across an odd problem with my Android game that I'm developing.
It's an openGL ES 2.0 game and initially I was ...
0
votes
1answer
55 views
Android Loop : Draw Loop : How to pull off smooth FPS?
I am writing 2D side scrolling bullet hell-like game.
I am at a point where I struggle to pull off smooth fps.
I have separated loop that manages drawing.
However I want update the position of ...
10
votes
4answers
15k views
Where are all the tutorials for libGDX?
I've searched online for help and tutorials on LibGDX but I couldn't really find any, except and the wiki for asking questions on stackexchange. Besides the source (demos) and wiki, is there any other ...
0
votes
0answers
26 views
Adobe Air Mobile AS3 app: challenges and how to overcome them?
I made a PC flash game for LD 26 - minimalism and I am working on porting it to Android.
Some questions I'd like to ask:
Is it bad to heavily use vector graphics (ie. this.graphics.lineTo()) in ...
0
votes
0answers
46 views
What's the most efficient way to merge two arrays of game sprite objects? [closed]
I've been thinking of using LinkedLists and its list1.addAll(list2); method, but a post on this thread suggests that it's a bad idea and I'd be better off just merging two arrays.
What is the best ...
0
votes
1answer
221 views
AndEngine drawing 2D tiled game field
I'm in process of developing simple android puzzle game. I decided to choose andEngine as an engine for my game.
In my game I have a gameField [][] array, which represents a game field, where each ...
0
votes
1answer
152 views
GameLoop architecture for local multiplayer
I'm writing a game for Android to which I want to add a mulitplayer mode (local multiplayer via WiFi/Bluetooth, not online multiplayer via server). I stored the exchange-code between the client ...
7
votes
3answers
216 views
Collision detection problems using AABB's
I implemented a simple collision detection routine using AABB's between my main game sprite and various platforms (Please see code below). It works great, but I'm now introducing gravity to make my ...
1
vote
2answers
795 views
AndEngine Sprite position
I had noticed the AndEngine a few days ago, and I tried to create basic game with a few Sprites.Sure, the engine makes the development process much more easier.However I found the sprite lacking a ...
2
votes
2answers
296 views
How do I get the touch event on a body in Box2d(Java)
I have various bodies rotated at some angle with the help of Box2d in libGDX. What I want is to destroy the body when I click on it, but the problem is that I am not able to get the area definition of ...
0
votes
1answer
414 views
Android: Improving surfaceView?
I'm using Surfaceview in my Android app. I have two threads, one for UI and another for rendering and updading the UI.
I am limiting my frames per second to 30 fps and have employed frame-skipping ...
0
votes
1answer
30 views
Android cocos2d removing a sprite after animation
I have an object going across the screen with an animation using the following code:
CCSpriteFrameCache.sharedSpriteFrameCache().addSpriteFrames("ninjastar.plist");
CCSpriteSheet projectileSheet = ...
8
votes
2answers
1k views
Play videos with LibGDX
Is there a way to play videos with LibGDX?
I want to put a video as my splash screen in Android, but I dont want to use the Android SDK, because I am using LibGDX and I am almost finished :/
-2
votes
0answers
72 views
Game development update for newbie [closed]
I know many topics been here before but i think mine will be the most updated question. I want to start on game development, my target platform is android. I have experienced in web desktop and ...
0
votes
1answer
108 views
Drawing more that one quad with only one glDrawArray call…?
Edit
After initially thinking that my sprite batch test was faster than calling each sprite individually, it appears that is not the case!! :-(
With a single set of GL calls for a each sprite, I can ...
2
votes
1answer
169 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 ...
-5
votes
1answer
821 views
Which programming language is used to develop an app in corona?
What is Corona & Which programming language is used to develop an application in corona?
What physics Engine is corona using?
and any other information that is absent in their site?
-2
votes
2answers
100 views
Cross Platform HTML5 Canvas game engine [closed]
I want to build a puzzle game,I want to develop it for Browsers, Android, iOS, And PC. Please help me and let me know is there any game engine that is useful for making cross platform HTML5 games..
1
vote
1answer
127 views
Optimal FPS for best user experience/battery life
I'm currently developing a game for Android. The "graphics" I'm using is not very CPU/GPU-expensive thus it runs with high FPS. Because on Android devices, saving energy is important, and I want to ...
2
votes
2answers
274 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
2answers
121 views
What needs to be done to port a Windows Flash game to Android?
My team has developed a game using Flash (with Lua embeded) that targets Windows. And we want to port that game to Android (also iOS in the future).
It's acceptable to rewrite the Flash part of ...
2
votes
1answer
80 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 ...
2
votes
1answer
108 views
Moving sprites based on Delta time - consistent movement across all devices with different resolutions
This is the formula I am currently using to move my sprites across the screen:
Examples below only deal with X coordinates to keeps things as short as possible.
Initial variable declarations:
float ...
-2
votes
0answers
26 views
Android Divide height evenly into tiles
I am writing a simple Sudoku app. I am overwriting onDraw to create the main grid of the sudoku game. The layout basically is :
Parent/Main Activity -> Contains 2 child views
-> SudokuBoard view - ...



