Frame 1
den = getBytesTotal();
high_score = 0;
Frame 2
num = getBytesLoaded();
rat = num / den;
frame = Math.round(1000 * rat);
per = Math.round(100 * rat);
bar.gotoAndStop(frame);
Frame 3
if (rat == 1) {
play();
} else {
gotoAndPlay ("loading");
}
Frame 12
stop();
beep = new Sound();
beep.attachSound("beep");
wawa = new Sound();
wawa.attachSound("Loser3");
loop01 = new Sound();
loop01.attachSound("loop01");
loop02 = new Sound();
loop02.attachSound("loop02");
loop03 = new Sound();
loop03.attachSound("loop03");
loop04 = new Sound();
loop04.attachSound("loop04");
loop05 = new Sound();
loop05.attachSound("loop05");
loop06 = new Sound();
loop06.attachSound("loop06");
loop07 = new Sound();
loop07.attachSound("loop07");
loop01.start(0, 9999);
Frame 20
stop();
loop01.stop();
loop02.start(0, 9999);
Frame 30
stop();
Frame 35
stop();
bg.pavement.gotoAndPlay(1);
bg.PT1.gotoAndPlay(1);
bg.PT2.gotoAndPlay(1);
christina._rotation = 0;
christina.torso._rotation = 0;
christina.torso.head._rotation = 0;
christina.torso.arm_left = 0;
christina.torso.arm_left.forearm = 0;
christina.torso.arm_right = 0;
christina.torso.arm_right.forearm = 0;
christina.legs.play();
christina.gotoAndStop("dummy");
Frame 40
function update_angles() {
x = (_root._xmouse - 153) - 126.5;
_root.ddtheta = (((_root.K / _root.I) * x) + (_root.W * Math.sin(_root.theta))) + NOISE;
_root.dtheta = (_root.ddtheta * _root.dt) + _root.dtheta;
if (Math.abs(_root.dtheta) > _root.dtheta_max) {
_root.dtheta = (_root.dtheta_max * Math.abs(_root.dtheta)) / _root.dtheta;
}
_root.theta = (_root.dtheta * _root.dt) + _root.theta;
_root.christina._rotation = (_root.theta * 180) / Math.PI;
_root.christina.torso._rotation = -1.2 * _root.christina._rotation;
_root.christina.torso.arm_left._rotation = (0.2 * _root.christina._rotation) + (10 * Math.sin(1000 + (getTimer() / 501)));
_root.christina.torso.arm_right._rotation = ((0.2 * _root.christina._rotation) + 180) + (10 * Math.sin(getTimer() / 499));
_root.christina.torso.arm_right.forearm._rotation = -0.4 * (10 * Math.sin(getTimer() / 499));
_root.christina.torso.arm_left.forearm._rotation = 0.4 * _root.christina.torso.arm_left._rotation;
_root.christina.torso.head._rotation = 0.5 * _root.christina.torso._rotation;
_root.christina.torso.chain._rotation = -0.25 * _root.christina.torso._rotation;
if (Math.abs(_root.theta) >= _root.theta_max) {
_root.theta = (_root.theta_max * Math.abs(_root.theta)) / _root.theta;
_root.fallspeed = Math.abs(_root.dtheta);
_root.dtheta = 0;
_root.ddtheta = 0;
_root.kill_it();
}
}
function kill_it() {
clearInterval(IID);
clearInterval(KSID);
christina.legs.stop();
christina.torso.head.stop();
gotoAndStop ("fall");
}
function monitor() {
trace([_root._currentframe, " ", _root.christina.torso._currentframe, " ", getTimer()]);
}
function keep_score(t0, Kt) {
_root.score = Math.round(Kt * (getTimer() - t0));
if (_root.score > _root.high_score) {
_root.high_score = _root.score;
}
advance_level();
}
function advance_level() {
flag = 0;
if ((_root.score / _root.fpl) >= _root.level) {
flag = 1;
_root.level = _root.level + 1;
_root.level_str = "Level " + _root.level;
_root.level_text.play();
_root.K = _root.K + 0.15;
_root.W = _root.W + 0.25;
_root.dtheta_max = _root.dtheta_max + 0.05;
}
if (flag == 1) {
if (_root.level == 3) {
stopAllSounds();
_root.loop07.start(0, 9999);
_root.NOISE = 0;
_root.bg.bum.play();
_root.christina.torso.arm_left.forearm.gotoAndStop("empty");
_root.christina.torso.arm_right.forearm.gotoAndStop("empty");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("gameplay");
} else if (_root.level == 4) {
_root.NOISE = -1;
_root.christina.torso.arm_left.forearm.gotoAndStop("beer");
_root.christina.torso.arm_right.forearm.gotoAndStop("empty");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("gameplay");
} else if (_root.level == 5) {
_root.NOISE = 0;
_root.christina.torso.arm_left.forearm.gotoAndStop("beer");
_root.christina.torso.arm_right.forearm.gotoAndStop("bacardi");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("gameplay");
} else if (_root.level == 6) {
_root.NOISE = 1;
_root.christina.torso.arm_left.forearm.gotoAndStop("beer");
_root.christina.torso.arm_right.forearm.gotoAndStop("bacardi and jack");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("gameplay");
} else if (_root.level == 7) {
_root.NOISE = 0;
_root.christina.torso.arm_left.forearm.gotoAndStop("beer");
_root.christina.torso.arm_right.forearm.gotoAndStop("bacardi and jack");
_root.christina.torso.arm_left.gotoAndStop("shots");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("gameplay");
} else if (_root.level == 8) {
_root.NOISE = 1;
_root.christina.torso.arm_left.forearm.gotoAndStop("beer");
_root.christina.torso.arm_right.forearm.gotoAndStop("bacardi and jack");
_root.christina.torso.arm_left.gotoAndStop("shots");
_root.christina.torso.arm_right.gotoAndStop("shots");
_root.christina.torso.gotoAndStop("gameplay");
} else if (_root.level == 9) {
stopAllSounds();
_root.loop05.start(0, 9999);
_root.NOISE = 0;
_root.christina.torso.arm_left.forearm.gotoAndStop("empty");
_root.christina.torso.arm_right.forearm.gotoAndStop("empty");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("gameplay");
} else if (_root.level == 10) {
_root.NOISE = 0;
_root.christina.torso.arm_left.forearm.gotoAndStop("empty");
_root.christina.torso.arm_right.forearm.gotoAndStop("empty");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("chain");
} else if (_root.level == 11) {
_root.NOISE = 1;
_root.christina.torso.arm_left.forearm.gotoAndStop("empty");
_root.christina.torso.arm_right.forearm.gotoAndStop("bling");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("chain");
} else if (_root.level == 12) {
_root.NOISE = -0.5;
_root.christina.torso.arm_left.forearm.gotoAndStop("purse");
_root.christina.torso.arm_right.forearm.gotoAndStop("bling");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("chain");
} else if (_root.level == 13) {
_root.NOISE = -1.5;
_root.christina.torso.arm_left.forearm.gotoAndStop("bling and purse");
_root.christina.torso.arm_right.forearm.gotoAndStop("bling");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("chain");
} else if (_root.level == 14) {
_root.NOISE = 0;
_root.christina.torso.arm_left.forearm.gotoAndStop("bling and purse");
_root.christina.torso.arm_right.forearm.gotoAndStop("bling and purse");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("chain");
} else if (_root.level == 15) {
stopAllSounds();
_root.loop06.start(0, 9999);
_root.NOISE = 0;
_root.christina.torso.arm_left.forearm.gotoAndStop("empty");
_root.christina.torso.arm_right.forearm.gotoAndStop("empty");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("gameplay");
} else if (_root.level == 16) {
_root.NOISE = 0;
_root.christina.torso.arm_left.forearm.gotoAndStop("empty");
_root.christina.torso.arm_right.forearm.gotoAndStop("empty");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndPlay("boy01");
} else if (_root.level == 17) {
_root.NOISE = 0;
_root.christina.torso.arm_left.forearm.gotoAndStop("empty");
_root.christina.torso.arm_right.forearm.gotoAndStop("empty");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("boy02");
} else {
_root.NOISE = 0;
_root.christina.torso.arm_left.forearm.gotoAndStop("empty");
_root.christina.torso.arm_right.forearm.gotoAndStop("empty");
_root.christina.torso.arm_left.gotoAndStop("empty");
_root.christina.torso.arm_right.gotoAndStop("empty");
_root.christina.torso.gotoAndStop("gameplay");
}
}
}
stop();
loop02.stop();
loop03.start(0, 9999);
I = 100;
K = 1;
W = 0;
NOISE = 0;
theta = christina._rotation;
theta_max = 1.0471975511966;
dtheta = 0;
dtheta_max = 0.15;
ddtheta = 0;
dt = 0.1;
Kt = 0.0015;
level = 1;
var level_str = ("Level " + level);
fpl = 25;
IID = setInterval(update_angles, 50);
t0 = getTimer();
KSID = setInterval(keep_score, 10, t0, Kt);
Frame 50
function fall() {
_root.count = _root.count + 1;
flag01 = 0;
if (Math.abs(_root.christina._rotation) < _root.crit_christina) {
_root.christina._rotation = _root.christina._rotation + (_root.dir * _root.mag_christina);
} else {
flag01 = 1;
}
flag02 = 0;
if (Math.abs(_root.christina.torso._rotation) > _root.crit_torso) {
_root.christina.torso._rotation = _root.christina.torso._rotation + (_root.dir * _root.mag_torso);
} else {
flag02 = 1;
}
flag03 = 0;
if (Math.round(Math.abs(_root.christina.torso.arm_right._rotation)) > _root.crit_RA) {
_root.christina.torso.arm_right._rotation = Math.abs(_root.christina.torso.arm_right._rotation) - _root.mag_RA;
} else {
flag03 = 1;
}
flag04 = 0;
if (Math.round(Math.abs(_root.christina.torso.arm_left._rotation)) < _root.crit_LA) {
_root.christina.torso.arm_left._rotation = Math.abs(_root.christina.torso.arm_left._rotation) + _root.mag_LA;
} else {
flag04 = 1;
}
if (((((flag01 == 1) & (flag02 == 1)) & (flag03 == 1)) & (flag04 == 1)) || (_root.count > _root.count_max)) {
clearInterval(FID);
gotoAndPlay ("play again");
}
}
stop();
stopAllSounds();
wawa.start();
bg.pavement.stop();
bg.PT1.stop();
bg.PT2.stop();
dir = Math.abs(christina._rotation) / christina._rotation;
crit_christina = 90;
crit_torso = 5;
crit_RA = 90;
crit_LA = 90;
mag_christina = 2 * fallspeed;
mag_torso = 4 * fallspeed;
mag_RA = 6 * fallspeed;
mag_LA = 3 * fallspeed;
fallfreq = 5;
count = 0;
count_max = 10000;
FID = setInterval(fall, fallfreq);
Frame 70
stop();
Symbol 27 Button
on (release) {
beep.start();
play();
}
Symbol 34 Button
on (release) {
beep.start();
play();
}
Symbol 60 MovieClip Frame 1
this.play();
Symbol 61 MovieClip Frame 1
this.stop();
Symbol 62 MovieClip Frame 1
this.pavement.stop();
this.PT1.stop();
this.PT2.stop();
Symbol 94 MovieClip Frame 1
this.stop();
Symbol 97 MovieClip Frame 1
this.stop();
Symbol 119 MovieClip Frame 1
this.stop();
Symbol 119 MovieClip Frame 10
this.stop();
Symbol 119 MovieClip Frame 55
this.stop();
_root.G = _root.G + 0.25;
Symbol 119 MovieClip Frame 56
this.stop();
_root.G = _root.G + 0.25;
Symbol 120 MovieClip Frame 1
this.stop();
Symbol 120 MovieClip Frame 15
this.stop();
Symbol 120 MovieClip Frame 31
this.gotoAndStop("gameplay");
Symbol 124 Button
on (release) {
beep.start();
play();
}
Symbol 127 Button
on (release) {
beep.start();
gotoAndStop ("menu 1");
}
Symbol 140 MovieClip Frame 60
_root.play();
Symbol 140 MovieClip Frame 100
this.stop();
Symbol 146 MovieClip Frame 1
this.stop();
Symbol 153 Button
on (release) {
beep.start();
gotoAndPlay ("start");
}
Symbol 155 Button
on (release) {
beep.start();
gotoAndStop ("menu 1");
}