Game Development Reference
In-Depth Information
Once you have added this action, you can add any action you want for your game.
Now, you know a little bit about arrays. When you are starting out, it is recommended that
you use variables because they are easier to work with. Once your programs become more
complex, start adding arrays. It is generally recommended that you start working with
one-dimensional arrays, and once you are comfortable using them, move on to two-di-
mensional arrays. You will be using three-dimensional arrays in rare cases.
Here are some visual examples of arrays that you can use in your games. You can use
them to define properties for many game objects:
Game object Hit Points Shields Damage Speed
Ship A
100
100
50
5
Ship B
200
50
40
3
Ship C
50
50
30
10
Search WWH ::




Custom Search