Data.as Arrays
Here is an easy to understand array file that to me is easier than XML. This of course requires recompiling of the swf but for data that doesnt change this is nice.
//database
//leaves, timerCycles, dogsArray
var gameLeaves:Array = [];
var gameTicks:Array = [];
var gameLeafFallSpeeds:Array = [];
//level 0
gameLeaves[0] = 50;
gameTicks[0] = 600;
gameLeafFallSpeeds[0] = 15;
//level 1
gameLeaves[1] = 100;
gameTicks[1] = 800;
gameLeafFallSpeeds[1] = 15;
//level 2
gameLeaves[2] = 200;
gameTicks[2] = 1100;
gameLeafFallSpeeds[2] = 10;
//level 3
gameLeaves[3] = 300;
gameTicks[3] = 1200;
gameLeafFallSpeeds[3] = 10;
//level 4
gameLeaves[4] = 400;
gameTicks[4] = 1700;
gameLeafFallSpeeds[4] = 5;
//level 5
gameLeaves[5] = 600;
gameTicks[5] = 2100;
gameLeafFallSpeeds[5] = 5;
//level 6
gameLeaves[6] = 800;
gameTicks[6] = 2500;
gameLeafFallSpeeds[6] = 5;
No comments:
Post a Comment