O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Repetition: Looping Statements, Data Sequences, and Arrays

The most common task for a programmer is to automate some process that previously required a great deal of human effort to complete. To automate a process, programmers usually employ loops that run through large lists of transactions and perform tasks depending on the type of data in the list.

Data sequences and arrays are often used with looping statements. You can use a data sequence to add your own information directly into a program without loading that data from a file. For instance, in a shoot-em-up game, you can use a data statement to hold information about the game’s levels and then not need any data files. Whereas a complete game might use data files to store information ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required