New answers tagged


Similar to @Goblin's answer here, I am using a random endless wave generator for my game, which is an HTML5 side-scrolling space shooter. The code below is plain Javascript. I am not posting the entire code here. Some functions are left out for your implementation. I just wanted to depict the logic. var shipTypes = ['warbird','crosswing','raider','drone','...

Top 50 recent answers are included