Frame 1
fscommand ("allowscale", "false");
fscommand ("fullscreen", "true");
FrameLoad = int(("100" / _totalframes) * _framesloaded);
tellTarget ("/loader") {
gotoAndStop(/:FrameLoad);
}
ifFrameLoaded (910) {
gotoAndPlay (17);
}
Frame 2
gotoAndPlay (1);
Frame 40
stop();
Frame 910
stop();
Frame 911
fscommand ("allowscale", "false");
setProperty("die", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
setProperty("next_level", _visible , "0");
fscommand ("fullscreen", "true");
fscommand ("showmenu", "false");
setProperty("brick1", _visible , "1");
setProperty("brick2", _visible , "1");
setProperty("brick3", _visible , "1");
setProperty("brick4", _visible , "1");
setProperty("brick5", _visible , "1");
setProperty("brick6", _visible , "1");
setProperty("brick7", _visible , "1");
setProperty("brick7", _visible , "1");
setProperty("brick8", _visible , "1");
setProperty("brick9", _visible , "1");
setProperty("brick10", _visible , "1");
setProperty("brick11", _visible , "1");
setProperty("brick12", _visible , "1");
setProperty("brick13", _visible , "1");
setProperty("brick14", _visible , "1");
setProperty("brick15", _visible , "1");
setProperty("brick16", _visible , "1");
setProperty("brick17", _visible , "1");
setProperty("brick18", _visible , "1");
setProperty("brick19", _visible , "1");
setProperty("brick20", _visible , "1");
stop();
Frame 912
call("pucko");
Frame 913
gotoAndPlay (912);
Frame 931
if (tracking == "1") {
mouseh = getProperty("/tracker", _x);
setProperty("/vert", _x , mouseh);
setProperty("/pad", _x , "mouseh");
setProperty("/centre", _x , mouseh);
}
Frame 935
gotoAndStop (953);
setProperty("die", _visible , "0");
setProperty("next_level", _visible , "0");
setProperty("obj1", _x , "0");
setProperty("obj1", _y , "0");
Frame 936
gotoAndStop (1129);
setProperty("die", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
Frame 946
gotoAndStop (911);
setProperty("die", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
setProperty("obj1", _x , "0");
setProperty("obj1", _y , "0");
Frame 953
fscommand ("allowscale", "false");
setProperty("die", _visible , "0");
setProperty("next_level", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
fscommand ("fullscreen", "true");
fscommand ("showmenu", "false");
setProperty("brick1", _visible , "1");
setProperty("brick2", _visible , "1");
setProperty("brick3", _visible , "1");
setProperty("brick4", _visible , "1");
setProperty("brick5", _visible , "1");
setProperty("brick6", _visible , "1");
setProperty("brick7", _visible , "1");
setProperty("brick7", _visible , "1");
setProperty("brick8", _visible , "1");
setProperty("brick9", _visible , "1");
setProperty("brick10", _visible , "1");
setProperty("brick11", _visible , "1");
setProperty("brick12", _visible , "1");
setProperty("brick13", _visible , "1");
setProperty("brick14", _visible , "1");
setProperty("brick15", _visible , "1");
setProperty("brick16", _visible , "1");
setProperty("brick17", _visible , "1");
setProperty("brick18", _visible , "1");
setProperty("brick19", _visible , "1");
setProperty("brick20", _visible , "1");
stop();
Frame 954
call("pucko");
Frame 955
gotoAndPlay (954);
Frame 973
if (tracking == "1") {
mouseh = getProperty("/tracker", _x);
setProperty("/vert", _x , mouseh);
setProperty("/pad", _x , "mouseh");
setProperty("/centre", _x , mouseh);
}
Frame 977
gotoAndStop (997);
setProperty("die", _visible , "0");
setProperty("next_level", _visible , "0");
setProperty("obj1", _x , "0");
setProperty("obj1", _y , "0");
Frame 978
gotoAndStop (1129);
setProperty("die", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
Frame 988
gotoAndStop (953);
setProperty("die", _visible , "0");
setProperty("obj1", _x , "0");
setProperty("obj1", _y , "0");
Frame 997
fscommand ("allowscale", "false");
setProperty("die", _visible , "0");
setProperty("next_level", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
fscommand ("fullscreen", "true");
fscommand ("showmenu", "false");
setProperty("brick1", _visible , "1");
setProperty("brick2", _visible , "1");
setProperty("brick3", _visible , "1");
setProperty("brick4", _visible , "1");
setProperty("brick5", _visible , "1");
setProperty("brick6", _visible , "1");
setProperty("brick7", _visible , "1");
setProperty("brick7", _visible , "1");
setProperty("brick8", _visible , "1");
setProperty("brick9", _visible , "1");
setProperty("brick10", _visible , "1");
setProperty("brick11", _visible , "1");
setProperty("brick12", _visible , "1");
setProperty("brick13", _visible , "1");
setProperty("brick14", _visible , "1");
setProperty("brick15", _visible , "1");
setProperty("brick16", _visible , "1");
setProperty("brick17", _visible , "1");
setProperty("brick18", _visible , "1");
setProperty("brick19", _visible , "1");
setProperty("brick20", _visible , "1");
stop();
Frame 998
call("pucko");
Frame 999
gotoAndPlay (998);
Frame 1017
if (tracking == "1") {
mouseh = getProperty("/tracker", _x);
setProperty("/vert", _x , mouseh);
setProperty("/pad", _x , "mouseh");
setProperty("/centre", _x , mouseh);
}
Frame 1021
gotoAndStop (1041);
setProperty("die", _visible , "0");
setProperty("next_level", _visible , "0");
setProperty("obj1", _x , "0");
setProperty("obj1", _y , "0");
Frame 1022
gotoAndStop (1129);
setProperty("die", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
Frame 1032
gotoAndStop (997);
setProperty("die", _visible , "0");
setProperty("obj1", _x , "0");
setProperty("obj1", _y , "0");
Frame 1041
fscommand ("allowscale", "false");
setProperty("die", _visible , "0");
setProperty("next_level", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
fscommand ("fullscreen", "true");
fscommand ("showmenu", "false");
setProperty("brick1", _visible , "1");
setProperty("brick2", _visible , "1");
setProperty("brick3", _visible , "1");
setProperty("brick4", _visible , "1");
setProperty("brick5", _visible , "1");
setProperty("brick6", _visible , "1");
setProperty("brick7", _visible , "1");
setProperty("brick7", _visible , "1");
setProperty("brick8", _visible , "1");
setProperty("brick9", _visible , "1");
setProperty("brick10", _visible , "1");
setProperty("brick11", _visible , "1");
setProperty("brick12", _visible , "1");
setProperty("brick13", _visible , "1");
setProperty("brick14", _visible , "1");
setProperty("brick15", _visible , "1");
setProperty("brick16", _visible , "1");
setProperty("brick17", _visible , "1");
setProperty("brick18", _visible , "1");
setProperty("brick19", _visible , "1");
setProperty("brick20", _visible , "1");
stop();
Frame 1042
call("pucko");
Frame 1043
gotoAndPlay (1042);
Frame 1061
if (tracking == "1") {
mouseh = getProperty("/tracker", _x);
setProperty("/vert", _x , mouseh);
setProperty("/pad", _x , "mouseh");
setProperty("/centre", _x , mouseh);
}
Frame 1065
gotoAndStop (1085);
setProperty("die", _visible , "0");
setProperty("next_level", _visible , "0");
setProperty("obj1", _x , "0");
setProperty("obj1", _y , "0");
Frame 1066
gotoAndStop (1129);
setProperty("die", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
Frame 1076
gotoAndStop (1041);
setProperty("die", _visible , "0");
setProperty("obj1", _x , "0");
setProperty("obj1", _y , "0");
Frame 1085
fscommand ("allowscale", "false");
setProperty("die", _visible , "0");
setProperty("next_level", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
fscommand ("fullscreen", "true");
fscommand ("showmenu", "false");
setProperty("brick1", _visible , "1");
setProperty("brick2", _visible , "1");
setProperty("brick3", _visible , "1");
setProperty("brick4", _visible , "1");
setProperty("brick5", _visible , "1");
setProperty("brick6", _visible , "1");
setProperty("brick7", _visible , "1");
setProperty("brick7", _visible , "1");
setProperty("brick8", _visible , "1");
setProperty("brick9", _visible , "1");
setProperty("brick10", _visible , "1");
setProperty("brick11", _visible , "1");
setProperty("brick12", _visible , "1");
setProperty("brick13", _visible , "1");
setProperty("brick14", _visible , "1");
setProperty("brick15", _visible , "1");
setProperty("brick16", _visible , "1");
setProperty("brick17", _visible , "1");
setProperty("brick18", _visible , "1");
setProperty("brick19", _visible , "1");
setProperty("brick20", _visible , "1");
stop();
Frame 1086
call("pucko");
Frame 1087
gotoAndPlay (1086);
Frame 1105
if (tracking == "1") {
mouseh = getProperty("/tracker", _x);
setProperty("/vert", _x , mouseh);
setProperty("/pad", _x , "mouseh");
setProperty("/centre", _x , mouseh);
}
Frame 1109
gotoAndStop (1129);
setProperty("die", _visible , "0");
setProperty("next_level", _visible , "0");
setProperty("obj1", _x , "0");
setProperty("obj1", _y , "0");
Frame 1110
gotoAndStop (1129);
setProperty("die", _visible , "0");
setProperty("nomore_lifes", _visible , "0");
Frame 1120
gotoAndStop (1085);
setProperty("die", _visible , "0");
setProperty("obj1", _x , "0");
setProperty("obj1", _y , "0");
Frame 1129
stop();
Frame 1130
loadVariablesNum ("http://student.mh.luth.se/klakro-9/write/hs/knaslist.asp", "0");
Symbol 2 MovieClip Frame 1
stop();
Symbol 27 Button
on (press) {
gotoAndPlay (911);
}
Symbol 28 Button
on (press) {
gotoAndStop (1130);
}
Symbol 34 Button
on (press) {
getURL ("javascript:parent.close()");
fscommand ("quit", "quit");
}
Symbol 39 Button
on (rollOver) {
startDrag ("/tracker", true);
gotoAndStop (8);
Set("/:tracking", "1");
}
Symbol 40 MovieClip Frame 3
gotoAndPlay (1);
Symbol 42 MovieClip Frame 15
gotoAndPlay (1);
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 10
call("init");
call("speedUp");
call("initobject");
call("getDirection");
tellTarget ("/call_move") {
play();
}
Symbol 43 MovieClip Frame 20
rightmax = "400";
bottommax = "400";
topmax = "0";
leftmax = "0";
current_scale = "100";
scale_modifier = "5";
setProperty("/obj1", _xscale , current_scale);
setProperty("/obj1", _yscale , current_scale);
obj1_radius = getProperty("/obj1", _width) / "2";
obj1_origwidth = getProperty("/obj1", _width);
obj1_origheight = getProperty("/obj1", _height);
setProperty("/obj1", _x , random((rightmax - leftmax) + leftmax) + "1");
setProperty("/obj1", _y , random((bottommax - topmax) + topmax) + "1");
Symbol 43 MovieClip Frame 30
max_dist = "3";
x_dir = random(max_dist + "1") - (max_dist / "2");
y_dir = random(max_dist + "1") - (max_dist / "2");
Symbol 43 MovieClip Frame 40
obj1_x = getProperty("/obj1", _x);
obj1_y = getProperty("/obj1", _y);
setProperty("/obj1", _x , obj1_x + x_dir);
setProperty("/obj1", _y , obj1_y + y_dir);
obj1_x = getProperty("/obj1", _x);
obj1_y = getProperty("/obj1", _y);
if (obj1_x < (leftmax + obj1_radius)) {
amount_over = (leftmax - obj1_x) + (obj1_radius * "2");
setProperty("/obj1", _x , amount_over);
x_dir = x_dir * (-"1");
} else if ((rightmax - obj1_radius) < obj1_x) {
amount_over = (obj1_x - rightmax) + (obj1_radius * "2");
setProperty("/obj1", _x , rightmax - amount_over);
x_dir = x_dir * (-"1");
}
if (obj1_y < (topmax + obj1_radius)) {
amount_over = (topmax - obj1_y) + (obj1_radius * "2");
setProperty("/obj1", _y , amount_over);
y_dir = y_dir * (-"1");
} else if ((bottommax - obj1_radius) < obj1_y) {
amount_over = (obj1_y - bottommax) + (obj1_radius * "2");
setProperty("/obj1", _y , bottommax - amount_over);
y_dir = y_dir * (-"1");
}
Symbol 43 MovieClip Frame 50
if ((x_dir == "0") and (y_dir == "0")) {
call("getDirection");
} else {
x_dir = x_dir * "6.3";
y_dir = y_dir * "6.3";
}
Symbol 43 MovieClip Frame 60
x_dir = x_dir * "0.75";
y_dir = y_dir * "0.75";
Symbol 43 MovieClip Frame 70
if ("0" < (current_scale - scale_modifier)) {
current_scale = current_scale - scale_modifier;
}
setProperty("/obj1", _xscale , current_scale);
setProperty("/obj1", _yscale , current_scale);
obj1_radius = getProperty("/obj1", _width) / "2";
Symbol 43 MovieClip Frame 80
if (((obj1_origwidth * (current_scale / "100")) < (rightmax - "20")) and ((obj1_origheight * (current_scale / "100")) < (bottommax - "20"))) {
current_scale = current_scale + scale_modifier;
trace("current scale: " add current_scale);
trace("current width: " add getProperty("/obj1", _width));
trace("width % scale: " add (getProperty("/obj1", _width) * (current_scale / "100")));
trace(rightmax);
trace("height % scale: " add (getProperty("/obj1", _height) * (current_scale / "100")));
trace(bottommax);
}
setProperty("/obj1", _xscale , current_scale);
setProperty("/obj1", _yscale , current_scale);
obj1_radius = getProperty("/obj1", _width) / "2";
Symbol 43 MovieClip Frame 90
trace((((((("begin cycle...x: " add obj1_x) add ", y: ") add obj1_y) add " xdir: ") add x_dir) add ", y: ") add y_dir);
Symbol 43 MovieClip Frame 100
obj1_hwidth = getProperty("/obj1", _width) / "2";
obj1_hheight = getProperty("/obj1", _height) / "2";
vert_hwidth = getProperty("/vert", _width) / "2";
vert_hheight = getProperty("/vert", _height) / "2";
Symbol 43 MovieClip Frame 110
obj1_x1 = getProperty("/obj1", _x) - obj1_hwidth;
obj1_x2 = getProperty("/obj1", _x) + obj1_hwidth;
obj1_y1 = getProperty("/obj1", _y) - obj1_hheight;
obj1_y2 = getProperty("/obj1", _y) + obj1_hheight;
bottom_die_x1 = getProperty("/bottom_die", _x) - bottom_die_hwidth;
bottom_die_x2 = getProperty("/bottom_die", _x) + bottom_die_hwidth;
bottom_die_y1 = getProperty("/bottom_die", _y) - bottom_die_hheight;
bottom_die_y2 = getProperty("/bottom_die", _y) + bottom_die_hheight;
vert_x1 = getProperty("/vert", _x) - vert_hwidth;
vert_x2 = getProperty("/vert", _x) + vert_hwidth;
vert_y1 = getProperty("/vert", _y) - vert_hheight;
vert_y2 = getProperty("/vert", _y) + vert_hheight;
brick1_x1 = getProperty("/brick1", _x) - brick1_hwidth;
brick1_x2 = getProperty("/brick1", _x) + brick1_hwidth;
brick1_y1 = getProperty("/brick1", _y) - brick1_hheight;
brick1_y2 = getProperty("/brick1", _y) + brick1_hheight;
brick2_x1 = getProperty("/brick2", _x) - brick2_hwidth;
brick2_x2 = getProperty("/brick2", _x) + brick2_hwidth;
brick2_y1 = getProperty("/brick2", _y) - brick2_hheight;
brick2_y2 = getProperty("/brick2", _y) + brick2_hheight;
brick3_x1 = getProperty("/brick3", _x) - brick3_hwidth;
brick3_x2 = getProperty("/brick3", _x) + brick3_hwidth;
brick3_y1 = getProperty("/brick3", _y) - brick3_hheight;
brick3_y2 = getProperty("/brick3", _y) + brick3_hheight;
brick4_x1 = getProperty("/brick4", _x) - brick4_hwidth;
brick4_x2 = getProperty("/brick4", _x) + brick4_hwidth;
brick4_y1 = getProperty("/brick4", _y) - brick4_hheight;
brick4_y2 = getProperty("/brick4", _y) + brick4_hheight;
brick5_x1 = getProperty("/brick5", _x) - brick5_hwidth;
brick5_x2 = getProperty("/brick5", _x) + brick5_hwidth;
brick5_y1 = getProperty("/brick5", _y) - brick5_hheight;
brick5_y2 = getProperty("/brick5", _y) + brick5_hheight;
brick6_x1 = getProperty("/brick6", _x) - brick6_hwidth;
brick6_x2 = getProperty("/brick6", _x) + brick6_hwidth;
brick6_y1 = getProperty("/brick6", _y) - brick6_hheight;
brick6_y2 = getProperty("/brick6", _y) + brick6_hheight;
brick7_x1 = getProperty("/brick7", _x) - brick7_hwidth;
brick7_x2 = getProperty("/brick7", _x) + brick7_hwidth;
brick7_y1 = getProperty("/brick7", _y) - brick7_hheight;
brick7_y2 = getProperty("/brick7", _y) + brick7_hheight;
brick8_x1 = getProperty("/brick8", _x) - brick8_hwidth;
brick8_x2 = getProperty("/brick8", _x) + brick8_hwidth;
brick8_y1 = getProperty("/brick8", _y) - brick2_hheight;
brick8_y2 = getProperty("/brick8", _y) + brick8_hheight;
brick9_x1 = getProperty("/brick9", _x) - brick9_hwidth;
brick9_x2 = getProperty("/brick9", _x) + brick9_hwidth;
brick9_y1 = getProperty("/brick9", _y) - brick9_hheight;
brick9_y2 = getProperty("/brick9", _y) + brick9_hheight;
brick10_x1 = getProperty("/brick10", _x) - brick10_hwidth;
brick10_x2 = getProperty("/brick10", _x) + brick10_hwidth;
brick10_y1 = getProperty("/brick10", _y) - brick10_hheight;
brick10_y2 = getProperty("/brick10", _y) + brick10_hheight;
brick11_x1 = getProperty("/brick11", _x) - brick11_hwidth;
brick11_x2 = getProperty("/brick11", _x) + brick11_hwidth;
brick11_y1 = getProperty("/brick11", _y) - brick11_hheight;
brick11_y2 = getProperty("/brick11", _y) + brick11_hheight;
brick12_x1 = getProperty("/brick12", _x) - brick12_hwidth;
brick12_x2 = getProperty("/brick12", _x) + brick12_hwidth;
brick12_y1 = getProperty("/brick12", _y) - brick12_hheight;
brick12_y2 = getProperty("/brick12", _y) + brick12_hheight;
brick13_x1 = getProperty("/brick13", _x) - brick13_hwidth;
brick13_x2 = getProperty("/brick13", _x) + brick13_hwidth;
brick13_y1 = getProperty("/brick13", _y) - brick13_hheight;
brick13_y2 = getProperty("/brick13", _y) + brick13_hheight;
brick14_x1 = getProperty("/brick14", _x) - brick14_hwidth;
brick14_x2 = getProperty("/brick14", _x) + brick14_hwidth;
brick14_y1 = getProperty("/brick14", _y) - brick14_hheight;
brick14_y2 = getProperty("/brick14", _y) + brick14_hheight;
brick15_x1 = getProperty("/brick15", _x) - brick15_hwidth;
brick15_x2 = getProperty("/brick15", _x) + brick15_hwidth;
brick15_y1 = getProperty("/brick15", _y) - brick15_hheight;
brick15_y2 = getProperty("/brick15", _y) + brick15_hheight;
brick16_x1 = getProperty("/brick16", _x) - brick16_hwidth;
brick16_x2 = getProperty("/brick16", _x) + brick16_hwidth;
brick16_y1 = getProperty("/brick16", _y) - brick16_hheight;
brick16_y2 = getProperty("/brick16", _y) + brick16_hheight;
brick17_x1 = getProperty("/brick17", _x) - brick17_hwidth;
brick17_x2 = getProperty("/brick17", _x) + brick17_hwidth;
brick17_y1 = getProperty("/brick17", _y) - brick17_hheight;
brick17_y2 = getProperty("/brick17", _y) + brick17_hheight;
brick18_x1 = getProperty("/brick18", _x) - brick18_hwidth;
brick18_x2 = getProperty("/brick18", _x) + brick18_hwidth;
brick18_y1 = getProperty("/brick18", _y) - brick18_hheight;
brick18_y2 = getProperty("/brick18", _y) + brick18_hheight;
brick19_x1 = getProperty("/brick19", _x) - brick19_hwidth;
brick19_x2 = getProperty("/brick19", _x) + brick19_hwidth;
brick19_y1 = getProperty("/brick19", _y) - brick19_hheight;
brick19_y2 = getProperty("/brick19", _y) + brick19_hheight;
brick20_x1 = getProperty("/brick20", _x) - brick20_hwidth;
brick20_x2 = getProperty("/brick20", _x) + brick20_hwidth;
brick20_y1 = getProperty("/brick20", _y) - brick20_hheight;
brick20_y2 = getProperty("/brick20", _y) + brick20_hheight;
if ((vert_x2 >= obj1_x1) and (obj1_x1 >= vert_x1)) {
left_hit = "1";
}
if ((obj1_y1 >= vert_y1) and (vert_y2 >= obj1_y1)) {
top_hit = "1";
}
if ((vert_x2 >= obj1_x2) and (obj1_x2 >= vert_x1)) {
right_hit = "1";
}
if ((obj1_y2 >= vert_y1) and (vert_y2 >= obj1_y2)) {
bottom_hit = "1";
}
if (((((left_hit == "1") and (top_hit == "1")) or ((right_hit == "1") and (top_hit == "1"))) or ((left_hit == "1") and (bottom_hit == "1"))) or ((right_hit == "1") and (bottom_hit == "1"))) {
y_dir = y_dir * (-"1.02");
Set("/:score", /:score + "5");
Set("/:output", "P A D T R Ä F F");
}
top_hit = "0";
left_hit = "0";
right_hit = "0";
bottom_hit = "0";
if ((bottom_die_x2 >= obj1_x1) and (obj1_x1 >= bottom_die_x1)) {
left_hitbot = "1";
}
if ((obj1_y1 >= bottom_die_y1) and (bottom_die_y2 >= obj1_y1)) {
top_hitbot = "1";
}
if ((bottom_die_x2 >= obj1_x2) and (obj1_x2 >= bottom_die_x1)) {
right_hitbot = "1";
}
if ((obj1_y2 >= bottom_die_y1) and (bottom_die_y2 >= obj1_y2)) {
bottom_hitbot = "1";
}
if (((((left_hitbot == "1") and (top_hitbot == "1")) or ((right_hitbot == "1") and (top_hitbot == "1"))) or ((left_hitbot == "1") and (bottom_hitbot == "1"))) or ((right_hitbot == "1") and (bottom_hitbot == "1"))) {
Set("/:output", "N U E D U D Ö D !");
setProperty("/die", _visible , "1");
x_dir = x_dir * "0";
y_dir = y_dir * "0";
}
top_hitbot = "0";
left_hitbot = "0";
right_hitbot = "0";
bottom_hitbot = "0";
if ((brick1_x2 >= obj1_x1) and (obj1_x1 >= brick1_x1)) {
leftbrick1_hit = "1";
}
if ((obj1_y1 >= brick1_y1) and (brick1_y2 >= obj1_y1)) {
topbrick1_hit = "1";
}
if ((brick1_x2 >= obj1_x2) and (obj1_x2 >= brick1_x1)) {
rightbrick1_hit = "1";
}
if ((obj1_y2 >= brick1_y1) and (brick1_y2 >= obj1_y2)) {
bottombrick1_hit = "1";
}
if ((topbrick1_hit == "1") and (leftbrick1_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick1", _visible , "0");
brick1_hwidth = -"1";
brick1_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick1_hit == "1") and (bottombrick1_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick1", _visible , "0");
brick1_hwidth = -"1";
brick1_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick1_hit == "1") and (topbrick1_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick1", _visible , "0");
brick1_hwidth = -"1";
brick1_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick1_hit == "1") and (bottombrick1_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick1", _visible , "0");
brick1_hwidth = -"1";
brick1_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick1_hit = "0";
leftbrick1_hit = "0";
rightbrick1_hit = "0";
bottombrick1_hit = "0";
if ((brick2_x2 >= obj1_x1) and (obj1_x1 >= brick2_x1)) {
leftbrick2_hit = "1";
}
if ((obj1_y1 >= brick2_y1) and (brick2_y2 >= obj1_y1)) {
topbrick2_hit = "1";
}
if ((brick2_x2 >= obj1_x2) and (obj1_x2 >= brick2_x1)) {
rightbrick2_hit = "1";
}
if ((obj1_y2 >= brick2_y1) and (brick2_y2 >= obj1_y2)) {
bottombrick2_hit = "1";
}
if ((topbrick2_hit == "1") and (leftbrick2_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick2", _visible , "0");
brick2_hwidth = -"1";
brick2_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick2_hit == "1") and (bottombrick2_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick2", _visible , "0");
brick2_hwidth = -"1";
brick2_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick2_hit == "1") and (topbrick2_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick2", _visible , "0");
brick2_hwidth = -"1";
brick2_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick2_hit == "1") and (bottombrick2_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick2", _visible , "0");
brick2_hwidth = -"1";
brick2_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick2_hit = "0";
leftbrick2_hit = "0";
rightbrick2_hit = "0";
bottombrick2_hit = "0";
if ((brick3_x2 >= obj1_x1) and (obj1_x1 >= brick3_x1)) {
leftbrick3_hit = "1";
}
if ((obj1_y1 >= brick3_y1) and (brick3_y2 >= obj1_y1)) {
topbrick3_hit = "1";
}
if ((brick3_x2 >= obj1_x2) and (obj1_x2 >= brick3_x1)) {
rightbrick3_hit = "1";
}
if ((obj1_y2 >= brick3_y1) and (brick3_y2 >= obj1_y2)) {
bottombrick3_hit = "1";
}
if ((topbrick3_hit == "1") and (leftbrick3_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick3", _visible , "0");
brick3_hwidth = -"1";
brick3_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick3_hit == "1") and (bottombrick3_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick3", _visible , "0");
brick3_hwidth = -"1";
brick3_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick3_hit == "1") and (topbrick3_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick3", _visible , "0");
brick3_hwidth = -"1";
brick3_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick3_hit == "1") and (bottombrick3_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick3", _visible , "0");
brick3_hwidth = -"1";
brick3_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick3_hit = "0";
leftbrick3_hit = "0";
rightbrick3_hit = "0";
bottombrick3_hit = "0";
if ((brick4_x2 >= obj1_x1) and (obj1_x1 >= brick4_x1)) {
leftbrick4_hit = "1";
}
if ((obj1_y1 >= brick4_y1) and (brick4_y2 >= obj1_y1)) {
topbrick4_hit = "1";
}
if ((brick4_x2 >= obj1_x2) and (obj1_x2 >= brick4_x1)) {
rightbrick4_hit = "1";
}
if ((obj1_y2 >= brick4_y1) and (brick4_y2 >= obj1_y2)) {
bottombrick4_hit = "1";
}
if ((topbrick4_hit == "1") and (leftbrick4_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick4", _visible , "0");
brick4_hwidth = -"1";
brick4_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick4_hit == "1") and (bottombrick4_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick4", _visible , "0");
brick4_hwidth = -"1";
brick4_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick4_hit == "1") and (topbrick4_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick4", _visible , "0");
brick4_hwidth = -"1";
brick4_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick4_hit == "1") and (bottombrick4_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick4", _visible , "0");
brick4_hwidth = -"1";
brick4_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick4_hit = "0";
leftbrick4_hit = "0";
rightbrick4_hit = "0";
bottombrick4_hit = "0";
if ((brick5_x2 >= obj1_x1) and (obj1_x1 >= brick5_x1)) {
leftbrick5_hit = "1";
}
if ((obj1_y1 >= brick5_y1) and (brick5_y2 >= obj1_y1)) {
topbrick5_hit = "1";
}
if ((brick5_x2 >= obj1_x2) and (obj1_x2 >= brick5_x1)) {
rightbrick5_hit = "1";
}
if ((obj1_y2 >= brick5_y1) and (brick5_y2 >= obj1_y2)) {
bottombrick5_hit = "1";
}
if ((topbrick5_hit == "1") and (leftbrick5_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick5", _visible , "0");
brick5_hwidth = -"1";
brick5_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick5_hit == "1") and (bottombrick5_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick5", _visible , "0");
brick5_hwidth = -"1";
brick5_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick5_hit == "1") and (topbrick5_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick5", _visible , "0");
brick5_hwidth = -"1";
brick5_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick5_hit == "1") and (bottombrick5_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick5", _visible , "0");
brick5_hwidth = -"1";
brick5_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick5_hit = "0";
leftbrick5_hit = "0";
rightbrick5_hit = "0";
bottombrick5_hit = "0";
if ((brick6_x2 >= obj1_x1) and (obj1_x1 >= brick6_x1)) {
leftbrick6_hit = "1";
}
if ((obj1_y1 >= brick6_y1) and (brick6_y2 >= obj1_y1)) {
topbrick6_hit = "1";
}
if ((brick6_x2 >= obj1_x2) and (obj1_x2 >= brick6_x1)) {
rightbrick6_hit = "1";
}
if ((obj1_y2 >= brick6_y1) and (brick6_y2 >= obj1_y2)) {
bottombrick6_hit = "1";
}
if ((topbrick6_hit == "1") and (leftbrick6_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick6", _visible , "0");
brick6_hwidth = -"1";
brick6_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick6_hit == "1") and (bottombrick6_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick6", _visible , "0");
brick6_hwidth = -"1";
brick6_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick6_hit == "1") and (topbrick6_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick6", _visible , "0");
brick6_hwidth = -"1";
brick6_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick6_hit == "1") and (bottombrick6_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick6", _visible , "0");
brick6_hwidth = -"1";
brick6_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick6_hit = "0";
leftbrick6_hit = "0";
rightbrick6_hit = "0";
bottombrick6_hit = "0";
if ((brick7_x2 >= obj1_x1) and (obj1_x1 >= brick7_x1)) {
leftbrick7_hit = "1";
}
if ((obj1_y1 >= brick7_y1) and (brick7_y2 >= obj1_y1)) {
topbrick7_hit = "1";
}
if ((brick7_x2 >= obj1_x2) and (obj1_x2 >= brick7_x1)) {
rightbrick7_hit = "1";
}
if ((obj1_y2 >= brick7_y1) and (brick7_y2 >= obj1_y2)) {
bottombrick7_hit = "1";
}
if ((topbrick7_hit == "1") and (leftbrick7_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick7", _visible , "0");
brick7_hwidth = -"1";
brick7_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick7_hit == "1") and (bottombrick7_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick7", _visible , "0");
brick7_hwidth = -"1";
brick7_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick7_hit == "1") and (topbrick7_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick7", _visible , "0");
brick7_hwidth = -"1";
brick7_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick7_hit == "1") and (bottombrick7_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick7", _visible , "0");
brick7_hwidth = -"1";
brick7_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick7_hit = "0";
leftbrick7_hit = "0";
rightbrick7_hit = "0";
bottombrick7_hit = "0";
if ((brick8_x2 >= obj1_x1) and (obj1_x1 >= brick8_x1)) {
leftbrick8_hit = "1";
}
if ((obj1_y1 >= brick8_y1) and (brick8_y2 >= obj1_y1)) {
topbrick8_hit = "1";
}
if ((brick8_x2 >= obj1_x2) and (obj1_x2 >= brick8_x1)) {
rightbrick8_hit = "1";
}
if ((obj1_y2 >= brick8_y1) and (brick8_y2 >= obj1_y2)) {
bottombrick8_hit = "1";
}
if ((topbrick8_hit == "1") and (leftbrick8_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick8", _visible , "0");
brick8_hwidth = -"1";
brick8_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick8_hit == "1") and (bottombrick8_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick8", _visible , "0");
brick8_hwidth = -"1";
brick8_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick8_hit == "1") and (topbrick8_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick8", _visible , "0");
brick8_hwidth = -"1";
brick8_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick8_hit == "1") and (bottombrick8_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick8", _visible , "0");
brick8_hwidth = -"1";
brick8_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick8_hit = "0";
leftbrick8_hit = "0";
rightbrick8_hit = "0";
bottombrick8_hit = "0";
if ((brick9_x2 >= obj1_x1) and (obj1_x1 >= brick9_x1)) {
leftbrick9_hit = "1";
}
if ((obj1_y1 >= brick9_y1) and (brick9_y2 >= obj1_y1)) {
topbrick9_hit = "1";
}
if ((brick9_x2 >= obj1_x2) and (obj1_x2 >= brick9_x1)) {
rightbrick9_hit = "1";
}
if ((obj1_y2 >= brick9_y1) and (brick9_y2 >= obj1_y2)) {
bottombrick9_hit = "1";
}
if ((topbrick9_hit == "1") and (leftbrick9_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick9", _visible , "0");
brick9_hwidth = -"1";
brick9_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick9_hit == "1") and (bottombrick9_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick9", _visible , "0");
brick9_hwidth = -"1";
brick9_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick9_hit == "1") and (topbrick9_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick9", _visible , "0");
brick9_hwidth = -"1";
brick9_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick9_hit == "1") and (bottombrick9_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick9", _visible , "0");
brick9_hwidth = -"1";
brick9_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick9_hit = "0";
leftbrick9_hit = "0";
rightbrick9_hit = "0";
bottombrick9_hit = "0";
if ((brick10_x2 >= obj1_x1) and (obj1_x1 >= brick10_x1)) {
leftbrick10_hit = "1";
}
if ((obj1_y1 >= brick10_y1) and (brick10_y2 >= obj1_y1)) {
topbrick10_hit = "1";
}
if ((brick10_x2 >= obj1_x2) and (obj1_x2 >= brick10_x1)) {
rightbrick10_hit = "1";
}
if ((obj1_y2 >= brick10_y1) and (brick10_y2 >= obj1_y2)) {
bottombrick10_hit = "1";
}
if ((topbrick10_hit == "1") and (leftbrick10_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick10", _visible , "0");
brick10_hwidth = -"1";
brick10_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick10_hit == "1") and (bottombrick10_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick10", _visible , "0");
brick10_hwidth = -"1";
brick10_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick10_hit == "1") and (topbrick10_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick10", _visible , "0");
brick10_hwidth = -"1";
brick10_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick10_hit == "1") and (bottombrick10_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick10", _visible , "0");
brick10_hwidth = -"1";
brick10_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick10_hit = "0";
leftbrick10_hit = "0";
rightbrick10_hit = "0";
bottombrick10_hit = "0";
if ((brick11_x2 >= obj1_x1) and (obj1_x1 >= brick11_x1)) {
leftbrick11_hit = "1";
}
if ((obj1_y1 >= brick11_y1) and (brick11_y2 >= obj1_y1)) {
topbrick11_hit = "1";
}
if ((brick11_x2 >= obj1_x2) and (obj1_x2 >= brick11_x1)) {
rightbrick11_hit = "1";
}
if ((obj1_y2 >= brick11_y1) and (brick11_y2 >= obj1_y2)) {
bottombrick11_hit = "1";
}
if ((topbrick11_hit == "1") and (leftbrick11_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick11", _visible , "0");
brick11_hwidth = -"1";
brick11_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick11_hit == "1") and (bottombrick11_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick11", _visible , "0");
brick11_hwidth = -"1";
brick11_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick11_hit == "1") and (topbrick11_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick11", _visible , "0");
brick11_hwidth = -"1";
brick11_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick11_hit == "1") and (bottombrick11_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick11", _visible , "0");
brick11_hwidth = -"1";
brick11_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick11_hit = "0";
leftbrick11_hit = "0";
rightbrick11_hit = "0";
bottombrick11_hit = "0";
if ((brick12_x2 >= obj1_x1) and (obj1_x1 >= brick12_x1)) {
leftbrick12_hit = "1";
}
if ((obj1_y1 >= brick12_y1) and (brick12_y2 >= obj1_y1)) {
topbrick12_hit = "1";
}
if ((brick12_x2 >= obj1_x2) and (obj1_x2 >= brick12_x1)) {
rightbrick12_hit = "1";
}
if ((obj1_y2 >= brick12_y1) and (brick12_y2 >= obj1_y2)) {
bottombrick12_hit = "1";
}
if ((topbrick12_hit == "1") and (leftbrick12_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick12", _visible , "0");
brick12_hwidth = -"1";
brick12_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick12_hit == "1") and (bottombrick12_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick12", _visible , "0");
brick12_hwidth = -"1";
brick12_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick12_hit == "1") and (topbrick12_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick12", _visible , "0");
brick12_hwidth = -"1";
brick12_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick12_hit == "1") and (bottombrick12_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick12", _visible , "0");
brick12_hwidth = -"1";
brick12_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick12_hit = "0";
leftbrick12_hit = "0";
rightbrick12_hit = "0";
bottombrick12_hit = "0";
if ((brick13_x2 >= obj1_x1) and (obj1_x1 >= brick13_x1)) {
leftbrick13_hit = "1";
}
if ((obj1_y1 >= brick13_y1) and (brick13_y2 >= obj1_y1)) {
topbrick13_hit = "1";
}
if ((brick13_x2 >= obj1_x2) and (obj1_x2 >= brick13_x1)) {
rightbrick13_hit = "1";
}
if ((obj1_y2 >= brick13_y1) and (brick13_y2 >= obj1_y2)) {
bottombrick13_hit = "1";
}
if ((topbrick13_hit == "1") and (leftbrick13_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick13", _visible , "0");
brick13_hwidth = -"1";
brick13_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick13_hit == "1") and (bottombrick13_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick13", _visible , "0");
brick13_hwidth = -"1";
brick13_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick13_hit == "1") and (topbrick13_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick13", _visible , "0");
brick13_hwidth = -"1";
brick13_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick13_hit == "1") and (bottombrick13_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick13", _visible , "0");
brick13_hwidth = -"1";
brick13_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick13_hit = "0";
leftbrick13_hit = "0";
rightbrick13_hit = "0";
bottombrick13_hit = "0";
if ((brick14_x2 >= obj1_x1) and (obj1_x1 >= brick14_x1)) {
leftbrick14_hit = "1";
}
if ((obj1_y1 >= brick14_y1) and (brick14_y2 >= obj1_y1)) {
topbrick14_hit = "1";
}
if ((brick14_x2 >= obj1_x2) and (obj1_x2 >= brick14_x1)) {
rightbrick14_hit = "1";
}
if ((obj1_y2 >= brick14_y1) and (brick14_y2 >= obj1_y2)) {
bottombrick14_hit = "1";
}
if ((topbrick14_hit == "1") and (leftbrick14_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick14", _visible , "0");
brick14_hwidth = -"1";
brick14_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick14_hit == "1") and (bottombrick14_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick14", _visible , "0");
brick14_hwidth = -"1";
brick14_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick14_hit == "1") and (topbrick14_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick14", _visible , "0");
brick14_hwidth = -"1";
brick14_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick14_hit == "1") and (bottombrick14_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick14", _visible , "0");
brick14_hwidth = -"1";
brick14_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick14_hit = "0";
leftbrick14_hit = "0";
rightbrick14_hit = "0";
bottombrick14_hit = "0";
if ((brick15_x2 >= obj1_x1) and (obj1_x1 >= brick15_x1)) {
leftbrick15_hit = "1";
}
if ((obj1_y1 >= brick15_y1) and (brick15_y2 >= obj1_y1)) {
topbrick15_hit = "1";
}
if ((brick15_x2 >= obj1_x2) and (obj1_x2 >= brick15_x1)) {
rightbrick15_hit = "1";
}
if ((obj1_y2 >= brick15_y1) and (brick15_y2 >= obj1_y2)) {
bottombrick15_hit = "1";
}
if ((topbrick15_hit == "1") and (leftbrick15_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick15", _visible , "0");
brick15_hwidth = -"1";
brick15_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick15_hit == "1") and (bottombrick15_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick15", _visible , "0");
brick15_hwidth = -"1";
brick15_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick15_hit == "1") and (topbrick15_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick15", _visible , "0");
brick15_hwidth = -"1";
brick15_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick15_hit == "1") and (bottombrick15_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick15", _visible , "0");
brick15_hwidth = -"1";
brick15_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick15_hit = "0";
leftbrick15_hit = "0";
rightbrick15_hit = "0";
bottombrick15_hit = "0";
if ((brick16_x2 >= obj1_x1) and (obj1_x1 >= brick16_x1)) {
leftbrick16_hit = "1";
}
if ((obj1_y1 >= brick16_y1) and (brick16_y2 >= obj1_y1)) {
topbrick16_hit = "1";
}
if ((brick16_x2 >= obj1_x2) and (obj1_x2 >= brick16_x1)) {
rightbrick16_hit = "1";
}
if ((obj1_y2 >= brick16_y1) and (brick16_y2 >= obj1_y2)) {
bottombrick16_hit = "1";
}
if ((topbrick16_hit == "1") and (leftbrick16_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick16", _visible , "0");
brick16_hwidth = -"1";
brick16_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick16_hit == "1") and (bottombrick16_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick16", _visible , "0");
brick16_hwidth = -"1";
brick16_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick16_hit == "1") and (topbrick16_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick16", _visible , "0");
brick16_hwidth = -"1";
brick16_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick16_hit == "1") and (bottombrick16_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick16", _visible , "0");
brick16_hwidth = -"1";
brick16_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick16_hit = "0";
leftbrick16_hit = "0";
rightbrick16_hit = "0";
bottombrick16_hit = "0";
if ((brick17_x2 >= obj1_x1) and (obj1_x1 >= brick17_x1)) {
leftbrick17_hit = "1";
}
if ((obj1_y1 >= brick17_y1) and (brick17_y2 >= obj1_y1)) {
topbrick17_hit = "1";
}
if ((brick17_x2 >= obj1_x2) and (obj1_x2 >= brick17_x1)) {
rightbrick17_hit = "1";
}
if ((obj1_y2 >= brick17_y1) and (brick17_y2 >= obj1_y2)) {
bottombrick17_hit = "1";
}
if ((topbrick17_hit == "1") and (leftbrick17_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick17", _visible , "0");
brick17_hwidth = -"1";
brick17_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick17_hit == "1") and (bottombrick17_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick17", _visible , "0");
brick17_hwidth = -"1";
brick17_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick17_hit == "1") and (topbrick17_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick17", _visible , "0");
brick17_hwidth = -"1";
brick17_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick17_hit == "1") and (bottombrick17_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick17", _visible , "0");
brick17_hwidth = -"1";
brick17_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick17_hit = "0";
leftbrick17_hit = "0";
rightbrick17_hit = "0";
bottombrick17_hit = "0";
if ((brick18_x2 >= obj1_x1) and (obj1_x1 >= brick18_x1)) {
leftbrick18_hit = "1";
}
if ((obj1_y1 >= brick18_y1) and (brick18_y2 >= obj1_y1)) {
topbrick18_hit = "1";
}
if ((brick18_x2 >= obj1_x2) and (obj1_x2 >= brick18_x1)) {
rightbrick18_hit = "1";
}
if ((obj1_y2 >= brick18_y1) and (brick18_y2 >= obj1_y2)) {
bottombrick18_hit = "1";
}
if ((topbrick18_hit == "1") and (leftbrick18_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick18", _visible , "0");
brick18_hwidth = -"1";
brick18_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick18_hit == "1") and (bottombrick18_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick18", _visible , "0");
brick18_hwidth = -"1";
brick18_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick18_hit == "1") and (topbrick18_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick18", _visible , "0");
brick18_hwidth = -"1";
brick18_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick18_hit == "1") and (bottombrick18_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick18", _visible , "0");
brick18_hwidth = -"1";
brick18_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick18_hit = "0";
leftbrick18_hit = "0";
rightbrick18_hit = "0";
bottombrick18_hit = "0";
if ((brick19_x2 >= obj1_x1) and (obj1_x1 >= brick19_x1)) {
leftbrick19_hit = "1";
}
if ((obj1_y1 >= brick19_y1) and (brick19_y2 >= obj1_y1)) {
topbrick19_hit = "1";
}
if ((brick19_x2 >= obj1_x2) and (obj1_x2 >= brick19_x1)) {
rightbrick19_hit = "1";
}
if ((obj1_y2 >= brick19_y1) and (brick19_y2 >= obj1_y2)) {
bottombrick19_hit = "1";
}
if ((topbrick19_hit == "1") and (leftbrick19_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick19", _visible , "0");
brick19_hwidth = -"1";
brick19_hheight = -"1";
Set("/:score", /:score + "50");
Set("/:output", "INGEN KOLLISION");
}
if ((leftbrick19_hit == "1") and (bottombrick19_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick19", _visible , "0");
brick19_hwidth = -"1";
brick19_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick19_hit == "1") and (topbrick19_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick19", _visible , "0");
brick19_hwidth = -"1";
brick19_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick19_hit == "1") and (bottombrick19_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick19", _visible , "0");
brick19_hwidth = -"1";
brick19_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick19_hit = "0";
leftbrick19_hit = "0";
rightbrick19_hit = "0";
bottombrick19_hit = "0";
if ((brick20_x2 >= obj1_x1) and (obj1_x1 >= brick20_x1)) {
leftbrick20_hit = "1";
}
if ((obj1_y1 >= brick20_y1) and (brick20_y2 >= obj1_y1)) {
topbrick20_hit = "1";
}
if ((brick20_x2 >= obj1_x2) and (obj1_x2 >= brick20_x1)) {
rightbrick20_hit = "1";
}
if ((obj1_y2 >= brick20_y1) and (brick20_y2 >= obj1_y2)) {
bottombrick20_hit = "1";
}
if ((topbrick20_hit == "1") and (leftbrick20_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " T O P");
setProperty("/brick20", _visible , "0");
brick20_hwidth = -"1";
brick20_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((leftbrick20_hit == "1") and (bottombrick20_hit == "1")) {
y_dir = y_dir * (-"1");
Set("/:output", " B O T T O M");
setProperty("/brick20", _visible , "0");
brick20_hwidth = -"1";
brick20_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick20_hit == "1") and (topbrick20_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", "R I G H T");
setProperty("/brick20", _visible , "0");
brick20_hwidth = -"1";
brick20_hheight = -"1";
Set("/:score", /:score + "50");
}
if ((rightbrick20_hit == "1") and (bottombrick20_hit == "1")) {
x_dir = x_dir * (-"1");
Set("/:output", " L E F T");
setProperty("/brick20", _visible , "0");
brick20_hwidth = -"1";
brick20_hheight = -"1";
Set("/:score", /:score + "50");
}
topbrick20_hit = "0";
leftbrick20_hit = "0";
rightbrick20_hit = "0";
bottombrick20_hit = "0";
if ((((((((((((((((((((((((((((((((((((((((brick1_hwidth == (-"1")) and (brick1_hheight == (-"1"))) and (brick2_hwidth == (-"1"))) and (brick2_hheight == (-"1"))) and (brick3_hwidth == (-"1"))) and (brick3_hheight == (-"1"))) and (brick4_hwidth == (-"1"))) and (brick4_hheight == (-"1"))) and (brick5_hwidth == (-"1"))) and (brick5_hheight == (-"1"))) and (brick6_hwidth == (-"1"))) and (brick6_hheight == (-"1"))) and (brick7_hwidth == (-"1"))) and (brick7_hheight == (-"1"))) and (brick8_hwidth == (-"1"))) and (brick8_hheight == (-"1"))) and (brick9_hwidth == (-"1"))) and (brick9_hheight == (-"1"))) and (brick10_hwidth == (-"1"))) and (brick10_hheight == (-"1"))) and (brick11_hwidth == (-"1"))) and (brick11_hheight == (-"1"))) and (brick12_hwidth == (-"1"))) and (brick12_hheight == (-"1"))) and (brick13_hwidth == (-"1"))) and (brick13_hheight == (-"1"))) and (brick14_hwidth == (-"1"))) and (brick14_hheight == (-"1"))) and (brick15_hwidth == (-"1"))) and (brick15_hheight == (-"1"))) and (brick16_hwidth == (-"1"))) and (brick16_hheight == (-"1"))) and (brick17_hwidth == (-"1"))) and (brick17_hheight == (-"1"))) and (brick18_hwidth == (-"1"))) and (brick18_hheight == (-"1"))) and (brick19_hwidth == (-"1"))) and (brick19_hheight == (-"1"))) and (brick20_hwidth == (-"1"))) and (brick20_hheight == (-"1"))) {
Set("/:output", "n e X t L E V E L");
setProperty("/next_level", _visible , "1");
x_dir = x_dir * "0";
y_dir = y_dir * "0";
}
if (/:lifes_left < "0") {
setProperty("/nomore_lifes", _visible , "1");
setProperty("/die", _visible , "0");
Set("/:output", "L I V E N E S L U T . . .");
}
Symbol 43 MovieClip Frame 120
bottom_die_hwidth = getProperty("/bottom_die", _width) / "2";
bottom_die_hheight = getProperty("/bottom_die", _height) / "2";
brick1_hwidth = getProperty("/brick1", _width) / "2";
brick1_hheight = getProperty("/brick1", _height) / "2";
brick2_hwidth = getProperty("/brick2", _width) / "2";
brick2_hheight = getProperty("/brick2", _height) / "2";
brick3_hwidth = getProperty("/brick3", _width) / "2";
brick3_hheight = getProperty("/brick3", _height) / "2";
brick4_hwidth = getProperty("/brick4", _width) / "2";
brick4_hheight = getProperty("/brick4", _height) / "2";
brick5_hwidth = getProperty("/brick5", _width) / "2";
brick5_hheight = getProperty("/brick5", _height) / "2";
brick6_hwidth = getProperty("/brick6", _width) / "2";
brick6_hheight = getProperty("/brick6", _height) / "2";
brick7_hwidth = getProperty("/brick7", _width) / "2";
brick7_hheight = getProperty("/brick7", _height) / "2";
brick8_hwidth = getProperty("/brick8", _width) / "2";
brick8_hheight = getProperty("/brick8", _height) / "2";
brick9_hwidth = getProperty("/brick9", _width) / "2";
brick9_hheight = getProperty("/brick9", _height) / "2";
brick10_hwidth = getProperty("/brick10", _width) / "2";
brick10_hheight = getProperty("/brick10", _height) / "2";
brick11_hwidth = getProperty("/brick11", _width) / "2";
brick11_hheight = getProperty("/brick11", _height) / "2";
brick12_hwidth = getProperty("/brick12", _width) / "2";
brick12_hheight = getProperty("/brick12", _height) / "2";
brick13_hwidth = getProperty("/brick13", _width) / "2";
brick13_hheight = getProperty("/brick13", _height) / "2";
brick14_hwidth = getProperty("/brick14", _width) / "2";
brick14_hheight = getProperty("/brick14", _height) / "2";
brick15_hwidth = getProperty("/brick15", _width) / "2";
brick15_hheight = getProperty("/brick15", _height) / "2";
brick16_hwidth = getProperty("/brick16", _width) / "2";
brick16_hheight = getProperty("/brick16", _height) / "2";
brick17_hwidth = getProperty("/brick17", _width) / "2";
brick17_hheight = getProperty("/brick17", _height) / "2";
brick18_hwidth = getProperty("/brick18", _width) / "2";
brick18_hheight = getProperty("/brick18", _height) / "2";
brick19_hwidth = getProperty("/brick19", _width) / "2";
brick19_hheight = getProperty("/brick19", _height) / "2";
brick20_hwidth = getProperty("/brick20", _width) / "2";
brick20_hheight = getProperty("/brick20", _height) / "2";
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 3
call("/subroutines:move");
gotoAndPlay (2);
Symbol 88 Button
on (press) {
Set("/:lifes_left", "3");
call("/:goto1");
}
Symbol 92 Button
on (press) {
call("/:complete");
}
Symbol 93 MovieClip Frame 1
setProperty("/:die", _visible , "0");
stop();
Symbol 97 Button
on (press) {
call("/:next");
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 103 Button
on (press) {
call("/:next_lev5");
}
Symbol 104 MovieClip Frame 1
stop();
Symbol 105 Button
on (press) {
call("/:next_lev4");
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 107 Button
on (press) {
call("/:next_lev3");
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 109 Button
on (press) {
call("/:next_lev2");
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 125 Button
on (press) {
Set("/:lifes_left", /:lifes_left - "1");
call("/:goto1_lev5");
}
Symbol 126 MovieClip Frame 1
stop();
gotoAndStop (1);
Symbol 127 Button
on (press) {
Set("/:lifes_left", /:lifes_left - "1");
call("/:goto1_lev4");
}
Symbol 128 MovieClip Frame 1
stop();
gotoAndStop (1);
Symbol 129 Button
on (press) {
Set("/:lifes_left", /:lifes_left - "1");
call("/:goto1_lev3");
}
Symbol 130 MovieClip Frame 1
stop();
gotoAndStop (1);
Symbol 131 Button
on (press) {
Set("/:lifes_left", /:lifes_left - "1");
call("/:goto1_lev2");
}
Symbol 132 MovieClip Frame 1
stop();
gotoAndStop (1);
Symbol 133 Button
on (press) {
Set("/:lifes_left", /:lifes_left - "1");
call("/:goto1");
}
Symbol 134 MovieClip Frame 1
stop();
gotoAndStop (1);
Symbol 136 MovieClip Frame 2
call("/subroutines:checkCollision");
gotoAndPlay (1);
Symbol 142 Button
on (press) {
gotoAndPlay (912);
Set("/:score", "0");
call("/subroutines:start");
call("/subroutines:speedUp");
call("/subroutines:initbricks");
}
Symbol 148 Button
on (press) {
gotoAndPlay (954);
call("/subroutines:start");
call("/subroutines:speedUp");
call("/subroutines:initbricks");
}
Symbol 151 Button
on (press) {
gotoAndPlay (998);
call("/subroutines:start");
call("/subroutines:speedUp");
call("/subroutines:initbricks");
}
Symbol 154 Button
on (press) {
gotoAndPlay (1042);
call("/subroutines:start");
call("/subroutines:speedUp");
call("/subroutines:initbricks");
}
Symbol 157 Button
on (press) {
gotoAndPlay (1086);
call("/subroutines:start");
call("/subroutines:speedUp");
call("/subroutines:initbricks");
}
Symbol 169 Button
on (press) {
loadVariablesNum ("http://student.mh.luth.se/klakro-9/write/hs/addknas.asp", "1", "POST");
gotoAndStop (1130);
}
Symbol 170 Button
on (press) {
gotoAndStop (1130);
}
Symbol 171 Button
on (press) {
fscommand ("quit", "quit");
getURL ("javascript:parent.close()");
}
Symbol 172 Button
on (press) {
Set("/:lifes_left", "3");
gotoAndStop (911);
}
Symbol 178 Button
on (press) {
getURL ("javascript:parent.close()");
fscommand ("quit", "quit");
}
Symbol 185 Button
on (press) {
loadVariablesNum ("http://student.mh.luth.se/klakro-9/write/hs/knaslist.asp", "0");
}