I am trying to create a Space Invaders sort of game. I am using a linked list for the bullets that the player shoots and in the same list, there is also the enemies. I have a addNewEnemy Function which I run once in the main game loop. This adds lots and lots of enemies (as I expected).
How am I able to stabalise the amount of enemies being added?
Yes I have tried using Sleep(), it just made the game do everything the same but with a 2 second pause in between (I used Sleep(2000)). I have also tried using a for loop to create a delay but I just can't seem to get it to work.
Any ideas?
Thanks.
EDIT - I am using VS 2003 with DirectX