Frame 2
ifFrameLoaded (7) {
gotoAndStop (7);
}
Frame 6
gotoAndPlay (1);
Frame 7
stop();
hasCounted = "0";
Frame 8
width = "800";
height = "600";
round = "0";
score = "0";
score1 = "0";
score2 = "0";
score3 = "0";
ball_x = getProperty("ball", _x);
ball_y = getProperty("ball", _y);
hitman_x = getProperty("hitman", _x);
hitman_y = getProperty("hitman", _y);
addtimeball = "10";
timeof1 = "60" * "1000";
timeof2 = "30" * "1000";
timeof3 = "20" * "1000";
Frame 9
round = round + "1";
if ("1" < round) {
tellTarget ("addtime") {
play();
};
}
Set("timer:maxGT", eval ("timeof" add round));
tellTarget ("timer") {
gotoAndPlay (2);
}
Frame 10
Set("ballarea:bottom", getProperty("ballarea", _y) + getProperty("ballarea", _height));
setProperty("hitman", _x , hitman_x);
setProperty("hitman", _y , hitman_y);
hadJump = "0";
hadDump = "0";
cur_score = "0";
gameover = "0";
tellTarget ("hitman") {
gotoAndStop (1);
}
Frame 11
tellTarget ("ballman") {
gotoAndPlay (1);
tellTarget ("ball") {
gotoAndStop (1);
}
}
Frame 29
stop();
setProperty("ball", _x , ball_x);
setProperty("ball", _y , ball_y);
tellTarget ("ball") {
play();
}
Frame 30
stop();
Frame 31
if (gameover == "1") {
if (("3" >= round) and (eval ("score" add round) >= addtimeball)) {
tellTarget ("addtime") {
play();
};
gotoAndPlay (9);
} else {
tellTarget ("GAMEOVER") {
play();
tellTarget ("bar") {
play();
};
if (hasCounted == "0") {
hasCounted = "1";
fscommand ("setScore", score);
}
gotoAndStop (30);
}
}
} else {
gotoAndPlay (10);
}
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 12
stop();
Symbol 29 MovieClip Frame 24
gotoAndStop (1);
Symbol 40 MovieClip Frame 7
stop();
Symbol 40 MovieClip Frame 8
gotoAndPlay (1);
Symbol 44 MovieClip Frame 6
gotoAndPlay (1);
Symbol 45 MovieClip Frame 1
stop();
vx = "0";
vy = "1";
dir_x = "1";
dir_y = "1";
g = "0.35";
Symbol 45 MovieClip Frame 2
tellTarget ("ball_inner") {
gotoAndStop (1);
};
t0 = getTimer();
Symbol 45 MovieClip Frame 3
call("roll");
Symbol 45 MovieClip Frame 4
call("roll");
gotoAndPlay (3);
Symbol 45 MovieClip Frame 5
t1 = getTimer();
dt = (t1 - t0) / "30";
vx = vx + (ax * dt);
vy = vy + (g * dt);
_x = (_x + (vx * dt));
_y = (_y + (vy * dt));
if (vx == "0") {
if ((_y >= getProperty("../ballarea", _y)) and (../ballarea:bottom >= _y)) {
if ("0" < vy) {
factor = (random("1500") / "1000") + "1.3";
vy = (-"1") * (vy + (factor * g));
}
tellTarget ("../ballman") {
play();
};
}
} else {
if ((_y >= getProperty("../earth", _y)) and ("0" < vy)) {
tellTarget ("../hitball") {
play();
};
if ((((getProperty("../net", _x) + "10") < _x) and (getProperty("../scorearea", _x) >= _x)) and (../:cur_score == "0")) {
Set("../:score", ../:score + "1");
Set("../:score" add ../:round, eval ("../:score" add ../:round) + "1");
tellTarget ("../scorearea") {
play();
tellTarget ("../scoreframe") {
play();
};
}
}
Set("../:cur_score", "1");
vy = (-"1") * vy;
} else if (((../:width < _x) or (_x < "0")) or ((getProperty("../earth", _y) + "50") < _y)) {
gotoAndStop (1);
call("../:nextball");
}
if ((vx < "5") and ("0" < vx)) {
vx = "5";
} else if (((-"5") < vx) and (vx < "0")) {
vx = -"5";
}
}
t0 = t1;
Set("../:ballvx", _x);
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
t0 = getTimer();
vx = "0";
vy = "6" + random("3");
dir_x = "1";
dir_y = "1";
g = "0.35";
factor = (random("1500") / "1000") + "1.5";
vy = (-"1") * (vy + (factor * g));
Symbol 55 MovieClip Frame 3
call("roll");
Symbol 55 MovieClip Frame 4
call("roll");
gotoAndPlay (3);
Symbol 55 MovieClip Frame 5
t1 = getTimer();
dt = (t1 - t0) / "30";
vx = vx + (ax * dt);
vy = vy + (g * dt);
_x = (_x + (vx * dt));
_y = (_y + (vy * dt));
if ((getProperty("../earth", _y) < _y) and ("0" < vy)) {
Set("../:hadJump", "0");
Set("../:hadDump", "0");
_y = getProperty("../earth", _y);
gotoAndStop (1);
} else {
t0 = t1;
}
Symbol 55 MovieClip Frame 6
ha_x0 = _x + ((getProperty("hitarea", _x) * _xscale) / "100");
ha_y0 = _y + ((getProperty("hitarea", _y) * _yscale) / "100");
ha_x1 = ha_x0 + ((getProperty("hitarea", _width) * _xscale) / "100");
ha_y1 = ha_y0 + ((getProperty("hitarea", _height) * _yscale) / "100");
setProperty("../p1", _x , "../net:_x");
setProperty("../p1", _x , "../net:_y");
if ((((ha_y0 < getProperty("../ball", _y)) and (getProperty("../ball", _y) < ha_y1)) and (ha_x0 < getProperty("../ball", _x))) and (getProperty("../ball", _x) < ha_x1)) {
sfactor = (getProperty("../ball", _y) - ((ha_y0 + ha_y1) / "2")) / ((getProperty("hitarea", _height) * _yscale) / "100");
Set("../:sfactor", sfactor);
sfactor = sfactor * "20";
if (sfactor < "0") {
sfactor = sfactor * (-"1");
}
if ("0" < ../ball:vy) {
Set("../ball:vx", ../ball:vy * sfactor);
Set("../ball:vy", ../ball:vy + ../ball:vx);
} else {
Set("../ball:vx", (../ball:vy * sfactor) * (-"1"));
Set("../ball:vy", ((-"1") * ../ball:vy) + ../ball:vx);
}
if (getProperty("../net", _y) < ha_y1) {
Set("../ball:vx", ../ball:vx * (-"1"));
tellTarget ("../ball/ball_inner") {
gotoAndPlay ("bounce");
};
}
tellTarget ("../hammer") {
play();
};
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 61 Button
on (release, keyPress "j") {
if (hadJump == "0") {
hadJump = "1";
Set("hitman:vy", "2" + random("2"));
tellTarget ("hitman") {
gotoAndPlay (2);
};
} else {
Set("hitman:vy", hitman:vy - "1");
}
}
Symbol 63 Button
on (release, keyPress "f") {
if ((hadJump == "1") and (hadDump == "0")) {
hadDump = "1";
if ((getProperty("hitman", _y) + ((getProperty("hitman", _height) * getProperty("hitman", _yscale)) / "100")) < (net:top + ((getProperty("net", _height) * getProperty("net", _yscale)) / "100"))) {
call("hitman:readPos");
tellTarget ("hitman/arm") {
play();
};
}
}
}
Symbol 65 Button
on (release, keyPress "n") {
gotoAndPlay (1);
}
Symbol 67 MovieClip Frame 1
top = _y + _height;
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
_visible = "0";
stop();
Symbol 79 MovieClip Frame 2
_visible = "1";
baseTime = getTimer();
Symbol 79 MovieClip Frame 3
time1 = (maxGT - (getTimer() - baseTime)) / "1000";
if ("0" >= time1) {
time = "0.0'0\"";
Set("../:gameover", "1");
call("../:nextball");
stop();
} else {
time2 = int(time1);
time3 = time1 - time2;
time4 = substring(time3, "3", "1");
time5 = substring(time3, "4", "1");
time = ((((time2 add ".") add time4) add "'") add time5) add "\"";
}
Symbol 79 MovieClip Frame 4
gotoAndPlay (3);
Symbol 87 Button
on (release) {
tellTarget ("bar") {
play();
};
play();
}
Symbol 89 MovieClip Frame 1
stop();
_visible = "0";
Symbol 89 MovieClip Frame 2
_visible = "1";
Symbol 99 MovieClip Frame 1
_visible = "0";
stop();
Symbol 99 MovieClip Frame 2
_visible = "1";
Symbol 99 MovieClip Frame 68
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
gotoAndStop (1);