Tagged Questions
3
votes
1answer
1k views
Handling game states for Android
Currently developing a game for Android. I went through a tutorial to get sprites, loop, etc. up and running, and it all works fine. The way it is currently set up is that Main creates a canvas, the ...
7
votes
3answers
625 views
Android threads trouble wrapping my head around design
I am having trouble wrapping my head around game design. On the android platform, I have an activity and set its content view with a custom surface view. The custom surface view acts as my panel and I ...
3
votes
3answers
8k views
Android game scrolling background
I'm just trying to figure out the best approach for running a scolling background on an android device. The method I have so far.... its pretty laggy. I use threads, which I believe is not the best ...
8
votes
3answers
3k views
Android differences (Dalvik+Java vs Old School C++)
Developing in Android is going to be different for me, having spent the last 10 years coding games in C++. What's the main differences / pitfalls / bottlenecks to developing for the Android? My big ...
1
vote
4answers
218 views
Which Side Was Hit?
I am working on an Android game and I have two objects A and B (both rectangles) and when they collide I simply want to know which side of B was hit. I have detected the collision fine, but I am ...
2
votes
1answer
402 views
In a component/entity system, what's the correct way to implement entity-specific components?
I'm trying to create a basic C/E game engine for Android, and I'm trying to re-create pong as a basic warm-up. I currently have a EntityManager class that contains a list of all the UUIDs for its ...
1
vote
1answer
108 views
Random Sprite Speed
I followed the Rain Catcher tutorial from libGDX and I made some modifications to the code, allowing the rain drops to appear faster. But I cant figure out how to make the raindrops fall at random ...
4
votes
1answer
352 views
Scaling a game view with letterboxes?
I'm creating an Android game and I want everyone who plays it -- no matter the size or shape of their screen -- to see the same 480x800 playfield but, depending on the actual resolution of their ...
3
votes
3answers
258 views
Determine Resulting Angle of Wall Collision
So I have an object moving in a direction towards a fixed horizontal or vertical wall. How do I compute the angle that the object should bounce off at? The object can approach the wall at an arbitrary ...
3
votes
0answers
269 views
Android threads trouble wrapping my head around design [closed]
Possible Duplicate:
Android threads trouble wrapping my head around design
I am having trouble wrapping my head around game design. On the android platform, I have an activity and set its ...
3
votes
6answers
1k views
Should I go with Windows Phone 7 or Try Android?
I already know C# and am familiar with XNA.
So it would make sense to develop for the Windows Phone 7, but would it be worth while to learn Java, get familiar with Android, and instead develop for ...
2
votes
2answers
163 views
Horizontal wrapping with AndEngine
How would one implement the effect of a sprite disappearing on one side of the screen and appearing on the other using AndEngine? Like in Kid Icarus, seen here at around 1:22.
2
votes
1answer
554 views
Android Game Dev: Screen Scaling
This question is very closely related to a previous question of mine:
Scaling a game view with letterboxes?
My game runs at 480x800 right now but when the screen is smaller or bigger than that I ...
2
votes
2answers
637 views
Can one draw a cube using different method/drawing mode?
I've just started learning gamedev (in particular android EGL based) and have ran over a code from Pro Android Games 2 that looks as follows:
/* * Copyright (C) 2007 Google Inc.
* * Licensed ...
2
votes
3answers
2k views
Understanding MotionEvent to implement a virtual DPad and Buttons on Android (Multitouch)
I'm trying to implement a virtual DPad in android, but I'm still very confused about how do I keep track of each trouch point, from the moment it is pressed, till it is released.
In my code, I test ...