Game Development Reference
In-Depth Information
This code goes through ten indexes of the array and sets the value to
5
for each of those
indexes.
Once again, it is easy to make a
for
loop get stuck and freeze your game. Always be
careful when using loops and make sure they have an exit before running your game.