Tagged Questions
3
votes
1answer
102 views
When and why is a Pool class needed to hold objects?
I've been studying opengl es and an example I saw was using a "Pool" class to keep track of touch and keyboard events.
Could someone please explain how and why a pool class is needed. From what I was ...
1
vote
0answers
67 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 ...
2
votes
2answers
270 views
How to detect a touch on transparent area of an image in a (libgdx) stage?
Can some one please help to detect a touch on an image which I am using as an actor in a stage. The image is actually a long diagnol brush which has plenty of transparent area. The problem is when I ...
2
votes
1answer
1k views
How do I implement a score database in Android?
I making a 2D game for Android using OpenGL-ES technology. It is a space shooting game where the player shoots enemy ships.
I want to keep a track of score for the amount of enemy ships destroyed ...
1
vote
1answer
332 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 ...
-1
votes
0answers
45 views
Developing a game for Facebook and Android [closed]
I want to develop "Balloon Shooting" game where players can click on the balloons and score. I want to port this game into both Facebook and Android. The problem here is that i really don't know what ...
1
vote
2answers
3k views
How can i use A star pathfinding algorithm
How would i implement an A star algorithm for a game that i'm making on the android in java? i'm looking for a pre-made A star API in java with classes and methods to call. i don't want to have to ...
2
votes
2answers
274 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 ...
2
votes
1answer
143 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 ...
2
votes
2answers
212 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 ...
-3
votes
0answers
76 views
Android game loop in separate thread [duplicate]
I am about to port a game that was initially written for iOs and I am having some doubts how certain things should be done.
I have been looking many of the examples of the game loops for android, and ...
-2
votes
0answers
42 views
Datakgram.receive stops my program [closed]
I have this while loop, that will deal with network UDP sending and receiving using DatagramSockets, let me first explain what happens, at the start of the program, it will wait for a client to ...
3
votes
4answers
409 views
Better way to generate enemies of different sub-classes
So lets pretend I have an enemy class that has some generic implementation and inheriting from it I have all the specific enemies of my game. There are points in my code that I need to check whether ...
1
vote
1answer
71 views
Can't call method out of a timer. Why? [closed]
I have another problem i can't solve by myselve.
My situation:
I have four FrameLayouts in LinearLayouts.
I color them, set Layout hight and width at wrap content and just change the minwidth to ...
0
votes
1answer
86 views
Get back or delete an existing OpenGL object, then change it and draw at new. How?
With OpenGL i'm drawing for example a circle.
Can i take this drawn circle back out of the window and change something and then draw it back on the window?
Or can i /have to delete it and then draw ...