Imagine you've written a game that involves one defender, one attacking alien, and one defensive missile. By using arrays, pretty much the same code can be used to create any number of aliens and missiles, and your game is now a lot more playable with very little programming effort.
|