Im programming a some sort of a game where explosions occur when two game characters collide.
I have tried to deal with this problem by making a seperate thread for every explosion, but the problem is, that the threads cant draw into the main window unless the main window calls them. Which would require an array of those explosion threads and it would not be a good way considering the memory.
So. How are the explosions/moving particles/occassionally happening things handled in real games?
I tried already search from this newbie section, but there wasnt any in first 10 pages… So any links to forums/tutorials etc.?
edit: or if anyone knows something about how for example enemies are added in game if the amount is not known while programming, it might be close enough so I could find the answer.
