To multithread or not to multithread - JavaScript

karim_wii

New Member
I am currently experimenting with a JavaScript shooting game similar to space invaders. The way it is coded now, either the projectile with move or the ship. Anyone that has played the original will know that this isn't good. I remember going over multithreading in my Java class and was wondering if this was the right way to go or is there another way to do it? For instance:\[code\]Thread Move start;Thread Move run;Thread Shoot start;Thread Move run;Thread Shoot run;Thread Shoot end;Thread Move run;Thread Move end;\[/code\]
 
Back
Top