home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 108
/
jogo-disk-108.iso
/
Games
/
simple_tower_defense.swf
/
scripts
/
frame_3
/
DoAction.as
Wrap
Text File
|
2010-05-15
|
2KB
|
99 lines
stop();
var C = 2500;
var tp = 0;
var ton = 0;
var tt = 0;
var er = 50;
var ec = 1;
var ti = 0;
var bn = 1000;
var wait = 0;
var s = 5;
var ex = 20;
var nw = 25;
var cash = 50;
var ec = 10;
var ts = 0;
var lc = 0;
var lives = 30;
var score = 0;
var go = false;
var type = 1;
var lev = 0;
var tss = false;
var cl = 0;
var cd = 0;
var cuc = 0;
var cud = 0;
var nexttype = "Ground";
var deadenemies = 10;
_root.music1.start(0,999);
onEnterFrame = function()
{
if(lev % 5 == 4 && lev != 34 && lev != 49)
{
nexttype = "Flying";
}
else if(lev % 7 == 6 || lev == 49)
{
nexttype = "Boss";
}
else
{
nexttype = "Ground";
}
if(lev % 7 == 0 || lev == 50)
{
type = 3;
}
else if(lev % 5 == 0)
{
type = 2;
}
else
{
type = 1;
}
if(_root.ec <= 9)
{
ti++;
}
if(ti == 20 && ec <= 9)
{
if(type == 1)
{
duplicateMovieClip("e","en" + er,16384 + er);
}
else if(type == 2)
{
duplicateMovieClip("pl","en" + er,16384 + er);
}
else if(type == 3)
{
duplicateMovieClip("boss","en" + er,16384 + er);
}
_root.ti = 0;
er++;
if(er == 61)
{
er == 0;
}
ec++;
}
if(tss == true)
{
cl = _root["t" + _root.ts].levels;
cd = _root["t" + _root.ts].dmg;
cuc = _root["t" + _root.ts].uc;
csv = _root["t" + _root.ts].uc * 0.75;
cud = int(_root["t" + _root.ts].dmg * 1.8);
}
else if(tss == false)
{
cl = 0;
cd = 0;
cuc = 0;
cud = 0;
}
};