Re: [android-developers] Re: 2D shooting game problem

2011-01-19 Thread Niksa Lovrinic
Thank you guys and especially Robert, But the question would be, how do I make that the bullet is fired on a single SPACE key press from the turret to the end of the screen? That's my problem. Nick On Wed, Jan 19, 2011 at 7:16 AM, Kevin Duffey andjar...@gmail.com wrote: Or read Robert's

[android-developers] Re: 2D shooting game problem

2011-01-19 Thread Robert Green
It's kind of like what I said. You're at the point now where you need to take a step back and look at the big picture before you can move forward and make things more interesting. If I were you, my end goal would be to have a design that lets me write a bit of code that looks like this: if

[android-developers] Re: 2D shooting game problem

2011-01-18 Thread Robert Green
Model your world. Try this: public class GameObject { public float x,y; public Bitmap bmp; } public class Tank extends GameObject { // do tank stuff } public class Bullet extends GameObject { // do bullet stuff } See where I'm going there? Then in your main game class you just keep a

[android-developers] Re: 2D shooting game problem

2011-01-18 Thread Zsolt Vasvari
If I recall correctly, LunarLander is not exactly the best example of game design for Android. If I were to create an Android game, I'd start with the source of Replica Island. On Jan 17, 12:37 am, Niksa Lovrinic niksa.lovri...@gmail.com wrote: Hello everybody, I've been playing with the

Re: [android-developers] Re: 2D shooting game problem

2011-01-18 Thread Kevin Duffey
Or read Robert's post.. follow his blog, follow the links. He has a ton of good info on there. As I am finding out, game development is not for the faint of heart. It takes years to become really good at it and understand all the ins and outs. Thankfully we have people like Robert and some others