Frame 1
stop();
delete _root.mscSound;
Frame 2
_root.play();
Frame 24
function snake(obj, obj2) {
if (remClip == null) {
_root.c_transform(_root._gui_bg, _root.gui.m2, _root.obj, _root.gui.bg);
if (_root.gui.m2 == 1) {
if (bgmt >= 60) {
delete _root.gui.m2;
delete bgmt;
} else {
trace(bgmt);
bgmt++;
}
}
}
if (gstart == null) {
if (gstart == 1) {
} else if (((Key.isDown(Key.UP) || (Key.isDown(Key.LEFT))) || (Key.isDown(Key.DOWN))) || (Key.isDown(Key.RIGHT))) {
gstart = 1;
}
}
if (s_lengthx == null) {
s_length = 8;
s_lengthx = 1;
}
death_gravity(_root.flag == 1);
death_gravity((((obj._x >= 380) || (obj._x < 0)) || (obj._y >= 224)) || (obj._y < 0));
s_score = samp_score;
if (samp_score < score) {
samp_score++;
}
if (bgm_play == null) {
bgm_play = 1;
}
bgm(bgm_play, _root);
if (_root.gui.hitTest(obj._x, obj._y, true)) {
if (gui_swtch == null) {
_root.gui._x = 281.4;
_root.gui._y = 166;
gui_swtch = 1;
} else {
_root.gui._x = 44;
_root.gui._y = 166;
delete gui_swtch;
}
}
if (drawgui == null) {
gui_Obj = new Object();
gui_Obj.Gui.Mon.x = 262;
gui_Obj.Gui.Mon.y = 182;
gui_Obj.Gui.Mon.x2 = 121;
gui_Obj.Gui.Mon.y2 = 179;
}
if (_root.gui.m == 1) {
shakeme(_root.gui.mon, _root.gui.m);
}
pos_x_y = 7.7;
pos_size = 15;
spd = pos_size;
if (strt == 1) {
} else {
obj._visible = false;
s_length = 2;
if (remClip == 1) {
_root.findme._alpha = 0;
} else {
duplicateMovieClip (obj, "findme", 900 + item);
}
_root.findme.gotoAndStop(2);
_root.findme._x = pos_x_y + (spd * Math.ceil((Math.random() * 10) + 1));
_root.findme._y = pos_x_y + (spd * Math.ceil((Math.random() * 10) + 1));
strt = 1;
item = 1;
}
obj.swapDepth(_parent[(obj + " ") + item]);
if (t_limit == null) {
t_limit = 5;
s_dspd = t_limit;
s_lvl = new Array();
s_lvl[1] = 1;
s_lvl[2] = 20;
s_lvl[3] = 30;
s_lvl[4] = 40;
}
if (s_dspd < t_limit) {
t_limit--;
}
if (Key.isDown(Key.SPACE)) {
var clear;
while (clear < s_length) {
removeMovieClip(_parent["snake_t" + clear]);
delete snake;
delete item;
delete s_length;
delete timer;
delete t_limit;
delete spd;
clear++;
}
}
if (Key.isDown(Key.ENTER)) {
_root.snakeTimer = 0;
}
if ((s_length >= 2) && (gstart == 1)) {
limit = s_length;
var ht = 1;
while (ht < (limit + 1)) {
if (ht == item) {
ht++;
}
trace(ht);
if ((obj._x == _root["snake_t" + ht]._x) && (obj._y == _root["snake_t" + ht]._y)) {
_root.flag = 1;
}
ht++;
}
}
if (_root.findme.hitTest(obj._x, obj._y, true)) {
c_counter++;
score = c_counter * 20;
_root.gui.m = 1;
_root.gui.m2 = 1;
_root.findme.gotoAndStop(2);
_root.findme._x = pos_x_y + (spd * Math.ceil((Math.random() * 10) + 1));
_root.findme._y = pos_x_y + (spd * Math.ceil((Math.random() * 10) + 1));
_root.snakeTimer = _root.snakeTimer + 50;
trace(Math.ceil((Math.random() * 10) + 0));
s_length = s_length + 1;
bgscore++;
s_collect++;
if ((((s_collect == s_lvl[1]) || (s_collect == s_lvl[2])) || (s_collect == s_lvl[3])) || (s_collect == s_lvl[4])) {
s_dspd = s_dspd + -1;
}
}
if (item >= s_length) {
item = 1;
}
if (Key.isDown(Key.LEFT)) {
Left = 1;
delete Right;
delete Up;
delete Down;
}
if (Key.isDown(Key.RIGHT)) {
Right = 1;
delete Up;
delete Down;
delete Left;
}
if (Key.isDown(Key.UP)) {
Up = 1;
delete Down;
delete Left;
delete Right;
}
if (Key.isDown(Key.DOWN)) {
delete Left;
delete Right;
delete Up;
Down = 1;
}
if ((timer >= t_limit) && (gstart == 1)) {
if (remClip == 1) {
} else {
duplicateMovieClip (obj, "snake_t" + item, 9 + item);
}
delete timer;
} else {
timer++;
}
if (remClip == null) {
if ((Left == 1) && (timer >= t_limit)) {
obj._x = obj._x - spd;
item++;
}
if ((Right == 1) && (timer >= t_limit)) {
obj._x = obj._x + spd;
item++;
}
if ((Up == 1) && (timer >= t_limit)) {
obj._y = obj._y - spd;
item++;
}
if ((Down == 1) && (timer >= t_limit)) {
obj._y = obj._y + spd;
item++;
}
}
}
function c_transform(obj, arg, obj2, obj3) {
sf_trans.setTransform(current);
if (start == null) {
colorArray = new Array();
iconArray = new Array();
colorArray1 = new Array();
colorArray2 = new Array();
sl = -4;
sl2 = 0;
sf_trans = new Color(obj);
sf_trans2 = new Color(obj2);
sf_trans3 = new Color(obj3);
trace(obj3);
start = 1;
}
if (default == null) {
current = new Object();
current.aa = colorArray[1];
current.ba = colorArray[2];
current.ra = colorArray[3];
current.ga = colorArray[4];
current.ab = colorArray[5];
current.bb = colorArray[6];
current.gb = colorArray[7];
current.rb = colorArray[8];
default = 1;
if (defsheet == null) {
colorArray[1] = 100;
colorArray[2] = 100;
colorArray[3] = 100;
colorArray[4] = 100;
colorArray[5] = 0;
colorArray[6] = 0;
colorArray[7] = 0;
colorArray[8] = 0;
current.ra = colorArray[1];
current.ga = colorArray[2];
current.ba = colorArray[3];
current.aa = colorArray[4];
current.rb = colorArray[5];
current.gb = colorArray[6];
current.bb = colorArray[7];
current.ab = colorArray[8];
defsheet = 1;
}
}
if (arg) {
if (sheet >= 6) {
sheet = 1;
}
if (bgio == null) {
sheet++;
cycle = 1;
bgio = 1;
}
} else {
delete bgio;
}
if (array1d == null) {
colorArray1[1] = 100;
colorArray1[2] = 100;
colorArray1[3] = 100;
colorArray1[4] = 100;
colorArray1[5] = 0;
colorArray1[6] = 0;
colorArray1[7] = 0;
colorArray1[8] = 0;
array1d = 1;
}
if (sheet == 5) {
colorArray[1] = 100;
colorArray[2] = 100;
colorArray[3] = 100;
colorArray[4] = 100;
colorArray[5] = 0;
colorArray[6] = 0;
colorArray[7] = 0;
colorArray[8] = 0;
}
if (sheet == 4) {
colorArray[1] = -30;
colorArray[2] = 100;
colorArray[3] = -100;
colorArray[4] = 100;
colorArray[5] = 185;
colorArray[6] = -45;
colorArray[7] = -255;
colorArray[8] = 0;
}
if (sheet == 3) {
colorArray[1] = -100;
colorArray[2] = -32;
colorArray[3] = -100;
colorArray[4] = 100;
colorArray[5] = 255;
colorArray[6] = -255;
colorArray[7] = 255;
colorArray[8] = 0;
}
if (sheet == 2) {
colorArray[1] = 100;
colorArray[2] = -32;
colorArray[3] = 100;
colorArray[4] = 100;
colorArray[5] = -100;
colorArray[6] = -255;
colorArray[7] = 255;
colorArray[8] = 0;
}
if (sheet == 1) {
colorArray[1] = 100;
colorArray[2] = -35;
colorArray[3] = 35;
colorArray[4] = 100;
colorArray[5] = -75;
colorArray[6] = 60;
colorArray[7] = -105;
colorArray[8] = 0;
iconArray[1] = -100;
iconArray[2] = -100;
iconArray[3] = -100;
iconArray[4] = 100;
iconArray[5] = 255;
iconArray[6] = 148;
iconArray[7] = 255;
iconArray[8] = 0;
}
if (cycle == 1) {
current.ra = colorArray1[1];
current.ga = colorArray1[2];
current.ba = colorArray1[3];
current.aa = colorArray1[4];
current.rb = colorArray1[5];
current.gb = colorArray1[6];
current.bb = colorArray1[7];
current.ab = colorArray1[8];
sf_trans.setTransform(current);
sf_trans2.setTransform(current);
sf_trans3.setTransform(current);
var arrayDraw3 = 1;
while (arrayDraw3 < 9) {
chngespd = 5;
if (colorArray1[arrayDraw3] < colorArray[arrayDraw3]) {
colorArray1[arrayDraw3] = colorArray1[arrayDraw3] + chngespd;
} else if (colorArray[arrayDraw3] < colorArray1[arrayDraw3]) {
colorArray1[arrayDraw3] = colorArray1[arrayDraw3] - chngespd;
}
arrayDraw3++;
}
}
}
function death_gravity(arg) {
if (arg) {
if (end_screen == null) {
remClip = 1;
Adrop = new Array();
var Acreate;
while (Acreate < s_length) {
Adrop[Acreate] = Math.ceil((Math.random() * 25) + 1);
Acreate++;
}
end_screen = 1;
}
if (end_screen == 1) {
stopAllSounds();
if (dropme == null) {
dropme = 1;
drpstrt = 1;
}
if (drpstrt == 1) {
if (drps == 50) {
if (contscreen == 50) {
_root.scorekeep._visible = true;
} else {
contscreen++;
}
}
if ((drps == 50) || (end_s == 1)) {
end_s = 1;
_root.remClip = 1;
if (s_length < 200) {
var gravset2 = 0;
while (gravset2 < s_length) {
if (_root["snake_t" + gravset2]._y >= 380) {
_root["snake_t" + gravset2]._y = -800;
}
_root["snake_t" + gravset2]._y = _root["snake_t" + gravset2]._y + Adrop[gravset2];
gravset2++;
}
} else {
var gravset2 = 0;
while (gravset2 < 200) {
if (_root["snake_t" + gravset2]._y >= 380) {
_root["snake_t" + gravset2]._y = -800;
}
_root["snake_t" + gravset2]._y = _root["snake_t" + gravset2]._y + Adrop[gravset2];
gravset2++;
}
}
}
if (drps == 40) {
black = new Color(_root._gui_bg);
var c;
while (c < s_length) {
trace("hello");
white = new Color(_root["snake_t" + c]);
white.setRGB(16777215);
c++;
}
black.setRGB(0);
_root.gui._visible = false;
_root.scorekeep._visible = false;
_root.scorekeep._x = 180;
_root.scorekeep._y = 120;
_root.findme._visible = false;
trace("flow up");
var gravset;
while (gravset < s_length) {
_root["snake_t" + gravset]._y = -400;
drp1 = 0;
drp2 = 0;
drps3 = 0;
drps4 = 0;
drps5 = 0;
drps6 = 0;
drps7 = 0;
gravset++;
}
} else {
if (sceneTimer >= 300) {
var clear;
while (clear < s_length) {
delete drps;
delete drps2;
delete drps3;
delete drps4;
delete drps5;
delete drps6;
_root["snake_t" + clear]._y = -999999;
_root["snake_t" + clear]._y = -999999;
_root.scorekeep._y = -99999;
removeMovieClip(_root["snake_t" + clear]);
removeMovieClip(_root["snake_t" + clear]);
delete sceneTimer;
clear++;
}
gotoAndPlay (25);
trace("ok");
delete end_screen;
delete remClip;
delete Adrop;
delete dropme;
delete drpstrt;
delete drps;
delete contscreen;
delete end_s;
delete s_length;
delete gravset2;
delete white;
delete black;
delete gravset;
delete sceneTimer;
delete start;
delete run;
delete bgmt;
delete c_transform;
delete colorArray;
delete colorArray1;
delete colorArray2;
delete current;
delete currentSong;
delete death_gravity;
delete array1d;
delete bgm;
delete bgm_play;
delete c_counter;
delete cDown;
delete colorArray;
delete colorArray1;
delete colorArray2;
delete cont;
delete current;
delete currentSong;
delete death_gravity;
delete default;
delete drp1;
delete drp2;
delete drps;
delete drps2;
delete drps3;
delete drps4;
delete drps5;
delete drps6;
delete drps7;
delete efx;
delete gstart;
delete gui_Obj;
delete conArray;
delete io_b;
delete item;
delete Left;
delete limit;
delete pos_size;
delete pos_x_y;
delete pstart;
delete s_dspd;
delete s_lengthx;
delete s_lvl;
delete s_score;
delete sf_trans;
delete sf_trans2;
delete sf_trans3;
delete shakeme;
delete sl;
delete sl2;
delete snake;
delete song;
delete soundBank;
delete spd;
delete strt;
delete t_limit;
delete timer;
delete snake;
delete item;
delete s_length;
delete timer;
delete t_limit;
delete spd;
delete score;
delete c_counter;
delete snakeTimer;
delete s_length;
delete bgscore;
delete s_collect;
delete s_dspd;
delete item;
} else {
sceneTimer++;
}
if ((drps >= 5) && (drps < 50)) {
var grav7;
while (grav7 < s_length) {
_root["snake_t" + grav7]._y = _root["snake_t" + grav7]._y + Adrop[grav7];
grav7++;
}
}
}
if (drps6 < 50) {
drps6++;
}
if (drps5 < 50) {
drps5++;
}
if (drps4 < 50) {
drps4++;
}
if (drps3 < 50) {
drps3++;
}
if (drp2 < 50) {
drps2++;
}
if (drps < 50) {
drps++;
}
if (drps < 50) {
var grav6;
while (grav6 < ((s_length / 5) * 6)) {
_root["snake_t" + grav6]._y = _root["snake_t" + grav6]._y + drps6;
grav6++;
}
var grav5;
while (grav5 < ((s_length / 5) * 5)) {
_root["snake_t" + grav5]._y = _root["snake_t" + grav5]._y + drps5;
grav5++;
}
var grav4;
while (grav4 < ((s_length / 5) * 4)) {
_root["snake_t" + grav4]._y = _root["snake_t" + grav4]._y + drps4;
grav4++;
}
var grav3;
while (grav3 < ((s_length / 5) * 3)) {
_root["snake_t" + grav3]._y = _root["snake_t" + grav3]._y + drps3;
grav3++;
}
var grav2;
while (grav2 < ((s_length / 5) * 2)) {
_root["snake_t" + grav2]._y = _root["snake_t" + grav2]._y + drps2;
grav2++;
}
var grav1;
while (grav1 < (s_length / 5)) {
_root["snake_t" + grav1]._y = _root["snake_t" + grav1]._y + drps;
grav1++;
}
}
}
}
}
}
function shakeme(obj, vrb) {
if ((vrb == 1) && (vel >= 14)) {
delete vel;
delete _root.gui.m;
}
if (step == null) {
shake = new Array();
shake[0] = 5;
shake[1] = 5;
shake[2] = 5;
shake[3] = 10;
shake[4] = 10;
shake[5] = 50;
shake[6] = 50;
shake[7] = 50;
shake[8] = 50;
shake[9] = 10;
shake[10] = 10;
shake[11] = 5;
shake[12] = 5;
step = 1;
}
if (vel >= 14) {
} else {
vel++;
}
if (step >= 2) {
delete step;
} else {
step++;
}
if (step == null) {
obj._x = obj._x + shake[vel];
}
if (step == 2) {
obj._x = obj._x - shake[vel];
}
}
function bgm(arg, path) {
song = 2;
currentSong = song1;
soundBank = bgmBnk;
if (arg) {
if (io_b == null) {
_root.bgmBnk.bgm_A.gotoAndPlay(2);
io_b = 1;
}
}
}
function efx(arg, path) {
soundBank = sndBank;
if (arg) {
if (io == null) {
path.soundBank.gotoAndStop(2);
io = 1;
}
if (io == 1) {
if (timer >= 500) {
delete io;
delete timer;
path.soundBank.gotoAndStop(1);
} else {
timer++;
}
}
} else {
delete io;
path.soundBank.gotoAndStop(1);
}
}
run = 1;
stop();
Instance of Symbol 62 MovieClip "blank" in Frame 24
onClipEvent (enterFrame) {
_visible = false;
_root.snake(_parent.obj, _parent.obj);
_root.efx(_root.findme.hitTest(_root.obj._x, _root.obj._y, true), _root);
}
Instance of Symbol 67 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (_parent.s_length >= 5) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 70 MovieClip "sndBank" in Frame 24
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 74 MovieClip "bgmBnk" in Frame 24
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 87 MovieClip "gui" in Frame 24
onClipEvent (load) {
this.swapDepths(1000000000);
}
onClipEvent (enterFrame) {
if ((!_currentframe) == 1) {
this._visible = false;
}
if (this.hitTest(_root.findme)) {
this._alpha = 15;
} else if (this._alpha < 100) {
this._alpha = 100;
}
}
Instance of Symbol 88 MovieClip in Frame 24
onClipEvent (load) {
this.swapDepths(999999999);
}
onClipEvent (enterFrame) {
if (_root.run == 1) {
this._visible = false;
delete run;
}
}
Instance of Symbol 93 MovieClip "scorekeep" in Frame 24
onClipEvent (load) {
this.swapDepths(1000000001);
}
Frame 25
stopAllSounds();
Frame 27
cont = 1;
Instance of Symbol 131 MovieClip "avatar" in Frame 27
onClipEvent (enterFrame) {
_root.pstart = "INSERT COIN";
if (_root.currentFrame == 368) {
_root.cDown = "CONTINUE 1";
}
if (_root._currentFrame >= 408) {
}
if (_root._currentFrame >= 407) {
_root.cDown = "GAME OVER";
} else if ((_root.cont == 1) && (_root._currentFrame < 200)) {
_root.cDown = "CONTINUE 9";
} else if ((_root.cont == 1) && (_root._currentFrame >= 100)) {
_root.cDown = "CONTINUE 0";
} else if (((!_root.cont) == 0) && (_root._currentFrame < 407)) {
_root.cDown = "CONTINUE " + ((-_root.cont) + 10);
} else if ((_root.cont == null) && (_root._currentFrame < 368)) {
_root.cDown = "CONTINUE " + _root.cont;
} else if (_root.cont == 3) {
_root.cDown = "CONTINUE 8";
}
if (_root.cont == 0) {
if (effect >= 3) {
this._alpha = 0;
_root.soundBank.gotoAndStop(96);
red.setRGB(0);
_root._y = regy;
delete _root.cont;
delete regy;
}
if (effect == 2) {
this._alpha = 0;
_root._y = _root._y + 10;
}
if (effect == 1) {
this._alpha = 0;
red.setRGB(0);
_root._y = _root._y - 10;
}
if (effect == null) {
red = new Color(_root.backround);
red.setRGB(16711680);
regy = _root._y;
}
effect++;
}
if (_root.counter._currentframe >= _root.counter._totalframes) {
_root.counter.stop();
} else if (_count_ct >= 40) {
n_counter++;
trace(n_counter + " NUMBER ");
delete _count_ct;
_root.counter.play();
} else {
_count_ct++;
}
if (Key.isDown(Key.getCode())) {
_root.cont = 1;
delete _count_ct;
delete n_counter;
_root.counter.gotoAndPlay(1);
_root.gotoAndPlay("three");
}
if (P_spd >= this._totalframes) {
diff = P_spd - this._totalframes;
this.gotoAndPlay(diff);
P_spd = 0;
} else {
P_spd = P_spd + (1 * _root.cont);
trace(P_spd);
this.gotoAndPlay(P_spd);
}
}
Instance of Symbol 235 MovieClip "soundBank" in Frame 27
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root._currentFrame == 1) {
if (_root.mscSound == null) {
this.gotoAndPlay(1);
_root.mscSound = 1;
}
}
}
Frame 69
trace(_root.x.counter + "HELLO");
Frame 74
cont = 2;
Frame 112
cont = 3;
Frame 152
cont = 4;
Frame 192
cont = 5;
Frame 232
cont = 6;
Frame 272
cont = 7;
Frame 312
cont = 8;
Frame 354
cont = 9;
Frame 392
cont = 1;
Frame 430
stopAllSounds();
Frame 431
cont = 0;
Instance of Symbol 276 MovieClip in Frame 431
onClipEvent (load) {
this.gotoAndStop(_parent.avatar._currentframe);
}
Symbol 48 MovieClip Frame 778
_parent.nextFrame();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 3
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 309
stop();
Symbol 74 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip "c_counter2" in Symbol 93 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.c_counter >= 100) {
_x = 105;
} else if (_root.c_counter >= 10) {
_x = 70;
} else {
_x = 35;
}
}
Instance of Symbol 90 MovieClip "c_counter2" in Symbol 93 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.c_counter >= 100) {
_x = 105;
} else if (_root.c_counter >= 10) {
_x = 70;
} else {
_x = 35;
}
}
Symbol 232 MovieClip Frame 7
stop();
Symbol 232 MovieClip Frame 16
stop();
Symbol 232 MovieClip Frame 25
stop();
Symbol 232 MovieClip Frame 34
stop();
Symbol 232 MovieClip Frame 42
stop();
Symbol 232 MovieClip Frame 53
stop();
Symbol 232 MovieClip Frame 61
stop();
Symbol 232 MovieClip Frame 76
stop();
Symbol 232 MovieClip Frame 88
stop();
Symbol 232 MovieClip Frame 102
stop();
Symbol 232 MovieClip Frame 103
stop();
Symbol 235 MovieClip Frame 91
stop();
Symbol 235 MovieClip Frame 96
stopAllSounds();
stopAllSounds();
Symbol 235 MovieClip Frame 165
stop();