Hi, I've been tasked with creating a 2d sprite based game on the PS2 and so far it seems to be pretty simple. However I'm trying to create the ability of the player to be able to shoot more than one laser at a time (ie so that the player can press corss twice within a few miliseconds and fire 2 lasers etc etc).
Whats the best way to go about doing this, as i recall having the same problem when coding in flash for a scrolling shooter?
2d space shooter help! (PS2 C++ codeing)
Started by Sent1nel, Oct 31 2007 03:44 PM
1 reply to this topic
#1
Posted 31 October 2007 - 03:44 PM
#2
Posted 01 November 2007 - 05:48 AM
An array of N bullets. When you shoot, find one bullet in the array that is "dead". When a bullet dies (it goes off the screen, or hits an enemy, or has flown for X time) then mark it as "dead". You can have a total of N bullets at any one time.
Definitely the simplest way, and in some circumstances the best.
Definitely the simplest way, and in some circumstances the best.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











