Data Structures

Data Structure Guide

Data Structures in Programming

A data structure is a programming construct that contains data while your game is running.


A variable is the most basic kind of data structure. It can hold one piece of data of one data type.


An array is a data structure that is similar to a variable and has a number of elements, or "slots". While a variable is like a box that can hold one value, an array is like having multiple boxes to hold a piece of information in each slot. As a rule of thumb, an array must be of the same data type. You can not combine e.g. integers and strings in a single array.


Dim is short for dimension and is used to declare arrays and types.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.