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

Arrays

Wouldn’t you agree that data sequences are a fun and interesting way to add information to a game? I can certainly appreciate the number of uses for data statements and commands that DarkBASIC provides. This section is related to data sequences, although arrays are more focused on real-time data and more useful when reading data from disk files. In this section, I’ll show you what arrays can do and how you can use them to improve the capabilities of your programs.

What Is an Array?

An array is a sequential list of values with the same data type, such as integer, float, or string. Unlike data sequences, in which you can mix and match data, arrays must be filled with the same kind of data (although you can create an array based on your ...

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