Frame 1
loadVariablesNum ("gamelinks.asp", 0);
allMaps = ["room1", "room2", "room3", "room4", "room5", "room6"];
room1 = [[["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 9], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["p0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0]], [["n0", 0], ["p0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]]];
room1chracters = [["H", 4, 9], ["V", 11, 4], ["V", 4, 3]];
room1dynamics = [["levelHeroDuration", 200], ["cycloneRespon", 200], ["villanRespon", 150], ["levelMap", "lroom"], ["xLoc", 0], ["yLoc", 0], ["levelParTime", 50]];
room2 = [[["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 9], ["d0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["p0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]]];
room2chracters = [["H", 11, 12], ["V", 14, 4], ["V", 3, 12]];
room2dynamics = [["levelHeroDuration", 200], ["cycloneRespon", 200], ["villanRespon", 150], ["levelMap", "kitchen"], ["xLoc", 0], ["yLoc", 0], ["levelParTime", 40]];
room3 = [[["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 9], ["d0", 1], ["n0", 0]], [["n0", 0], ["p0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]]];
room3chracters = [["H", 13, 12], ["V", 3, 3], ["V", 7, 3], ["V", 13, 3]];
room3dynamics = [["levelHeroDuration", 205], ["cycloneRespon", 220], ["villanRespon", 130], ["levelMap", "dining"], ["xLoc", 0], ["yLoc", 0], ["levelParTime", 50]];
room4 = [[["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 9], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["p0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]]];
room4chracters = [["H", 13, 12], ["V", 1, 12], ["V", 2, 3], ["V", 7, 5], ["V", 13, 4]];
room4dynamics = [["levelHeroDuration", 205], ["cycloneRespon", 220], ["villanRespon", 130], ["levelMap", "den"], ["xLoc", 0], ["yLoc", 0], ["levelParTime", 60]];
room5 = [[["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 9], ["d0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["p0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]]];
room5chracters = [["H", 13, 12], ["V", 8, 3], ["V", 10, 3], ["V", 1, 12]];
room5dynamics = [["levelHeroDuration", 190], ["cycloneRespon", 240], ["villanRespon", 120], ["levelMap", "clock"], ["xLoc", 0], ["yLoc", 0], ["levelParTime", 50]];
room6 = [[["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 9], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["p0", 1], ["n0", 0], ["n0", 0], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["n0", 0], ["d0", 1], ["n0", 0]], [["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["d0", 1], ["d0", 1], ["d0", 1], ["n0", 0]], [["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0], ["n0", 0]]];
room6chracters = [["H", 2, 12], ["V", 5, 11], ["V", 13, 3], ["V", 13, 12], ["V", 2, 3]];
room6dynamics = [["levelHeroDuration", 195], ["cycloneRespon", 240], ["villanRespon", 120], ["levelMap", "bedroom"], ["xLoc", 0], ["yLoc", 0], ["levelParTime", 55]];
fscommand ("allowscale", "false");
fscommand ("fullscreen", "true");
_global.initialStart = false;
_global.totalPoints = 0;
_global.levelNumber = 0;
_global.soundOn = true;
_global.gamePaused = true;
_global.inGameInstructions = false;
_global.heroTile = 0;
_global.heroState = 0;
_global.heroLives = 3;
_global.dirtCount = 0;
_global.villanCount = 0;
_global.pupCount = 0;
_global.levelDirt = 0;
_global.levelDust = 0;
_global.levelPup = 0;
_global.heroDuration = 150;
_global.cycloneRespon = 250;
_global.villanRespon = 200;
_global.gameScore = 0;
_global.levelStarted = false;
_global.levelDone = false;
_global.fusionExit = false;
_global.masterClock = 0;
_global.tileW = 24;
_global.tileH = 24;
_global.gameBoardH = 13 * _global.tileH;
stop();
Instance of Symbol 30 MovieClip in Frame 1
onClipEvent (load) {
loaderBarWidth = 191;
movieSize = Math.floor(_parent.getBytesTotal() / 1024);
}
onClipEvent (enterFrame) {
movieLoaded = Math.floor(_parent.getBytesLoaded() / 1024);
percent = movieLoaded / movieSize;
if (!isNaN(percent)) {
this.percentDisplay = Math.round(100 * (this.cover._x / 209)) + "%";
setX = Math.floor((loaderBarWidth * percent) + 18);
this.cover.targetX = setX;
this.cover.moveMe = true;
}
}
Frame 3
setDynamics = function () {
_global.levelNumber = ((_global.levelNumber++) % allMaps.length) + 1;
this.container_mc.targetY = 90 + (_global.gameBoardH * (_global.levelNumber - 1));
this.container_mc.moveMe = true;
mapSetName = allMaps[_global.levelNumber - 1];
_global.myMap = new Array();
i = 0;
while (i < eval (mapSetName).length) {
_global.myMap[i] = new Array();
j = 0;
while (j < eval (mapSetName)[i].length) {
_global.myMap[i][j] = new Array();
z = 0;
while (z < eval (mapSetName)[i][j].length) {
_global.myMap[i][j][z] = eval (mapSetName)[i][j][z];
z++;
}
j++;
}
i++;
}
_global.myCharacters = this[mapSetName + "chracters"];
_global.myDynamics = this[mapSetName + "dynamics"];
_global.heroTile = 0;
_global.heroState = 0;
_global.levelDirt = 0;
_global.levelDust = 0;
_global.levelPup = 0;
_global.dirtCount = 0;
_global.villanCount = 0;
_global.levelDone = false;
_global.fusionExit = false;
i = 0;
while (i < myDynamics.length) {
Set("_global." + myDynamics[i][0], myDynamics[i][1]);
i++;
}
_global.yLoc = -(_global.gameBoardH * (_global.levelNumber - 1));
_global.mapW = myMap[0].length;
_global.mapH = myMap.length;
this.levelJpg_mc.loadMovie(((levelJpgPath + this["level" + _global.levelNumber]) + ".jpg?nocache=") + getTimer(), 0);
};
sfxButtons = new Sound("sfxButtons_mc");
sfxButtons.attachSound("sfxButtons");
this.playSfxButtons = function () {
if (_global.soundOn == true) {
sfxButtons.stop();
sfxButtons.start();
sfxButtons.setVolume(60);
}
};
sfxDirt = new Sound("sfxDirt_mc");
sfxDirt.attachSound("sfxDirt");
this.playSfxDirt = function () {
if (_global.soundOn == true) {
sfxDirt.stop();
sfxDirt.start();
}
};
sfxVillan = new Sound("sfxVillan_mc");
sfxVillan.attachSound("sfxVillan");
this.playSfxVillan = function () {
if (_global.soundOn == true) {
sfxVillan.start();
}
};
sfxHero = new Sound("sfxHero_mc");
sfxHero.attachSound("sfxHero");
this.playSfxHero = function () {
if (_global.soundOn == true) {
sfxHero.stop();
sfxHero.start();
}
};
sfxTally = new Sound("sfxTally_mc");
sfxTally.attachSound("sfxTally");
this.playSfxTally = function () {
if (_global.soundOn == true) {
sfxTally.stop();
sfxTally.start();
}
};
sfxExit = new Sound("sfxExit_mc");
sfxExit.attachSound("sfxExit");
this.playSfxExit = function () {
if (_global.soundOn == true) {
sfxExit.start();
}
};
sfxPup = new Sound("sfxPup_mc");
sfxPup.attachSound("sfxPup");
this.playSfxPup = function () {
if (_global.soundOn == true) {
sfxPup.stop();
sfxPup.start(0, 99);
sfxPup.setVolume(60);
}
};
this.stopSfxPup = function () {
sfxPup.stop();
};
bkgdMusic = new Sound("bkgdMusic_mc");
bkgdMusic.attachSound("bkgdMusic");
this.playBkgdMusic = function () {
bkgdMusic.start(0, 99);
bkgdMusic.setVolume(35);
};
this.stopBkgdMusic = function () {
bkgdMusic.stop();
};
playBkgdMusic();
Instance of Symbol 193 MovieClip "container_mc" in Frame 3
onClipEvent (load) {
_global.containerStartY = this._y;
this.moveMe = true;
targetY = this._y;
}
onClipEvent (enterFrame) {
if (this.moveMe == true) {
currentYposition = this._y;
differenceY = targetY - currentYposition;
moveY = differenceY / 5;
this._Y = Number(currentYposition) + Number(moveY);
newY = Number(currentYposition) + Number(moveY);
if ((newY == oldY) && (newY != targetY)) {
this._Y = targetY;
}
oldY = newY;
if (this._y == targetY) {
this.moveMe = false;
}
}
}
Instance of Symbol 204 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.level = _global.levelNumber;
this.dirt = _global.levelDirt;
this.scoreDisplay = _global.gameScore;
this.timeDisplay = _global.elapseTime;
}
Instance of Symbol 207 MovieClip "lives1" in Frame 3
onClipEvent (load) {
this._visible = true;
}
onClipEvent (enterFrame) {
if ((_global.heroLives < 1) && (this._visible == true)) {
this._visible = false;
}
if ((_global.heroLives >= 1) && (this._visible == false)) {
this._visible = true;
}
}
Instance of Symbol 207 MovieClip "lives2" in Frame 3
onClipEvent (load) {
this._visible = true;
}
onClipEvent (enterFrame) {
if ((_global.heroLives < 2) && (this._visible == true)) {
this._visible = false;
}
if ((_global.heroLives >= 2) && (this._visible == false)) {
this._visible = true;
}
}
Instance of Symbol 207 MovieClip "lives3" in Frame 3
onClipEvent (load) {
this._visible = true;
}
onClipEvent (enterFrame) {
if ((_global.heroLives < 3) && (this._visible == true)) {
this._visible = false;
}
if ((_global.heroLives >= 3) && (this._visible == false)) {
this._visible = true;
}
}
Instance of Symbol 215 MovieClip "powerup" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_global.heroState == 1) && (this._visible == false)) {
this._alpha = 100;
this._visible = true;
}
if ((_global.heroState == 0) && (this._visible == true)) {
this._visible = false;
}
if (this._visible == true) {
if ((_global.masterClock - _global.heroStateBaseTime) > (_global.heroDuration - 50)) {
this._alpha = ((this._alpha = this._alpha + 20)) % 100;
} else {
this._alpha = 100;
}
}
}
Instance of Symbol 216 MovieClip "timerMc" in Frame 3
onClipEvent (load) {
_global.elapseTime = "0:00";
collisionDetection = function (hero, villan, myName) {
var _local5 = Math.sqrt(Math.pow(hero.x - villan.x, 2) + Math.pow(hero.y - villan.y, 2));
if (_local5 <= 14) {
if (_global.heroState == 0) {
_parent.killHero(Math.round(hero.x), Math.round(hero.y));
} else {
_parent.killVillan(myName, Math.round(villan.x), Math.round(villan.y));
}
}
};
}
onClipEvent (enterFrame) {
_global.masterClock = math.round(getTimer() / 100);
if (((_global.levelStarted == true) && (_global.levelDone != true)) && (_global.initialStart == true)) {
_global.levelSecondsTime = Math.floor((_global.masterClock / 10) - (_global.levelBaseTime / 10));
minutest = Math.floor((_global.masterClock / 600) - (_global.levelBaseTime / 600));
seconds = _global.levelSecondsTime % 60;
if (seconds < 10) {
seconds = "0" + seconds;
}
_global.elapseTime = (minutest + ":") + seconds;
hero = new Object();
hero.clip = _parent.container_mc.playersMC.hero;
hero.x = _parent.container_mc.playersMC.hero._x;
hero.y = _parent.container_mc.playersMC.hero._y;
i = 1;
while (i < _global.myCharacters.length) {
this["villan" + i] = new Object();
this["villan" + i].clip = _parent.container_mc.playersMC["villan" + i];
this["villan" + i].x = _parent.container_mc.playersMC["villan" + i]._x;
this["villan" + i].y = _parent.container_mc.playersMC["villan" + i]._y;
this.collisionDetection(hero, this["villan" + i], "villan" + i);
i++;
}
}
if (((_global.masterClock - _global.heroStateBaseTime) > _global.heroDuration) && (_global.heroState == 1)) {
_parent.stopSfxPup();
_global.heroState = 0;
}
if (((_global.masterClock - _global.heroStateBaseTime) > _global.heroDuration) && (_global.heroState == 3)) {
_parent.stopSfxPup();
_global.heroState = 0;
}
if (((dirtCount == 0) && (villanCount == 0)) && (levelStarted == true)) {
if (_parent.container_mc[_global.levelMap].door._currentFrame < 5) {
_parent.container_mc[_global.levelMap].door.gotoAndStop("open");
}
}
}
Instance of Symbol 219 MovieClip "tint" in Frame 3
onClipEvent (load) {
this._alpha = 100;
fadeMe = "up";
}
onClipEvent (enterFrame) {
if ((fadeMe == "down") && (this._alpha > 0)) {
this._alpha = this._alpha - 10;
_global.lastScreen = null;
} else if ((fadeMe == "down") && (this._alpha <= 0)) {
if (_global.fusionExit == true) {
_parent.levelBuild();
}
_global.initialStart = true;
_global.inGameInstructions = false;
_global.gamePaused = false;
this._x = -500;
fadeMe = null;
}
if ((fadeMe == "up") && (this._alpha < 100)) {
_global.gamePaused = true;
this._alpha = this._alpha + 10;
this._x = 26;
} else if ((fadeMe == "up") && (this._alpha >= 100)) {
if (_global.inGameInstructions == false) {
if ((_global.levelStarted == true) && (_global.inGameInstructions == false)) {
if (_parent.scoring._x != 740) {
_parent.scoring._x = 740;
}
_parent.scoring.targetX = 69;
_parent.scoring.gotoAndStop(1);
_parent.scoring.scoringDisplay = true;
_parent.scoring.moveMe = true;
_global.levelStarted = false;
_global.lastScreen = "scoring";
}
}
if (_global.inGameInstructions == true) {
if (_parent.instructions._x != 740) {
_parent.instructions._x = 740;
}
_parent.instructions.targetX = 69;
_parent.instructions.moveMe = true;
}
fadeMe = null;
}
}
Instance of Symbol 228 MovieClip "greeting" in Frame 3
onClipEvent (load) {
this.moveMe = true;
targetX = 69;
_global.lastScreen = this._name;
}
onClipEvent (enterFrame) {
if (this.moveMe == true) {
currentXposition = this._x;
differenceX = targetX - currentXposition;
moveX = differenceX / 5;
this._x = Number(currentXposition) + Number(moveX);
newX = Number(currentXposition) + Number(moveX);
if ((newX == oldX) && (newX != targetX)) {
this._x = targetX;
}
oldX = newX;
if (this._x == targetX) {
this.moveMe = false;
}
}
}
Instance of Symbol 232 MovieClip "instructions" in Frame 3
onClipEvent (load) {
this.moveMe = false;
targetX = this._x;
}
onClipEvent (enterFrame) {
if (this.moveMe == true) {
currentXposition = this._x;
differenceX = targetX - currentXposition;
moveX = differenceX / 5;
this._x = Number(currentXposition) + Number(moveX);
newX = Number(currentXposition) + Number(moveX);
if ((newX == oldX) && (newX != targetX)) {
this._x = targetX;
}
oldX = newX;
if (this._x == targetX) {
this.moveMe = false;
}
}
}
Instance of Symbol 255 MovieClip "scoring" in Frame 3
onClipEvent (load) {
this.moveMe = false;
targetX = 69;
this.scoringDisplay = false;
}
onClipEvent (enterFrame) {
if (this.moveMe == true) {
this.displayLevel = "LEVEL " + _global.levelNumber;
currentXposition = this._x;
differenceX = targetX - currentXposition;
moveX = differenceX / 5;
this._x = Number(currentXposition) + Number(moveX);
newX = Number(currentXposition) + Number(moveX);
if ((newX == oldX) && (newX != targetX)) {
this._x = targetX;
}
oldX = newX;
if ((this._x == targetX) && (targetX == 69)) {
if ((this.scoringDisplay = true)) {
this.gotoAndPlay(2);
this.scoringDisplay = false;
}
this.moveMe = false;
}
}
}
Instance of Symbol 261 MovieClip "thanks" in Frame 3
onClipEvent (load) {
this.moveMe = false;
targetX = 69;
this.scoringDisplay = false;
}
onClipEvent (enterFrame) {
if (this.moveMe == true) {
this.displayLevel = "LEVEL " + _global.levelNumber;
currentXposition = this._x;
differenceX = targetX - currentXposition;
moveX = differenceX / 5;
this._x = Number(currentXposition) + Number(moveX);
newX = Number(currentXposition) + Number(moveX);
if ((newX == oldX) && (newX != targetX)) {
this._x = targetX;
}
oldX = newX;
if (this._x == targetX) {
if ((this.scoringDisplay = true)) {
this.gotoAndPlay(2);
}
this.moveMe = false;
}
}
}
Frame 4
buildMap = function (xLoc, yLoc) {
this.container_mc.attachMovie(_global.levelMap, _global.levelMap, _global.levelNumber);
this.container_mc[levelMap]._x = xLoc - 2;
this.container_mc[levelMap]._y = yLoc - 2;
this.container_mc.createEmptyMovieClip("boardMC", 50);
this.container_mc.boardMC._x = xLoc;
this.container_mc.boardMC._y = yLoc;
i = 0;
while (i < mapH) {
j = 0;
while (j < MapW) {
this.container_mc.boardMC.attachMovie("tile", (("t_" + i) + "_") + j, ++d);
this.container_mc.boardMC[(("t_" + i) + "_") + j]._x = j * tileW;
this.container_mc.boardMC[(("t_" + i) + "_") + j]._y = i * tileH;
if (myMap[i][j][0] == "d0") {
_global.dirtCount = _global.dirtCount + 1;
}
if (myMap[i][j][0] == "p0") {
this.container_mc.boardMC[(("t_" + i) + "_") + j].x = j;
this.container_mc.boardMC[(("t_" + i) + "_") + j].y = i;
}
if (myMap[i][j][1] == 9) {
this.container_mc.boardMC[(("t_" + i) + "_") + j].xTile = j;
this.container_mc.boardMC[(("t_" + i) + "_") + j].yTile = i;
this.container_mc.boardMC[(("t_" + i) + "_") + j].onEnterFrame = exitTile;
}
this.container_mc.boardMC[(("t_" + i) + "_") + j].gotoAndStop(myMap[i][j][0]);
j++;
}
i++;
}
};
buildCharacters = function (xLoc, yLoc) {
this.container_mc.createEmptyMovieClip("playersMC", 51);
this.container_mc.playersMC._x = xLoc;
this.container_mc.playersMC._y = yLoc;
i = 0;
while (i < myCharacters.length) {
if (myCharacters[i][0] == "H") {
myMapHeroStartX = myCharacters[i][1];
myMapHeroStartY = myCharacters[i][2];
placeHero();
} else if (myCharacters[i][0] == "V") {
placeVillan(myCharacters[i][1], myCharacters[i][2], i);
}
i++;
}
};
placeHero = function () {
this.container_mc.playersMC.attachMovie("hero", "hero", 100);
this.container_mc.playersMC.hero._x = (myMapHeroStartX * tileW) + (tileW / 2);
this.container_mc.playersMC.hero._y = (myMapHeroStartY * tileH) + (tileH / 2);
_global.heroDuration = 18;
_global.heroState = 3;
_global.heroStateBaseTime = _global.masterClock;
};
placeVillan = function (startX, startY, number) {
this.container_mc.playersMC.attachMovie("villan", "villan" + number, number);
this.container_mc.playersMC["villan" + number]._x = (startX * tileW) + (tileW / 2);
this.container_mc.playersMC["villan" + number]._y = (startY * tileH) + (tileH / 2);
_global.dirtCount = _global.dirtCount + 1;
_global.villanCount = _global.villanCount + 1;
};
powerUp = function (x, y) {
x++;
this.attachMovie("hundredpoints", "pointspopup" + x, x);
this["pointspopup" + x]._x = x + this.container_mc._x;
this["pointspopup" + x]._y = y + _global.containerStartY;
_global.gameScore = _global.gameScore + 100;
_global.heroDuration = _global.levelHeroDuration;
_global.heroState = 1;
_global.heroStateBaseTime = _global.masterClock;
};
killHero = function (x, y) {
this.playSfxHero();
x++;
this.attachMovie("minushundred", "pointspopup" + x, x);
this["pointspopup" + x]._x = x + this.container_mc._x;
this["pointspopup" + x]._y = y + _global.containerStartY;
_global.gameScore = _global.gameScore - 100;
_global.heroTile = 0;
if (_global.heroLives > 0) {
_global.heroLives = _global.heroLives - 1;
this.placeHero();
} else {
_global.levelDone = true;
_global.heroLives = _global.heroLives - 1;
this.levelScore();
this.container_mc.playersMC.hero.removeMovieClip();
this.tint.fadeMe = "up";
}
};
killVillan = function (myName, x, y) {
this.playSfxVillan();
x++;
this.attachMovie("fiftypoints", "pointspopup" + x, x);
this["pointspopup" + x]._x = x + this.container_mc._x;
this["pointspopup" + x]._y = y + _global.containerStartY;
this.container_mc.playersMC[myName].baseTime = _global.masterClock;
this.container_mc.playersMC[myName].dead = true;
this.container_mc.playersMC[myName].xtile = heroTile[0];
this.container_mc.playersMC[myName].ytile = heroTile[1];
this.container_mc.playersMC[myName]._x = -5000;
this.container_mc.playersMC[myName]._y = -5000;
_global.dirtCount = _global.dirtCount - 1;
_global.villanCount = _global.villanCount - 1;
_global.levelDust = _global.levelDust + 1;
_global.gameScore = _global.gameScore + 50;
};
_global.pupTile = function () {
if ((this._global.masterClock - this.baseTime) > this._global.cycloneRespon) {
if ((this._global.villanCount != 0) && (this._global.dirtCount != 0)) {
if (this._global.myMap[this.y][this.x][0] != "c0") {
_global.dirtCount = _global.dirtCount - 1;
}
this.gotoAndStop("p0");
this._global.myMap[this.y][this.x][0] = "p0";
delete this.onEnterFrame;
}
}
if (((_global.levelStarted == true) && (_global.levelDone == true)) && (_global.fusionExit == true)) {
this._global.myMap[this.y][this.x][0] = "p0";
delete this.onEnterFrame;
}
};
_global.exitTile = function () {
if ((_global.dirtCount == 0) && (this._global.levelDone != true)) {
if ((this._global.heroTile[0] == this.xTile) && (this._global.heroTile[1] == this.yTile)) {
this._global.levelDone = true;
this._parent._parent._parent.stopSfxPup();
this._parent._parent._parent.playSfxExit();
this._parent._parent._parent.container_mc.playersMC.hero._x = this._x + (_global.tileW / 2);
}
}
};
levelBuild = function () {
this.setDynamics();
this.buildMap(xLoc, yLoc);
this.buildCharacters(xLoc, yLoc);
_global.levelBaseTime = _global.masterClock;
_global.levelStarted = true;
};
levelScore = function () {
this.scoring.displayDirt = 10 * _global.levelDirt;
this.scoring.displayDust = 50 * _global.levelDust;
this.scoring.displayPup = 100 * _global.levelPup;
if (_global.heroLives >= 0) {
if (_global.levelParTime >= _global.levelSecondsTime) {
this.scoring.displayTime = 50 * (_global.levelParTime - _global.levelSecondsTime);
} else {
this.scoring.displayTime = -5 * (_global.levelSecondsTime - _global.levelParTime);
}
} else {
this.scoring.displayTime = 0;
}
_global.levelTally = ((this.scoring.displayDirt + this.scoring.displayDust) + this.scoring.displayPup) + this.scoring.displayTime;
this.scoring.displayTotal = _global.levelTally;
};
this.levelBuild();
Frame 5
stop();
Symbol 7 MovieClip Frame 2
stop();
Symbol 7 MovieClip Frame 6
stop();
Instance of Symbol 27 MovieClip "cover" in Symbol 30 MovieClip Frame 1
onClipEvent (load) {
this.moveMe = true;
targetX = this._x;
}
onClipEvent (enterFrame) {
if (this.moveMe == true) {
currentXposition = this._x;
differenceX = targetX - currentXposition;
moveX = differenceX / 7;
this._x = Number(currentXposition) + Number(moveX);
newX = Number(currentXposition) + Number(moveX);
if ((newX == oldX) && (newX != targetX)) {
this._x = targetX;
}
oldX = newX;
if (this._x == targetX) {
this.moveMe = false;
if (this._x >= 209) {
_parent._parent.gotoAndPlay("startGame");
}
}
}
}
Symbol 37 MovieClip Frame 2
stop();
Symbol 37 MovieClip Frame 6
stop();
Symbol 45 MovieClip Frame 2
stop();
Symbol 45 MovieClip Frame 6
stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 53 MovieClip Frame 6
stop();
Symbol 61 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 6
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 6
stop();
Instance of Symbol 72 MovieClip in Symbol 73 MovieClip [fiftypoints] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y - 2;
if (_parent._xscale >= 175) {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
_parent.removeMovieClip();
}
} else {
_parent._xscale = _parent._xscale + 3;
_parent._yscale = _parent._yscale + 3;
}
}
Symbol 86 MovieClip Frame 2
stop();
Symbol 86 MovieClip Frame 6
stop();
Symbol 86 MovieClip Frame 11
stop();
Symbol 86 MovieClip Frame 16
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 6
stop();
Symbol 99 MovieClip Frame 11
stop();
Symbol 99 MovieClip Frame 16
stop();
Symbol 100 MovieClip [hero] Frame 1
function control(dir) {
mapTile = [Math.floor(_x / tileW), Math.floor(_y / tileH)];
if ((_x == ((_global.tileW * mapTile[0]) + (tileW / 2))) && (_y == ((_global.tileH * mapTile[1]) + (tileH / 2)))) {
posibleDirection = new Array(0, 0, 0, 0);
if (cMap[mapTile[1] - 1][mapTile[0]][1] != 0) {
posibleDirection[0] = 1;
}
if (cMap[mapTile[1]][mapTile[0] + 1][1] != 0) {
posibleDirection[1] = 1;
}
if (cMap[mapTile[1] + 1][mapTile[0]][1] != 0) {
posibleDirection[2] = 1;
}
if (cMap[mapTile[1]][mapTile[0] - 1][1] != 0) {
posibleDirection[3] = 1;
}
}
if ((_x == ((_global.tileW * mapTile[0]) + (tileW / 2))) && (_y == ((_global.tileH * mapTile[1]) + (tileH / 2)))) {
if (Key.isDown(38) && (posibleDirection[0] == 1)) {
dirVal = 0;
} else if (Key.isDown(40) && (posibleDirection[2] == 1)) {
dirVal = 2;
} else if (Key.isDown(37) && (posibleDirection[3] == 1)) {
dirVal = 3;
} else if (Key.isDown(39) && (posibleDirection[1] == 1)) {
dirVal = 1;
} else {
dirVal = null;
}
}
if (dirVal == 0) {
_y = (_y - speed);
direction = "up";
} else if (dirVal == 1) {
_x = (_x + speed);
direction = "right";
} else if (dirVal == 2) {
_y = (_y + speed);
direction = "down";
} else if (dirVal == 3) {
_x = (_x - speed);
direction = "left";
}
this.fusion.gotoAndStop(direction);
this.shell.gotoAndStop(direction);
if ((cMap[0] != mapTileOld[0]) || (mapTile[1] != mapTileOld[1])) {
_global.heroTile = mapTile;
if (cMap[mapTile[1]][mapTile[0]][0] == "p0") {
_global.myMap[mapTile[1]][mapTile[0]][0] = "c0";
_root.container_mc.boardMC[(("t_" + mapTile[1]) + "_") + mapTile[0]].gotoAndStop("c0");
_root.container_mc.boardMC[(("t_" + mapTile[1]) + "_") + mapTile[0]].baseTime = _global.masterClock;
_root.container_mc.boardMC[(("t_" + mapTile[1]) + "_") + mapTile[0]].onEnterFrame = _global.pupTile;
_global.levelPup = _global.levelPup + 1;
_parent._parent._parent.playSfxPup();
_parent._parent._parent.powerUp(Math.round(this._x), Math.round(this._y));
}
if (cMap[mapTile[1]][mapTile[0]][0] == "d0") {
_global.myMap[mapTile[1]][mapTile[0]][0] = "c0";
_root.container_mc.boardMC[(("t_" + mapTile[1]) + "_") + mapTile[0]].gotoAndStop("c0");
_global.levelDirt = _global.levelDirt + 1;
_global.dirtCount = _global.dirtCount - 1;
_parent._parent._parent.playSfxDirt();
}
}
mapTileOld = mapTile;
}
speed = 6;
cMap = _global.myMap;
tileW = _global.tileW;
tileH = _global.tileH;
Instance of Symbol 72 MovieClip in Symbol 100 MovieClip [hero] Frame 1
onClipEvent (enterFrame) {
if (_global.levelDone == true) {
_global.heroState = 0;
_parent.fusion.gotoAndStop("Up");
_parent.shell.gotoAndStop("Up");
_parent._y = _parent._y - 1;
_parent._alpha = _parent._alpha - 5;
if ((_parent._alpha <= 0) && (_global.fusionExit == false)) {
_parent._parent._parent._parent.levelScore();
_parent._parent._parent._parent.tint.fadeMe = "up";
_global.fusionExit = true;
}
} else if (_global.gamePaused != true) {
_parent.control();
}
}
Instance of Symbol 99 MovieClip "shell" in Symbol 100 MovieClip [hero] Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (((_global.heroState == 1) && (this._visible == false)) || ((_global.heroState == 3) && (this._visible == false))) {
this._visible = true;
}
if ((_global.heroState == 0) && (this._visible == true)) {
this._visible = false;
}
if (this._visible == true) {
if ((_global.masterClock - _global.heroStateBaseTime) > (_global.heroDuration - 50)) {
this._alpha = ((this._alpha = this._alpha + 20)) % 100;
} else {
this._alpha = 100;
}
}
}
Instance of Symbol 72 MovieClip in Symbol 102 MovieClip [hundredpoints] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y - 2;
if (_parent._xscale >= 175) {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
_parent.removeMovieClip();
}
} else {
_parent._xscale = _parent._xscale + 3;
_parent._yscale = _parent._yscale + 3;
}
}
Instance of Symbol 72 MovieClip in Symbol 104 MovieClip [minushundred] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y - 2;
if (_parent._xscale >= 175) {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
_parent.removeMovieClip();
}
} else {
_parent._xscale = _parent._xscale + 3;
_parent._yscale = _parent._yscale + 3;
}
}
Symbol 160 MovieClip Frame 2
stop();
Symbol 160 MovieClip Frame 11
stop();
Symbol 160 MovieClip Frame 21
stop();
Symbol 160 MovieClip Frame 31
stop();
Symbol 173 MovieClip [villan] Frame 1
speed = 2;
cMap = _global.myMap;
tileW = _global.tileW;
tileH = _global.tileH;
control = function (dir) {
mapTile = [Math.floor(_x / tileW), Math.floor(_y / tileH)];
if ((_x == ((_global.tileW * mapTile[0]) + (tileW / 2))) && (_y == ((_global.tileH * mapTile[1]) + (tileH / 2)))) {
posibleDirection = new Array();
if (cMap[mapTile[1] - 1][mapTile[0]][1] != 0) {
if (dirVal != "s") {
posibleDirection.push("n");
}
}
if (cMap[mapTile[1]][mapTile[0] + 1][1] != 0) {
if (dirVal != "w") {
posibleDirection.push("e");
}
}
if (cMap[mapTile[1] + 1][mapTile[0]][1] != 0) {
if (dirVal != "n") {
posibleDirection.push("s");
}
}
if (cMap[mapTile[1]][mapTile[0] - 1][1] != 0) {
if (dirVal != "e") {
posibleDirection.push("w");
}
}
randomIndex = Math.floor(Math.random() * posibleDirection.length);
dirVal = posibleDirection[randomIndex];
if (cMap[mapTile[1]][mapTile[0]][0] == "c0") {
_global.myMap[mapTile[1]][mapTile[0]][0] = "d0";
_root.container_mc.boardMC[(("t_" + mapTile[1]) + "_") + mapTile[0]].gotoAndStop("d0");
_global.dirtCount = _global.dirtCount + 1;
}
}
if (dirVal == "n") {
_y = (_y - speed);
direction = "up";
} else if (dirVal == "e") {
_x = (_x + speed);
direction = "right";
} else if (dirVal == "s") {
_y = (_y + speed);
direction = "down";
} else if (dirVal == "w") {
_x = (_x - speed);
direction = "left";
}
this.enemy.character.gotoAndStop(direction);
};
wait = function () {
if ((_global.masterClock - this.baseTime) > _global.villanRespon) {
if (_global.dirtCount != 0) {
this._x = (xtile * tileW) + (tileW / 2);
this._y = (ytile * tileH) + (tileH / 2);
this.dead = false;
_global.dirtCount = _global.dirtCount + 1;
_global.villanCount = _global.villanCount + 1;
}
}
};
stop();
Instance of Symbol 72 MovieClip in Symbol 173 MovieClip [villan] Frame 1
onClipEvent (enterFrame) {
if (_parent.dead != true) {
if (_global.gamePaused != true) {
_parent.control();
}
} else {
_parent.wait();
}
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 187 Button
on (press) {
_parent.playSfxButtons();
}
on (release) {
if (_global.inGameInstructions == false) {
if (_global.lastScreen != null) {
this[_global.lastScreen].targetX = -500;
this[_global.lastScreen].moveMe = true;
}
_global.inGameInstructions = true;
_global.lastScreen = "instructions";
this.tint.fadeMe = "up";
}
}
Symbol 188 Button
on (press) {
_parent.playSfxButtons();
}
on (release) {
getURL (hooverFooterLink, "HOOVER");
}
Symbol 190 Button
on (press) {
_parent.playSfxButtons();
}
on (release) {
getURL (fusionBadgeLink, "HOOVER");
}
Symbol 215 MovieClip Frame 8
stop();
Symbol 215 MovieClip Frame 15
stop();
Symbol 226 Button
on (press) {
_parent.playSfxButtons();
}
on (release) {
_parent.tint.fadeMe = "down";
moveMe = true;
targetX = -500;
}
Symbol 227 Button
on (press) {
_parent.playSfxButtons();
}
on (release) {
_global.lastScreen = "instructions";
_parent.instructions.targetX = 69;
_parent.instructions.moveMe = true;
moveMe = true;
targetX = -500;
}
Symbol 231 Button
on (press) {
_parent.playSfxButtons();
}
on (release) {
if ((_global.levelNumber >= _parent.allMaps.length) && (_global.levelDone == true)) {
moveMe = true;
targetX = -500;
_parent.thanks._x = 740;
_parent.thanks.moveMe = true;
_parent.thanks.targetX = 69;
_global.lastScreen = "thanks";
_global.inGameInstructions = false;
} else if (_global.heroLives >= 0) {
_parent.tint.fadeMe = "down";
moveMe = true;
targetX = -500;
} else {
moveMe = true;
targetX = -500;
_parent.thanks._x = 740;
_parent.thanks.moveMe = true;
_parent.thanks.targetX = 69;
_global.lastScreen = "thanks";
_global.inGameInstructions = false;
}
}
Symbol 235 Button
on (press) {
_parent.playSfxButtons();
}
on (release) {
_global.gameScore = _global.gameScore + _global.levelTally;
if (_global.levelNumber < _parent.allMaps.length) {
if (_global.heroLives >= 0) {
_global.levelStarted = true;
_parent.tint.fadeMe = "down";
moveMe = true;
targetX = -500;
} else {
moveMe = true;
targetX = -500;
_parent.levelJpg_mc.loadMovie(((_parent.levelJpgPath + _parent.gameCompleted) + ".jpg?nocache=") + getTimer(), 0);
_parent.thanks._x = 740;
_parent.thanks.moveMe = true;
_parent.thanks.targetX = 69;
_global.lastScreen = "thanks";
}
} else {
moveMe = true;
targetX = -500;
_parent.levelJpg_mc.loadMovie(((_parent.levelJpgPath + _parent.gameCompleted) + ".jpg?nocache=") + getTimer(), 0);
_parent.thanks._x = 740;
_parent.thanks.moveMe = true;
_parent.thanks.targetX = 69;
_global.lastScreen = "thanks";
}
}
Symbol 240 MovieClip Frame 2
stop();
Symbol 240 MovieClip Frame 6
stop();
Symbol 255 MovieClip Frame 1
stop();
Instance of Symbol 240 MovieClip "bonus" in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.displayTime >= 0) {
this.gotoAndStop("bonus");
} else {
this.gotoAndStop("pennalty");
}
}
Symbol 255 MovieClip Frame 3
_parent.playSfxTally();
Symbol 255 MovieClip Frame 7
_parent.playSfxTally();
Symbol 255 MovieClip Frame 11
_parent.playSfxTally();
Symbol 255 MovieClip Frame 15
_parent.playSfxTally();
Symbol 255 MovieClip Frame 19
_parent.playSfxTally();
stop();
Symbol 258 Button
on (press) {
_parent.playSfxButtons();
}
on (release) {
_global.levelNumber = 0;
_global.heroLives = 3;
_global.totalPoints = 0;
_global.gameScore = 0;
_global.levelTally = 0;
_global.fusionExit = true;
_global.levelStarted = true;
_parent.tint.fadeMe = "down";
moveMe = true;
targetX = -500;
}
Symbol 259 Button
on (press) {
_parent.playSfxButtons();
}
on (release) {
getURL (_parent.visitHooverLink, "HOOVER");
}
Symbol 260 Button
on (press) {
_parent.playSfxButtons();
}
on (release) {
getURL (_parent.walmart, "WALMART");
}
Symbol 264 Button
on (release) {
_global.soundOn = false;
_parent.stopBkgdMusic();
this.gotoAndPlay("soundOff");
}
Symbol 267 Button
on (release) {
_global.soundOn = true;
_parent.playSfxButtons();
_parent.playBkgdMusic();
this.gotoAndPlay("soundOn");
}
Symbol 268 MovieClip Frame 2
stop();
Symbol 268 MovieClip Frame 6
stop();