djog / tank_battalion

Tank Battalion recreation by DJOG Uno's 2020 in processing.
GNU General Public License v3.0
3 stars 0 forks source link

Add random spawn possitions, improved #27 #38

Closed rijkvp closed 3 years ago

rijkvp commented 3 years ago

I improved the code for #27. Previously the enemies preferred spawning in the top left. Now it will just be random.

richelbilderbeek commented 3 years ago

I enjoy the algorithm and error message if there is no place!

I have noticed, however, that in the real game, the tanks spawn in the top-left or top-right corner. Therefore, this algorithm is overpowered. I will accept for now, yet I hope the algorithm will be simplified later, possibly by a junior :+1:.

richelbilderbeek commented 3 years ago

:shipit: