I'm a noob: help on game please

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
derbon
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 54
Joined: Tue Jun 09, 2009 7:25 pm
Current Project: Big Nasty Enemies
Favorite Gaming Platforms: NES SMS snes PC N64 PS2 Vectrex The Arcade Machine
Programming Language of Choice: C++, Perl
Location: why shud i tell u u mite steal my tv
Contact:

I'm a noob: help on game please

Post 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!!!!!!!!!!!!
i think the best paint program would be microsoft paint + paint.NET+graphics gale + Paint shop Pro 7 + photoshop CS3, it would be called Paint Gale Pro Shop.NET,

http://youtube.com/gonduda
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

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

Post 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.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
hurstshifter
ES Beta Backer
ES Beta Backer
Posts: 713
Joined: Mon Jun 08, 2009 8:33 pm
Favorite Gaming Platforms: SNES
Programming Language of Choice: C/++
Location: Boston, MA
Contact:

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

Post 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
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
Post Reply