leerob / space-invaders

👾Python clone with a modern twist
https://leerob.io/blog/space-invaders-with-python
MIT License
247 stars 224 forks source link

Some refactor #13

Closed Cthulhu2 closed 5 years ago

Cthulhu2 commented 6 years ago

May I suggest some refactor and couple of fixes?

Fix 'empty range for randrange' exception on last enemy shoot (8e08dd5 ) -- there is sometimes possible to kill the last enemy between _checkcollision and _make_enemysoot.

Cthulhu2 commented 5 years ago

I agree.