Tagged Questions
1
vote
0answers
53 views
How to implement a multi-platform Java 2D game engine's graphics?
I'm not sure whether this question should be posted here. I'm trying to make a basic generic game engine in Java. Here's what I have so far.
public abstract class Device {
public abstract void ...
7
votes
1answer
199 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
98 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 ...
-1
votes
0answers
49 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 ...
0
votes
1answer
93 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 ...
1
vote
0answers
110 views
How to make the background of an OpenGL object transparent?
It sounds so simple but i didn't get it to work.
The Background of my FrameLayout where i add the GLSurfaceView in is colored blue but there is only black.
So here is my method to initiate the ...
1
vote
1answer
72 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
64 views
Cost of changing scene in andengine
I'm working on a simple 2d puzzle with small textures (in count and quantity).
Now after I finished the game logic I'm considering tow options to switch between levels:
Remove all objects manually ...
0
votes
2answers
76 views
Android bitmap placing
I've recently added an explosion in my game, for when enemies get killed, and it works fine and all, but the explosion wont "spawn" on the enemies x and y.
The problem is that I'm not drawing the ...
7
votes
2answers
301 views
What's the best way to draw lots of trees
I'm writing an app which renders a random island planted with trees. The trees are currently two quads, criss-crossed and drawn with textures. I plan to have more complex meshes that form different ...
-6
votes
2answers
137 views
Moving a sprite diagonal?
I wonder how I should increase and decrease the value of xPos and yPos to be able to move a sprite object diagonal and in different angles?
canvas.drawBitmap(image, xPos - (image.getWidth() / 2), ...
0
votes
1answer
80 views
Android activities, when to use them?
I'm getting back into programming my game and I can see that I've used activities for so many things. I only have one with a custom-view (my actual game), the others are activities with XML-views, ...
2
votes
2answers
246 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 ...
-4
votes
1answer
56 views
Words matching system [closed]
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
1answer
105 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?