Path: chuka.playstation.co.uk!news From: Ed Fear Newsgroups: scee.yaroze.beginners Subject: Enemies in a Space Invaders Clone Date: Sat, 26 Dec 1998 16:46:42 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 31 Message-ID: <368512F2.4AC179EE@yahoo.com> NNTP-Posting-Host: 167-21-241.ipt.aol.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (Win95; I) Hey, I woz just wondering what you guys would do when faced with the fact that you need 20 enemies on the screen at a time? I was thinking of doing something like this typedef struct { GsSPRITE sprite; int dead; } enemy enemy Enemies[20]; // as a global And then whenever I get to the main loop and I have to enter the sprites into the OT, do this: for (i = 0; i < MAX_SPRITES, i++) { if (Enemies[i].dead = 0) GsSortFastSprite(&Enemies[i].sprite, WorldOT[activeBuff], 0); } so that when the enemy is shot, dead is set to 1 and it is not drawn. Does this seem the most sensible idea? Cheers, Ed :)