Page 1 of 1

I'm a noob: help on game please

Posted: Tue Jun 09, 2009 7:34 pm
by derbon
HEY!!!

Im making a vertical space invaders game with C++/Allegro, and i had thought and thought abouthow i can get bullets to work without my on method,

I have a class called Bullet with 3 integers of x, y, speed, and a void function of Move() which subtracts y and speed. Is there more i need to add or anything, or something else.

Im serious when i said i was a noob, i have only been programming for almost a year.

HELP!!!!!!!!!!!!

Re: I'm a noob: help on game please

Posted: Tue Jun 09, 2009 8:18 pm
by MarauderIIC
derbon wrote:I have a class called Bullet with 3 integers of x, y, speed, and a void function of Move() which subtracts y and speed. Is there more i need to add or anything, or something else.
Well... does it work as it is? If the answer seems to be yes, the only other thing to consider is that if you create the bullet, you need to remove it too.

Re: I'm a noob: help on game please

Posted: Tue Jun 09, 2009 8:33 pm
by hurstshifter
Looks like you and I have the same goal right now. I recently began implementing projectiles as well, but I am using SDL instead of Allegro. Check out this thread for marauder's response to my projectile question, perhaps it will shed some light on what you need to do. It sure did for me.

http://elysianshadows.com/phpBB3/viewto ... art=999999