Missile Command / Multithreading issues!
Hey everyone. I started coding my first game in java recently, which is an applet implementation of missile command. (before this, I'd only coded a few VERY simple games in VB and VC++)
Anyways, It started out great, but I started getting problems like flickering, and even all out crashes(in appletviewer) as soon as I added the capability of firing a "missile" during a key press event.
The way I've designed it, every object on the screen is being drawn by it's own class. These classes are derivation from classes called "missile" and "alien", both of which "extends Thread".
So everything on the screen has it's own thread updating it's position and drawing it to the buffer, which means when there's alot of aliens and alot of missiles recently fired, you have a hell of alot of threads!
Was this, perhaps a bad design idea? :)
If so, does anyone know a better approach to take?
anyways, here's where I'm at so far:
http://www.geocities.com/hamburglarshero/missile/missile.html

