Frame 1
function makepercent(n, min, max) {
return(Math.floor(((n - min) / (max - min)) * 100));
}
contextmenu = new ContextMenu();
contextmenu.hideBuiltInItems();
_root.menu = contextmenu;
var loadin = 1;
this.onEnterFrame = function () {
if (loadin) {
var _local2 = makepercent(_root.getBytesLoaded(), 0, _root.getBytesTotal());
_root.percent.text = _local2 + "%";
if (_local2 == 100) {
loadin = 0;
_root.gotoAndStop("load");
}
}
};
this.stop();
Frame 2
this.prevFrame();
Frame 10
function tile_table(c, tl, tr, bl, br) {
tl = ((tl == c) ? 1 : 0);
tr = ((tr == c) ? 1 : 0);
bl = ((bl == c) ? 1 : 0);
br = ((br == c) ? 1 : 0);
c = ((tl + tr) + bl) + br;
if (c == 4) {
return("cx");
}
if (c == 3) {
if ((tl && (tr)) && (bl)) {
return("br");
}
if ((tl && (tr)) && (br)) {
return("bl");
}
if ((tl && (bl)) && (br)) {
return("tr");
}
if ((tr && (bl)) && (br)) {
return("tl");
}
} else if (c == 2) {
if (tl && (tr)) {
return("b");
}
if (tr && (br)) {
return("l");
}
if (bl && (br)) {
return("t");
}
if (tl && (bl)) {
return("r");
}
if (bl && (tr)) {
return("fs");
}
if (tl && (br)) {
return("bs");
}
} else if (c == 1) {
if (tl) {
return("btl");
}
if (tr) {
return("btr");
}
if (bl) {
return("bbl");
}
if (br) {
return("bbr");
}
} else if (c == 0) {
return("co");
}
}
function gstate_transition(sub) {
if (!(gstate === "donno")) {
} else {
return("stand");
}
return(gstate);
}
function nomovement_transition(sub) {
switch (sub.gstate) {
case "walk" :
switch (sub.gchar) {
case "dog" :
return(0);
case "dad" :
return(0);
}
return(1);
case "enterexitwall" :
return(1);
case "enterwindow" :
return(1);
case "exitwindow" :
return(1);
case "jump" :
return(1);
case "wall" :
return(1);
}
return(0);
}
function entercyan(sub) {
sub.gchar = sub.gchar + "water";
}
function exitcyan(sub) {
var _local1 = sub.gchar;
_local1 = _local1.split("wate");
sub.gchar = _local1[0];
}
function change_world(t) {
t = t.split(",");
var _local4 = 0;
while (_local4 < t.length) {
world_state[t[_local4]] = Number(t[_local4 + 1]);
if (t[_local4] == "state") {
var _local1 = 0;
while (_local1 < world_sprites.length) {
var _local2 = 1;
while (_local2 < world_sprites[_local1].length) {
if (world_sprites[_local1][_local2].ws < world_state.state) {
world_sprites[_local1][0].state = _local2;
} else if (world_sprites[_local1][_local2].ws == world_state.state) {
world_sprites[_local1][0].state = _local2;
break;
}
_local2++;
}
var _local3 = world_sprites[_local1][0].state;
if (world_sprites[_local1][_local3].ws < world_state.state) {
world_sprites[_local1][_local3].statejump = 1;
}
_local1++;
}
var _local6 = world_sprites[0][0];
var _local7 = world_sprites[0][_local6.state];
update_mainstate(_local6, _local7);
cam();
}
_local4 = _local4 + 2;
}
createarea();
}
function locks(t) {
t = t.split(",");
var _local1 = 0;
while (_local1 < t.length) {
var _local8 = t[_local1];
var _local3 = Number(t[_local1 + 1]);
var _local2 = Number(t[_local1 + 2]);
var _local6 = Number(t[_local1 + 3]);
var _local7 = Number(t[_local1 + 4]);
if (_local8 == "A") {
if (world_interactA[_local3][_local2] == undefined) {
world_interactA[_local3][_local2] = {};
}
var _local5 = world_interactA[_local3][_local2];
} else {
if (world_interactB[_local3][_local2] == undefined) {
world_interactB[_local3][_local2] = {};
}
var _local5 = world_interactB[_local3][_local2];
}
if (_local6 == 2) {
_local5.lock = 1;
_local5.locktxt = _local7;
_local1 = _local1 + 1;
} else if (_local6 == 3) {
_local5.touch = _local7;
_local1 = _local1 + 1;
} else {
_local5.lock = _local6;
}
_local1 = _local1 + 4;
}
}
function warps(t) {
t = t.split(",");
var _local1 = 0;
while (_local1 < t.length) {
var _local8 = t[_local1];
var _local3 = Number(t[_local1 + 1]);
var _local2 = Number(t[_local1 + 2]);
var _local7 = Number(t[_local1 + 3]);
var _local6 = Number(t[_local1 + 4]);
var _local9 = Number(t[_local1 + 5]);
if (_local8 == "A") {
if (world_interactA[_local3][_local2] == undefined) {
world_interactA[_local3][_local2] = {};
}
var _local5 = world_interactA[_local3][_local2];
} else {
if (world_interactB[_local3][_local2] == undefined) {
world_interactB[_local3][_local2] = {};
}
var _local5 = world_interactB[_local3][_local2];
}
_local5.tx = _local7;
_local5.ty = _local6;
_local5.l = _local9;
_local1 = _local1 + 6;
}
}
function advancestates(t, t2) {
t = t.split(",");
if (t2 != undefined) {
t2 = t2.split(",");
if (t2[0] == "if") {
var _local4 = 0;
var _local2 = 0;
while (_local2 < t.length) {
_local4 = _local4 + ((world_sprites[sub_numbers[t[_local2]]][0].state == Number(t2[_local2 + 1])) ? 1 : 0);
_local2++;
}
if (t.length == _local4) {
t2 = t2.slice(-_local4);
} else {
return(undefined);
}
}
var _local2 = 0;
while (_local2 < t.length) {
world_sprites[sub_numbers[t[_local2]]][0].state = Number(t2[_local2]);
_local2++;
}
return(undefined);
}
var _local2 = 0;
while (_local2 < t.length) {
world_sprites[sub_numbers[t[_local2]]][0].state++;
_local2++;
}
}
function refpush(t) {
t = t.split(",");
var _local3 = 0;
while (_local3 < t.length) {
var _local2 = sub_numbers[t[_local3]];
var _local1 = world_sprites[_local2][0];
update_mainstate(_local1, world_sprites[_local2][_local1.state]);
ref_sprites.push(_local2);
var _local4 = ((_local1.ganim == undefined) ? 1 : (_local1.ganim));
attachsprite(_local2, _local4);
_local3++;
}
}
function gameinit(lvl) {
if (demoing) {
lvl = 1;
}
if (design) {
backup_tilesA = copyarr(world_tilesA);
backup_tilesB = copyarr(world_tilesB);
}
backup_interactA = copyarr(world_interactA);
backup_interactB = copyarr(world_interactB);
bgaud.setVolume(100);
timer = 0;
clicks.canur = 1;
clicks.canul = 1;
clicks.candr = 1;
clicks.candl = 1;
backup_sprites = copyarr(world_sprites);
backup_world_state = copyob(world_state);
gamep = {state:"playing", timer:0, fcount:0, tcount:0, fpt:4, fps:60, snd:""};
gamep.tps = Math.round(gamep.fps / gamep.fpt);
frameon("game");
_root.fg._xscale = tilep.zoom;
_root.fg._yscale = tilep.zoom;
_root.overlay.gotoAndStop("game");
_root.overlay.spc.gotoAndStop(3);
if (!design) {
cam(0, 0);
}
createarea();
world_state.hidetiles = 1;
if (lvl == 2) {
world_state = {state:0, hidetiles:1, doorslocked:1, trydoor:1, glass:0, cjuice:0, mjuice:0, yjuice:0, kjuice:0, cwell:1, mwell:1, ywell:0, kwell:1, minibottle:0, bigbottle:0, alchemy:1, mouthd:1, lolid:0};
change_world("state,3");
clicks.canur = 0;
clicks.canul = 0;
clicks.candr = 0;
clicks.candl = 0;
warps(switchroom_boy);
} else if (lvl == 3) {
world_state = {state:0, hidetiles:1, doorslocked:1, trydoor:1, glass:0, cjuice:1, mjuice:1, yjuice:1, kjuice:1, cwell:0, mwell:0, ywell:0, kwell:0, minibottle:1, bigbottle:0, alchemy:1, mouthd:1, lolid:0};
change_world("state,4");
locks((((((((cwell_empty + ",") + mwell_empty) + ",") + ywell_empty) + ",") + kwell_empty) + ",") + destroy_pee);
warps(switchroom_boy);
}
playerzone_check();
}
function gameexit() {
gamep.state = "exiting";
if (design) {
world_tilesA = copyarr(backup_tilesA);
world_tilesB = copyarr(backup_tilesB);
}
world_interactA = copyarr(backup_interactA);
world_interactB = copyarr(backup_interactB);
world_sprites = copyarr(backup_sprites);
world_state = copyob(backup_world_state);
}
function superexit() {
frameon("menu");
}
function simulation() {
snd_fade();
if (gamep.state == "text") {
textcontrol();
} else if (gamep.state == "minigame") {
_root["minigame_" + gamep.minigame]();
} else if (gamep.state == "cutscene") {
if (_root.overlay.mc._currentframe == _root.overlay.mc._totalframes) {
finishcutscene();
snd_initfade("bgaud", 0, 1, 100);
}
} else if (gamep.state == "precutscene") {
if (_root.overlay.mc._currentframe == _root.overlay.mc._totalframes) {
finishcutscene();
snd_initfade("bgaud", 0, 1, 100);
performaction(text_text);
}
}
if (gamep.state != "playing") {
return(undefined);
}
gamep.timer++;
pdelay();
gamep.fcount = (((gamep.fcount + 1) == gamep.fpt) ? 0 : (gamep.fcount + 1));
if (gamep.fcount != 0) {
return(undefined);
}
gamep.tcount++;
var _local3 = 0;
while (_local3 < ref_sprites.length) {
var _local2 = ref_sprites[_local3];
var _local4 = world_sprites[_local2][0];
if (!_local4.live) {
} else {
_local4.ganim = _root.fg.sorted["s" + _local2].mc.mc._currentframe;
if (_local2 == 0) {
player();
} else {
npc(_local2);
}
if (gamep.state != "playing") {
return(undefined);
}
}
_local3++;
}
}
function astar(id, atx, aty, al, btx, bty, bl) {
}
function npc(id) {
var _local1 = world_sprites[id][0];
var _local2 = world_sprites[id][_local1.state];
if (_local2.statejump) {
if (_local2.statejump == 2) {
_local1.state++;
_local2 = world_sprites[id][_local1.state];
}
update_mainstate(_local1, _local2);
movesprite(id);
} else if (_local2.dir != undefined) {
var _local4 = world_sprites[id][_local1.state + 1];
if (_local2.dir == "a") {
var _local5 = astar(id, _local1.tx, _local1.ty, _local1.l, _local4.tx, _local4.ty, _local4.l);
} else {
var _local5 = _local2.dir;
}
if (_local2.gstate == undefined) {
_local1.gstate = "walk";
}
if (_local2.gdir == undefined) {
_local1.gdir = _local5;
}
update_gstate(id, _local2);
var _local7 = 0;
if ((_local1.ty == _local4.ty) && (_local1.tx == _local4.tx)) {
_local7 = 1;
}
if (_local7) {
_local1.state++;
update_gstate(id, _local4);
movesprite(id);
playerzone_check();
return(undefined);
}
if ((_local5 == "nw") || (_local5 == "se")) {
var _local8 = ((_local5 == "nw") ? "se" : "nw");
} else {
var _local8 = ((_local5 == "ne") ? "sw" : "ne");
}
var _local6 = checktileto(_local5, _local8, id);
if ((_local6 != 0) && (_local6.ret != 0)) {
preparespritemove(id, _local2.spd, _local6);
if (_local2.spd != undefined) {
_local1.spd = _local2.spd;
}
} else if ((_local6.id == 0) && (_local2.pushx != undefined)) {
_local1.pushx = 1;
}
} else {
update_gstate(id, _local2);
movesprite(id);
}
}
function player() {
var _local5 = 0;
var _local2 = world_sprites[_local5][0];
var _local10 = world_sprites[_local5][_local2.state];
if (_local10.statejump) {
update_mainstate(_local2, _local10);
movesprite(_local5);
}
if ((((_local2.tx < tilearea.xMin) || (_local2.tx >= tilearea.xMax)) || (_local2.ty < tilearea.yMin)) || (_local2.ty >= tilearea.yMax)) {
cam();
}
var _local3 = interact_check();
if (_local3 != -1) {
if (_local3.push == undefined) {
_root.overlay.spc.gotoAndStop(1);
if (clicks.space == 1) {
clicks.space = 2;
var _local12 = 1;
}
} else if (_local3.push == "x") {
var _local12 = 1;
} else if (clicks.ul && (_local3.push == "nw")) {
clicks.ul = 2;
var _local12 = 1;
} else if (clicks.ur && (_local3.push == "ne")) {
clicks.ur = 2;
var _local12 = 1;
} else if (clicks.dl && (_local3.push == "sw")) {
clicks.dl = 2;
var _local12 = 1;
} else if (clicks.dr && (_local3.push == "se")) {
clicks.dr = 2;
var _local12 = 1;
}
if (_local12) {
if (_local3.id != undefined) {
var _local7 = world_sprites[_local3.id][0];
var _local4 = world_sprites[_local3.id][_local7.state];
}
if (_local4.tdir || (_local4.tstate)) {
if (_local4.tdir == "face") {
if ((_local2.gdir == "nw") || (_local2.gdir == "se")) {
_local7.gdir = ((_local2.gdir == "nw") ? "se" : "nw");
} else {
_local7.gdir = ((_local2.gdir == "ne") ? "sw" : "ne");
}
} else if (_local4.tdir) {
_local7.gdir = _local4.tdir;
}
if (_local4.tstate) {
_local7.gstate = _local4.tstate;
}
movesprite(_local3.id);
}
var _local15 = performaction(world_text[_local3.txt]);
if (_local4.touchskip) {
_local7.state++;
}
if (_local15) {
return(undefined);
}
if (_local3.tx != undefined) {
var _local11 = (_local2.l ? ((("bx" + _local3.tx) + "y") + _local3.ty) : ((("ax" + _local3.tx) + "y") + _local3.ty));
_root.fg.sorted[_local11].mc.play();
}
return(undefined);
}
} else {
_root.overlay.spc.gotoAndStop(3);
if (clicks.space == 1) {
clicks.space = 2;
}
}
var _local13 = (_local2.l ? (world_tilesB[_local2.tx][_local2.ty]) : (world_tilesA[_local2.tx][_local2.ty]));
var _local9 = tiledata[_local13];
if (_local9.forceout != undefined) {
var _local6 = _local9.forceout;
} else if (clicks.ul && (clicks.canul)) {
clicks.ul = 2;
var _local6 = "nw";
} else if (clicks.ur && (clicks.canur)) {
clicks.ur = 2;
var _local6 = "ne";
} else if (clicks.dl && (clicks.candl)) {
clicks.dl = 2;
var _local6 = "sw";
} else if (clicks.dr && (clicks.candr)) {
clicks.dr = 2;
var _local6 = "se";
} else {
changestand(_local5);
}
if (_local6) {
_local2.gstate = "walk";
_local2.gdir = _local6;
if ((_local6 == "nw") || (_local6 == "se")) {
var _local14 = ((_local6 == "nw") ? "se" : "nw");
} else {
var _local14 = ((_local6 == "ne") ? "sw" : "ne");
}
var _local8 = checktileto(_local6, _local14, _local5);
if ((_local8 != 0) && (_local8.ret != 0)) {
_root.overlay.spc.gotoAndStop(3);
preparespritemove(_local5, undefined, _local8);
} else {
changestand(_local5);
}
}
}
function changestand(id) {
var _local1 = world_sprites[id][0];
_local1.gstate = "stand";
movesprite(id);
}
function finishcutscene() {
_root.overlay.gotoAndStop("game");
_root.overlay.spc.gotoAndStop(3);
gamep.state = "playing";
clicks.ul = 0;
clicks.ur = 0;
clicks.dl = 0;
clicks.dr = 0;
clicks.space = 2;
playerzone_check();
}
function interact_check() {
var _local10 = 0;
var _local9 = world_sprites[_local10][0];
var _local6 = tile2point(_local9.tx, _local9.ty);
_local6.px = _local6.px + (((_local9.gdir == "nw") || (_local9.gdir == "sw")) ? 0 : (tilep.w));
_local6.py = _local6.py + (((_local9.gdir == "nw") || (_local9.gdir == "ne")) ? (-tilep.hh) : (tilep.halfh + tilep.hh));
_local6 = point2tile(_local6.px, _local6.py);
var _local7 = _local9.gdir;
if ((_local7 == "nw") || (_local7 == "se")) {
var _local5 = ((_local7 == "nw") ? "se" : "nw");
} else {
var _local5 = ((_local7 == "ne") ? "sw" : "ne");
}
var _local4 = 0;
while (_local4 < ref_sprites.length) {
var _local1 = ref_sprites[_local4];
if (_local1 == _local10) {
} else {
var _local3 = world_sprites[_local1][0];
if (_local3.pushx) {
_local3.pushx = 0;
var _local2 = world_sprites[_local1][_local3.state];
return({txt:_local2.pushx, id:_local1, push:"x"});
}
if (((!_local3.live) || (_local3.tx != _local6.tx)) || (_local3.ty != _local6.ty)) {
} else {
var _local2 = world_sprites[_local1][_local3.state];
if (_local2.touchx != undefined) {
return({txt:_local2.touchx, id:_local1});
}
if (_local2.pushx != undefined) {
return({txt:_local2.pushx, id:_local1, push:_local7});
}
if (_local2["touch" + _local5] != undefined) {
var _local8 = _local2["touch" + _local5];
return({txt:_local8, id:_local1});
}
if (_local2["push" + _local5] != undefined) {
var _local8 = _local2["push" + _local5];
return({txt:_local8, id:_local1, push:_local7});
}
}
}
_local4++;
}
tlon = (_local9.l ? (world_interactB[_local6.tx][_local6.ty]) : (world_interactA[_local6.tx][_local6.ty]));
if ((tlon.touch != undefined) && (tlon.touch != -1)) {
return({txt:tlon.touch, tx:_local6.tx, ty:_local6.ty});
}
var tlon = (_local9.l ? (world_interactB[_local9.tx][_local9.ty]) : (world_interactA[_local9.tx][_local9.ty]));
if ((tlon.touch != undefined) && (tlon.touch != -1)) {
return({txt:tlon.touch, tx:_local9.tx, ty:_local9.ty});
}
return(-1);
}
function pzonecheck(zone, sub) {
zone = zone.split(",");
var _local1 = 0;
while (_local1 < zone.length) {
if ((Number(zone[_local1]) == sub.tx) && (Number(zone[_local1 + 1]) == sub.ty)) {
return(1);
}
_local1 = _local1 + 2;
}
return(0);
}
function playerzone_check() {
var _local1 = world_sprites[0][0];
if (_local1.turnarrive != 0) {
return(undefined);
}
var _local4 = 0;
for ( ; _local4 < ref_sprites.length ; _local4++) {
var _local3 = ref_sprites[_local4];
var _local5 = world_sprites[_local3][0];
var _local2 = world_sprites[_local3][_local5.state];
if (_local2.pa == undefined) {
} else if ((_local2.pdelay != undefined) && (_local1.pdelay > -1)) {
} else if ((_local2.pzone == undefined) || (pzonecheck(_local2.pzone, _local1))) {
if (_local2.pdelay != undefined) {
if (_local1.pdelay == -1) {
_local1.pdelay = gamep.timer + (_local2.pdelay * gamep.fps);
_local1.psprite = _local3;
continue;
}
if (_local1.pdelay == -2) {
_local1.pdelay = -1;
}
}
var _local6 = world_text[_local2.pa];
changestand(0);
_local5.state++;
if (_local3 == 0) {
if ((((_local1.tx < tilearea.xMin) || (_local1.tx >= tilearea.xMax)) || (_local1.ty < tilearea.yMin)) || (_local1.ty >= tilearea.yMax)) {
cam();
}
}
performaction(_local6);
return(undefined);
}
}
}
function pdelay() {
var _local1 = world_sprites[0][0];
if (_local1.pdelay < 0) {
return(undefined);
}
if (gamep.timer >= _local1.pdelay) {
var _local3 = world_sprites[_local1.psprite][0];
var _local2 = world_sprites[_local1.psprite][_local3.state];
if (_local2.pdelay == undefined) {
} else if ((_local2.pzone == undefined) || (pzonecheck(_local2.pzone, _local1))) {
var _local4 = world_text[_local2.pa];
changestand(0);
_local3.state++;
performaction(_local4);
_local1.pdelay = -1;
playerzone_check();
return(undefined);
}
_local1.pdelay = -2;
}
}
function performaction(sub) {
var _local4 = typeof(sub);
if (sub instanceof Array) {
if (sub[0].precut != undefined) {
gamep.state = "precutscene";
snd_initfade("bgaud", 0, 1, 0);
_root.overlay.gotoAndStop(sub[0].precut);
text_text = copyarr(sub);
text_text[0].precut = undefined;
return(1);
}
gamep.state = "text";
_root.overlay.gotoAndStop("text");
var _local5 = copyarr(sub);
text_end = _local5.shift();
text_text = copyarr(_local5);
text_on = 0;
updatetext();
clicks.dl = 2;
clicks.dr = 2;
clicks.ul = 2;
clicks.ur = 2;
clicks.space = 2;
return(1);
}
if (_local4 == "object") {
if (sub.candr != undefined) {
clicks.candr = sub.candr;
}
if (sub.candl != undefined) {
clicks.candl = sub.candl;
}
if (sub.canul != undefined) {
clicks.canul = sub.canul;
}
if (sub.canur != undefined) {
clicks.canur = sub.canur;
}
if (sub.audio != undefined) {
snd_play(sub.audio);
}
if (sub.sprite != undefined) {
if (sub.animate) {
_root.fg.sorted["s" + sub.sprite].mc.mc.play();
}
var _local3 = world_sprites[sub.sprite][0];
if (sub.propname) {
var _local6 = sub["propval" + _local3[sub.propname]];
var _local7 = ((_local6 == undefined) ? (sub.propval) : (_local6));
_local3[sub.propname] = _local7;
}
if (sub.propname2) {
_local3[sub.propname2] = sub.propval2;
}
}
if (sub.func) {
if ((sub.func2 == undefined) && (sub.func2pass != undefined)) {
_root[sub.func](sub.funcpass, sub.func2pass);
} else {
_root[sub.func](sub.funcpass);
}
}
if (sub.func2) {
_root[sub.func2](sub.func2pass);
}
if (sub.func3) {
_root[sub.func3](sub.func3pass);
}
if (sub.cut) {
gamep.state = "cutscene";
snd_initfade("bgaud", 0, 1, 0);
_root.overlay.gotoAndStop(sub.cut);
return(1);
}
if (sub.propname == "state") {
playerzone_check();
}
finishcutscene();
if (sub.nextext != undefined) {
performaction(world_text[sub.nextext]);
}
if (sub.minigame) {
gamep.minigame = sub.minigame;
_root["initminigame_" + gamep.minigame]();
gamep.state = "minigame";
return(1);
}
} else if (_local4 == "string") {
finishcutscene();
} else if (_local4 == "number") {
finishcutscene();
}
}
function textcontrol() {
var _local1 = text_on;
if (clicks.space == 1) {
clicks.space = 2;
if (text_on == (text_text.length - 1)) {
performaction(text_end);
clicks.ul = 0;
clicks.ur = 0;
clicks.dl = 0;
clicks.dr = 0;
clicks.space = 2;
return(undefined);
}
}
if ((clicks.dr == 1) || (clicks.ur == 1)) {
_local1++;
clicks.dr = 2;
clicks.ur = 2;
}
if ((clicks.dl == 1) || (clicks.ul == 1)) {
_local1--;
clicks.dl = 2;
clicks.ul = 2;
}
if (((_local1 != text_on) && (_local1 > -1)) && (_local1 < text_text.length)) {
text_on = _local1;
updatetext();
}
}
function updatetext() {
var _local6 = ((text_on == 0) ? 2 : 1);
var _local3 = text_on == (text_text.length - 1);
var _local5 = (_local3 ? 2 : 1);
var _local4 = (_local3 ? 1 : 2);
_root.overlay.lft.gotoAndStop(_local6);
_root.overlay.rght.gotoAndStop(_local5);
_root.overlay.spc.gotoAndStop(_local4);
var _local2 = text_text[text_on].split("::");
_root.overlay.heads.gotoAndStop(_local2[0]);
_root.overlay.heads.mc.gotoAndStop(_local2[1]);
_root.overlay.txt.text = _local2[2];
}
function update_gstate(id, dub) {
var _local2 = world_sprites[id][0];
if (dub.gchar) {
_local2.gchar = dub.gchar;
}
if (dub.gstate) {
_local2.gstate = dub.gstate;
}
if (dub.gdir) {
_local2.gdir = dub.gdir;
}
if (dub.forceinclude != undefined) {
_local2.forceinclude = dub.forceinclude;
}
if (dub.ignoreblocking != undefined) {
_local2.ignoreblocking = dub.ignoreblocking;
}
}
function exportworld() {
var _local1 = "";
var _local2 = new Date();
_local1 = _local1 + ((((((((("//" + _local2.getFullYear()) + "/") + (_local2.getMonth() + 1)) + "/") + _local2.getDate()) + " ") + _local2.getHours()) + ":") + _local2.getMinutes());
_local1 = _local1 + newline;
_local1 = _local1 + (("world_txtA = \"" + exporttiles(world_tilesA)) + "\";");
_local1 = _local1 + newline;
_local1 = _local1 + (("world_txtB = \"" + exporttiles(world_tilesB)) + "\";");
_local1 = _local1 + newline;
_local1 = _local1 + "world_tilesA = importtiles(world_txtA);";
_local1 = _local1 + newline;
_local1 = _local1 + "world_tilesB = importtiles(world_txtB);";
trace(_local1);
}
function exportvar(nam, val, multi) {
var _local3 = nam + " = ";
if (multi) {
_local3 = _local3 + "new Array();\r";
var _local1 = 0;
while (_local1 < val.length) {
_local3 = _local3 + (((((((nam + "[") + _local1) + "]") + " = ") + exportarray(val[_local1])) + ";") + newline);
_local1++;
}
return(_local3);
}
var _local5 = typeof(val);
if (val instanceof Array) {
_local3 = _local3 + exportarray(val);
} else if (_local5 == "object") {
_local3 = _local3 + exportobject(val);
} else if (_local5 == "string") {
_local3 = _local3 + (("\"" + val) + "\"");
} else if (_local5 == "number") {
_local3 = _local3 + val;
}
_local3 = _local3 + ";";
return(_local3);
}
function exportarray(arr, kill) {
var _local3 = "[";
var _local1 = 0;
while (_local1 < arr.length) {
var _local4 = typeof(arr[_local1]);
if (arr[_local1] == undefined) {
_local3 = _local3 + (kill ? "" : ",0");
} else {
if (_local1) {
_local3 = _local3 + ", ";
}
if (arr[_local1] instanceof Array) {
_local3 = _local3 + exportarray(arr[_local1]);
} else if (_local4 == "object") {
_local3 = _local3 + exportobject(arr[_local1]);
} else if (_local4 == "string") {
_local3 = _local3 + (("\"" + arr[_local1]) + "\"");
} else if (_local4 == "number") {
_local3 = _local3 + arr[_local1];
}
}
_local1++;
}
_local3 = _local3 + "]";
if (_local3 == "[]") {
_local3 = "0";
}
return(_local3);
}
function exportobject(obj) {
var _local2 = "{";
var _local4 = 0;
for (var _local5 in obj) {
if (_local4) {
_local2 = _local2 + ", ";
}
var _local3 = typeof(obj[_local5]);
if (obj[_local5] == undefined) {
_local2 = _local2 + ((_local5 + ":") + 0);
} else if (_local3 == "string") {
_local2 = _local2 + (((_local5 + ":\"") + obj[_local5]) + "\"");
} else if (_local3 == "number") {
_local2 = _local2 + ((_local5 + ":") + obj[_local5]);
}
_local4++;
}
_local2 = _local2 + "}";
return(_local2);
}
function importarray(txt) {
var _local4 = new Array();
txt = txt.slice(1, -1);
while (true) {
var _local6 = txt.charAt(0);
if (_local6 == "[") {
var _local2 = 1;
var _local7 = 1;
while (true) {
_local7 = txt.indexOf("]", _local7);
_local2 = txt.indexOf("[", _local2);
if ((_local2 == -1) || (_local2 > _local7)) {
break;
}
_local2++;
_local7++;
}
_local7++;
var _local8 = txt.slice(0, _local7);
_local4.push(importarray(_local8));
txt = txt.slice(_local7);
} else if (_local6 == "{") {
var _local7 = txt.indexOf("}") + 1;
_local4.push(importobject(txt.slice(0, _local7)));
txt = txt.slice(_local7);
} else {
_local4 = txt.split(", ");
var _local3 = 0;
while (_local3 < _local4.length) {
var _local5 = Number(_local4[_local3]);
if (!isNaN(_local5)) {
_local4[_local3] = _local5;
}
_local3++;
}
}
if (txt.charAt(0) == ",") {
txt = txt.slice(2);
continue;
}
return(_local4);
}
}
function importobject(txt) {
var _local5 = new Object();
txt = txt.slice(1, -1);
var _local4 = txt.split(", ");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local1 = _local4.split(":");
var _local3 = ((_local1[1].charAt(0) == "\"") ? (_local1[1].slice(1, -1)) : (Number(_local1[_local2])));
_local5[_local1[0]] = _local3;
_local2++;
}
return(_local5);
}
function copyarr(arr) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < arr.length) {
var _local2 = arr[_local1];
if (_local2 instanceof Array) {
var _local5 = copyarr(arr[_local1]);
_local4.push(_local5);
} else if (typeof(_local2) == "object") {
var _local5 = copyob(arr[_local1]);
_local4.push(_local5);
} else {
_local4.push(_local2);
}
_local1++;
}
return(_local4);
}
function copyob(ob) {
var _local2 = new Object();
for (var _local3 in ob) {
_local2[_local3] = ob[_local3];
}
return(_local2);
}
function importtiles(txt) {
txt = txt.split(",");
var _local6 = new Array();
var _local5 = 0;
var _local2 = 0;
_local6[_local5] = new Array();
var _local4 = 0;
while (_local4 < txt.length) {
if (txt[_local4] == "br") {
_local5++;
_local6[_local5] = new Array();
_local2 = 0;
} else {
var _local1 = txt[_local4].split("x");
if (_local1.length == 0) {
} else if (_local1.length == 1) {
_local6[_local5][_local2] = Number(_local1[0]);
_local2++;
} else {
_local1[0] = Number(_local1[0]);
_local1[1] = Number(_local1[1]);
if (_local1[0] == 0) {
_local2 = _local2 + _local1[1];
} else {
var _local3 = 0;
while (_local3 < _local1[1]) {
_local6[_local5][_local2] = _local1[0];
_local2++;
_local3++;
}
}
}
}
_local4++;
}
return(_local6);
}
function exporttiles(arr) {
var _local2 = "";
var _local3 = 0;
var _local4 = 0;
var _local6 = 0;
while (_local6 < arr.length) {
if (_local6 != 0) {
if (_local3 != 0) {
_local2 = _local2 + ((_local2.length == 0) ? "" : ",");
_local2 = _local2 + ((_local4 > 1) ? ((_local3 + "x") + _local4) : (_local3));
}
_local2 = _local2 + ((_local2.length == 0) ? "" : ",");
_local2 = _local2 + "br";
_local3 = 0;
_local4 = 0;
}
var _local1 = 0;
while (_local1 < arr[_local6].length) {
if (arr[_local6][_local1] == undefined) {
arr[_local6][_local1] = 0;
}
if (arr[_local6][_local1] == _local3) {
_local4++;
} else {
_local2 = _local2 + ((_local2.length == 0) ? "" : ",");
_local2 = _local2 + ((_local4 > 1) ? ((_local3 + "x") + _local4) : (_local3));
_local3 = arr[_local6][_local1];
_local4 = 1;
}
_local1++;
}
_local6++;
}
var _local7 = _local2.split(",");
_local6 = _local7.length - 1;
while (_local6 > 0) {
if (_local7[_local6] != "br") {
_local7.splice(_local6 + 1);
_local2 = _local7.join(",");
break;
}
_local6--;
}
return(_local2);
}
function cam(xto, yto) {
if (xto == undefined) {
var _local5 = world_sprites[0][0];
var _local4 = tile2point(_local5.tx, _local5.ty);
xto = Math.floor(_local4.px / tilep.stagew);
yto = Math.floor(_local4.py / tilep.stageh);
}
if (!design) {
snd_ambience(xto, yto);
}
if (xto != -999) {
_root.fg._x = -(xto * Stage.width);
}
if (yto != -999) {
_root.fg._y = -(yto * Stage.height);
}
campointa = {x:0, y:0};
_root.fg.globalToLocal(campointa);
campointb = {x:Stage.width, y:Stage.height};
_root.fg.globalToLocal(campointb);
createarea();
}
function createarea() {
var _local8 = {xMin:campointa.x - tlradius.l, xMax:campointb.x + tlradius.r, yMin:campointa.y - tlradius.u, yMax:campointb.y + tlradius.d};
tilearea = new Object();
var _local9 = point2tile(_local8.xMin, _local8.yMin);
tilearea.xMin = _local9.tx;
tilearea.yMin = _local9.ty;
_local9 = point2tile(_local8.xMax, _local8.yMax);
tilearea.xMax = _local9.tx;
tilearea.yMax = _local9.ty;
tilearea.line = tilearea.xMax - tilearea.xMin;
tilearea.fulline = tilearea.line * 3;
tilearea.layer = tilearea.fulline * ((tilearea.yMax - tilearea.yMin) + 2);
_root.fg.gotoAndStop(3);
_root.fg.gotoAndStop(1);
var _local3 = tilearea.xMin;
while (_local3 <= tilearea.xMax) {
if (world_tilesA[_local3] == undefined) {
world_tilesA[_local3] = new Array();
}
if (world_tilesB[_local3] == undefined) {
world_tilesB[_local3] = new Array();
}
var _local2 = tilearea.yMin;
while (_local2 <= tilearea.yMax) {
if (world_tilesA[_local3][_local2] == undefined) {
world_tilesA[_local3][_local2] = 0;
}
if (world_tilesB[_local3][_local2] == undefined) {
world_tilesB[_local3][_local2] = 0;
}
var _local6 = world_tilesA[_local3][_local2];
if (_local6 != 0) {
attachtile(_local3, _local2, _local6, 0);
}
_local6 = world_tilesB[_local3][_local2];
if (_local6 != 0) {
attachtile(_local3, _local2, _local6, 1);
}
_local2++;
}
_local3++;
}
if (design == 1) {
return(undefined);
}
ref_sprites = new Array();
var _local5 = 0;
for ( ; _local5 < world_sprites.length ; _local5++) {
var _local4 = world_sprites[_local5][0];
update_mainstate(_local4, world_sprites[_local5][_local4.state]);
if (_local4.forceinclude) {
} else if ((((_local4.tx < (tilearea.xMin - 1)) || (_local4.tx > (tilearea.xMax + 1))) || (_local4.ty < (tilearea.yMin - 1))) || (_local4.ty > (tilearea.yMax + 1))) {
continue;
}
ref_sprites.push(_local5);
var _local7 = ((_local4.ganim == undefined) ? 1 : (_local4.ganim));
attachsprite(_local5, _local7);
}
}
function update_mainstate(sub, dub) {
if (dub.statejump || (dub.ws == world_state.state)) {
if (dub.spd != undefined) {
sub.spd = dub.spd;
}
sub.tx = dub.tx;
sub.ty = dub.ty;
sub.l = dub.l;
sub.state++;
}
if (dub.forceinclude != undefined) {
sub.forceinclude = dub.forceinclude;
}
if (dub.ignoreblocking != undefined) {
sub.ignoreblocking = dub.ignoreblocking;
}
if (dub.gchar != undefined) {
sub.gchar = dub.gchar;
}
if (dub.gstate != undefined) {
sub.gstate = dub.gstate;
}
if (dub.gdir != undefined) {
sub.gdir = dub.gdir;
}
sub.turnarrive = 0;
sub.live = 1;
}
function attachtile(tx, ty, tl, l) {
var _local5 = (l ? ((("bx" + tx) + "y") + ty) : ((("ax" + tx) + "y") + ty));
var _local3 = tiledata[tl];
var _local13 = (_local3.over ? 1 : 0);
var _local10 = get_depth(tx, ty, l, _local13, 0);
_root.fg.sorted.attachMovie("tiles", _local5, _local10);
var _local9 = tile2point(tx, ty);
_root.fg.sorted[_local5]._x = _local9.px;
_root.fg.sorted[_local5]._y = _local9.py;
tl = ((tl == 0) ? (tiledata.length) : (tl));
_root.fg.sorted[_local5].gotoAndStop(tl);
if (_local3.checkerz) {
_root.fg.sorted[_local5].multi.gotoAndStop(((tx + ty) % _local3.checkerz) + 1);
} else if (_local3.checkerx && (_local3.checkery)) {
_root.fg.sorted[_local5].multi.gotoAndStop(((tx % _local3.checkerx) + 1) + ((ty % _local3.checkery) * _local3.checkerx));
} else if (_local3.checkerx) {
_root.fg.sorted[_local5].multi.gotoAndStop((tx % _local3.checkerx) + 1);
} else if (_local3.checkery) {
_root.fg.sorted[_local5].multi.gotoAndStop((ty % _local3.checkery) + 1);
} else if (_local3.table) {
var _local7 = ty % 2;
var _local11 = ((!_local7) ? (hastile(tx - 1, ty - 1, l)) : (hastile(tx, ty - 1, l)));
var _local14 = ((!_local7) ? (hastile(tx, ty - 1, l)) : (hastile(tx + 1, ty - 1, l)));
var _local12 = ((!_local7) ? (hastile(tx - 1, ty + 1, l)) : (hastile(tx, ty + 1, l)));
var _local15 = ((!_local7) ? (hastile(tx, ty + 1, l)) : (hastile(tx + 1, ty + 1, l)));
_root.fg.sorted[_local5].multi.gotoAndStop(tile_table(tl, _local11, _local14, _local12, _local15));
}
}
function hastile(tx, ty, l) {
var _local1 = (l ? (world_tilesB[tx][ty]) : (world_tilesA[tx][ty]));
if (_local1 > 0) {
return(_local1);
}
return(0);
}
function settile(tx, ty, l, tl) {
if (l) {
var _local6 = world_tilesB[tx][ty];
var _local5 = (("bx" + tx) + "y") + ty;
world_tilesB[tx][ty] = tl;
} else {
var _local6 = world_tilesA[tx][ty];
var _local5 = (("ax" + tx) + "y") + ty;
world_tilesA[tx][ty] = tl;
}
if ((_local6 == 0) && (_root.fg.sorted[_local5] == undefined)) {
attachtile(tx, ty, tl, l);
} else {
tl = ((tl == 0) ? (tiledata.length) : (tl));
_root.fg.sorted[_local5].gotoAndStop(tl);
}
}
function attachsprite(id, ganim) {
var _local2 = "s" + id;
_root.fg.sorted.attachMovie("sprites", _local2, _root.fg.sorted.getNextHighestDepth());
movesprite(id);
_root.fg.sorted[_local2].mc.mc.mc.gotoAndStop(ganim);
}
function movesprite(id) {
sprite_depth(id);
sprite_position(id);
}
function sprite_depth(id) {
var _local2 = world_sprites[id][0];
if ((((_local2.tx < (tilearea.xMin - 1)) || (_local2.tx > (tilearea.xMax + 1))) || (_local2.ty < (tilearea.yMin - 1))) || (_local2.ty > (tilearea.yMax + 1))) {
return(undefined);
}
var _local4 = "s" + id;
var _local3 = get_depth(_local2.tx, _local2.ty, _local2.l, 0, 1);
_root.fg.sorted[_local4].swapDepths(_local3);
}
function sprite_position(id) {
var _local2 = world_sprites[id][0];
var _local4 = "s" + id;
var _local10 = (_local2.l ? (world_tilesB[_local2.tx][_local2.ty]) : (world_tilesA[_local2.tx][_local2.ty]));
var _local3 = tiledata[_local10];
var _local5 = tile2point(_local2.tx, _local2.ty);
var _local8 = _local5.px;
_local8 = _local8 + (_local3.sitx ? (_local3.sitx) : 0);
var _local7 = _local5.py;
_local7 = _local7 + (_local3.sity ? (_local3.sity) : 0);
_root.fg.sorted[_local4]._x = _local8;
_root.fg.sorted[_local4]._y = _local7;
var _local6 = _local2.gstate;
var _local9 = _local2.gdir;
if (_local2.gstate == "stand") {
_local6 = ((_local3.xstate != undefined) ? (_local3.xstate) : (_local2.gstate));
_local9 = ((_local3.xdir != undefined) ? (_local3.xdir) : (_local2.gdir));
}
_root.fg.sorted[_local4].gotoAndStop(_local2.gchar);
_root.fg.sorted[_local4].mc.gotoAndStop(_local6);
_root.fg.sorted[_local4].mc.mc.gotoAndStop(_local9);
_root.fg.sorted[_local4].mc.mc.mc.gotoAndPlay(1);
}
function get_depth(tx, ty, l, o, s) {
var _local1 = 0;
if (l) {
_local1 = _local1 + tilearea.layer;
}
_local1 = _local1 + ((ty - tilearea.yMin) * tilearea.fulline);
_local1 = _local1 + (tx - tilearea.xMin);
if (s) {
_local1 = _local1 + tilearea.line;
}
if (o) {
_local1 = _local1 + (tilearea.line * 2);
}
return(_local1);
}
function tile2point(tx, ty) {
var _local4 = ty * tilep.halfh;
var _local1 = ty % 2;
var _local5 = (_local1 ? ((tx * tilep.w) + tilep.halfw) : (tx * tilep.w));
return({px:_local5, py:_local4});
}
function point2tile(px, py) {
var _local6 = Math.floor(py / tilep.halfh);
var _local2 = _local6 % 2;
px = px - (_local2 ? (tilep.halfw) : 0);
tx = Math.floor(px / tilep.w);
px = px - (tx * tilep.w);
py = py - (_local6 * tilep.halfh);
if (px < tilep.halfw) {
var _local5 = px / tilep.halfw;
var _local4 = py / tilep.halfh;
if ((_local5 + _local4) < 1) {
if (_local2) {
return({tx:tx, ty:_local6 - 1});
}
return({tx:tx - 1, ty:_local6 - 1});
}
} else if (px > tilep.halfw) {
px = px - tilep.halfw;
var _local5 = (tilep.halfw - px) / tilep.halfw;
var _local4 = py / tilep.halfh;
if ((_local5 + _local4) < 1) {
if (_local2) {
return({tx:tx + 1, ty:_local6 - 1});
}
return({tx:tx, ty:_local6 - 1});
}
}
return({tx:tx, ty:_local6});
}
function render() {
if (gamep.state != "playing") {
return(undefined);
}
var _local1 = 0;
while (_local1 < ref_sprites.length) {
var _local2 = ref_sprites[_local1];
animatesprite(_local2);
_local1++;
}
}
function animatesprite(id) {
var _local2 = world_sprites[id][0];
if (!_local2.turnarrive) {
return(undefined);
}
var _local3 = "s" + id;
_root.fg.sorted[_local3]._x = _root.fg.sorted[_local3]._x + _local2.moveratex;
_root.fg.sorted[_local3]._y = _root.fg.sorted[_local3]._y + _local2.moveratey;
if (_local2.turnarrive == -25) {
if (_root.fg.sorted[_local3].mc.mc.mc._currentframe == _root.fg.sorted[_local3].mc.mc.mc._totalframes) {
_local2.turnarrive = 0;
_local2.live = 1;
}
} else if (_local2.turnarrive <= gamep.tcount) {
_local2.turnarrive = 0;
_local2.live = 1;
}
if (_local2.live && (id == 0)) {
clicks.ul = 0;
clicks.ur = 0;
clicks.dl = 0;
clicks.dr = 0;
clicks.space = 0;
playerzone_check();
}
}
function checktileto(dir, opdir, id) {
var _local2 = world_sprites[id][0];
var _local24 = (_local2.l ? (world_tilesB[_local2.tx][_local2.ty]) : (world_tilesA[_local2.tx][_local2.ty]));
var _local8 = tiledata[_local24];
var _local9 = _local2.l;
var _local15 = 0;
if ((!_local2.l) && (_local8["layer" + dir])) {
_local9 = 1;
_local15 = 1;
}
var _local16 = _local2.ty % 2;
var _local14 = (_local8["exit" + dir] ? (_local8["exit" + dir]) : 0);
var _local13 = dir;
if (_local14 != 0) {
switch (dir) {
case "nw" :
_local13 = ((_local14 == 1) ? "north" : "west");
break;
case "ne" :
_local13 = ((_local14 == -1) ? "north" : "east");
break;
case "sw" :
_local13 = ((_local14 == 1) ? "south" : "west");
break;
case "se" :
_local13 = ((_local14 == -1) ? "south" : "east");
}
}
var _local22 = _local2.tx;
var _local21 = _local2.ty;
switch (_local13) {
case "nw" :
_local21--;
_local22 = _local22 - (_local16 ? 0 : 1);
break;
case "ne" :
_local21--;
_local22 = _local22 + (_local16 ? 1 : 0);
break;
case "sw" :
_local21++;
_local22 = _local22 - (_local16 ? 0 : 1);
break;
case "se" :
_local21++;
_local22 = _local22 + (_local16 ? 1 : 0);
break;
case "north" :
_local21 = _local21 - 2;
break;
case "south" :
_local21 = _local21 + 2;
break;
case "west" :
_local22--;
break;
case "east" :
_local22++;
}
var _local23 = world_tilesA[_local22][_local21];
var _local7 = tiledata[_local23];
if (_local9) {
if (_local7["layer" + opdir]) {
_local9 = 0;
_local15 = 1;
} else {
_local23 = world_tilesB[_local22][_local21];
_local7 = tiledata[_local23];
}
}
if (_local2.ignoreblocking) {
_local15 = 1;
}
if (!_local15) {
var _local18 = world_state[_local7.blockstate];
if (((_local7.blockx || (_local18)) || (_local23 == undefined)) || (_local23 == 0)) {
if (_local18 && (id != 0)) {
} else {
if ((_local18 && (id == 0)) && (_local7.blocktxt != undefined)) {
changestand(id);
movesprite(id);
var _local3 = (isNaN(_local7.blocktxt) ? (world_state[_local7.blocktxt]) : (_local7.blocktxt));
performaction(world_text[_local3]);
return(0);
}
return(0);
}
}
switch (dir) {
case "nw" :
if ((_local8.blocknw || (_local7.blockse)) || (_local7.trapse)) {
return(0);
}
break;
case "ne" :
if ((_local8.blockne || (_local7.blocksw)) || (_local7.trapsw)) {
return(0);
}
break;
case "sw" :
if ((_local8.blocksw || (_local7.blockne)) || (_local7.trapne)) {
return(0);
}
break;
case "se" :
if (!((_local8.blockse || (_local7.blocknw)) || (_local7.trapnw))) {
break;
}
return(0);
}
}
var _local5 = 0;
while (_local5 < ref_sprites.length) {
var _local3 = ref_sprites[_local5];
if (_local3 == id) {
} else {
var _local4 = world_sprites[_local3][0];
if (((_local9 == _local4.l) && (_local4.tx == _local22)) && (_local4.ty == _local21)) {
return({id:_local3, ret:0});
}
}
_local5++;
}
var _local12 = (_local9 ? (world_interactB[_local22][_local21]) : (world_interactA[_local22][_local21]));
if ((id == 0) && (_local12.lock || ((_local12.sprite > -1) && (world_sprites[_local12.sprite][0][_local12.propname] == _local12.propval)))) {
if (_local12.locktxt != undefined) {
changestand(id);
movesprite(id);
performaction(world_text[_local12.locktxt]);
}
return(0);
}
if (_local8["anim" + dir]) {
var _local19 = (_local2.l ? ((("bx" + _local2.tx) + "y") + _local2.ty) : ((("ax" + _local2.tx) + "y") + _local2.ty));
_root.fg.sorted[_local19].mc.gotoAndPlay(2);
}
if (_local7["anim" + opdir]) {
var _local19 = (_local9 ? ((("bx" + _local22) + "y") + _local21) : ((("ax" + _local22) + "y") + _local21));
_root.fg.sorted[_local19].mc.gotoAndPlay(2);
}
if (_local8["gstate" + dir]) {
_local2.gstate = _local8["gstate" + dir];
} else if (_local7["gstate" + opdir]) {
_local2.gstate = _local7["gstate" + opdir];
} else if (_local8[("gstate" + dir) + "nx"]) {
_local2.gstate = "exit" + _local8[("gstate" + dir) + "nx"];
} else if (_local7[("gstate" + opdir) + "nx"]) {
_local2.gstate = "enter" + _local7[("gstate" + opdir) + "nx"];
}
if (_local2.l != _local9) {
if (_local9) {
sprite_position(id);
_local2.l = 1;
sprite_depth(id);
} else {
movesprite(id);
_local2.l = 0;
}
} else if (_local7.under || (_local8.under)) {
if (_local21 > _local2.ty) {
sprite_position(id);
var _local20 = _local2.ty;
_local2.ty = _local21;
sprite_depth(id);
_local2.ty = _local20;
} else {
movesprite(id);
}
} else if (_local21 < _local2.ty) {
sprite_position(id);
var _local20 = _local2.ty;
_local2.ty = _local21;
sprite_depth(id);
_local2.ty = _local20;
} else {
movesprite(id);
}
return({tx:_local22, ty:_local21, tlon:_local24, tlto:_local23});
}
function preparespritemove(id, spd, obj) {
var _local2 = world_sprites[id][0];
var _local4 = tiledata[obj.tlon];
var _local7 = tiledata[obj.tlto];
var _local6 = nomovement_transition(_local2);
var _local11 = tile2point(_local2.tx, _local2.ty);
var _local10 = _local11.px;
var _local19 = (_local4.sitx ? (_local10 + _local4.sitx) : (_local10));
var _local8 = _local11.py;
var _local18 = (_local4.sity ? (_local8 + _local4.sity) : (_local8));
_local11 = tile2point(obj.tx, obj.ty);
var _local14 = (_local6 ? (_local10) : (_local11.px));
_local14 = _local14 + (_local7.sitx ? (_local7.sitx) : 0);
var _local13 = (_local6 ? (_local8) : (_local11.py));
_local13 = _local13 + (_local7.sity ? (_local7.sity) : 0);
var _local16 = _local14 - _local19;
var _local15 = _local13 - _local18;
if (spd == undefined) {
if (_local4.spd != undefined) {
spd = _local4.spd;
} else {
spd = _local2.spd;
}
}
var _local17 = "s" + id;
var _local12 = (_local6 ? (_root.fg.sorted[_local17].mc.mc.mc._totalframes) : ((gamep_spd[spd] * gamep.fpt) + 2));
_local2.moveratey = ((_local15 == 0) ? 0 : (_local15 / _local12));
_local2.moveratex = ((_local16 == 0) ? 0 : (_local16 / _local12));
_local2.turnarrive = (_local6 ? -25 : (gamep.tcount + gamep_spd[spd]));
_local2.live = 0;
_local2.gstate = gstate_transition(_local2);
var _local5 = (_local2.l ? (world_interactB[obj.tx][obj.ty]) : (world_interactA[obj.tx][obj.ty]));
if (_local5.l != undefined) {
_local2.l = _local5.l;
_local2.tx = _local5.tx;
_local2.ty = _local5.ty;
if (_local5.func != undefined) {
_root[_local5.func](_local2);
}
return(undefined);
}
_local2.tx = obj.tx;
_local2.ty = obj.ty;
}
function ctrlen() {
if (design == 1) {
control_length = inputs.length;
} else if (design == 2) {
control_length = 9;
} else {
control_length = 6;
}
}
function controls() {
var _local2 = 0;
while (_local2 < control_length) {
var _local1 = inputs[_local2];
var _local3 = Key.isDown(_local1.kcode) || (Key.isDown(_local1.kcode2));
if (_local3 && (!clicks[_local1.tag])) {
clicks[_local1.tag] = 1;
} else if ((!_local3) && (clicks[_local1.tag] == 2)) {
clicks[_local1.tag] = 0;
}
_local2++;
}
}
function switch_keyboard(a) {
switch (a) {
case "qwerty" :
inputs[0].kcode = 87;
inputs[0].kcode2 = 85;
inputs[1].kcode = 69;
inputs[1].kcode2 = 73;
inputs[2].kcode = 83;
inputs[2].kcode2 = 74;
inputs[3].kcode = 68;
inputs[3].kcode2 = 75;
keyboard_type = 1;
return(undefined);
case "azerty" :
inputs[0].kcode = 90;
inputs[0].kcode2 = 85;
inputs[1].kcode = 69;
inputs[1].kcode2 = 73;
inputs[2].kcode = 83;
inputs[2].kcode2 = 74;
inputs[3].kcode = 68;
inputs[3].kcode2 = 75;
keyboard_type = 2;
return(undefined);
case "dvorak" :
inputs[0].kcode = 188;
inputs[0].kcode2 = 67;
inputs[1].kcode = 190;
inputs[1].kcode2 = 82;
inputs[2].kcode = 79;
inputs[2].kcode2 = 84;
inputs[3].kcode = 69;
inputs[3].kcode2 = 78;
keyboard_type = 3;
return(undefined);
case "fallback" :
inputs[0].kcode = 37;
inputs[0].kcode2 = 100;
inputs[1].kcode = 38;
inputs[1].kcode2 = 101;
inputs[2].kcode = 40;
inputs[2].kcode2 = 97;
inputs[3].kcode = 39;
inputs[3].kcode2 = 98;
keyboard_type = 4;
return(undefined);
}
}
function snd_play(snd, loop) {
var _local2 = "aud_" + snd;
if (_root[_local2] == undefined) {
_root.attachMovie("empty", "mc" + _local2, _root.getNextHighestDepth());
_root[_local2] = new Sound(_root["mc" + _local2]);
}
_root[_local2].attachSound(snd + ".wav");
if (loop) {
_root[_local2].start(0, 9999);
} else {
_root[_local2].start();
}
}
function snd_stop(snd) {
var _local2 = "aud_" + snd;
_root[_local2].stop();
}
function snd_ambience(xto, yto) {
var _local1 = world_map[yto][xto];
if (_local1.snd == gamep.snd) {
return(undefined);
}
gamep.snd = _local1.snd;
bgaud.stop();
bgaud.attachSound(_local1.snd + ".wav");
bgaud.start(0, 9999);
}
function snd_initfade(sndname, ease, len, vol, kill) {
var _local2 = fadep.length;
fadep[_local2] = new Object();
fadep[_local2].snd = sndname;
fadep[_local2].ease = ease / 100;
fadep[_local2].timers = timer;
fadep[_local2].timere = timer + (len * gamep.fps);
fadep[_local2].vols = _root[sndname].getVolume();
fadep[_local2].vole = vol;
fadep[_local2].kill = (kill ? 1 : 0);
}
function snd_fade() {
if (fadep.length == 0) {
return(undefined);
}
var _local4 = new Array();
var _local2 = 0;
while (_local2 < fadep.length) {
var _local6 = fadep[_local2];
var _local5 = makepercent(timer, _local6.timers, _local6.timere);
var _local3 = demakepercent(_local5, _local6.vols, _local6.vole);
_root[_local6.snd].setVolume(_local3);
if (_local3 == _local6.vole) {
if (_local6.kill) {
_root[_local6.snd].stop();
}
} else {
_local4.push(_local2);
}
_local2++;
}
if (_local4.length == 0) {
fadep = [0];
return(undefined);
}
if (_local4.length < fadep.length) {
var _local6 = new Array();
_local2 = 0;
while (_local2 < _local4.length) {
_local6[_local2] = copyob(fadep[_local4[_local2]]);
_local2++;
}
fadep = copyarr(_local6);
}
}
function makepercent(n, min, max) {
return(Math.floor(((n - min) / (max - min)) * 100));
}
function demakepercent(p, min, max) {
var _local1 = (p / 100) * Math.abs(max - min);
_local1 = ((min < max) ? (_local1 + min) : (min - _local1));
return(_local1);
}
function designinit() {
clicks.spinner = 0;
clicks.leftclick = 2;
frameon("game");
_root.fg._xscale = tilep.zoom;
_root.fg._yscale = tilep.zoom;
_root.overlay.gotoAndStop("designer");
_root.overlay.l.text = designp.l;
cam(designp.camx, designp.camy);
}
function designloop() {
var _local7 = point2tile(_root.fg._xmouse, _root.fg._ymouse);
var _local4 = _local7.tx;
var _local3 = _local7.ty;
var _local2 = hastile(_local4, _local3, designp.l);
_root.overlay.t.text = (((("x" + _local4) + "_y") + _local3) + "_tl") + _local2;
if ((((clicks.left == 1) || (clicks.right == 1)) || (clicks.up == 1)) || (clicks.down == 1)) {
var _local6 = designp.camx;
_local6 = _local6 - (clicks.left ? 1 : 0);
_local6 = _local6 + (clicks.right ? 1 : 0);
var _local5 = designp.camy;
_local5 = _local5 - (clicks.up ? 1 : 0);
_local5 = _local5 + (clicks.down ? 1 : 0);
cam(_local6, _local5);
designp.camx = _local6;
designp.camy = _local5;
clicks.left = 2;
clicks.right = 2;
clicks.up = 2;
clicks.down = 2;
}
if (clicks.one == 1) {
copyscreen();
clicks.one = 2;
} else if (clicks.two == 1) {
pastescreen();
clicks.two = 2;
}
if (clicks.space == 1) {
designp.l = (designp.l ? 0 : 1);
_root.overlay.l.text = designp.l;
clicks.space = 2;
}
if (clicks.spinner != 0) {
_local2 = _local2 + clicks.spinner;
_local2 = ((_local2 == tiledata.length) ? 0 : (_local2));
_local2 = ((_local2 == -1) ? (tiledata.length - 1) : (_local2));
settile(_local4, _local3, designp.l, _local2);
clicks.spinner = 0;
}
if (clicks.middleclick) {
if (clicks.middleclick == 1) {
designp.copypasta = hastile(_local4, _local3, designp.l);
clicks.middleclick = 2;
} else {
settile(_local4, _local3, designp.l, designp.copypasta);
}
}
if (clicks.playtest == 1) {
clicks.playtest = 2;
design = 2;
ctrlen();
gameinit(0);
}
}
function testloop() {
if (clicks.playtest == 1) {
clicks.playtest = 2;
design = 1;
ctrlen();
gameexit();
designinit();
return(undefined);
}
if (clicks.leftclick == 1) {
var _local2 = point2tile(_root.fg._xmouse, _root.fg._ymouse);
var _local5 = _local2.tx;
var _local4 = _local2.ty;
clicks.leftclick = 2;
var _local3 = world_sprites[0][0];
_local3.tx = _local5;
_local3.ty = _local4;
createarea();
}
if (clicks.test == 1) {
clicks.test = 2;
}
}
function copyscreen() {
var _local6 = {x:0, y:0};
_root.fg.globalToLocal(_local6);
_local6 = point2tile(_local6.x, _local6.y);
var _local7 = {x:Stage.width, y:Stage.height};
_root.fg.globalToLocal(_local7);
_local7 = point2tile(_local7.x, _local7.y);
screen_tilesA = new Array();
screen_tilesB = new Array();
var _local4 = _local6.tx;
while (_local4 <= _local7.tx) {
var _local3 = _local4 - _local6.tx;
if (screen_tilesA[_local3] == undefined) {
screen_tilesA[_local3] = new Array();
}
if (screen_tilesB[_local3] == undefined) {
screen_tilesB[_local3] = new Array();
}
var _local2 = _local6.ty;
while (_local2 <= _local7.ty) {
var _local5 = _local2 - _local6.ty;
screen_tilesA[_local3][_local5] = world_tilesA[_local4][_local2];
screen_tilesB[_local3][_local5] = world_tilesB[_local4][_local2];
_local2++;
}
_local4++;
}
}
function pastescreen() {
var _local5 = {x:0, y:0};
_root.fg.globalToLocal(_local5);
_local5 = point2tile(_local5.x, _local5.y);
var _local7 = {x:Stage.width, y:Stage.height};
_root.fg.globalToLocal(_local7);
_local7 = point2tile(_local7.x, _local7.y);
var _local3 = _local5.tx;
while (_local3 <= _local7.tx) {
var _local6 = _local3 - _local5.tx;
var _local2 = _local5.ty;
while (_local2 <= _local7.ty) {
var _local4 = _local2 - _local5.ty;
world_tilesA[_local3][_local2] = screen_tilesA[_local6][_local4];
world_tilesB[_local3][_local2] = screen_tilesB[_local6][_local4];
_local2++;
}
_local3++;
}
createarea();
}
function onEnterFrame() {
if (gamep.state != "paused") {
timer++;
}
controls();
if (framein == "game") {
if (design == 1) {
designloop();
} else if (design == 2) {
testloop();
render();
simulation();
} else {
render();
simulation();
}
}
}
function frameon(goto) {
framein = goto;
_root.gotoAndStop(goto);
}
function designing(b) {
if (b == 0) {
design = 0;
frameon("menu");
} else {
design = 1;
frameon("designer");
}
ctrlen();
}
function finishgame(a) {
if (prog) {
var _local1 = prog.split(",");
}
switch (a) {
case "demo" :
saveprogress("x,1,0,0,0,5,6,0,8,0,0,0");
frameon("demoend");
return(undefined);
case "win" :
_local1[2] = 2;
_local1[3] = 3;
_local1[10] = 10;
_local1[11] = 11;
_local1[9] = 9;
break;
case "die" :
if (demoing) {
saveprogress("x,1,0,0,0,5,6,0,8,0,0,0");
frameon("demoend");
return(undefined);
}
break;
case "limbo" :
_local1[4] = 4;
_local1[7] = 7;
}
saveprogress(_local1.join(","));
gameexit();
frameon("menu");
}
function init_saves(d) {
var _local2 = _root._url.split(":");
demoing = (((_local2[0] == "http") || (d)) ? 1 : 0);
mainmen = ((!demoing) ? "full" : "demo");
mainmen = mainmen + ((prog == "x,0,0,0,0,0,0,0,0,0,0,0") ? "A" : "B");
}
function saveprogress(a) {
prog = a;
sav.data.prog = a;
sav.flush();
}
function initminigame_pee() {
minigamep = {texting:0, canmove:0, section:0, min:20, max:796, spd:0, maxspd:10, accl:1.5, hitting:0, hits:0, goal:300, w:60, wh:90, streamspd:0, streamdir:1, streamaccl:0.75, streamburst:20};
_root.miniclip.gotoAndStop("pee");
_root.miniclip.mc.gotoAndStop("intro");
snd_initfade("bgaud", 0, 1, 0);
snd_play("pee", 1);
}
function minigame_pee() {
if (minigamep.texting) {
minigame_textcontrol();
return(undefined);
}
if (!minigamep.canmove) {
return(undefined);
}
switch (minigamep.section) {
case 0 :
_root.miniclip.mc.gotoAndStop("side");
_root.miniclip.mc.stream.gotoAndStop(1);
_root.miniclip.mc.bottle.goingin.gotoAndStop(2);
_root.miniclip.mc.bottle.peelevel.gotoAndStop(1);
minigamep.section++;
break;
case 1 :
minigame_peeside();
break;
case 2 :
_root.miniclip.mc.gotoAndStop("interlude");
minigamep.canmove = 0;
minigamep.section++;
break;
case 3 :
_root.miniclip.mc.gotoAndStop("front");
_root.miniclip.mc.bottle.miss.gotoAndStop(1);
_root.miniclip.mc.bottle.peelevel.gotoAndStop(1);
minigamep.maxspd = 15;
minigamep.hitting = 0;
minigamep.hits = 0;
minigamep.goal = 1000;
minigamep.section++;
break;
case 4 :
minigame_peefront();
break;
case 5 :
performaction([{func:"end_minigame", funcpass:"pee"}, "hikki::laugh::AHAHAHA.", "hikki::laugh::What a stupid thing to make a minigame.", "hikki::laugh::Oh lord."]);
}
}
function minigame_peefront() {
var _local2 = 0;
if (clicks.ul || (clicks.dl)) {
clicks.ul = 2;
clicks.dl = 2;
_local2 = -1;
} else if (clicks.ur || (clicks.dr)) {
clicks.ur = 2;
clicks.dr = 2;
_local2 = 1;
}
if ((_local2 == 0) || ((_local2 * minigamep.spd) < 0)) {
minigamep.spd = 0;
} else if (minigamep.spd == 0) {
minigamep.spd = _local2;
} else {
var _local11 = minigamep.maxspd * _local2;
var _local8 = minigamep.spd * minigamep.accl;
minigamep.spd = ((minigamep.maxspd < Math.abs(_local8)) ? (_local11) : (_local8));
}
var _local5 = _root.miniclip.mc.bottle._x + minigamep.spd;
if (_local5 < minigamep.min) {
minigamep.spd = 0;
_root.miniclip.mc.bottle._x = minigamep.min;
} else if (_local5 > minigamep.max) {
minigamep.spd = 0;
_root.miniclip.mc.bottle._x = minigamep.max;
} else {
_root.miniclip.mc.bottle._x = _local5;
}
if (minigamep.streamspd == 0) {
minigamep.streamspd = random(minigamep.streamburst);
}
var _local4 = _root.miniclip.mc.stream._x + (minigamep.streamspd * minigamep.streamdir);
if (_local4 < minigamep.min) {
minigamep.streamdir = 1;
_root.miniclip.mc.stream._x = minigamep.min;
} else if (_local4 > minigamep.max) {
minigamep.streamdir = -1;
_root.miniclip.mc.stream._x = minigamep.max;
} else {
_root.miniclip.mc.stream._x = _local4;
if (random(20) == 11) {
minigamep.streamdir = minigamep.streamdir * -1;
}
}
minigamep.streamspd = Math.floor(minigamep.streamspd * minigamep.streamaccl);
var _local6 = _root.miniclip.mc.bottle._x - minigamep.wh;
var _local9 = _local6 + minigamep.w;
var _local7 = _local9 + minigamep.w;
var _local10 = _local7 + minigamep.w;
_local2 = _root.miniclip.mc.stream._x;
if ((_local2 > _local6) && (_local2 < _local10)) {
if (_local2 < _local9) {
if (minigamep.hitting != 3) {
minigamep.hitting = 3;
_root.miniclip.mc.bottle.miss.gotoAndStop(3);
}
} else if (_local2 > _local7) {
if (minigamep.hitting != 2) {
minigamep.hitting = 2;
_root.miniclip.mc.bottle.miss.gotoAndStop(2);
}
} else {
minigamep.hits++;
var _local3 = Math.ceil((minigamep.hits / minigamep.goal) * 100);
_root.miniclip.mc.bottle.peelevel.gotoAndStop(_local3);
if (minigamep.hits >= minigamep.goal) {
minigamep.section++;
} else if (_local3 > 70) {
minigamep.hits++;
minigamep.streamburst = 90;
} else if (_local3 > 40) {
minigamep.hits = minigamep.hits + 3;
minigamep.streamburst = 50;
}
if (minigamep.hitting != 0) {
minigamep.hitting = 0;
_root.miniclip.mc.bottle.miss.gotoAndStop(1);
}
}
} else if (minigamep.hitting != 0) {
minigamep.hitting = 0;
_root.miniclip.mc.bottle.miss.gotoAndStop(1);
}
}
function minigame_peeside() {
var _local3 = 0;
if (clicks.ul || (clicks.dl)) {
clicks.ul = 2;
clicks.dl = 2;
_local3 = -1;
} else if (clicks.ur || (clicks.dr)) {
clicks.ur = 2;
clicks.dr = 2;
_local3 = 1;
}
if ((_local3 == 0) || ((_local3 * minigamep.spd) < 0)) {
minigamep.spd = 0;
} else if (minigamep.spd == 0) {
minigamep.spd = _local3;
} else {
var _local6 = minigamep.maxspd * _local3;
var _local5 = minigamep.spd * minigamep.accl;
minigamep.spd = ((minigamep.maxspd < Math.abs(_local5)) ? (_local6) : (_local5));
}
var _local4 = _root.miniclip.mc.bottle._x + minigamep.spd;
if (_local4 < minigamep.min) {
minigamep.spd = 0;
_root.miniclip.mc.bottle._x = minigamep.min;
} else if (_local4 > minigamep.max) {
minigamep.spd = 0;
_root.miniclip.mc.bottle._x = minigamep.max;
} else {
_root.miniclip.mc.bottle._x = _local4;
}
_local3 = _root.miniclip.mc.stream.hitTest(_root.miniclip.mc.bottle._x, _root.miniclip.mc.bottle._y, true);
if ((!minigamep.hitting) && (_local3)) {
_root.miniclip.mc.bottle.goingin.gotoAndStop(1);
minigamep.hitting = 1;
minigamep.hitsmooth = 20;
} else if (minigamep.hitting && (!_local3)) {
if (minigamep.hitsmooth) {
minigamep.hitsmooth--;
} else {
_root.miniclip.mc.bottle.goingin.gotoAndStop(2);
minigamep.hitting = 0;
}
}
if (_local3) {
minigamep.hits++;
var _local2 = Math.ceil((minigamep.hits / minigamep.goal) * 100);
_root.miniclip.mc.bottle.peelevel.gotoAndStop(_local2);
if (minigamep.hits >= minigamep.goal) {
minigamep.section++;
} else if (_local2 >= 60) {
_root.miniclip.mc.stream.gotoAndStop(3);
} else if (_local2 >= 30) {
_root.miniclip.mc.stream.gotoAndStop(2);
}
}
}
function minigame_peeanim(anim) {
if (!(anim === "toend")) {
} else {
minigamep.canmove = 1;
}
}
function initminigame_hands() {
snd_initfade("bgaud", 0, 1, 0);
snd_play("blood", 1);
minigamep = {texting:0, canmove:1, frames:0, pace:34, update:0, back:1, north:1, action:-1, turning:0, turnt:0, miss:0, section:0, small:0, big:0, flip1:0, flip2:0, flipseq:0, sequence:0};
hands_sequence_small = new Array();
hands_sequence_big = new Array();
var _local5 = 0;
while (_local5 < 4) {
var _local4 = random(5);
hands_sequence_small[_local5] = new Array();
var _local3 = 0;
while (_local3 < 4) {
hands_sequence_small[_local5].push(_local4);
var _local2 = random(5);
if (_local2 == _local4) {
_local2 = random(5);
}
_local4 = _local2;
_local3++;
}
hands_sequence_big[_local5] = new Array();
_local3 = 0;
while (_local3 < 5) {
hands_sequence_big[_local5].push(_local4);
var _local2 = random(5);
if (_local2 == _local4) {
_local2 = random(5);
}
_local4 = _local2;
_local3++;
}
_local5++;
}
hands_fliponce = new Array();
_local5 = 0;
while (_local5 < 5) {
hands_fliponce[_local5] = random(3) + 1;
_local5++;
}
hands_fliptwice = new Array();
_local5 = 0;
while (_local5 < 3) {
var _local4 = random(3) + 1;
hands_fliptwice[_local5] = [_local4, (random(4 - _local4) + _local4) + 1];
_local5++;
}
_root.miniclip.gotoAndStop("hands");
_root.miniclip.repeat.gotoAndStop(2);
}
function minigame_hands() {
if (minigamep.texting) {
minigame_textcontrol();
return(undefined);
}
if (!minigamep.canmove) {
return(undefined);
}
if (minigamep.update == 2) {
_root.miniclip.feedback.gotoAndStop(1);
_root.miniclip.repeat.gotoAndStop(2);
} else if (minigamep.update == 1) {
minigamep.update = 0;
if (minigamep.turning) {
if (minigamep.back) {
_root.miniclip.simon.gotoAndStop("ftob");
} else {
_root.miniclip.simon.gotoAndStop("btof");
}
minigamep.turning = 0;
minigamep.canmove = 0;
return(undefined);
}
var _local2 = (minigamep.back ? "b" : "f");
_local2 = _local2 + (minigamep.north ? "n" : "s");
switch (minigamep.action) {
case -1 :
break;
case 0 :
_local2 = _local2 + "w";
break;
case 1 :
_local2 = _local2 + "e";
break;
case 2 :
_local2 = _local2 + "sp";
}
_root.miniclip.simon.gotoAndStop(_local2);
}
switch (minigamep.section) {
case 0 :
minigame_textprep(["hand::::Watch as I do then do as I did."]);
minigamep.section++;
return(undefined);
case 1 :
minigame_handsactions(0, 0);
return(undefined);
case 2 :
minigame_handsrepeat(0);
return(undefined);
case 3 :
minigamep.update = 2;
_root.miniclip.feedback.gotoAndStop("success");
minigame_textprep(["hand::::Ok, you've got the basics down.", "hand::::Now comes the hard stuff."]);
minigamep.section++;
return(undefined);
case 4 :
minigame_handsactions(0, 1);
return(undefined);
case 5 :
minigame_handsrepeat(0);
return(undefined);
case 6 :
minigamep.update = 2;
_root.miniclip.feedback.gotoAndStop("success");
minigame_textprep(["hand::::Confusing isn't it?", "hand::::Let's step it up."]);
minigamep.section++;
return(undefined);
case 7 :
minigame_handsactions(1, 1);
return(undefined);
case 8 :
minigame_handsrepeat(1);
return(undefined);
case 9 :
minigamep.update = 2;
_root.miniclip.feedback.gotoAndStop("success");
minigame_textprep(["hand::::I'm impressed.", "hand::::This will be the last one."]);
minigamep.section++;
return(undefined);
case 10 :
minigame_handsactions(1, 2);
return(undefined);
case 11 :
minigame_handsrepeat(1);
return(undefined);
case 12 :
_root.miniclip.feedback.gotoAndStop("success");
_root.miniclip.win.gotoAndPlay(2);
_root.miniclip.simon.gotoAndStop("blank");
minigamep.section++;
minigamep.canmove = 0;
return(undefined);
case 13 :
performaction([{func:"end_minigame", funcpass:"hands", func2:"locks", func2pass:mwell_fill}, "hikki::bloody::"]);
return(undefined);
}
}
function minigame_handsrepeat(seq) {
var _local2 = -1;
if (clicks.ul == 1) {
clicks.ul = 2;
_local2 = 0;
_root.snd_play("westminster_B");
} else if (clicks.ur == 1) {
clicks.ur = 2;
_local2 = 1;
_root.snd_play("westminster_E");
} else if (clicks.dl == 1) {
clicks.dl = 2;
_local2 = 2;
_root.snd_play("westminster_Gs");
} else if (clicks.dr == 1) {
clicks.dr = 2;
_local2 = 3;
_root.snd_play("westminster_Fs");
} else if (clicks.space == 1) {
clicks.space = 2;
_local2 = 4;
_root.snd_play("westminster_combo");
}
if (_local2 != -1) {
var _local4 = (seq ? (hands_sequence_big[minigamep.big][minigamep.sequence]) : (hands_sequence_small[minigamep.small][minigamep.sequence]));
if (_local2 == _local4) {
minigamep.sequence++;
var _local5 = (seq ? (hands_sequence_big[minigamep.big].length) : (hands_sequence_small[minigamep.small].length));
if (minigamep.sequence == _local5) {
minigamep.sequence = 0;
minigamep.section++;
if (seq) {
minigamep.big++;
} else {
minigamep.small++;
}
}
} else {
minigamep.miss++;
if (minigamep.miss == 3) {
_root.miniclip.xxx.gotoAndPlay(4);
snd_stop("blood");
performaction([{func:"end_minigame"}, "hand::::Ok, now I said I wanted to know what you thought of the game BUT...", "hand::::As it stands you're quite pathetic at this game and WELL...", "hand::::I can't really take criticism... from someone as pathetic as you SO...", "hand::::I ask that you try again and succeed before offering your opinion on this game's quality."]);
} else {
if (seq) {
minigamep.big++;
} else {
minigamep.small++;
}
minigamep.sequence = 0;
minigamep.section--;
minigamep.update = 2;
_root.miniclip.xxx.gotoAndStop(minigamep.miss + 1);
_root.miniclip.feedback.gotoAndStop("fail");
switch (random(5)) {
case 0 :
minigame_textprep(["hand::::No see, that's wrong.", "hand::::Let's try again."]);
break;
case 1 :
minigame_textprep(["hand::::Rookie mistake.", "hand::::Let's try again."]);
break;
case 2 :
minigame_textprep(["hand::::Are you even paying attention?", "hand::::Let's try again."]);
break;
case 3 :
minigame_textprep(["hand::::I don't even get how you thought that was correct.", "hand::::Let's try again."]);
break;
case 4 :
minigame_textprep(["hand::::Don't do that again as we do this again."]);
}
}
}
}
}
function minigame_handsactions(seq, flp) {
minigamep.frames++;
if (minigamep.frames == minigamep.pace) {
minigamep.frames = 0;
} else {
return(undefined);
}
minigamep.update = 1;
if (minigamep.action != -1) {
minigamep.action = -1;
return(undefined);
}
if (!minigamep.turnt) {
if (flp == 1) {
var _local2 = hands_fliponce[minigamep.flip1];
} else if (flp == 2) {
var _local2 = hands_fliptwice[minigamep.flip2][minigamep.flipseq];
}
if (_local2 == minigamep.sequence) {
if (!minigamep.north) {
minigamep.north = 1;
return(undefined);
}
minigamep.flipseq++;
minigamep.turning = 1;
minigamep.back = (minigamep.back ? 0 : 1);
minigamep.turnt = 1;
return(undefined);
}
}
var _local2 = (seq ? (hands_sequence_big[minigamep.big][minigamep.sequence]) : (hands_sequence_small[minigamep.small][minigamep.sequence]));
if (_local2 == undefined) {
if (minigamep.section == 10) {
if (!minigamep.north) {
minigamep.north = 1;
return(undefined);
}
if (minigamep.back) {
minigamep.back = 0;
minigamep.turning = 1;
return(undefined);
}
}
_root.miniclip.feedback.gotoAndStop("repeat");
_root.miniclip.repeat.gotoAndStop(1);
minigamep.update = 0;
minigamep.sequence = 0;
minigamep.flipseq = 0;
if (flp) {
minigamep["flip" + flp]++;
}
minigamep.section++;
return(undefined);
}
if (((!minigamep.north) && ((_local2 == 0) || (_local2 == 1))) || (minigamep.north && ((_local2 == 2) || (_local2 == 3)))) {
minigamep.north = (minigamep.north ? 0 : 1);
return(undefined);
}
minigamep.action = ((_local2 > 1) ? (_local2 - 2) : (_local2));
minigamep.sequence++;
minigamep.turnt = 0;
}
function minigame_handsanim(anim) {
if (!(anim === "toend")) {
} else {
minigamep.canmove = 1;
}
}
function initminigame_lab() {
minigamep = {texting:0, flask:0, moves:0, cmyk:"c", canmove:1, reset:0, pour1:"c", pour2:"c", pour3:"c"};
minigamep.c = world_state.cjuice;
minigamep.m = world_state.mjuice;
minigamep.y = world_state.yjuice;
minigamep.k = world_state.kjuice;
_root.miniclip.gotoAndStop("lab");
_root.miniclip.mc.gotoAndStop("c");
minigame_labanim("set");
var _local2 = (world_state.mouthd ? 1 : 3);
_root.miniclip.mc.tag1.gotoAndStop(_local2);
_local2 = (world_state.lolid ? 2 : 3);
_root.miniclip.mc.tag2.gotoAndStop(_local2);
}
function minigame_lab() {
if (minigamep.texting) {
minigame_textcontrol();
return(undefined);
}
if (!minigamep.canmove) {
return(undefined);
}
if (minigamep.flask == 3) {
var _local2 = {c:0, m:0, y:0, k:0};
_local2.c = ((((minigamep.pour1 == "c") || (minigamep.pour2 == "c")) || (minigamep.pour3 == "c")) ? 1 : 0);
_local2.m = ((((minigamep.pour1 == "m") || (minigamep.pour2 == "m")) || (minigamep.pour3 == "m")) ? 1 : 0);
_local2.y = ((((minigamep.pour1 == "y") || (minigamep.pour2 == "y")) || (minigamep.pour3 == "y")) ? 1 : 0);
_local2.k = ((((minigamep.pour1 == "k") || (minigamep.pour2 == "k")) || (minigamep.pour3 == "k")) ? 1 : 0);
if ((_local2.c && (_local2.m)) && (_local2.y)) {
performaction({cut:"potionhand", func:"end_minigame", funcpass:"destroy", func2:"change_world", func2pass:"state,5,glass,1"});
return(undefined);
}
if ((_local2.k && (_local2.m)) && (_local2.y)) {
if (world_state.mouthd) {
performaction([{func:"end_minigame"}, "hikki::mono::I've already mixed these...", "hikki::mono::I like having a mouth...", "hikki::mono::Even if it isn't mine."]);
return(undefined);
}
performaction({cut:"potionmouth", func2:"end_minigame", func2pass:"juice", func:"change_world", funcpass:"state,2,mouthd,1"});
return(undefined);
}
if ((_local2.k && (_local2.c)) && (_local2.y)) {
if (world_state.lolid) {
performaction([{func:"end_minigame"}, "hikki::mono::I've already mixed these...", "hikki::mono::Being young again was freeing but...", "hikki::mono::..."]);
return(undefined);
}
performaction({cut:"potionloli", func2:"end_minigame", func2pass:"juice", func:"change_world", funcpass:"state,6,lolid,1,trydoor,-1,mwell,0,kwell,1,cwell,1"});
return(undefined);
}
if ((_local2.k && (_local2.m)) && (_local2.c)) {
if (world_state.lolid) {
performaction({cut:"potiondeath", func:"end_minigame", funcpass:"destroy", func2:"change_world", func2pass:"state,8,glass,1,trydoor,-1"});
return(undefined);
}
performaction({cut:"potiondie"});
return(undefined);
}
} else if ((((!minigamep.c) && (!minigamep.m)) && (!minigamep.y)) && (!minigamep.k)) {
if (minigamep.flask == 0) {
if (minigamep.moves > 1) {
if (world_state.alchemy == 0) {
performaction([{func:"end_minigame"}, "hikki::mono::A chemistry set..."]);
} else {
performaction([{func:"end_minigame"}, "hikki::mono::I should try to fill these vials."]);
}
return(undefined);
}
} else {
var _local4 = world_sprites[0][0];
if (_local4.gchar == "loli") {
performaction([{func:"end_minigame"}, "loli::smile::Potions!"]);
} else {
performaction([{func:"end_minigame"}, "hikki::mono::I believe I will require atleast 3 full vials to perform any alchemic feats."]);
}
return(undefined);
}
}
var _local3 = "";
if (clicks.ul == 1) {
clicks.ul = 2;
_local3 = "c";
} else if (clicks.ur == 1) {
clicks.ur = 2;
_local3 = "m";
} else if (clicks.dl == 1) {
clicks.dl = 2;
_local3 = "y";
} else if (clicks.dr == 1) {
clicks.dr = 2;
_local3 = "k";
}
if ((_local3 != "") && (_local3 != minigamep.cmyk)) {
_root.miniclip.mc.gotoAndStop((minigamep.cmyk + "to") + _local3);
minigamep.cmyk = _local3;
minigamep.canmove = 0;
if (minigamep.reset) {
minigame_labanim("set");
minigamep.reset = 0;
}
minigamep.moves++;
return(undefined);
}
if (clicks.space == 1) {
clicks.space = 2;
if (minigamep[minigamep.cmyk]) {
minigamep[minigamep.cmyk] = 0;
minigamep.flask++;
minigamep["pour" + minigamep.flask] = minigamep.cmyk;
minigamep.reset = 1;
_root.miniclip.mc.gotoAndStop(minigamep.cmyk + "pour");
minigame_labanim("set");
minigamep.canmove = 0;
}
}
}
function minigame_labanim(anim) {
switch (anim) {
case "set" :
_root.miniclip.mc.c.gotoAndStop(minigamep.c + 1);
_root.miniclip.mc.m.gotoAndStop(minigamep.m + 1);
_root.miniclip.mc.y.gotoAndStop(minigamep.y + 1);
_root.miniclip.mc.k.gotoAndStop(minigamep.k + 1);
break;
case "pour" :
_root.miniclip.mc.flask.gotoAndStop(minigamep.flask + 1);
_root.miniclip.mc.flask["pour" + minigamep.flask].mc.gotoAndStop(minigamep["pour" + minigamep.flask]);
break;
case "toend" :
minigamep.canmove = 1;
}
}
function end_minigame(v) {
switch (v) {
case "juice" :
world_state.cjuice = minigamep.c;
world_state.mjuice = minigamep.m;
world_state.yjuice = minigamep.y;
world_state.kjuice = minigamep.k;
break;
case "hands" :
change_world("mwell,1,state,1");
snd_stop("blood");
break;
case "pee" :
if (demoing) {
finishgame("demo");
return(undefined);
}
change_world("ywell,1,minibottle,1,bigbottle,2");
locks(ywell_fill);
snd_stop("pee");
break;
case "destroy" :
world_state.cjuice = minigamep.c;
world_state.mjuice = minigamep.m;
world_state.yjuice = minigamep.y;
world_state.kjuice = minigamep.k;
performaction({func:"locks", funcpass:destroy_lab});
break;
}
snd_initfade("bgaud", 0, 1, 100);
gamep.state = "playing";
_root.miniclip.gotoAndStop(1);
}
function minigame_textprep(sub) {
minigamep.texting = 1;
_root.overlay.gotoAndStop("text");
var _local2 = copyarr(sub);
text_text = copyarr(_local2);
text_on = 0;
updatetext();
clicks.left = 2;
clicks.right = 2;
clicks.space = 2;
}
function minigame_textcontrol() {
var _local2 = text_on;
if (clicks.space == 1) {
clicks.space = 2;
if (text_on == (text_text.length - 1)) {
minigamep.texting = 0;
clicks.dl = 0;
clicks.dr = 0;
clicks.ul = 0;
clicks.ur = 0;
clicks.space = 2;
_root.overlay.gotoAndStop("game");
_root.overlay.spc.gotoAndStop(3);
return(undefined);
}
}
if ((clicks.dr == 1) || (clicks.ur == 1)) {
_local2++;
clicks.dr = 2;
clicks.ur = 2;
}
if ((clicks.dl == 1) || (clicks.ul == 1)) {
_local2--;
clicks.dl = 2;
clicks.ul = 2;
}
if (((_local2 != text_on) && (_local2 > -1)) && (_local2 < text_text.length)) {
text_on = _local2;
updatetext();
}
}
world_txtA = "br,br,0x9,29,0,29,0,29,0,14,br,0x7,29x6,15x2,19,12,5,br,0x5,29x6,5,16,18,19,5,7,8,4x2,br,0x4,31,30,31,30,31,30,7,8,4x2,7,9,3,14,8,9,3,br,0x6,30x6,8,9,3,15x2,19,12,br,0x8,30x6,16,18,19,br,br,br,br,br,br,0x9,29,0,29,0,29,0,14,br,0x7,29x6,15,14,19,12,5,br,0x5,29x6,5,16,18,19,5,7,8,4x2,br,0x4,31,30,31,30,31,30,7,8,4x2,7,9,3,14,8,9,3,br,0x6,30x6,8,9,3,15x2,19,12,br,0x8,30x6,16,18,19,br,br,br,br,br,br,br,0x9,32,0,32,0,32,0,14,br,0x7,32x6,15x2,19,12,5,br,0x5,32x6,5,16,18,19,5,7,8,4x2,br,0x4,34,33,34,33,34,33,7,8,4x2,7,9,3,14,8,9,3,br,0x6,33x6,8,9,3,15x2,19,12,br,0x8,33x6,16,18,19,br,br,br,br,br,br,0x9,32,0,32,0,32,0,14,br,0x7,32x6,15x2,19,12,5,br,0x5,32x6,5,16,18,19,5,7,8,4x2,br,0x4,34,33,34,33,34,33,7,8,4x2,7,9,3,14,8,9,3,br,0x6,33x6,8,9,3,15x2,19,12,br,0x8,33x6,16,18,19,br,br,br,br,br,br,0x9,29,0,29,0,29,0,14,br,0x7,29x6,15x2,19,12,5,br,0x5,29x6,5,16,18,19,5,7,8,4x2,br,0x4,31,30,31,30,31,30,7,8,4x2,7,9,3,14,8,9,3,br,0x6,30x6,8,9,3,15x2,19,12,br,0x8,30x6,16,18,19,br,br,br,br,br,br,br,0x9,35,0,35,0,35,0,5,br,0x7,35x6,14,7,8,4x2,br,0x5,35x6,15x2,19,12,14,8x2,4,14,br,0x4,37,36,37,36,37,36,16,18,19,5,16,18,12,15x2,19,12,br,0x6,36x6,7,8,4x2,16,18,19,br,0x8,36x6,8,9,3,br,br,br,br,br,br,0x9,29,0,29,0,29,0,14,br,0x7,29x6,15x2,19,12,5,br,0x5,29x6,5,16,18,19,5,7,8,4x2,br,0x4,31,30,31,30,31,30,7,8,4x2,7,9,3,14,8,9,3,br,0x6,30x6,8,9,3,15x2,19,12,br,0x8,30x6,16,18,19,br,br,br,br,br,br,0x9,29,0,29,0,29,0,5,br,0x7,29x6,14,7,8,4x2,br,0x5,29x6,15x2,19,12,39x3,4,14,br,0x4,31,30,31,30,31,30,16,18,19,39x4,15x2,19,12,br,0x6,30x6,7,8,39,4,16,18,19,br,0x8,30x6,8,9,3,br,br,br,br,br,br,br,0x9,29,0,29,0,29,0,5,br,0x7,29x6,14,7,8,4x2,br,0x5,29x6,15x2,19,12,39x3,4,14,br,0x4,31,30,31,30,31,30,16,18,19,39x4,15x2,19,12,br,0x6,30x6,7,8,39,4,16,18,19,br,0x8,30x6,8,9,3,br,br,br,br,br,br,0x9,29,0,29,0,29,0,5,br,0x7,29x6,14,7,8,4x2,br,0x5,29x6,15x2,19,12,14,8x2,4,14,br,0x4,31,30,31,30,31,30,16,18,19,5,16,18,12,15x2,19,12,br,0x6,30x6,7,8,4x2,16,18,19,br,0x8,30x6,8,9,3,br,br,br,br,br,br,0x9,34,0,34,0,29,0,14,br,0x7,34x3,32,34x2,38,15,19,12,5,br,0x5,34x3,33,34x2,38x5,7,8,4x2,br,0x4,34x3,33,34x2,38x7,14,8,9,3,br,0x6,34x3,33x2,34,38x3,15x2,19,12,br,0x8,33,34x3,31x2,16,18,19,br,br,br,br,br,br,br,0x9,35,0,37,0,35,0,23,br,0x7,37x2,36,37x3,23,24,21,24,23,br,0x5,37x4,36,37,23,24,23x2,24,23x2,22,23,br,0x4,37x2,36,35,37x2,21x2,24,22,23,24,23,25,22,23x2,br,0x6,37x3,35,37x2,22,21,23,21,24,25x2,br,0x8,37,36,37x3,36,21,28x2,br,br,br,br,br,br,0x9,29,0,29,0,29,0,14,br,0x7,29x6,15x2,19,12,5,br,0x5,29x6,5,16,18,19,5,7,8,4x2,br,0x4,31,30,31,30,31,30,7,8,4x2,7,9,3,14,8,9,3,br,0x6,30x6,8,9,3,15x2,19,12,br,0x8,30x6,16,18,19,br,br,br,br,br,br,0x9,29,0,29,0,29,0,5,br,0x7,29x6,14,7,8,4x2,br,0x5,29x6,15x2,19,12,39x3,4,14,br,0x4,31,30,31,30,31,30,16,18,19,39x4,15x2,19,12,br,0x6,30x6,7,8,39,4,16,18,19,br,0x8,30x6,8,9,3,br,br,br,br,br,br,br,0x9,29,0,29,0,29,0,5,br,0x7,29x6,14,7,8,4x2,br,0x5,29x6,15x2,19,12,14,8x2,4,14,br,0x4,31,30,31,30,31,30,16,18,19,5,16,18,12,15x2,19,12,br,0x6,30x6,7,8,4x2,16,18,19,br,0x8,30x6,8,9,3";
world_txtB = "br,br,0x15,49,br,0x14,43,1x3,br,0x10,67,1,40,1,44,1x5,br,0x10,1x9,54,52,br,0x11,71,1x2,45,46,1,48,56,br,0x14,48,47,48,br,br,br,br,br,br,0x15,62,br,0x13,1,62x4,br,0x11,64,0,1x2,62x5,br,0x10,62x2,1,62x3,58,62x4,br,0x10,68,76,62x2,63,62x4,br,0x14,62x3,br,br,br,br,br,br,br,0x15,45,br,0x11,72,0,48,1x2,50,1,0,70,br,0x11,1x9,br,0x10,1x6,59,1x2,45,1,br,0x12,1x7,74,br,0x14,1x3,br,br,br,br,br,br,0x15,45,br,0x11,72,0,48,1x2,50,1,0,70,br,0x11,1x2,66x2,65,1x4,br,0x10,1x3,66x2,65,59,1x2,45,1,br,0x12,1,65x2,66,44,1x2,74,br,0x12,76,0,1x3,br,br,br,br,br,br,0x13,72,0,49,br,0x13,1x3,50,49,0,73,br,0x10,72,1,48,1x2,60,1x2,46,49,br,0x10,49x2,1x5,49x3,48,br,0x12,1x3,0,77,47,45,br,0x14,40,1,57,br,br,br,br,br,br,br,0x15,48,br,0x12,72,48,50,48x2,1,73,br,0x11,47,50,1,61,45,48,50,1x2,br,0x10,50,46,48,1x8,br,0x11,76,1x7,br,0x13,71,1x3,br,br,br,br,br,br,0x15,1,br,0x14,43,1x3,br,0x10,67,1,42,1x7,br,0x10,1x4,66,65,66,1x2,53,51,br,0x11,76,1x2,65,1x3,55,0,74,br,0x14,1x3,br,br,br,br,br,br,0x15,49,br,0x14,43,1,47,1,br,0x10,72,1,41,1,44,1x5,br,0x10,48,1x10,69,br,0x12,1x5,57,1,br,0x14,1x3,br,br,br,br,br,br,br,0x13,75,0,49,br,0x14,43,1,47,1,br,0x10,72,1,41,1,44,1x5,br,0x10,48,1x10,69,br,0x12,1x5,57,1,0x3,1x2,br,0x14,1x3,0x7,1x2,br,0x26,1x2,br,0x28,1x2,br,0x30,1,br,br,br,0x15,1,br,0x13,1x2,54,52,1,br,0x10,67,1x3,55,1x2,53,51x2,br,0x10,1x6,55x2,53,1x2,br,0x11,71,1x3,0,43,1x2,br,0x14,40,1x2,br,br,br,br,br,br,0x13,72,0,57,0,70,br,0x13,1x3,57,1,br,0x10,72,1x6,65x2,1,br,0x10,50,1x4,65x2,1x3,46,br,0x10,71,0,1,66,65,1x2,0,43,69,br,0x13,71,1x2,40,br,br,br,br,br,br,br,0x15,1,br,0x13,1x5,br,0x9,75,0,1x9,br,0x9,76,1x11,br,0x12,1x7,br,0x14,1x3,br,br,br,br,br,br,0x15,1,br,0x14,43,1x3,br,0x10,67,1,42,1x7,br,0x10,1x4,66,65,66,1x2,53,51,br,0x12,1x2,65,1x3,55,0,74,br,0x14,1x3,br,br,br,br,br,br,0x13,75,0,49,br,0x14,43,1,47,1,br,0x10,72,1,40,1,44,1x5,br,0x10,48,1x10,69,br,0x11,76,1x5,57,1,0x5,66x2,br,0x14,1x3,br,br,br,br,br,br,br,0x15,1,br,0x12,75,1x2,54,52,1,br,0x10,67,1x3,55,1x2,53,51x2,br,0x10,1x6,55x2,53,1x2,br,0x11,71,1x3,0,43,1x2,br,0x13,76,40,1x2";
world_tilesA = importtiles(world_txtA);
world_tilesB = importtiles(world_txtB);
tiledata = new Array();
tmp = 38;
tiledata[tmp] = {under:1};
tiledata[tmp + 1] = {table:1, under:1};
tmp = tmp + 2;
tiledata[tmp] = {sitx:4, sity:-3, over:1};
tiledata[tmp + 1] = {sitx:4, sity:-3, over:1};
tiledata[tmp + 2] = {sitx:4, sity:-3, over:1};
tiledata[tmp + 3] = {sitx:-4, sity:3};
tiledata[tmp + 4] = {xstate:"sit"};
tmp = tmp + 5;
tiledata[tmp] = {blockx:1};
tiledata[tmp + 1] = {blockx:1};
tiledata[tmp + 2] = {blockx:1};
tiledata[tmp + 3] = {blockx:1};
tiledata[tmp + 4] = {blockx:1};
tiledata[tmp + 5] = {blockx:1};
tmp = tmp + 6;
tiledata[tmp] = {sity:-5, under:1};
tiledata[tmp + 1] = {sity:-5, under:1};
tiledata[tmp + 2] = {sity:-5, under:1};
tiledata[tmp + 3] = {sity:-5, under:1};
tiledata[tmp + 4] = {sity:-5, under:1};
tiledata[tmp + 5] = {sity:-5, under:1};
tiledata[tmp + 6] = {blockx:1};
tmp = tmp + 7;
tiledata[tmp] = {blockx:1};
tiledata[tmp + 1] = {blockx:1};
tiledata[tmp + 2] = {blockx:1};
tiledata[tmp + 3] = {blockx:1};
tmp = tmp + 4;
tiledata[tmp] = {table:1, under:1};
tiledata[tmp + 1] = {under:1};
tiledata[tmp + 2] = {under:1, blockx:1};
tmp = tmp + 3;
tiledata[tmp] = {under:1};
tiledata[tmp + 1] = {under:1};
tmp = tmp + 2;
tiledata[tmp] = {blockstate:"doorslocked", blocktxt:"trydoor"};
tiledata[tmp + 1] = {blockstate:"doorslocked", blocktxt:"trydoor"};
tiledata[tmp + 2] = {blockstate:"doorslocked", blocktxt:"trydoor", animnw:1};
tiledata[tmp + 3] = {blockstate:"doorslocked", blocktxt:"trydoor", animne:1};
tiledata[tmp + 4] = {gstateswnx:"window", forceout:"sw"};
tiledata[tmp + 5] = {gstatesenx:"window", forceout:"se"};
tiledata[tmp + 6] = {gstatenenx:"window", forceout:"ne", over:1};
tiledata[tmp + 7] = {gstatenwnx:"window", forceout:"nw", over:1};
tiledata[tmp + 8] = {gstatese:"enterexitwall", forceout:"se"};
tiledata[tmp + 9] = {gstatesw:"enterexitwall", forceout:"sw"};
tiledata[tmp + 10] = {blockx:1};
world_map = new Array();
world_map[0] = [{desc:"start", snd:"internet"}, {desc:"cyan", snd:"tears"}, {desc:"magenta", snd:"blood"}, {desc:"magentablood", snd:"bloodloss"}, {desc:"yellow", snd:"pee"}, {desc:"black", snd:"depression"}, {desc:"lab", snd:"procedure"}, {desc:"boy", snd:"romance"}, {desc:"postboy", snd:"lonliness"}, {desc:"family", snd:"internet"}, {desc:"hub", snd:"ethereal"}, {desc:"monster", snd:"insanity"}, {desc:"cleanlab", snd:"procedure"}, {desc:"boy", snd:"lonliness"}, {desc:"family", snd:"ethereal"}];
world_text = new Array();
world_text[0] = [{precut:"unabletoleave", func:"change_world", funcpass:"trydoor,1"}, "hikki::fear::I... I just can't."];
world_text[1] = {cut:"unabletoleave"};
world_interactA = new Array();
world_interactB = new Array();
var i = 0;
while (i < 170) {
world_interactB[i] = new Array();
i++;
}
world_interactB[6][11] = {tx:108, ty:11, l:1, lock:1, locktxt:3};
world_interactB[17][11] = {tx:93, ty:13, l:1, func:"exitcyan"};
world_interactB[26][11] = {tx:64, ty:13, l:1};
world_interactB[29][19] = {tx:47, ty:13, l:1};
world_interactB[37][11] = {tx:64, ty:13, l:1};
world_interactB[40][19] = {tx:47, ty:13, l:1};
world_interactB[41][12] = {tx:130, ty:9, l:1};
world_interactB[47][13] = {tx:29, ty:19, l:1};
world_interactB[49][10] = {tx:60, ty:18, l:1};
world_interactB[60][18] = {tx:49, ty:10, l:1};
world_interactB[64][13] = {tx:26, ty:11, l:1};
world_interactB[63][11] = {tx:74, ty:11, l:1};
world_interactB[74][11] = {tx:63, ty:11, l:1};
world_interactB[74][20] = {tx:83, ty:10, l:1};
world_interactB[142][20] = {tx:83, ty:10, l:1};
world_interactB[83][10] = {tx:117, ty:10, l:1};
switchroom_boy = "B,74,20,95,10,1,B,142,20,95,10,1";
world_interactB[95][10] = {tx:74, ty:20, l:1};
world_interactB[93][13] = {tx:17, ty:11, l:1, func:"entercyan"};
world_interactB[108][11] = {tx:119, ty:10, l:1};
world_interactB[115][13] = {tx:120, ty:13, l:1};
world_interactB[117][10] = {tx:74, ty:20, l:1};
switchroom_lab = "B,117,10,74,20,1";
switchroom_lab2 = "B,117,10,142,20,1";
world_interactB[119][10] = {tx:115, ty:13, l:1};
world_interactB[120][13] = {tx:117, ty:10, l:1};
world_interactB[129][9] = {tx:130, ty:9, l:1};
world_interactB[130][9] = {tx:129, ty:9, l:1};
world_interactB[153][11] = {tx:41, ty:12, l:1};
world_interactB[151][10] = {lock:1};
world_interactB[166][13] = {tx:149, ty:13, l:1};
world_interactB[165][11] = {lock:1};
world_interactB[16][16] = {touch:11};
cwell_fill = "B,16,16,3,11";
cwell_empty = "B,16,16,3,12";
cwell_loli = "B,16,16,3,45";
cwell_destroy = "B,16,16,3,-1";
world_text[11] = {cut:"crankc", func:"change_world", funcpass:"cwell,0,cjuice,1", func2:"locks", func2pass:cwell_empty};
world_text[12] = [0, "hikki::mono::This well is empty.", "hikki::mono::I will ignore the strangeness of a well being in a room and instead focus on how to fill it."];
world_text[45] = [0, "loli::curious::I wonder what this stuff tastes like.", "loli::taste::...", "loli::smile::Tastes blue."];
world_interactB[28][16] = {touch:14};
world_interactB[39][16] = {touch:14};
mwell_fill = "B,28,16,3,13,B,39,16,3,13";
mwell_empty = "B,28,16,3,14,B,39,16,3,14";
mwell_destroy = "B,28,16,3,-1,B,39,16,3,-1";
world_text[13] = {cut:"crankm", func:"change_world", funcpass:"mwell,0,mjuice,1", func2:"locks", func2pass:mwell_empty};
world_text[14] = [0, "hikki::mono::This well is empty.", "hikki::mono::I wonder what lies below such a well."];
world_interactB[49][15] = {touch:15};
ywell_fill = "B,49,15,3,15";
ywell_empty = "B,49,15,3,16";
ywell_destroy = "B,49,15,3,-1";
world_text[15] = {cut:"cranky", func:"change_world", funcpass:"ywell,0,bigbottle,0,yjuice,1", func2:"locks", func2pass:ywell_empty};
world_text[16] = [0, "hikki::mono::This well is empty.", "hikki::mono::I'm somewhat relieved."];
world_interactB[61][14] = {touch:17};
kwell_fill = "B,61,14,3,17";
kwell_empty = "B,61,14,3,18";
kwell_loli = "B,61,14,3,46";
kwell_destroy = "B,61,14,3,-1";
world_text[17] = {cut:"crankk", func:"change_world", funcpass:"kwell,0,kjuice,1", func2:"locks", func2pass:kwell_empty};
world_text[18] = [0, "hikki::mono::This well is empty.", "hikki::mono::The emptiness of this well reflects the emptiness inside myself.", "hikki::mono::Ello-Ell."];
world_text[46] = [0, "loli::laugh::AHAHA, It smells like farts!"];
world_interactB[17][14] = {touch:40};
destroy_pee = "B,17,14,3,-1";
world_text[40] = [{minigame:"pee", func:"locks", funcpass:destroy_pee}, "hikki::mono::An empty bottle, just what I need."];
world_interactB[71][13] = {touch:10};
world_interactB[139][13] = {touch:10};
destroy_lab = "B,71,13,3,-1,B,139,13,3,-1";
rebuild_lab = "B,71,13,3,10,B,139,13,3,10";
world_text[10] = {minigame:"lab"};
world_interactB[109][16] = {touch:6};
destroy_comp = "B,109,16,3,-1";
world_text[6] = [{func:"locks", funcpass:destroy_comp}, "hikki::mono::The internet isn't working in here either."];
world_interactB[107][16] = {touch:7};
world_interactB[107][17] = {touch:7};
world_interactB[107][18] = {touch:7};
world_interactB[106][17] = {touch:7};
world_interactB[106][18] = {touch:7};
world_interactB[106][19] = {touch:7};
destroy_beds = "B,107,16,3,-1,B,107,17,3,-1,B,107,18,3,-1,B,106,17,3,-1,B,106,18,3,-1,B,106,19,3,-1";
world_text[7] = [{func:"locks", funcpass:destroy_beds}, "hikki::mono::This is the room of a family."];
world_interactB[119][13] = {touch:8};
world_interactB[119][14] = {touch:8};
world_interactB[118][15] = {touch:8};
world_interactB[118][16] = {touch:8};
world_interactB[117][17] = {touch:8};
world_interactB[117][18] = {touch:8};
destroy_blood = "B,119,13,3,-1,B,119,14,3,-1,B,118,15,3,-1,B,118,16,3,-1,B,117,17,3,-1,B,117,18,3,-1";
world_text[8] = [{func:"locks", funcpass:destroy_blood}, "hikki::fear::Blood."];
world_sprites = new Array();
sub_hikki = (world_sprites[0] = new Array());
sub_dad = (world_sprites[1] = new Array());
sub_boy = (world_sprites[2] = new Array());
sub_you = (world_sprites[3] = new Array());
sub_dog = (world_sprites[4] = new Array());
sub_hand1 = (world_sprites[5] = new Array());
sub_hand2 = (world_sprites[6] = new Array());
sub_hand3 = (world_sprites[7] = new Array());
sub_you2 = (world_sprites[8] = new Array());
sub_hand4 = (world_sprites[9] = new Array());
sub_numbers = {hikki:0, dad:1, boy:2, you:3, dog:4, hand1:5, hand2:6, hand3:7, you2:8, hand4:9};
sub_hikki.push({tx:4, ty:14, state:1, l:1, gchar:"hikki", gstate:"stand", gdir:"ne", spd:0, pdelay:-1});
sub_hikki.push({pa:2});
sub_hikki.push({});
sub_hikki.push({statejump:1, tx:108, ty:11, l:1});
world_text[2] = [0, "hikki::mono::It's safe to say that at this point in time I've lost my grip on reality.", "hikki::mono::Following the course my life has taken it's not hard to pin-point this moment.", "hikki::mono::Some might say the moment was 4 years ago when I stopped leaving my room.", "hikki::mono::Or 4 months ago when my mother stopped speaking to me.", "hikki::mono::Or even 4 days ago when food was no longer being left outside my door.", "hikki::mono::But truly it was 4 minutes ago that I lost my mind.", "hikki::mono::It's been 4 minutes since I lost internet access."];
world_text[3] = [{func:"locks", funcpass:"B,6,11,2,4"}, "hikki::mono::Hmmm, what floor was it that we live on?", "hikki::mono::The 44th?", "hikki::sarcasm::I should lay off the numerology.", "hikki::mono::Anyways we're very high up...", "hikki::mono::I should be prepared for the consequences of leaping from the window of a highrise apartment."];
world_text[4] = [{func2:"advancestates", func2pass:"hikki", func:"locks", funcpass:"B,6,11,2,-1", cut:"window"}, "hikki::mono::Oh well, I suppose death is better than not having the internet."];
sub_hikki.push({pa:5, pzone:"108,12"});
world_text[5] = [{precut:"damage"}, "hikki::mono::I'm alive.", "hikki::mono::...", "hikki::mono::Where am I?"];
sub_hikki.push({});
sub_hikki.push({statejump:1, tx:71, ty:17, l:1, gdir:"ne"});
sub_hikki.push({});
sub_hikki.push({ws:1, tx:62, ty:15, l:1, gdir:"se"});
sub_hikki.push({});
sub_you.push({tx:117, ty:11, state:1, l:1, gchar:"zombie", gstate:"stand", gdir:"nw", spd:0});
sub_you.push({tx:117, ty:11, dir:"nw"});
sub_you.push({tx:74, ty:20, pa:29});
world_text[29] = {func:"warps", funcpass:switchroom_lab2};
sub_you.push({statejump:1, tx:73, ty:16, l:1, gstate:"dead"});
sub_you.push({touchx:32});
world_text[32] = [0, "zombie::dead::"];
sub_hand2.push({tx:64, ty:15, state:1, l:1, gchar:"hand", gstate:"limp", gdir:"ne", spd:0});
sub_hand2.push({touchx:19, touchskip:1});
sub_hand2.push({touchx:20});
world_text[19] = [0, "coldhand::::I don't care for anything or love anyone.", "hikki::sarcasm::That's quite the interesting thing to say.", "coldhand::::I don't think you think that.", "hikki::sarcasm::I'm sure no one gets anything passed empathy of that calibre.", "coldhand::::You've made me feel confused, stupid, and emotionally inept.", "coldhand::::I will hate you forever.", "hikki::regret::"];
world_text[20] = [0, "coldhand::::Forever."];
sub_hand2.push({ws:1, tx:63, ty:18, l:1});
sub_hand2.push({touchx:26, touchskip:1});
sub_hand2.push({touchx:27});
world_text[26] = [0, "coldhand::::This is all your fault.", "hikki::bloody::I'm sorry.", "coldhand::::I will never forgive you."];
world_text[27] = [0, "coldhand::::Never."];
sub_hand3.push({tx:62, ty:19, state:1, l:1, gchar:"hand", gstate:"erect", gdir:"ne", spd:0});
sub_hand3.push({touchx:21, touchskip:1});
sub_hand3.push({touchx:22});
world_text[21] = [0, "hand::::Hey.", "hikki::mono::Hi.", "hand::::You have pretty hands.", "hikki::smile::Thanks, that means alot coming from you.", "hand::::Why's that?", "hikki::unsure::Uh, well... It seemed like the appropriate response.", "hand::::Haha, that's cool. I do that sometimes too."];
world_text[22] = [0, "hand::::Hey again.", "hikki::smile::Hey!", "hand::::What's up?", "hikki::smile::Not much.", "hand::::That's cool."];
sub_hand3.push({ws:1, tx:62, ty:19, l:1});
sub_hand3.push({touchx:28, touchskip:1});
sub_hand3.push({});
world_text[28] = [0, "hand::::I don't think we can be friends anymore.", "hikki::bloody::I'm really sorry.", "hand::::Yeah... I know."];
sub_hand4.push({tx:1, ty:30, state:1, l:1, gchar:"hand", gstate:"erect", gdir:"ne", spd:0});
sub_hand4.push({});
sub_hand1.push({tx:63, ty:16, state:1, l:1, gchar:"hand", gstate:"erect", gdir:"ne", spd:0});
sub_hand1.push({touchx:23, touchskip:1});
sub_hand1.push({touchx:24});
world_text[23] = [{minigame:"hands"}, "hand::::Would you like to play a game?", "hikki::smile::I love playing g-", "hand::::Don't answer that any further, we will play this game.", "hikki::unsure::Kay.", "hand::::And then post-game, that is, once the game has been played...", "hand::::I will have you affirm whether or not you would have chosen to play it.", "hand::::Consider this a beta-test."];
world_text[24] = [{minigame:"hands"}, "hand::::Well *sigh*, let's try again."];
sub_hand1.push({ws:1, tx:63, ty:16, l:1, gstate:"dead"});
sub_hand1.push({touchx:25, touchskip:1});
sub_hand1.push({});
world_text[25] = [0, "hikki::bloody::I guess it was ok for a memorization game."];
sub_boy.push({tx:83, ty:14, state:1, l:1, gchar:"boy", gstate:"sitsuck", gdir:"ne", spd:0});
sub_boy.push({touchx:30, tstate:"spstand", tdir:"face", touchskip:1});
world_text[30] = [{precut:"meetboy", func:"advancestates", funcpass:"you2", func2:"change_world", func2pass:"alchemy,1"}, "hikki::mono::Whoa dude, what are you doing?", "boy::shock::Ah!?", "boy::shock::What?!", "boy::shock::Who are-!?", "boy::shock::What are you doing in my room?!?!", "hikki::smile::Just passing through.", "hikki::sarcasm::So... your hands are penises, huh?", "boy::mad::Yeah! What of it?!", "hikki::regret::Uh, nothing... sorry.", "boy::mad::I don't have time for you! I have a keyboard to tap!"];
sub_boy.push({gstate:"sittap", touchx:31});
world_text[31] = [0, "hikki::mono::(His internet works.)"];
sub_dad.push({tx:72, ty:15, state:1, l:1, gchar:"dad", gstate:"stand", gdir:"ne", spd:0});
sub_dad.push({tx:72, ty:15, dir:"ne"});
sub_dad.push({tx:63, ty:11, statejump:2});
sub_dad.push({statejump:1, tx:1, ty:30, l:1});
sub_dog.push({tx:1, ty:30, state:1, l:1, gchar:"dog", gstate:"stand", gdir:"ne", spd:0});
sub_you2.push({tx:1, ty:30, state:1, l:1, gchar:"zombie", gstate:"dead", gdir:"nw", spd:0});
sub_you2.push({});
sub_you2.push({statejump:1, tx:141, ty:16, l:1});
sub_you2.push({touchx:9});
world_text[9] = [{cut:"meetdad", func:"advancestates", funcpass:"hikki", func2:"warps", func2pass:switchroom_lab}, "zombie::dead::", "hikki::mono::She looks like me.", "zombie::dead::", "hikki::mono::Except dead."];
sub_you.push({ws:2, l:1, tx:73, ty:16, gstate:"dead"});
sub_you.push({touchx:32});
sub_dog.push({ws:2, tx:1, ty:30, l:1});
sub_dog.push({});
sub_hand1.push({ws:2, tx:63, ty:16, l:1, gstate:"dead"});
sub_hand1.push({});
sub_hand2.push({ws:2, tx:63, ty:18, l:1});
sub_hand2.push({touchx:33, touchskip:1});
sub_hand2.push({});
world_text[33] = [0, "coldhand::::What do you want, MURDERER?", "hikki::mouthless::..."];
sub_hand3.push({ws:2, tx:62, ty:19, l:1});
sub_hand3.push({touchx:34, touchskip:1});
sub_hand3.push({});
world_text[34] = [0, "hikki::mouthless::...", "hand::::Um, hey?", "hikki::mouthless::...", "hand::::What is this? You're creeping me out.", "coldhand::::You're only just now noticing that she's a creep?", "hikki::mouthless::...", "hand::::Oh wait, I see.. she can't speak because her mouth is gone.", "hikki::mouthless::...", "coldhand::::Haha, what? You can't speak without a mouth?", "hikki::mouthless::...", "coldhand::::What a loser."];
sub_dad.push({ws:2, tx:1, ty:30, l:1});
sub_dad.push({});
sub_hikki.push({ws:2, tx:72, ty:14, l:1, gstate:"stand", gdir:"nw"});
sub_hikki.push({pa:35});
sub_hikki.push({});
world_text[35] = [{func:"locks", funcpass:destroy_lab}, "hikki::mouthlessshock::(My mouth! My mouth is gone!)", "hikki::mouthless::(Well really it's not that big of a deal.)", "hikki::mouthless::(Communication with other people is a bother.)", "hikki::mouthless::(Yeah, who needs a face valve!)", "hikki::mouthless::(I'm bored.)"];
sub_boy.push({ws:2, tx:83, ty:14, l:1, gstate:"sit"});
sub_boy.push({touchx:36, tdir:"face"});
world_text[36] = [{cut:"mouthtransfer", func:"advancestates", funcpass:"boy", func2:"locks", func2pass:rebuild_lab, canul:0, canur:0, candl:0, candr:0}, "hikki::mouthless::(I wonder if there's a way I could get him to let me borrow his internet.)", "hikki::mouthless::(I want to watch some anime or something.)", "boy::aggro::I know you're there.", "boy::aggro::Stop standing behind me. It's annoying.", "hikki::mouthless::(And yet you didn't notice me when you were auto-fellating.)", "boy::aggro::Quit trolling, I'm busy.", "hikki::mouthless::(Busy masturbating to porn.)", "boy::aggro::...", "hikki::mouthless::(Ugh, he won't even look back.)", "hikki::mouthless::(Hmmm...)", "hikki::mouthless::(Oh wait, I know what to do.)"];
sub_boy.push({pa:37, gstate:"spstand"});
sub_boy.push({});
world_text[37] = [{cut:"sexboy", func:"warps", funcpass:switchroom_boy, func2:"change_world", func2pass:"state,3,mwell,1,kwell,1,cwell,1,ywell,0"}, "boy::mouthlessmad::!%#&", "hikki::smile::Oh hey, my mouth is back. Cool.", "boy::mouthlessmad::%#&!", "hikki::regret::Sorry, I didn't realize doing that would transfer my problems onto you.", "hikki::regret::That's why people shouldn't get emotionally involved.", "boy::mouthlessmad::#&!%", "hikki::aggro::Jeez, I said I was sorry already.", "boy::mouthlesspenis::&!%#", "hikki::sarcasm::Ok, I know what must be done to repay you for the loss of your most precious mouth."];
sub_hand1.push({ws:3, tx:63, ty:16, l:1, gstate:"dead"});
sub_hand1.push({});
sub_hand2.push({ws:3, tx:63, ty:18, l:1});
sub_hand2.push({});
sub_hand3.push({ws:3, tx:62, ty:19, l:1});
sub_hand3.push({});
sub_dad.push({ws:3, tx:1, ty:30, l:1});
sub_dad.push({});
sub_hikki.push({ws:3, tx:96, ty:16, l:1, gdir:"nw"});
sub_hikki.push({});
sub_hikki.push({gdir:"sw"});
sub_hikki.push({gdir:"se"});
sub_boy.push({ws:3, tx:95, ty:16, l:1, gstate:"stand", gdir:"nw"});
sub_boy.push({pa:38});
world_text[38] = [{func:"advancestates", funcpass:"hikki", func3:"createarea", func2:"locks", func2pass:(((((mwell_fill + ",") + kwell_fill) + ",") + cwell_fill) + ",") + ywell_empty, canul:0, canur:0, candl:0, candr:0}, "boy::badass::Ha! Eat that you shadow jagoff!", "hikki::smile::Your mouth is back.", "boy::hands::My hands too!", "boy::badass::I feel great! This is the most alive I've ever felt.", "boy::badass::I want this feeling all the time.", "boy::confident::I think it's time I left this place and did wonderous things.", "hikki::smile::Can I come with you?", "boy::confident::Nope.", "hikki::sad::Why not?", "boy::confident::The way I feel right now isn't what you feel.", "boy::confident::So the world isn't open to you.", "boy::confident::I'll be going alone.", "hikki::regret::Goodbye then."];
sub_boy.push({tx:95, ty:16, dir:"se"});
sub_boy.push({tx:96, ty:18, dir:"sw"});
sub_boy.push({tx:95, ty:19, dir:"se"});
sub_boy.push({tx:96, ty:20, gstate:"stand", pa:39});
world_text[39] = [{canul:1, canur:1, candl:1, candr:1, func:"advancestates", funcpass:"hikki", func2:"createarea"}, "boy::goodbye::Don't die in here."];
sub_boy.push({tx:96, ty:20, dir:"se"});
sub_boy.push({tx:101, ty:30});
sub_hikki.push({ws:4, tx:72, ty:14, l:1, gstate:"stand", gdir:"nw"});
sub_hikki.push({});
sub_boy.push({ws:4, tx:1, ty:30, l:1});
sub_boy.push({});
sub_hikki.push({ws:5, tx:72, ty:14, l:1, gchar:"hikkipen", gstate:"stand", gdir:"nw"});
sub_hikki.push({pa:41});
world_text[41] = [0, "hikki::penis::Well this is awkward."];
sub_hikki.push({pzone:"95,14", pa:42});
world_text[42] = [{cut:"sexyou"}, "hikki::mono::All this trying to grow as an individual stuff is exhausting.", "hikki::mono::I'll just do some interwebs for a while..."];
sub_hand4.push({ws:5, tx:73, ty:10, l:1});
sub_hand4.push({});
wrp_chk = {labwin:"74,20", mag1:"26,11", mag2:"29,19", yel1:"47,13", yel2:"49,10", blk1:"60,18", blk2:"64,13", boy:"95,10", fam:"108,11", hub1:"115,13", hub2:"117,10", hub3:"119,10", hub4:"120,13"};
loli_shakeup = ((((((("B," + wrp_chk.labwin) + ",") + wrp_chk.hub3) + ",1,B,") + wrp_chk.hub3) + ",") + wrp_chk.labwin) + ",1,B,";
loli_shakeup = loli_shakeup + (((((((((((wrp_chk.hub2 + ",") + wrp_chk.fam) + ",1,B,") + wrp_chk.fam) + ",") + wrp_chk.boy) + ",1,B,") + wrp_chk.boy) + ",") + wrp_chk.hub2) + ",1,B,");
loli_shakeup = loli_shakeup + (((((((wrp_chk.hub1 + ",") + wrp_chk.mag1) + ",1,B,") + wrp_chk.mag1) + ",") + wrp_chk.hub1) + ",1,B,");
loli_shakeup = loli_shakeup + (((((((wrp_chk.mag2 + ",") + wrp_chk.blk1) + ",1,B,") + wrp_chk.blk1) + ",") + wrp_chk.mag2) + ",1,B,");
loli_shakeup = loli_shakeup + (((((((wrp_chk.hub4 + ",") + wrp_chk.blk2) + ",1,B,") + wrp_chk.blk2) + ",") + wrp_chk.hub4) + ",1,B,");
loli_shakeup = loli_shakeup + (((((((wrp_chk.blk1 + ",") + wrp_chk.mag2) + ",1,B,") + wrp_chk.mag2) + ",") + wrp_chk.blk1) + ",1");
sub_hand4.push({ws:6, tx:1, ty:30, l:1});
sub_hand4.push({});
sub_hikki.push({ws:6, tx:72, ty:14, l:1, gchar:"loli", gstate:"stand", gdir:"nw"});
sub_hikki.push({pa:43});
sub_hikki.push({});
world_text[43] = [{func:"warps", funcpass:loli_shakeup, func2:"locks", func2pass:(((((((((((((cwell_loli + ",") + mwell_destroy) + ",") + kwell_loli) + ",") + ywell_destroy) + ",") + destroy_lab) + ",") + destroy_beds) + ",") + destroy_comp) + ",") + destroy_blood}, "loli::shock::I'm a child again.", "loli::shock::What is this raw innocence I feel in my bones?!", "loli::laugh::LETS EXPLORE!"];
sub_dog.push({ws:6, tx:105, ty:15, l:1, gdir:"ne", gstate:"stand", forceinclude:1});
sub_dog.push({touchx:44, tdir:"face", touchskip:1});
world_text[44] = {cut:"meetdog"};
sub_dog.push({tx:105, ty:15, dir:"se"});
sub_dog.push({tx:106, ty:17, dir:"ne"});
sub_dog.push({tx:108, ty:13, dir:"nw"});
sub_dog.push({tx:108, ty:12, dir:"ne"});
sub_dog.push({tx:95, ty:10, dir:"se"});
sub_dog.push({tx:97, ty:14, gstate:"sit", gdir:"sw", touchx:47, touchskip:1});
world_text[47] = [0, "dog::squint::Heff. Heff. Heff.", "loli::smile::Dude, quit rubbin' your butt on the rug.", "dog::bark::ARF!"];
sub_dog.push({tx:97, ty:14, dir:"sw", gstate:"sit"});
sub_dog.push({tx:95, ty:17, dir:"nw"});
sub_dog.push({tx:17, ty:11, dir:"sw"});
sub_dog.push({tx:14, ty:17, dir:"nw"});
sub_dog.push({tx:13, ty:15, gstate:"bark", touchx:48, touchskip:1});
world_text[48] = [0, "dog::bark::ARF! ARF! ARF!", "loli::curious::What?", "dog::bark::ARF!", "loli::dumbfounded::I don't get it.", "dog::def::Heff. Heff."];
sub_dog.push({tx:13, ty:15, dir:"se"});
sub_dog.push({tx:15, ty:19, dir:"ne"});
sub_dog.push({tx:17, ty:15, dir:"nw"});
sub_dog.push({tx:16, ty:13, dir:"ne"});
sub_dog.push({tx:93, ty:13, dir:"se"});
sub_dog.push({tx:94, ty:15, dir:"ne"});
sub_dog.push({tx:95, ty:14, gdir:"nw", gstate:"sit", touchx:49, touchskip:1});
world_text[49] = [0, "dog::def::Heff. Heff.", "loli::laugh::Pffthaha, why are you watching people do it?", "dog::def::Heff. Heff.", "loli::smile::Don't worry dude, you'll understand some day maybe."];
sub_dog.push({tx:95, ty:14, dir:"ne", gstate:"jump"});
sub_dog.push({tx:96, ty:12, dir:"nw"});
sub_dog.push({tx:117, ty:10, dir:"se"});
sub_dog.push({tx:119, ty:14, dir:"sw"});
sub_dog.push({tx:117, ty:18, gstate:"bark", pdelay:3, pa:50});
world_text[50] = {};
sub_dog.push({tx:117, ty:18, dir:"ne"});
sub_dog.push({tx:119, ty:13, gstate:"sit", gdir:"se", touchx:51, touchskip:1});
sub_dog.push({pzone:"63,13,63,15,64,15", pa:50});
world_text[51] = [0, "dog::squint::Heeeff.. Heeeefffmmn...", "loli::smile::Hehe, you're makin' a totally weird noise.", "dog::squint::Heefmn!", "loli::laugh::You Scaredy-cat!"];
sub_dog.push({tx:119, ty:13, dir:"se"});
sub_dog.push({tx:120, ty:14, dir:"ne"});
sub_dog.push({tx:64, ty:13, dir:"sw"});
sub_dog.push({tx:63, ty:15, gstate:"stand", pdelay:3, pa:50});
sub_dog.push({tx:63, ty:15, dir:"se"});
sub_dog.push({tx:64, ty:16, dir:"sw"});
sub_dog.push({tx:63, ty:17, gstate:"stand", pdelay:2, pa:50});
sub_dog.push({tx:63, ty:17, dir:"ne", gdir:"sw"});
sub_dog.push({tx:64, ty:16, dir:"nw", gstate:"jump"});
sub_dog.push({tx:62, ty:13, gstate:"bark", pdelay:4, pa:50});
sub_dog.push({tx:62, ty:13, dir:"sw", gstate:"jump"});
sub_dog.push({tx:62, ty:14, dir:"se", gstate:"jump"});
sub_dog.push({tx:62, ty:15, dir:"sw", gstate:"jump"});
sub_dog.push({tx:62, ty:16, dir:"se", gstate:"jump"});
sub_dog.push({tx:62, ty:17, gstate:"stand", pdelay:3, pa:50});
sub_dog.push({tx:62, ty:17, dir:"sw"});
sub_dog.push({tx:61, ty:19, dir:"nw"});
sub_dog.push({tx:60, ty:17, dir:"sw"});
sub_dog.push({tx:29, ty:19, dir:"nw"});
sub_dog.push({tx:28, ty:17, dir:"sw"});
sub_dog.push({tx:27, ty:19, dir:"nw"});
sub_dog.push({tx:27, ty:18, gstate:"stand", gdir:"sw", pa:52});
sub_dog.push({});
world_text[52] = {func:"locks", funcpass:"B,28,16,3,53"};
wrp_chk.mag1 = "37,11";
wrp_chk.mag2 = "40,19";
post_loli = "B,41,12,74,11,1,B,";
post_loli = post_loli + (((((((wrp_chk.hub1 + ",") + wrp_chk.mag1) + ",1,B,") + wrp_chk.mag1) + ",") + wrp_chk.hub1) + ",1,B,");
post_loli = post_loli + (((((((wrp_chk.mag2 + ",") + wrp_chk.blk1) + ",1,B,") + wrp_chk.blk1) + ",") + wrp_chk.mag2) + ",1,B,");
post_loli = post_loli + (((((((wrp_chk.blk1 + ",") + wrp_chk.mag2) + ",1,B,") + wrp_chk.mag2) + ",") + wrp_chk.blk1) + ",1");
world_text[53] = [{cut:"sexdog", func:"change_world", funcpass:"state,7,kjuice,1,cjuice,1,mjuice,1,kwell,1,cwell,1,mwell,1", func2:"warps", func2pass:post_loli}, "loli::curious::I wonder how far down the well goes.", "loli::peer::...", "dog::bark::ARF!", "loli::shock::WAH!", "loli::smile::Don't scare me like that. I could have fallen in."];
sub_hikki.push({ws:7, tx:38, ty:17, l:1, gchar:"hikki", gstate:"stand", gdir:"ne"});
sub_hikki.push({pa:54});
sub_hikki.push({});
world_text[54] = [{func:"locks", funcpass:(((((((mwell_destroy + ",") + kwell_destroy) + ",") + cwell_destroy) + ",") + ywell_destroy) + ",") + rebuild_lab}, "hikki::tears::Oh right...", "hikki::tears::I remember now...", "hikki::tears::That was how he was, more or less."];
sub_dog.push({ws:7, tx:39, ty:15, l:1, gstate:"dead", forceinclude:0});
sub_dog.push({});
sub_dad.push({ws:7, tx:40, ty:13, l:1});
sub_dad.push({tx:40, ty:13, dir:"ne"});
sub_dad.push({tx:74, ty:11, statejump:2});
sub_dad.push({tx:1, ty:30, statejump:1});
sub_dad.push({});
sub_you.push({ws:8, tx:72, ty:14, l:1, gchar:"hikki", gstate:"dead"});
sub_you.push({touchx:55});
world_text[55] = [0, "hikki::dead::"];
sub_dad.push({ws:8, tx:130, ty:16, l:1, spd:0});
sub_dad.push({});
sub_hikki.push({ws:8, l:1, tx:73, ty:16, gchar:"zombie", gstate:"stand", gdir:"ne"});
sub_hikki.push({pa:56});
world_text[56] = [{precut:"damage", func:"locks", funcpass:"B,74,20,1,B,37,11,1,B,40,19,1,B,151,10,1,B,165,11,1", func2:"warps", func2pass:"B,74,11,162,12,1,B,41,12,130,9,1"}, "zombie::def::fault", "zombie::def::his fault", "zombie::def::his faults"];
sub_hikki.push({pa:57, pzone:"164,11,164,13,164,15,164,17,165,17"});
world_text[57] = [{precut:"damage"}, "zombie::def::alone"];
sub_hikki.push({pa:58, pzone:"165,12,165,14,165,16,166,16"});
world_text[58] = [0, "zombie::def::me alone"];
sub_hikki.push({pa:59, pzone:"165,13,165,15,166,15"});
world_text[59] = [0, "zombie::def::leave me alone"];
sub_hikki.push({pa:60, pzone:"166,14"});
world_text[60] = [{cut:"damage", func:"locks", funcpass:"B,152,21,3,62"}, "zombie::pain::dont leave me alone"];
sub_hikki.push({pa:61, pzone:"151,13,152,14,152,15,153,16"});
world_text[61] = [{precut:"damage", cut:"damage"}, "zombie::def::everyone leaves me", "zombie::def::even i left me"];
world_text[62] = [0, "zombie::pain::come back"];
sub_hikki.push({pa:64, pzone:"40,13"});
world_text[64] = [{cut:"damage"}, "zombie::pain::all his fault"];
sub_hikki.push({pa:65, pzone:"129,12,130,12,131,12"});
sub_hikki.push({});
world_text[65] = [{cut:"sexdad", func:"change_world", funcpass:"state,9,trydoor,1"}, "dad::::"];
sub_dad.push({ws:9, tx:116, ty:19, gchar:"blood", l:1, forceinclude:1});
sub_hikki.push({ws:9, l:1, tx:72, ty:15, gchar:"hikki", gstate:"stand", gdir:"sw"});
sub_hikki.push({pa:66});
sub_hikki.push({});
demon_warps = "B,74,11,49,10,1,B,47,13,119,10,1,B,115,13,129,9,1,B,130,9,6,11,1,B,17,11,49,10,1";
demon_locks = "B,74,20,1,B,49,10,1,B,119,10,1,B,117,10,1,B,120,13,1,B,129,0,1,B,6,11,1,B,6,11,3,-1";
world_text[66] = [{precut:"transition", canul:0, canur:0, candl:0, candr:0, func:"warps", funcpass:demon_warps, func2:"locks", func2pass:demon_locks}, "hikki::relief::I'm alive.", "hikki::relief::..."];
sub_you.push({ws:9, tx:1, ty:30, l:1, gchar:"demon", gstate:"stand", forceinclude:1, ignoreblocking:1});
sub_you.push({pdelay:2, pa:50});
sub_you.push({statejump:1, tx:72, ty:10, l:1, gstate:"invis"});
sub_you.push({tx:72, ty:10, gstate:"wall", dir:"se"});
sub_you.push({tx:72, ty:11, dir:"se"});
sub_you.push({tx:73, ty:12, pa:67});
world_text[67] = {cut:"meetyou", canul:1, canur:1, candl:1, candr:1};
sub_you.push({tx:73, ty:12, dir:"se", pushx:68});
sub_you.push({tx:74, ty:15, dir:"sw", pushx:68});
sub_you.push({tx:73, ty:18, dir:"nw", pushx:68});
sub_you.push({tx:72, ty:16, dir:"ne", pushx:68});
sub_you.push({tx:72, ty:15, pushx:68, pa:50, pdelay:3, gstate:"stand"});
sub_you.push({tx:75, ty:22, l:1, statejump:1});
sub_you.push({tx:75, ty:22, dir:"ne"});
sub_you.push({tx:76, ty:19, dir:"nw"});
sub_you.push({tx:75, ty:17, gstate:"wall", dir:"nw"});
sub_you.push({tx:75, ty:16, statejump:2, gstate:"invis"});
temp_sub2 = sub_you.push({tx:1, ty:30, l:1, statejump:1}) - 1;
sub_you.push({});
temp_sub = sub_hikki.push({statejump:1, l:1, tx:13, ty:15, gchar:"hikkiwater", gstate:"stand", gdir:"nw"}) - 1;
temp_sub3 = sub_dad.push({pzone:"49,11", pa:69}) - 1;
world_text[68] = [{cut:"damage", func:"advancestates", funcpass:"hikki,you,dad", func2pass:(((temp_sub + ",") + temp_sub2) + ",") + temp_sub3}, "demon::::Staaaay."];
temp_sub = sub_you.push({tx:48, ty:12, l:1, statejump:1, gstate:"invis"}) - 1;
world_text[69] = {sprite:sub_numbers.you, propname:"state", propval:temp_sub};
sub_you.push({tx:48, ty:12, gstate:"wall", dir:"se", pushx:68});
sub_you.push({tx:48, ty:13, dir:"se", pushx:68});
sub_you.push({tx:49, ty:14, dir:"ne", pushx:68});
sub_you.push({tx:50, ty:12, gstate:"stand", pa:50, pdelay:2, pushx:68});
sub_you.push({gdir:"se", pa:50, pdelay:2, pushx:68});
sub_you.push({gdir:"sw", pa:50, pdelay:2, pushx:68});
sub_you.push({gdir:"nw", pa:50, pdelay:2, pushx:68});
sub_you.push({tx:50, ty:12, gdir:"nw", dir:"se", pushx:68});
sub_you.push({tx:52, ty:16, gstate:"wall", dir:"nw", pushx:68});
sub_you.push({tx:51, ty:15, statejump:2, gstate:"invis"});
sub_you.push({tx:1, ty:30, l:1, statejump:1});
sub_you.push({});
temp_sub = sub_you.push({tx:118, ty:10, l:1, statejump:1, gstate:"invis"}) - 1;
sub_dad.push({pzone:"119,10", pa:72});
world_text[72] = {sprite:sub_numbers.you, propname:"state", propval:temp_sub};
sub_you.push({tx:118, ty:10, gstate:"wall", dir:"sw", pushx:68});
sub_you.push({tx:117, ty:11, dir:"sw", pushx:68});
sub_you.push({tx:116, ty:14, gstate:"stand", pushx:68, pa:70});
sub_you.push({pushx:68});
world_text[70] = {func:"locks", funcpass:"B,116,19,3,71"};
world_text[71] = [{func:"advancestates", funcpass:"you", func2:"locks", func2pass:"B,116,19,3,-1"}, "hikki::tears::Isn't this enough already?", "hikki::tears::I want to live again.", "hikki::tears::Why won't she let me leave?", "hikki::sad::The blood is sticking to my feet."];
sub_you.push({tx:116, ty:14, gstate:"wall", dir:"ne"});
sub_you.push({tx:116, ty:13, statejump:2, gstate:"invis"});
sub_you.push({tx:1, ty:30, l:1, statejump:1});
sub_you.push({});
sub_hand1.push({ws:9, tx:127, ty:15, l:1, gchar:"demon", gstate:"stand", gdir:"sw"});
sub_hand2.push({ws:9, tx:128, ty:15, l:1, gchar:"demon", gstate:"stand", gdir:"sw"});
sub_hand3.push({ws:9, tx:129, ty:15, l:1, gchar:"demon", gstate:"stand", gdir:"sw"});
sub_hand4.push({ws:9, tx:130, ty:15, l:1, gchar:"demon", gstate:"stand", gdir:"se"});
sub_dog.push({ws:9, tx:131, ty:15, l:1, gchar:"demon", gstate:"stand", gdir:"se"});
sub_you2.push({ws:9, tx:132, ty:15, l:1, gchar:"demon", gstate:"stand", gdir:"se"});
sub_hand1.push({pushx:68});
sub_hand2.push({pushx:68});
sub_hand3.push({pushx:68});
sub_hand4.push({pushx:68});
sub_dog.push({pushx:68});
sub_you2.push({pushx:68});
temp_sub = sub_you.push({tx:3, ty:13, l:1, statejump:1, gstate:"invis"}) - 1;
sub_dad.push({pzone:"6,12", pa:73});
world_text[73] = {sprite:sub_numbers.you, propname:"state", propval:temp_sub, func:"change_world", funcpass:"trydoor,75"};
world_text[74] = {sprite:sub_numbers.you, propname:"state", propval:temp_sub};
sub_you.push({tx:3, ty:13, gstate:"wall", dir:"se", pushx:68});
sub_you.push({tx:4, ty:14, dir:"se", pushx:68});
sub_you.push({tx:4, ty:15, gstate:"stand", pushx:68, statejump:2});
sub_you.push({tx:6, ty:20, l:1, statejump:1, gstate:"invis"});
sub_you.push({tx:6, ty:20, gstate:"wall", dir:"nw", pushx:68});
sub_you.push({tx:5, ty:19, dir:"nw", pushx:68});
sub_you.push({tx:5, ty:18, gstate:"stand", pushx:68, statejump:2});
sub_you.push({tx:3, ty:4, l:1, statejump:1, gstate:"invis"});
sub_you.push({tx:3, ty:4, gstate:"wall", dir:"se", pushx:68});
sub_you.push({tx:3, ty:5, dir:"se", pushx:68});
sub_you.push({tx:4, ty:6, gstate:"stand", pushx:68, statejump:2});
sub_you.push({tx:3, ty:19, l:1, statejump:1, gstate:"invis"});
sub_you.push({tx:3, ty:19, gstate:"wall", dir:"ne", pushx:68});
sub_you.push({tx:4, ty:18, dir:"ne", pushx:68});
sub_you.push({tx:4, ty:17, gstate:"stand", pushx:68, statejump:2});
sub_you.push({tx:7, ty:14, l:1, statejump:1, gstate:"invis"});
sub_you.push({tx:7, ty:14, gstate:"wall", dir:"nw", pushx:68});
sub_you.push({tx:6, ty:13, dir:"nw", pushx:68});
sub_you.push({tx:6, ty:12, gstate:"stand", pushx:68, pa:74});
world_text[75] = [{cut:"abletoleave"}, "hikki::fear::This fear is so strong.", "hikki::fear::And my doubts say escaping from here will be no different than escaping from there.", "hikki::teary::So I...", "hikki::tearysmile::So I might as well!"];
world_state = {state:0, hidetiles:0, doorslocked:1, trydoor:0, glass:0, cjuice:0, mjuice:0, yjuice:0, kjuice:0, cwell:1, mwell:0, ywell:1, kwell:1, minibottle:0, bigbottle:1, alchemy:0, mouthd:0, lolid:0};
tlradius = {r:0, l:0, u:0, d:0};
tilep = {w:48, h:24, zoom:150};
tilep.stagew = (100 / tilep.zoom) * Stage.width;
tilep.stageh = (100 / tilep.zoom) * Stage.height;
tilep.halfw = tilep.w / 2;
tilep.halfh = tilep.h / 2;
tilep.hh = tilep.halfh / 2;
tileradius.l = (tileradius.r = tilep.halfw);
tileradius.u = (tileradius.d = tilep.halfh);
tilearea = {xMin:0, xMax:0, yMin:0, yMax:0};
gamep_spd = [8, 6, 5, 3, 2];
inputs = new Array();
inputs.push({tag:"ul", desc:"Move"});
inputs.push({tag:"ur", desc:"Move"});
inputs.push({tag:"dl", desc:"Move"});
inputs.push({tag:"dr", desc:"Move"});
inputs.push({tag:"space", desc:"Action", kcode:32});
inputs.push({tag:"f", desc:"Fullscreen", kcode:70});
inputs.push({tag:"playtest", desc:"Shift", kcode:16});
inputs.push({tag:"leftclick", desc:"Leftclick", kcode:1});
inputs.push({tag:"test", desc:"T", kcode:84});
inputs.push({tag:"middleclick", desc:"Middleclick", kcode:4});
inputs.push({tag:"up", desc:"Move", kcode:104});
inputs.push({tag:"down", desc:"Move", kcode:101});
inputs.push({tag:"right", desc:"Move", kcode:102});
inputs.push({tag:"left", desc:"Move", kcode:100});
inputs.push({tag:"one", desc:"Copy", kcode:109});
inputs.push({tag:"two", desc:"Paste", kcode:107});
clicker = new Object();
clicker.onMouseWheel = function (delta) {
clicks.spinner = ((delta > 0) ? 1 : -1);
};
Mouse.addListener(clicker);
clicks = {canright:1, canleft:1, canup:1, candown:1};
var i = 0;
while (i < 9) {
var sub = inputs[i];
clicks[sub.tag] = 0;
i++;
}
switch_keyboard("qwerty");
_root.attachMovie("empty", "bgaudio", _root.getNextHighestDepth());
bgaud = new Sound(_root.bgaudio);
fadep = new Array();
designp = {camx:0, camy:0, l:1};
timer = 0;
designing(0);
sav = SharedObject.getLocal("h");
prog = ((sav.data.prog == undefined) ? "x,0,0,0,0,0,0,0,0,0,0,0" : (sav.data.prog));
Instance of Symbol 742 MovieClip in Frame 17
on (press) {
_root.designinit();
}
Instance of Symbol 742 MovieClip in Frame 17
on (press) {
_root.exportworld();
}
Frame 25
_root._quality = "HIGH";
this.nextFrame();
Instance of Symbol 805 MovieClip in Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://twitter.com/onehandgames/", "_blank");
}
Instance of Symbol 808 MovieClip in Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://onehandgames.tumblr.com", "_blank");
}
Frame 26
this.stop();
init_saves(0);
_root.mc.gotoAndStop(_root.mainmen);
Frame 27
this.prevFrame();
Frame 31
this.nextFrame();
Frame 32
this.stop();
Frame 33
this.prevFrame();
Frame 40
this.nextFrame();
Frame 41
this.stop();
Frame 42
this.prevFrame();
Frame 46
this.nextFrame();
Instance of Symbol 805 MovieClip in Frame 46
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://twitter.com/onehandgames/", "_blank");
}
Instance of Symbol 808 MovieClip in Frame 46
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://onehandgames.tumblr.com", "_blank");
}
Instance of Symbol 2140 MovieClip in Frame 46
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://onehandgames.bandcamp.com", "_blank");
}
Instance of Symbol 2140 MovieClip in Frame 46
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://onehandgames.bandcamp.com", "_blank");
}
Instance of Symbol 2140 MovieClip in Frame 46
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://onehandgames.bandcamp.com", "_blank");
}
Instance of Symbol 2140 MovieClip in Frame 46
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://onehandgames.bandcamp.com", "_blank");
}
Instance of Symbol 2140 MovieClip in Frame 46
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://onehandgames.bandcamp.com", "_blank");
}
Instance of Symbol 2140 MovieClip in Frame 46
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://onehandgames.bandcamp.com", "_blank");
}
Frame 47
this.stop();
Frame 48
this.prevFrame();
Symbol 16 MovieClip Frame 38
stop();
Symbol 25 MovieClip Frame 38
stop();
Symbol 32 MovieClip Frame 40
stop();
Symbol 38 MovieClip Frame 40
stop();
Symbol 44 MovieClip Frame 28
stop();
Symbol 49 MovieClip Frame 28
stop();
Symbol 54 MovieClip Frame 25
stop();
Symbol 58 MovieClip Frame 26
stop();
Symbol 74 MovieClip Frame 52
stop();
Symbol 83 MovieClip Frame 52
stop();
Symbol 87 MovieClip Frame 52
stop();
Symbol 89 MovieClip Frame 52
stop();
Symbol 104 MovieClip Frame 38
stop();
Symbol 113 MovieClip Frame 38
stop();
Symbol 122 MovieClip Frame 38
stop();
Symbol 131 MovieClip Frame 38
stop();
Symbol 135 MovieClip Frame 38
stop();
Symbol 138 MovieClip Frame 38
stop();
Symbol 140 MovieClip Frame 38
stop();
Symbol 143 MovieClip Frame 38
stop();
Symbol 155 MovieClip Frame 38
stop();
Symbol 164 MovieClip Frame 38
stop();
Symbol 173 MovieClip Frame 38
stop();
Symbol 182 MovieClip Frame 38
stop();
Symbol 186 MovieClip Frame 38
stop();
Symbol 189 MovieClip Frame 38
stop();
Symbol 191 MovieClip Frame 38
stop();
Symbol 193 MovieClip Frame 38
stop();
Symbol 225 MovieClip Frame 80
stop();
Symbol 234 MovieClip Frame 80
stop();
Symbol 248 MovieClip Frame 90
stop();
Symbol 260 MovieClip Frame 80
stop();
Symbol 274 MovieClip Frame 64
stop();
Symbol 308 MovieClip Frame 50
stop();
Symbol 311 MovieClip Frame 50
stop();
Symbol 337 MovieClip Frame 40
stop();
Symbol 346 MovieClip Frame 40
stop();
Symbol 354 MovieClip Frame 40
stop();
Symbol 360 MovieClip Frame 40
stop();
Symbol 367 MovieClip Frame 42
stop();
Symbol 373 MovieClip Frame 49
stop();
Symbol 378 MovieClip Frame 28
stop();
Symbol 382 MovieClip Frame 28
stop();
Symbol 396 MovieClip Frame 40
stop();
Symbol 405 MovieClip Frame 40
stop();
Symbol 407 MovieClip Frame 40
stop();
Symbol 410 MovieClip Frame 40
stop();
Symbol 452 MovieClip Frame 40
stop();
Symbol 454 MovieClip Frame 40
stop();
Symbol 456 MovieClip Frame 40
stop();
Symbol 457 MovieClip Frame 40
stop();
Symbol 459 MovieClip Frame 23
stop();
Symbol 460 MovieClip Frame 23
stop();
Symbol 461 MovieClip Frame 23
stop();
Symbol 462 MovieClip Frame 23
stop();
Symbol 464 MovieClip Frame 21
stop();
Symbol 465 MovieClip Frame 21
stop();
Symbol 466 MovieClip Frame 21
stop();
Symbol 467 MovieClip Frame 21
stop();
Symbol 477 MovieClip Frame 40
stop();
Symbol 479 MovieClip Frame 40
stop();
Symbol 488 MovieClip Frame 40
stop();
Symbol 493 MovieClip Frame 40
stop();
Symbol 512 MovieClip Frame 40
stop();
Symbol 521 MovieClip Frame 40
stop();
Symbol 532 MovieClip Frame 40
stop();
Symbol 541 MovieClip Frame 40
stop();
Symbol 548 MovieClip Frame 40
stop();
Symbol 550 MovieClip Frame 40
stop();
Symbol 555 MovieClip Frame 40
stop();
Symbol 559 MovieClip Frame 40
stop();
Symbol 583 MovieClip [loadaudio] Frame 1
stop();
Symbol 657 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 1
stop();
Symbol 666 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 1
stop();
Symbol 703 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 1
stop();
Symbol 736 MovieClip [tiles] Frame 1
this.design.gotoAndStop(_root.world_state.hidetiles + 1);
stop();
Symbol 736 MovieClip [tiles] Frame 42
this.glass.gotoAndStop(_root.world_state.glass + 1);
this.juice.c.gotoAndStop(_root.world_state.cjuice + 1);
this.juice.m.gotoAndStop(_root.world_state.mjuice + 1);
this.juice.y.gotoAndStop(_root.world_state.yjuice + 1);
this.juice.k.gotoAndStop(_root.world_state.kjuice + 1);
Symbol 736 MovieClip [tiles] Frame 43
this.design.gotoAndStop(_root.world_state.hidetiles + 1);
Symbol 736 MovieClip [tiles] Frame 44
this.design.gotoAndStop(_root.world_state.hidetiles + 1);
Symbol 736 MovieClip [tiles] Frame 58
this.well.gotoAndStop(_root.world_state.cwell + 1);
Symbol 736 MovieClip [tiles] Frame 59
this.well.gotoAndStop(_root.world_state.mwell + 1);
Symbol 736 MovieClip [tiles] Frame 60
this.well.gotoAndStop(_root.world_state.ywell + 1);
Symbol 736 MovieClip [tiles] Frame 61
this.well.gotoAndStop(_root.world_state.kwell + 1);
Instance of Symbol 699 MovieClip "well" in Symbol 736 MovieClip [tiles] Frame 61
/* no clip actions */
Symbol 736 MovieClip [tiles] Frame 63
this.bottle.gotoAndStop(_root.world_state.minibottle + 1);
Symbol 736 MovieClip [tiles] Frame 77
this.bottle.gotoAndStop(_root.world_state.bigbottle + 1);
Symbol 742 MovieClip Frame 1
this.stop();
Symbol 786 MovieClip Frame 1
this.gotoAndStop(_root.keyboard_type);
Instance of Symbol 796 MovieClip in Symbol 802 MovieClip Frame 1
on (rollOver) {
_parent.gotoAndStop(2);
}
on (rollOut) {
_parent.gotoAndStop(1);
}
on (press) {
_root.gameinit(1);
}
Instance of Symbol 796 MovieClip in Symbol 802 MovieClip Frame 1
on (rollOver) {
_parent.gotoAndStop(3);
}
on (rollOut) {
_parent.gotoAndStop(1);
}
Instance of Symbol 796 MovieClip in Symbol 802 MovieClip Frame 4
on (rollOver) {
_parent.gotoAndStop(5);
}
on (rollOut) {
_parent.gotoAndStop(4);
}
on (press) {
_root.gameinit(1);
}
Instance of Symbol 796 MovieClip in Symbol 802 MovieClip Frame 4
on (rollOver) {
_parent.gotoAndStop(6);
}
on (rollOut) {
_parent.gotoAndStop(4);
}
on (press) {
_root.frameon("cutscenes");
}
Instance of Symbol 796 MovieClip in Symbol 802 MovieClip Frame 7
on (rollOver) {
_parent.gotoAndStop(8);
}
on (rollOut) {
_parent.gotoAndStop(7);
}
on (press) {
_root.gameinit(1);
}
Instance of Symbol 796 MovieClip in Symbol 802 MovieClip Frame 7
on (rollOver) {
_parent.gotoAndStop(9);
}
on (rollOut) {
_parent.gotoAndStop(7);
}
Instance of Symbol 796 MovieClip in Symbol 802 MovieClip Frame 7
on (rollOver) {
_parent.gotoAndStop(10);
}
on (rollOut) {
_parent.gotoAndStop(7);
}
on (press) {
_root.gameinit(2);
}
Instance of Symbol 796 MovieClip in Symbol 802 MovieClip Frame 11
on (rollOver) {
_parent.gotoAndStop(14);
}
on (rollOut) {
_parent.gotoAndStop(11);
}
on (press) {
_root.gameinit(1);
}
Instance of Symbol 796 MovieClip in Symbol 802 MovieClip Frame 11
on (rollOver) {
_parent.gotoAndStop(13);
}
on (rollOut) {
_parent.gotoAndStop(11);
}
on (press) {
_root.frameon("cutscenes");
}
Instance of Symbol 796 MovieClip in Symbol 802 MovieClip Frame 11
on (rollOver) {
_parent.gotoAndStop(12);
}
on (rollOut) {
_parent.gotoAndStop(11);
}
on (press) {
_root.gameinit(3);
}
Symbol 805 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 1
stop();
Symbol 810 MovieClip Frame 1
this.gotoAndStop(_root.keyboard_type);
Instance of Symbol 796 MovieClip in Symbol 810 MovieClip Frame 1
on (press) {
_root.switch_keyboard("qwerty");
_parent.gotoAndStop(1);
_root.anim.mc.gotoAndStop(1);
}
Instance of Symbol 796 MovieClip in Symbol 810 MovieClip Frame 1
on (press) {
_root.switch_keyboard("azerty");
_parent.gotoAndStop(2);
_root.anim.mc.gotoAndStop(2);
}
Instance of Symbol 796 MovieClip in Symbol 810 MovieClip Frame 1
on (press) {
_root.switch_keyboard("dvorak");
_parent.gotoAndStop(3);
_root.anim.mc.gotoAndStop(3);
}
Instance of Symbol 796 MovieClip in Symbol 810 MovieClip Frame 1
on (press) {
_root.switch_keyboard("fallback");
_parent.gotoAndStop(4);
_root.anim.mc.gotoAndStop(4);
}
Symbol 818 MovieClip Frame 1
stop();
Symbol 1060 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1060 MovieClip Frame 2330
stop();
_root.snd_stop("static");
Symbol 1199 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1199 MovieClip Frame 2348
stop();
_root.snd_stop("static");
Symbol 1370 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1370 MovieClip Frame 1955
stop();
_root.snd_stop("static");
Symbol 1424 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1424 MovieClip Frame 530
stop();
_root.snd_stop("static");
Symbol 1439 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1439 MovieClip Frame 309
stop();
_root.snd_stop("static");
Symbol 1465 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1465 MovieClip Frame 551
stop();
_root.snd_stop("static");
Symbol 1488 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1488 MovieClip Frame 398
Symbol 1488 MovieClip Frame 399
stop();
_root.snd_stop("static");
if (_root.framein == "game") {
_root.finishgame("limbo");
}
Symbol 1515 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1515 MovieClip Frame 490
stop();
_root.snd_stop("static");
Symbol 1573 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1573 MovieClip Frame 773
stop();
_root.snd_stop("static");
Symbol 1589 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1589 MovieClip Frame 403
stop();
_root.snd_stop("static");
Symbol 1606 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 1606 MovieClip Frame 829
stop();
_root.snd_stop("static");
Symbol 1607 MovieClip Frame 1
stop();
var temp = _root.prog.split(",");
_root.cutscanplay = new Object();
var i = 1;
while (i < 12) {
_root.cutscanplay["cut" + i] = Number(temp[i]);
_root.overlay["mc" + i].onPress = function () {
var _local3 = this._name.split("c");
_local3 = _local3[1];
if (_root.cutscanplay["cut" + _local3]) {
_root.overlay.gotoAndStop(["play" + _local3]);
}
};
_root.overlay["mc" + i].onRollOver = function () {
var _local3 = this._name.split("c");
_local3 = _local3[1];
if (_root.cutscanplay["cut" + _local3]) {
_root.overlay["lines" + _local3].gotoAndStop(2);
} else {
_root.overlay["lines" + _local3].gotoAndStop(3);
}
};
_root.overlay["mc" + i].onRollOut = function () {
var _local3 = this._name.split("c");
_local3 = _local3[1];
_root.overlay["lines" + _local3].gotoAndStop(1);
};
i++;
}
Instance of Symbol 742 MovieClip in Symbol 1607 MovieClip Frame 1
on (press) {
_root.frameon("menu");
}
Instance of Symbol 742 MovieClip in Symbol 1607 MovieClip Frame 14
on (press) {
_root.snd_stop("ear");
_root.snd_stop("hand");
_root.snd_stop("hero");
_root.snd_stop("junk");
_root.snd_stop("kiss");
_root.snd_stop("peep");
_root.snd_stop("pity");
_parent.gotoAndStop(1);
}
Symbol 1608 MovieClip Frame 1
stop();
Symbol 1636 MovieClip Frame 1
stop();
Symbol 1637 MovieClip Frame 44
stop();
Symbol 1638 MovieClip Frame 1
stop();
Symbol 1639 MovieClip Frame 28
stop();
_root.minigame_labanim("toend");
Symbol 1640 MovieClip Frame 44
stop();
_root.minigame_labanim("toend");
Symbol 1641 MovieClip Frame 57
stop();
_root.minigame_labanim("toend");
Symbol 1642 MovieClip Frame 46
stop();
_root.minigame_labanim("toend");
Symbol 1643 MovieClip Frame 39
stop();
_root.minigame_labanim("toend");
Symbol 1644 MovieClip Frame 42
stop();
_root.minigame_labanim("toend");
Symbol 1645 MovieClip Frame 41
stop();
_root.minigame_labanim("toend");
Symbol 1646 MovieClip Frame 39
stop();
_root.minigame_labanim("toend");
Symbol 1647 MovieClip Frame 32
stop();
_root.minigame_labanim("toend");
Symbol 1648 MovieClip Frame 43
stop();
_root.minigame_labanim("toend");
Symbol 1649 MovieClip Frame 35
stop();
_root.minigame_labanim("toend");
Symbol 1650 MovieClip Frame 26
stop();
_root.minigame_labanim("toend");
Symbol 1668 MovieClip Frame 74
_root.minigame_labanim("pour");
Symbol 1668 MovieClip Frame 195
stop();
_root.minigame_labanim("toend");
Symbol 1684 MovieClip Frame 74
_root.minigame_labanim("pour");
Symbol 1684 MovieClip Frame 195
stop();
_root.minigame_labanim("toend");
Symbol 1700 MovieClip Frame 74
_root.minigame_labanim("pour");
Symbol 1700 MovieClip Frame 195
stop();
_root.minigame_labanim("toend");
Symbol 1716 MovieClip Frame 74
_root.minigame_labanim("pour");
Symbol 1716 MovieClip Frame 195
stop();
_root.minigame_labanim("toend");
Symbol 1717 MovieClip Frame 1
stop();
Symbol 1723 MovieClip Frame 1
stop();
Symbol 1744 MovieClip Frame 1
stop();
Symbol 1744 MovieClip Frame 241
stop();
_root.minigame_handsanim("toend");
Symbol 1756 MovieClip Frame 13
stop();
_root.minigame_handsanim("toend");
Symbol 1768 MovieClip Frame 13
stop();
_root.minigame_handsanim("toend");
Symbol 1769 MovieClip Frame 1
stop();
Symbol 1769 MovieClip Frame 2
_root.snd_play("westminster_B");
Symbol 1769 MovieClip Frame 3
_root.snd_play("westminster_E");
Symbol 1769 MovieClip Frame 4
_root.snd_play("westminster_combo");
Symbol 1769 MovieClip Frame 6
_root.snd_play("westminster_Gs");
Symbol 1769 MovieClip Frame 7
_root.snd_play("westminster_Fs");
Symbol 1769 MovieClip Frame 8
_root.snd_play("westminster_combo");
Symbol 1769 MovieClip Frame 12
_root.snd_play("westminster_B");
Symbol 1769 MovieClip Frame 13
_root.snd_play("westminster_E");
Symbol 1769 MovieClip Frame 14
_root.snd_play("westminster_combo");
Symbol 1769 MovieClip Frame 16
_root.snd_play("westminster_Gs");
Symbol 1769 MovieClip Frame 17
_root.snd_play("westminster_Fs");
Symbol 1769 MovieClip Frame 18
_root.snd_play("westminster_combo");
Symbol 1771 MovieClip Frame 1
stop();
Symbol 1771 MovieClip Frame 103
stop();
Symbol 1791 MovieClip Frame 143
stop();
_root.minigame_peeanim("toend");
Symbol 1841 MovieClip Frame 106
stop();
_root.minigame_peeanim("toend");
Symbol 1878 MovieClip Frame 1
stop();
Symbol 1947 MovieClip Frame 133
stop();
Symbol 1948 MovieClip Frame 1
_root.snd_play("damage");
Symbol 1948 MovieClip Frame 42
stop();
Symbol 1977 MovieClip Frame 1
_root.snd_play("exit");
Symbol 1977 MovieClip Frame 380
stop();
if (_root.framein == "game") {
_root.finishgame("win");
}
Symbol 2009 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 2009 MovieClip Frame 186
stop();
_root.snd_stop("static");
Symbol 2032 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 2032 MovieClip Frame 186
stop();
_root.snd_stop("static");
Symbol 2055 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 2055 MovieClip Frame 186
stop();
_root.snd_stop("static");
Symbol 2078 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 2078 MovieClip Frame 186
stop();
_root.snd_stop("static");
Symbol 2112 MovieClip Frame 242
stop();
Symbol 2115 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 2115 MovieClip Frame 999
stop();
_root.snd_stop("static");
if (_root.framein == "game") {
_root.finishgame("die");
}
Symbol 2130 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 2130 MovieClip Frame 625
stop();
_root.snd_stop("static");
Symbol 2131 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 2131 MovieClip Frame 125
stop();
_root.snd_stop("static");
Symbol 2132 MovieClip Frame 1
_root.snd_play("static", 1);
Symbol 2132 MovieClip Frame 189
stop();
_root.snd_stop("static");
Instance of Symbol 742 MovieClip in Symbol 2133 MovieClip Frame 13
on (press) {
_root.frameon("designer");
}
Symbol 2140 MovieClip Frame 1
stop();