Organizing aliens in a shmup

BlitzMax Forums/BlitzMax Beginners Area/Organizing aliens in a shmup

For this type of stuff lists really are easier than arrays. You can have a list of aliens that is global within your type. Your alien creation and deletion functions then just add and remove aliens from this list.

I usually have an Update_All() function in each type that loops through the list and updates all my aliens. This keeps your program's main loop easier.

Try it. Believe me its simpler and cleaner than all this array stuff.