0
\$\begingroup\$

I asked on SO but received nothing. Would I be more appropriate to ask this question here?

https://stackoverflow.com/questions/50615850/improve-movement-of-space-aliens

\$\endgroup\$
2
  • 1
    \$\begingroup\$ I think we already have a question that covers this situation. The basic idea is instead of having a named variable for each alien, instead you have a list or array of aliens, and you can check collisions against each item in the collection with a loop. If we can find the existing Q&A we'll share a link for you. \$\endgroup\$
    – DMGregory Mod
    Jun 1, 2018 at 19:52
  • \$\begingroup\$ @DMGregory Great! I'm looking for something like the original space invaders algorithm, that will do. \$\endgroup\$ Jun 1, 2018 at 20:00

0

You must log in to answer this question.

Browse other questions tagged .