Frame 1
if (getBytesLoaded() == getBytesTotal()) {
gotoAndPlay (3);
} else {
shit._xscale = (getBytesLoaded() * 100) / getBytesTotal();
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 4
function getKeys() {
return(new Array(Key.isDown(37), Key.isDown(39), Key.isDown(38), Key.isDown(40), Key.isDown(32)));
}
function compare(a, b) {
i = 0;
while (i < b.length) {
if (a[i] != b[i]) {
return(false);
}
i++;
}
return(true);
}
stop();
var levels = [["reidick", "reidick"], ["reidick", "reidick", "foamy"], ["wry", "wry"], ["foamy", "wry", "loli", "wry"], ["wry", "wry", "loli"], ["wry", "wry", "wry", "wry", "wry"], ["foamy", "wry", "reidick", "reidick", "reidick"], ["boss1"], ["loli", "reidick", "loli", "wry"], ["wry", "wry", "wry", "wry"], ["loli", "reidick", "loli", "torturecat"], ["torturecat", "foamy", "wry", "wry"], ["furry", "reidick", "reidick", "furry"], ["loli", "furry"], ["furry", "furry", "furry", "reidick", "wry", "foamy"], ["boss2"], ["maiahi", "foamy", "reidick", "loli"], ["loli", "furry", "wry", "maiahi", "reidick"], ["wry", "wry", "loli", "maiahi", "reidick", "maiahi", "torturecat", "maiahi"], ["loli", "loli", "loli", "reidick", "reidick", "wry"], ["wry", "wry", "loli", "maiahi", "reidick", "maiahi", "torturecat", "maiahi", "furry", "foamy"], ["furry", "furry", "furry", "furry", "furry", "furry", "furry", "furry", "furry"], ["maiahi", "reidick", "foamy", "torturecat", "maiahi", "wry", "wry", "wry", "wry", "wry"], ["boss1", "boss1"], ["foamy", "wry", "furry", "boss1"], ["boss2", "boss2"], ["boss1", "boss2"], ["boss3"]];
player.dir = "D";
player.state = "stand";
keys = new Array(5);
lastkeys = new Array(5);
spd = 10;
kills = 0;
frames = 0;
atk = 0;
atkOk = true;
if (enemies == undefined) {
level = 0;
score = 0;
} else {
level++;
score = score + 100;
}
enemies = levels[level].length;
if (level == levels.length) {
gotoAndPlay ("winner");
}
if (health != undefined) {
hp._xscale = health;
}
i = 0;
while (i < enemies) {
_root[levels[level][i]].duplicateMovieClip("enemy" + i, _root.getNextHighestDepth(), {_x:Math.random() * 550, _y:Math.random() * 400});
while (_root["enemy" + i].hitTest(player)) {
_root["enemy" + i]._x = Math.random() * 550;
_root["enemy" + i]._y = Math.random() * 400;
}
i++;
}
_root.onEnterFrame = function () {
keys = getKeys();
if (keys[0] == true) {
player.dir = "L";
}
if (keys[1] == true) {
player.dir = "R";
}
if (keys[2] == true) {
player.dir = "U";
}
if (keys[3] == true) {
player.dir = "D";
}
if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) {
player.state = "walk";
} else {
player.state = "stand";
}
if (Key.isDown(32) && (atk < 3)) {
player.state = "atk";
atk++;
}
if (!Key.isDown(32)) {
atk = 0;
}
if ((player.state != laststate) || (player.dir != lastdir)) {
if (player.dir == "R") {
player.gotoAndPlay(player.state + "L");
player._xscale = -100;
player.sage._xscale = -100;
} else {
player.gotoAndPlay(player.state + player.dir);
player._xscale = 100;
player.sage._xscale = 100;
}
if (player.state == "atk") {
s = new Sound();
s.attachSound("hit");
s.start(0, 1);
}
}
if (player.state == "walk") {
player._x = player._x - (spd * (Number(keys[0]) - Number(keys[1])));
player._y = player._y - (spd * (Number(keys[2]) - Number(keys[3])));
}
lastdir = player.dir;
laststate = player.state;
i = 0;
while (i < enemies) {
if (_root["enemy" + i].hit.hitTest(player.hit) && (frames > 2)) {
hurt.gotoAndPlay("hurt");
player._x = player._x + (((player._x - _root["enemy" + i]._x) * _root["enemy" + i]._height) / 100);
player._y = player._y + (((player._y - _root["enemy" + i]._y) * _root["enemy" + i]._width) / 100);
hp._xscale = hp._xscale - 4;
s = new Sound();
s.attachSound("hurt");
s.start(0, 1);
}
if ((player.state == "atk") && (_root["enemy" + i].hit.hitTest(player.ahit))) {
_root["enemy" + i].kill();
score = score + 25;
}
i++;
}
if (player._x < 0) {
player._x = 0;
}
if (player._y < 0) {
player._y = 0;
}
if (player._x > 550) {
player._x = 550;
}
if (player._y > 400) {
player._y = 400;
}
if (hp._xscale <= 0) {
_root.gotoAndPlay("GAMEOVER");
}
if (kills == enemies) {
health = hp._xscale;
trace("WIN");
gotoAndPlay (5);
}
if (((Math.round(getTimer() / 100) % 10) == 0) && (score > 0)) {
score--;
}
if (((frames % 2000) == 0) && (((Math.random() * 5) < 1) || (level == (levels.length - 1)))) {
heart.duplicateMovieClip("butt" + getTimer(), _root.getNextHighestDepth(), {_x:Math.random() * 550, _y:Math.random() * 400});
}
frames++;
};
Instance of Symbol 86 MovieClip "heart" in Frame 4
onClipEvent (enterFrame) {
if (_name != "heart") {
if (this.hitTest(_root.player.hit) || (this.hitTest(_root.player.ahit))) {
s = new Sound();
s.attachSound("kill");
s.start(0, 1);
_root.hurt.gotoAndPlay("heal");
if (_root.hp._xscale < 300) {
_root.hp._xscale = _root.hp._xscale + 20;
}
_root.score = _root.score - 10;
this.removeMovieClip();
}
}
}
Instance of Symbol 22 MovieClip [badguy] "reidick" in Frame 4
onClipEvent (load) {
function kill() {
s = new Sound();
s.attachSound("internetfuck");
s.start(0, 1);
_root.kills++;
this.removeMovieClip();
}
x = _x;
y = _y;
s = (Math.random() * 10) + 10;
}
onClipEvent (enterFrame) {
if (_name != "reidick") {
_x = (x + (Math.cos(getTimer() / 3000) * 20));
_y = (y + (Math.sin(getTimer() / 3000) * 20));
if (x < _root.player._x) {
x++;
}
if (y < _root.player._y) {
y++;
}
if (x > _root.player._x) {
x--;
}
if (y > _root.player._y) {
y--;
}
}
}
Instance of Symbol 91 MovieClip "wry" in Frame 4
onClipEvent (load) {
function kill() {
s = new Sound();
s.attachSound("wryyyy");
s.start(0, 1);
_root.kills++;
this.removeMovieClip();
}
x = _x;
y = _y;
spd = (Math.random() * 5) + 2;
}
onClipEvent (enterFrame) {
if (_name != "wry") {
_x = x;
_y = y;
if (x < _root.player._x) {
x = x + spd;
}
if (y < _root.player._y) {
y = y + spd;
}
if (x > _root.player._x) {
x = x - spd;
}
if (y > _root.player._y) {
y = y - spd;
}
}
}
Instance of Symbol 94 MovieClip "loli" in Frame 4
onClipEvent (load) {
function kill() {
_root.kills++;
s = new Sound();
s.attachSound("loli");
s.start(0.25, 1);
this.removeMovieClip();
}
x = _x;
y = _y;
s = (Math.random() * 10) + 10;
}
onClipEvent (enterFrame) {
if (_name != "loli") {
_x = (x + (Math.cos((getTimer() / 2000) * s) * 40));
_y = (y + (Math.sin((getTimer() / 2000) * s) * 40));
if (x < _root.player._x) {
x++;
}
if (y < _root.player._y) {
y++;
}
if (x > _root.player._x) {
x--;
}
if (y > _root.player._y) {
y--;
}
}
}
Instance of Symbol 102 MovieClip "boss1" in Frame 4
onClipEvent (load) {
function kill() {
h--;
x = x + ((x - _root.player._x) / 2);
y = y + ((y - _root.player._y) / 2);
s = new Sound();
s.attachSound("growl");
s.start(0, 1);
if (h == 0) {
s = new Sound();
s.attachSound("boom");
s.start(0, 1);
_root.kills++;
this.removeMovieClip();
}
}
x = _x;
y = _y;
s = (Math.random() * 10) + 10;
h = 5;
}
onClipEvent (enterFrame) {
if (_name != "boss1") {
_x = (x + (Math.cos(getTimer() / 3000) * 40));
_y = (y + (Math.sin(getTimer() / 3000) * 20));
if (x < _root.player._x) {
x = x + 3;
}
if (y < _root.player._y) {
y = y + 3;
}
if (x > _root.player._x) {
x = x - 3;
}
if (y > _root.player._y) {
y = y - 3;
}
}
}
Instance of Symbol 106 MovieClip "foamy" in Frame 4
onClipEvent (load) {
function kill() {
s = new Sound();
s.attachSound("neuryours");
s.start(0, 1);
_root.kills++;
this.removeMovieClip();
}
x = _x;
y = _y;
s = Math.random() + 2;
}
onClipEvent (enterFrame) {
if (_name != "foamy") {
_x = (x + (Math.cos((getTimer() / 1000) * s) * 60));
_y = y;
if (x < _root.player._x) {
x++;
}
if (y < _root.player._y) {
y++;
}
if (x > _root.player._x) {
x--;
}
if (y > _root.player._y) {
y--;
}
}
}
Instance of Symbol 109 MovieClip "torturecat" in Frame 4
onClipEvent (load) {
function kill() {
s = new Sound();
s.attachSound("meow");
s.start(0, 1);
_root.kills++;
this.removeMovieClip();
}
x = _x;
y = _y;
s = Math.random() + 1;
}
onClipEvent (enterFrame) {
if (_name != "torturecat") {
_x = (x + (Math.cos((getTimer() / 1000) * s) * 60));
_y = y;
if (x < _root.player._x) {
x++;
}
if (y < _root.player._y) {
y++;
}
if (x > _root.player._x) {
x--;
}
if (y > _root.player._y) {
y--;
}
}
}
Instance of Symbol 112 MovieClip "furry" in Frame 4
onClipEvent (load) {
function kill() {
s = new Sound();
s.attachSound("woof");
s.start(0, 1);
_root.kills++;
this.removeMovieClip();
}
x = _x;
y = _y;
spd = (Math.random() * 5) + 2;
}
onClipEvent (enterFrame) {
if (_name != "furry") {
_x = x;
_y = y;
if (x < _root.player._x) {
x = x + spd;
}
if (y < _root.player._y) {
y = y + spd;
}
if (x > _root.player._x) {
x = x - spd;
}
if (y > _root.player._y) {
y = y - spd;
}
}
}
Instance of Symbol 121 MovieClip "maiahi" in Frame 4
onClipEvent (load) {
function kill() {
s = new Sound();
s.attachSound("maia");
s.start(0, 1);
_root.kills++;
this.removeMovieClip();
}
x = _x;
y = _y;
s = (Math.random() * 10) + 10;
}
onClipEvent (enterFrame) {
if (_name != "maiahi") {
_x = (x + (Math.cos(getTimer() / 3000) * 20));
_y = (y + (Math.sin(getTimer() / 3000) * 20));
if (x < _root.player._x) {
x = x + 2;
}
if (y < _root.player._y) {
y++;
}
if (x > _root.player._x) {
x = x - 2;
}
if (y > _root.player._y) {
y--;
}
}
}
Instance of Symbol 133 MovieClip "boss2" in Frame 4
onClipEvent (load) {
function kill() {
h--;
x = x + ((x - _root.player._x) / 4);
y = y + ((y - _root.player._y) / 4);
s = new Sound();
s.attachSound("growl");
s.start(0, 1);
if (h == 0) {
s = new Sound();
s.attachSound("boom");
s.start(0, 1);
_root.kills++;
this.removeMovieClip();
}
}
x = _x;
y = _y;
s = (Math.random() * 10) + 10;
h = 7;
}
onClipEvent (enterFrame) {
if (_name != "boss2") {
_x = (x + (Math.cos(getTimer() / 2000) * 40));
_y = (y + (Math.sin(getTimer() / 2000) * 40));
s = Math.sin(getTimer() / 1000) + 1;
if (x < _root.player._x) {
x = x + (6 * s);
}
if (y < _root.player._y) {
y = y + (6 * s);
}
if (x > _root.player._x) {
x = x - (6 * s);
}
if (y > _root.player._y) {
y = y - (6 * s);
}
}
}
Instance of Symbol 151 MovieClip "boss3" in Frame 4
onClipEvent (load) {
function kill() {
if (this.mod == "normal") {
this.mod = "weak";
gotoAndPlay ("weak");
} else if (mod == "weak") {
h--;
mod = "rise";
gotoAndPlay ("hurtrise");
s = new Sound();
s.attachSound("growl");
s.start(0, 1);
trace(h);
}
if (h == 0) {
s = new Sound();
s.attachSound("boom");
s.start(0, 1);
_root.kills++;
this.removeMovieClip();
}
}
x = _x;
y = _y;
this.mod = "normal";
s = (Math.random() * 10) + 10;
h = 5;
}
onClipEvent (enterFrame) {
if (_name != "boss3") {
trace(mod);
if (this.mod == "normal") {
_x = x;
_y = y;
if (x < _root.player._x) {
x = x + 6;
}
if (y < _root.player._y) {
y = y + 6;
}
if (x > _root.player._x) {
x = x - 6;
}
if (y > _root.player._y) {
y = y - 6;
}
}
}
}
Instance of Symbol 153 MovieClip in Frame 4
onClipEvent (load) {
lastlevel = -1;
}
onClipEvent (enterFrame) {
if (lastlevel != _root.level) {
if (mus == undefined) {
if (bos != undefined) {
bos.stop();
delete bos;
}
trace("Created MUS");
mus = new Sound(this);
mus.attachSound("superslam");
mus.start(0, 100000);
mus.setVolume(30);
}
if (_root.levels[_root.level].length == 1) {
trace("Created BOS");
mus.stop();
delete mus;
bos = new Sound(this);
bos.attachSound("bossmusic");
bos.start(0, 10000);
bos.setVolume(100);
}
}
if (_root.level == _root.levels.length) {
mus.setVolume(100);
}
lastlevel = _root.level;
}
on (press) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
}
on (release) {
_xscale = (_xscale / 1.1);
_yscale = (_yscale / 1.1);
if (mus.getVolume() == 30) {
mus.setVolume(0);
} else if (mus.getVolume() == 0) {
mus.setVolume(30);
}
}
Frame 5
_root.onEnterFrame = function () {
};
gotoAndPlay (4);
Frame 6
_root.stop();
_root.onEnterFrame = function () {
};
i = 0;
while (i < enemies) {
_root["enemy" + i].removeMovieClip();
i++;
}
Frame 75
_root.stop();
_root.onEnterFrame = function () {
};
i = 0;
while (i < enemies) {
_root["enemy" + i].removeMovieClip();
i++;
}
Symbol 29 Button
on (release) {
gotoAndPlay (4);
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 3
stop();
Symbol 71 MovieClip Frame 12
gotoAndPlay ("walkD");
Symbol 71 MovieClip Frame 21
gotoAndPlay ("walkU");
Symbol 71 MovieClip Frame 30
gotoAndPlay ("walkL");
Symbol 71 MovieClip Frame 31
stop();
Symbol 71 MovieClip Frame 32
stop();
Symbol 71 MovieClip Frame 33
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 5
stop();
Symbol 81 MovieClip Frame 9
stop();
Symbol 151 MovieClip Frame 1
mod = "normal";
Symbol 151 MovieClip Frame 8
gotoAndPlay (1);
Symbol 151 MovieClip Frame 9
mod = "weak";
Symbol 151 MovieClip Frame 14
mod = "weak";
Symbol 151 MovieClip Frame 56
gotoAndPlay (1);
Symbol 151 MovieClip Frame 58
gotoAndPlay ("rise");