Question about weapons

Started by
20 comments, last by Eej 21 years ago
fps=first person shooter.

since u said u didn't have a 'ship' and your bullets seemed to be directly linked to the camera, i just figured you were making an fps.

queues are just FIFO (first-in first-out) lists. so the first thing u push_in, will be the first thing you pop_out.

so if u have bullets with all the same life span, then obviously the first one made is the first one destroyed.

ed: oh yer, i was shaking my head, because i thought you were making a 2d shooter...

[edited by - kuladus on March 28, 2003 1:19:14 AM]
Advertisement
oh lol... well i wasnt specificly making a first person shooter, i guess i could turn it into one. for now im just trying stuff out and seeing if i can get everything to work =P

right now the way i have everything set up it kinda works such that the first bullet created is the first one to be destroyed, they all go the same distance, but no matter the first one fired is the first one to disappear (or be deleted from the vector).

ill mess around with a queue and see if it works more efficiently (and see if it works in a way i want).

2d shooter? like doom? hehe nah =P
Bungo!

This topic is closed to new replies.

Advertisement