Frame 1
fscommand ("showmenu", false);
fscommand ("fullscreen", true);
_global.aspectsca1 = 0;
_global.aspectsca2 = 0;
_global.aspectsca3 = 0;
_global.aspectsca4 = 0;
_global.aspectsca5 = 0;
_global.aspectsca6 = 0;
_global.aspectsca7 = 0;
_global.aspectsca8 = 0;
_global.aspectwca1 = 0;
_global.aspectwca2 = 0;
_global.aspectwca3 = 0;
_global.aspectwca4 = 0;
_global.aspectwca5 = 0;
_global.aspectwca6 = 0;
_global.aspectwca7 = 0;
_global.aspectwca8 = 0;
_global.aspecttyp1 = 1;
_global.aspecttyp2 = 1;
_global.aspecttyp3 = 1;
_global.aspecttyp4 = 1;
_global.aspecttyp5 = 1;
_global.aspecttyp6 = 1;
_global.aspecttyp7 = 1;
_global.aspecttyp8 = 1;
_global.aspectrot1 = 0;
_global.aspectrot2 = 0;
_global.aspectrot3 = 0;
_global.aspectrot4 = 0;
_global.kol1r = 0;
_global.kol1g = 0;
_global.kol1b = 0;
_global.kol2r = 0;
_global.kol2b = 0;
_global.kol2g = 0;
_global.jajko = 0;
scene = "menu";
stop();
Frame 2
scene = "gra";
_global.n = 0;
_root.bol = function (a) {
_root.attachMovie("pain", "pain" + a, _root.getNextHighestDepth());
a++;
return((_global.n = a));
};
var losoj;
var wrog_liczba = 0;
var wrog_limit = 4;
var farm_liczba = 0;
var farm_limit = 3;
var food_liczba = 0;
var food_limit = 6;
var false_food_liczba = 0;
var false_food_limit = 8;
var good_food_liczba = 0;
var good_food_limit = 3;
_root.attachMovie("gracz", "gracz", _root.getNextHighestDepth(), {_x:512, _y:364, _xscale:20, _yscale:20});
if (_global.x != null) {
_root.gracz._x = _global.x;
_root.gracz._y = _global.y;
}
_root.attachMovie("hud", "hud", _root.getNextHighestDepth(), {_X:24, _y:24});
onEnterFrame = function () {
if (scene == "gra") {
losoj = Math.round(Math.random() * 50);
if (!_root.gracz.editor) {
if ((losoj <= 6) && (food_liczba < food_limit)) {
_root.attachMovie("food", "food" + _global.n, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 1024), _y:Math.round(Math.random() * 768)});
_global.n++;
food_liczba++;
}
if (((losoj >= 7) && (losoj <= 13)) && (false_food_liczba < false_food_limit)) {
_root.attachMovie("false_food", "food" + _global.n, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 1024), _y:Math.round(Math.random() * 768)});
_global.n++;
false_food_liczba++;
}
if (((losoj >= 14) && (losoj <= 21)) && (good_food_liczba < good_food_limit)) {
_root.attachMovie("good_food", "food" + _global.n, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 1024), _y:Math.round(Math.random() * 768)});
_global.n++;
good_food_liczba++;
}
if ((losoj == 22) && (farm_liczba < farm_limit)) {
_root.attachMovie("food2", "food" + _global.n, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 1024), _y:Math.round(Math.random() * 768)});
_global.n++;
farm_liczba++;
}
if ((losoj == 50) && (wrog_liczba < wrog_limit)) {
_root.attachMovie("wrog", "wrog" + _global.n, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 1024), _y:Math.round(Math.random() * 768)});
_global.n++;
wrog_liczba++;
}
}
if (Key.isDown(27)) {
_root.gracz.removeMovieClip();
scene = "menu";
fscommand ("fullscreen", true);
gotoAndPlay (1);
}
if ((_root.gracz.health <= 0) && (_root.gracz._alpha <= 0)) {
if (_root.gracz.jajko_jest == true) {
_global.x = _root.jajko._x;
_global.y = _root.jajko._y;
scene = "ed";
} else {
_root.gracz.removeMovieClip();
scene = "menu";
fscommand ("fullscreen", true);
gotoAndPlay (1);
}
}
}
if (scene == "ed") {
_global.aspect = _root.gracz.aspect;
_global.dna = 25 + _root.gracz.jajko;
_root.gracz.removeMovieClip();
gotoAndPlay (3);
}
};
stop();
Frame 3
scene = "ed";
dna = _global.dna + 120;
var og = 0;
var ogr = 10;
var ogm = 1;
var ogk = true;
var rotstaw1ab = reka1a._rotation;
var rotstaw1bb = reka1b._rotation;
var rotstaw2ab = reka2a._rotation;
var rotstaw2bb = reka2b._rotation;
var rotstaw3ab = reka3a._rotation;
var rotstaw3bb = reka3b._rotation;
var rotstaw4ab = reka4a._rotation;
var rotstaw4bb = reka4b._rotation;
var staw1a = 0;
var staw1b = 0;
var staw2a = 0;
var staw2b = 0;
var aspect = new Object();
aspect.sca1 = _global.aspectsca1;
aspect.sca2 = _global.aspectsca2;
aspect.sca3 = _global.aspectsca3;
aspect.sca4 = _global.aspectsca4;
aspect.sca5 = _global.aspectsca5;
aspect.sca6 = _global.aspectsca6;
aspect.sca7 = _global.aspectsca7;
aspect.sca8 = _global.aspectsca8;
aspect.wca1 = _global.aspectwca1;
aspect.wca2 = _global.aspectwca2;
aspect.wca3 = _global.aspectwca3;
aspect.wca4 = _global.aspectwca4;
aspect.wca5 = _global.aspectwca5;
aspect.wca6 = _global.aspectwca6;
aspect.wca7 = _global.aspectwca7;
aspect.wca8 = _global.aspectwca8;
aspect.typ1 = _global.aspecttyp1;
aspect.typ2 = _global.aspecttyp2;
aspect.typ3 = _global.aspecttyp3;
aspect.typ4 = _global.aspecttyp4;
aspect.typ5 = _global.aspecttyp5;
aspect.typ6 = _global.aspecttyp6;
aspect.typ7 = _global.aspecttyp7;
aspect.typ8 = _global.aspecttyp8;
aspect.rot1 = _global.aspectrot1;
aspect.rot2 = _global.aspectrot2;
aspect.rot3 = _global.aspectrot3;
aspect.rot4 = _global.aspectrot4;
rtim = 0;
var movtr = 0;
spit = kreg0._totalframes;
bont = kreg1._totalframes;
var dane = SharedObject.getLocal("fSPORE");
onEnterFrame = function () {
pas1._xscale = Math.round(((((aspect.sca1 + aspect.sca3) + aspect.sca6) + aspect.sca7) + aspect.sca8) / 5);
kreg0.gotoAndPlay(aspect.typ5);
kreg1.gotoAndPlay(aspect.typ6);
kreg2.gotoAndPlay(aspect.typ7);
kreg3.gotoAndPlay(aspect.typ8);
reka1a.gotoAndPlay(aspect.typ1);
reka2a.gotoAndPlay(aspect.typ1);
reka1b.gotoAndPlay(aspect.typ2);
reka2b.gotoAndPlay(aspect.typ2);
reka3a.gotoAndPlay(aspect.typ3);
reka4a.gotoAndPlay(aspect.typ3);
reka3b.gotoAndPlay(aspect.typ4);
reka4b.gotoAndPlay(aspect.typ4);
var _local2 = new Color(kreg0);
var _local1 = {rb:kol1r, gb:kol1g, bb:kol1b};
_local2.setTransform(_local1);
_local2 = new Color(kreg3);
_local1 = {rb:kol1r, gb:kol1g, bb:kol1b};
_local2.setTransform(_local1);
_local2 = new Color(reka1b);
_local1 = {rb:kol1r, gb:kol1g, bb:kol1b};
_local2.setTransform(_local1);
_local2 = new Color(reka2b);
_local1 = {rb:kol1r, gb:kol1g, bb:kol1b};
_local2.setTransform(_local1);
_local2 = new Color(reka3b);
_local1 = {rb:kol1r, gb:kol1g, bb:kol1b};
_local2.setTransform(_local1);
_local2 = new Color(reka4b);
_local1 = {rb:kol1r, gb:kol1g, bb:kol1b};
_local2.setTransform(_local1);
_local2 = new Color(reka1a);
_local1 = {rb:kol2r, gb:kol2g, bb:kol2b};
_local2.setTransform(_local1);
_local2 = new Color(reka2a);
_local1 = {rb:kol2r, gb:kol2g, bb:kol2b};
_local2.setTransform(_local1);
_local2 = new Color(reka3a);
_local1 = {rb:kol2r, gb:kol2g, bb:kol2b};
_local2.setTransform(_local1);
_local2 = new Color(reka4a);
_local1 = {rb:kol2r, gb:kol2g, bb:kol2b};
_local2.setTransform(_local1);
_local2 = new Color(kreg1);
_local1 = {rb:kol2r, gb:kol2g, bb:kol2b};
_local2.setTransform(_local1);
_local2 = new Color(kreg2);
_local1 = {rb:kol2r, gb:kol2g, bb:kol2b};
_local2.setTransform(_local1);
rotstaw1a = rotstaw1ab - aspect.rot1;
rotstaw1b = rotstaw1bb - aspect.rot2;
rotstaw2a = rotstaw2ab + aspect.rot1;
rotstaw2b = rotstaw2bb + aspect.rot2;
rotstaw3a = rotstaw3ab - aspect.rot3;
rotstaw3b = rotstaw3bb - aspect.rot4;
rotstaw4a = rotstaw4ab + aspect.rot3;
rotstaw4b = rotstaw4bb + aspect.rot4;
reka1a._rotation = rotstaw1a - (rtim * 5);
reka2a._rotation = rotstaw2a + (rtim * 5);
reka3a._rotation = rotstaw3a - (rtim * 2);
reka4a._rotation = rotstaw4a + (rtim * 2);
dl = Math.round(reka1a._yscale * 0.75);
reka1b._x = reka1a._x - (Math.sin(reka1a._rotation * (Math.PI/180)) * dl);
reka1b._y = reka1a._y + (Math.cos(reka1a._rotation * (Math.PI/180)) * dl);
reka2b._x = reka2a._x - (Math.sin(reka2a._rotation * (Math.PI/180)) * dl);
reka2b._y = reka2a._y + (Math.cos(reka2a._rotation * (Math.PI/180)) * dl);
dl = Math.round(reka3a._yscale * 0.75);
reka3b._x = reka3a._x - (Math.sin(reka3a._rotation * (Math.PI/180)) * dl);
reka3b._y = reka3a._y + (Math.cos(reka3a._rotation * (Math.PI/180)) * dl);
reka4b._x = reka4a._x - (Math.sin(reka4a._rotation * (Math.PI/180)) * dl);
reka4b._y = reka4a._y + (Math.cos(reka4a._rotation * (Math.PI/180)) * dl);
reka1b._rotation = rotstaw1b - (rtim * 2);
reka2b._rotation = rotstaw2b + (rtim * 2);
reka3b._rotation = rotstaw3b - (rtim * 2);
reka4b._rotation = rotstaw4b + (rtim * 2);
kreg1._rotation = og;
dl = Math.round(kreg1._yscale * 0.75);
kreg2._x = kreg1._x + (Math.sin((kreg1._rotation + 180) * (Math.PI/180)) * dl);
kreg2._y = kreg1._y + ((Math.cos((kreg1._rotation + 180) * (Math.PI/180)) * -1) * dl);
kreg2._rotation = kreg1._rotation + og;
dl = Math.round(kreg2._yscale * 0.75);
kreg3._x = kreg2._x + (Math.sin((kreg2._rotation + 180) * (Math.PI/180)) * dl);
kreg3._y = kreg2._y + ((Math.cos((kreg2._rotation + 180) * (Math.PI/180)) * -1) * dl);
kreg3._rotation = (kreg2._rotation + og) + 180;
reka1a._yscale = (reka2a._yscale = 100 + aspect.sca1);
reka1b._yscale = (reka2b._yscale = 100 + aspect.sca2);
reka3a._yscale = (reka4a._yscale = 100 + aspect.sca3);
reka3b._yscale = (reka4b._yscale = 100 + aspect.sca4);
kreg0._yscale = 100 + aspect.sca5;
kreg1._yscale = 100 + aspect.sca6;
kreg2._yscale = 100 + aspect.sca7;
kreg3._yscale = 100 + aspect.sca8;
reka1a._xscale = (reka2a._xscale = 100 + aspect.wca1);
reka1b._xscale = (reka2b._xscale = 100 + aspect.wca2);
reka3a._xscale = (reka4a._xscale = 100 + aspect.wca3);
reka3b._xscale = (reka4b._xscale = 100 + aspect.wca4);
kreg0._xscale = 100 + aspect.wca5;
kreg1._xscale = 100 + aspect.wca6;
kreg2._xscale = 100 + aspect.wca7;
kreg3._xscale = 100 + aspect.wca8;
};
stop();
Instance of Symbol 178 MovieClip "k1r" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.kol1r / 255) * 96);
}
onClipEvent (enterFrame) {
_root.kol1r = va;
}
Instance of Symbol 178 MovieClip "k1g" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.kol1g / 255) * 96);
}
onClipEvent (enterFrame) {
_root.kol1g = va;
}
Instance of Symbol 178 MovieClip "k1b" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.kol1b / 255) * 96);
}
onClipEvent (enterFrame) {
_root.kol1b = va;
}
Instance of Symbol 178 MovieClip "k2r" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.kol2r / 255) * 96);
}
onClipEvent (enterFrame) {
_root.kol2r = va;
}
Instance of Symbol 178 MovieClip "k2g" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.kol2g / 255) * 96);
}
onClipEvent (enterFrame) {
_root.kol2g = va;
}
Instance of Symbol 178 MovieClip "k2b" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.kol2b / 255) * 96);
}
onClipEvent (enterFrame) {
_root.kol2b = va;
}
Instance of Symbol 180 MovieClip "p1a" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.sca5 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.sca5 = va;
}
Instance of Symbol 180 MovieClip "p1b" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.wca5 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.wca5 = va;
}
Instance of Symbol 180 MovieClip "p2a" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.sca6 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.sca6 = va;
}
Instance of Symbol 180 MovieClip "p2b" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.wca6 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.wca6 = va;
}
Instance of Symbol 180 MovieClip "p3a" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.sca7 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.sca7 = va;
}
Instance of Symbol 180 MovieClip "p3b" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.wca7 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.wca7 = va;
}
Instance of Symbol 180 MovieClip "p4a" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.sca8 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.sca8 = va;
}
Instance of Symbol 180 MovieClip "p4b" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.wca8 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.wca8 = va;
}
Instance of Symbol 180 MovieClip "p5a" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.sca1 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.sca1 = va;
}
Instance of Symbol 180 MovieClip "p5b" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.wca1 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.wca1 = va;
}
Instance of Symbol 180 MovieClip "p6a" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.sca2 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.sca2 = va;
}
Instance of Symbol 180 MovieClip "p6b" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.wca2 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.wca2 = va;
}
Instance of Symbol 180 MovieClip "p7a" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.sca3 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.sca3 = va;
}
Instance of Symbol 180 MovieClip "p7b" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.wca3 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.wca3 = va;
}
Instance of Symbol 180 MovieClip "p8a" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.sca4 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.sca4 = va;
}
Instance of Symbol 180 MovieClip "p8b" in Frame 3
onClipEvent (load) {
lolek._x = Math.round((_root.aspect.wca4 / 100) * 96);
}
onClipEvent (enterFrame) {
_root.aspect.wca4 = va;
}
Instance of Symbol 193 MovieClip "ro2" in Frame 3
onClipEvent (load) {
_rotation = (_root.rotstaw2bb + _root.aspect.rot2);
}
onClipEvent (enterFrame) {
dl = Math.round(_root.reka2a._yscale * 0.75);
_x = (_root.reka2a._x - (Math.sin(_root.reka2a._rotation * (Math.PI/180)) * dl));
_y = (_root.reka2a._y + (Math.cos(_root.reka2a._rotation * (Math.PI/180)) * dl));
if (rot) {
_root.ro1._rotation = _rotation;
_root.aspect.rot2 = _rotation - _root.rotstaw2bb;
}
}
Instance of Symbol 199 MovieClip "ro5" in Frame 3
onClipEvent (load) {
a = (_root.rotstaw2ab + _root.aspect.rot1) + 180;
}
onClipEvent (enterFrame) {
_root.aspect.rot1 = (a - _root.rotstaw2ab) + 180;
}
Instance of Symbol 199 MovieClip "ro6" in Frame 3
onClipEvent (load) {
a = (_root.rotstaw4ab + _root.aspect.rot3) + 180;
}
onClipEvent (enterFrame) {
_root.aspect.rot3 = (a - _root.rotstaw4ab) + 180;
}
Instance of Symbol 193 MovieClip "ro4" in Frame 3
onClipEvent (load) {
_rotation = (_root.rotstaw4bb + _root.aspect.rot4);
}
onClipEvent (enterFrame) {
dl = Math.round(_root.reka4a._yscale * 0.75);
_x = (_root.reka4a._x - (Math.sin(_root.reka4a._rotation * (Math.PI/180)) * dl));
_y = (_root.reka4a._y + (Math.cos(_root.reka4a._rotation * (Math.PI/180)) * dl));
if (rot) {
_root.ro3._rotation = _rotation;
_root.aspect.rot4 = _rotation - _root.rotstaw4bb;
}
}
Instance of Symbol 193 MovieClip "ro1" in Frame 3
onClipEvent (load) {
_rotation = (_root.rotstaw1bb + _root.aspect.rot2);
}
onClipEvent (enterFrame) {
dl = Math.round(_root.reka1a._yscale * 0.75);
_x = (_root.reka1a._x - (Math.sin(_root.reka1a._rotation * (Math.PI/180)) * dl));
_y = (_root.reka1a._y + (Math.cos(_root.reka1a._rotation * (Math.PI/180)) * dl));
if (rot) {
_root.ro2._rotation = _rotation;
_root.aspect.rot2 = (_root.rotstaw1bb - _rotation) + 180;
}
}
Instance of Symbol 193 MovieClip "ro3" in Frame 3
onClipEvent (load) {
_rotation = (_root.rotstaw3bb + _root.aspect.rot4);
}
onClipEvent (enterFrame) {
dl = Math.round(_root.reka3a._yscale * 0.75);
_x = (_root.reka3a._x - (Math.sin(_root.reka3a._rotation * (Math.PI/180)) * dl));
_y = (_root.reka3a._y + (Math.cos(_root.reka3a._rotation * (Math.PI/180)) * dl));
if (rot) {
_root.ro4._rotation = _rotation;
_root.aspect.rot4 = (_root.rotstaw3bb - _rotation) + 180;
}
}
Frame 4
scene = "menu";
stop();
Symbol 16 MovieClip [bone] Frame 1
stop();
Symbol 16 MovieClip [bone] Frame 2
stop();
Symbol 16 MovieClip [bone] Frame 3
stop();
Symbol 16 MovieClip [bone] Frame 4
stop();
Symbol 16 MovieClip [bone] Frame 5
stop();
Symbol 16 MovieClip [bone] Frame 6
stop();
Symbol 16 MovieClip [bone] Frame 7
stop();
Symbol 16 MovieClip [bone] Frame 8
stop();
Symbol 16 MovieClip [bone] Frame 9
stop();
Symbol 16 MovieClip [bone] Frame 10
stop();
Symbol 16 MovieClip [bone] Frame 11
stop();
Symbol 35 MovieClip [spike] Frame 1
stop();
Symbol 35 MovieClip [spike] Frame 2
stop();
Symbol 35 MovieClip [spike] Frame 3
stop();
Symbol 35 MovieClip [spike] Frame 4
stop();
Symbol 35 MovieClip [spike] Frame 5
stop();
Symbol 35 MovieClip [spike] Frame 6
stop();
Symbol 35 MovieClip [spike] Frame 7
stop();
Symbol 35 MovieClip [spike] Frame 8
stop();
Symbol 35 MovieClip [spike] Frame 9
stop();
Symbol 35 MovieClip [spike] Frame 10
stop();
Symbol 35 MovieClip [spike] Frame 11
stop();
Symbol 35 MovieClip [spike] Frame 12
stop();
Symbol 35 MovieClip [spike] Frame 13
stop();
Symbol 35 MovieClip [spike] Frame 14
stop();
Symbol 35 MovieClip [spike] Frame 15
stop();
Symbol 35 MovieClip [spike] Frame 16
stop();
Symbol 35 MovieClip [spike] Frame 17
stop();
Symbol 35 MovieClip [spike] Frame 18
stop();
Symbol 36 MovieClip [Gracz_new] Frame 1
var jajko = _global.jajko;
var jajkolimit = 10;
var jajko_jest = false;
var editor = false;
var og = 0;
var ogr = 10;
var ogm = 1;
var ogk = true;
var dl = 72;
var v = 0;
var rtim = 0;
var rpow = 15;
var health = 100;
var healthmax = health;
reka1a._x = (reka2a._x = (reka3a._x = (reka4a._x = (kreg0._x = (kreg1._x = 0)))));
var rotstaw1ab = reka1a._rotation;
var rotstaw1bb = reka1b._rotation;
var rotstaw2ab = reka2a._rotation;
var rotstaw2bb = reka2b._rotation;
var rotstaw3ab = reka3a._rotation;
var rotstaw3bb = reka3b._rotation;
var rotstaw4ab = reka4a._rotation;
var rotstaw4bb = reka4b._rotation;
var staw1a = 0;
var staw1b = 0;
var staw2a = 0;
var staw2b = 0;
var ruch = false;
var aspect = new Object({sca1:0, sca2:0, sca3:0, sca4:0, sca5:0, sca6:0, sca7:0, sca8:0, sca9:0, sca10:0, wca1:0, wca2:0, wca3:0, wca4:0, wca5:0, wca6:0, wca7:0, wca8:0, typ1:1, typ2:1, typ3:1, typ4:1, typ5:1, typ6:1, typ7:1, typ8:1, rot1:0, rot2:0, rot3:0, rot4:0});
aspect.sca1 = _global.aspectsca1;
aspect.sca2 = _global.aspectsca2;
aspect.sca3 = _global.aspectsca3;
aspect.sca4 = _global.aspectsca4;
aspect.sca5 = _global.aspectsca5;
aspect.sca6 = _global.aspectsca6;
aspect.sca7 = _global.aspectsca7;
aspect.sca8 = _global.aspectsca8;
aspect.wca1 = _global.aspectwca1;
aspect.wca2 = _global.aspectwca2;
aspect.wca3 = _global.aspectwca3;
aspect.wca4 = _global.aspectwca4;
aspect.wca5 = _global.aspectwca5;
aspect.wca6 = _global.aspectwca6;
aspect.wca7 = _global.aspectwca7;
aspect.wca8 = _global.aspectwca8;
aspect.typ1 = _global.aspecttyp1;
aspect.typ2 = _global.aspecttyp2;
aspect.typ3 = _global.aspecttyp3;
aspect.typ4 = _global.aspecttyp4;
aspect.typ5 = _global.aspecttyp5;
aspect.typ6 = _global.aspecttyp6;
aspect.typ7 = _global.aspecttyp7;
aspect.typ8 = _global.aspecttyp8;
aspect.rot1 = _global.aspectrot1;
aspect.rot2 = _global.aspectrot2;
aspect.rot3 = _global.aspectrot3;
aspect.rot4 = _global.aspectrot4;
var kregoslup = new Array();
kregoslup[0][0] = 1;
kregoslup[0][1] = 0;
kregoslup[0][2] = 0;
kregoslup[1][0] = 1;
kregoslup[1][1] = 0;
kregoslup[1][2] = 0;
kreg0.gotoAndPlay(aspect.typ5);
kreg1.gotoAndPlay(aspect.typ6);
kreg2.gotoAndPlay(aspect.typ7);
kreg3.gotoAndPlay(aspect.typ8);
reka1a.gotoAndPlay(aspect.typ1);
reka2a.gotoAndPlay(aspect.typ1);
reka1b.gotoAndPlay(aspect.typ2);
reka2b.gotoAndPlay(aspect.typ2);
reka3a.gotoAndPlay(aspect.typ3);
reka4a.gotoAndPlay(aspect.typ3);
reka3b.gotoAndPlay(aspect.typ4);
reka4b.gotoAndPlay(aspect.typ4);
var kolor = new Color(kreg0);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(kreg3);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(reka1b);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(reka2b);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(reka3b);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(reka4b);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(reka1a);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var kolor = new Color(reka2a);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var kolor = new Color(reka3a);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var kolor = new Color(reka4a);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var kolor = new Color(kreg1);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var kolor = new Color(kreg2);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var plyw = new Sound();
plyw.attachSound("water");
onEnterFrame = function () {
if ((jajko >= jajkolimit) && (!jajko_jest)) {
_root.attachMovie("jajo", "jajko", _root.getNextHighestDepth(), {_x:_x, _y:_y});
jajko = jajko - jajkolimit;
jajko_jest = true;
}
rotstaw1a = rotstaw1ab - aspect.rot1;
rotstaw1b = rotstaw1bb - aspect.rot2;
rotstaw2a = rotstaw2ab + aspect.rot1;
rotstaw2b = rotstaw2bb + aspect.rot2;
rotstaw3a = rotstaw3ab - aspect.rot3;
rotstaw3b = rotstaw3bb - aspect.rot4;
rotstaw4a = rotstaw4ab + aspect.rot3;
rotstaw4b = rotstaw4bb + aspect.rot4;
mousedist = Math.round(Math.sqrt((Math.abs(_root._xmouse - _x) * Math.abs(_root._xmouse - _x)) + (Math.abs(_root._ymouse - _y) * Math.abs(_root._ymouse - _y))));
if ((mousedist > 30) && (!editor)) {
_rotation = (Math.round((Math.atan2(_y - _root._root._ymouse, _x - _root._xmouse) / Math.PI) * 180) - 90);
}
if (ruch == true) {
if (mousedist > 90) {
if (rtim == 0) {
plyw.start();
rtim = 20;
v = v + rpow;
}
}
}
if (rtim > 0) {
rtim--;
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * v));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * v) * -1));
v = v * 0.92;
reka1a._rotation = rotstaw1a - (rtim * 5);
reka2a._rotation = rotstaw2a + (rtim * 5);
reka3a._rotation = rotstaw3a - (rtim * 2);
reka4a._rotation = rotstaw4a + (rtim * 2);
dl = Math.round(reka1a._yscale * 0.75);
reka1b._x = reka1a._x - (Math.sin(reka1a._rotation * (Math.PI/180)) * dl);
reka1b._y = reka1a._y + (Math.cos(reka1a._rotation * (Math.PI/180)) * dl);
reka2b._x = reka2a._x - (Math.sin(reka2a._rotation * (Math.PI/180)) * dl);
reka2b._y = reka2a._y + (Math.cos(reka2a._rotation * (Math.PI/180)) * dl);
dl = Math.round(reka3a._yscale * 0.75);
reka3b._x = reka3a._x - (Math.sin(reka3a._rotation * (Math.PI/180)) * dl);
reka3b._y = reka3a._y + (Math.cos(reka3a._rotation * (Math.PI/180)) * dl);
reka4b._x = reka4a._x - (Math.sin(reka4a._rotation * (Math.PI/180)) * dl);
reka4b._y = reka4a._y + (Math.cos(reka4a._rotation * (Math.PI/180)) * dl);
reka1b._rotation = rotstaw1b - (rtim * 2);
reka2b._rotation = rotstaw2b + (rtim * 2);
reka3b._rotation = rotstaw3b - (rtim * 2);
reka4b._rotation = rotstaw4b + (rtim * 2);
kreg1._rotation = og;
dl = Math.round(kreg1._yscale * 0.75);
kreg2._x = kreg1._x + (Math.sin((kreg1._rotation + 180) * (Math.PI/180)) * dl);
kreg2._y = kreg1._y + ((Math.cos((kreg1._rotation + 180) * (Math.PI/180)) * -1) * dl);
kreg2._rotation = kreg1._rotation + og;
dl = Math.round(kreg2._yscale * 0.75);
kreg3._x = kreg2._x + (Math.sin((kreg2._rotation + 180) * (Math.PI/180)) * dl);
kreg3._y = kreg2._y + ((Math.cos((kreg2._rotation + 180) * (Math.PI/180)) * -1) * dl);
kreg3._rotation = (kreg2._rotation + og) + 180;
ogrl = ogr - Math.round(v / 2);
if ((og < ogrl) && (ogk == true)) {
og = og + (ogm + Math.round(v / 4));
}
if ((og >= ogrl) && (ogk == true)) {
ogk = false;
}
if ((og > (ogrl * -1)) && (ogk == false)) {
og = og - (ogm + Math.round(v / 4));
}
if ((og <= (ogrl * -1)) && (ogk == false)) {
ogk = true;
}
reka1a._yscale = (reka2a._yscale = 100 + aspect.sca1);
reka1b._yscale = (reka2b._yscale = 100 + aspect.sca2);
reka3a._yscale = (reka4a._yscale = 100 + aspect.sca3);
reka3b._yscale = (reka4b._yscale = 100 + aspect.sca4);
kreg0._yscale = 100 + aspect.sca5;
kreg1._yscale = 100 + aspect.sca6;
kreg2._yscale = 100 + aspect.sca7;
kreg3._yscale = 100 + aspect.sca8;
reka1a._xscale = (reka2a._xscale = 100 + aspect.wca1);
reka1b._xscale = (reka2b._xscale = 100 + aspect.wca2);
reka3a._xscale = (reka4a._xscale = 100 + aspect.wca3);
reka3b._xscale = (reka4b._xscale = 100 + aspect.wca4);
kreg0._xscale = 100 + aspect.wca5;
kreg1._xscale = 100 + aspect.wca6;
kreg2._xscale = 100 + aspect.wca7;
kreg3._xscale = 100 + aspect.wca8;
};
onMouseDown = function () {
if (!editor) {
ruch = true;
}
};
onMouseUp = function () {
ruch = false;
};
Symbol 37 MovieClip [Gracz] Frame 1
var jajko = _global.jajko;
var jajkolimit = 80;
var jajko_jest = false;
var editor = false;
var og = 0;
var ogr = 10;
var ogm = 1;
var ogk = true;
var dl = 72;
var v = 0;
var rtim = 0;
var rpow = new Number();
var health = 100;
var healthmax = health;
reka1a._x = (reka2a._x = (reka3a._x = (reka4a._x = (kreg0._x = (kreg1._x = 0)))));
var rotstaw1ab = reka1a._rotation;
var rotstaw1bb = reka1b._rotation;
var rotstaw2ab = reka2a._rotation;
var rotstaw2bb = reka2b._rotation;
var rotstaw3ab = reka3a._rotation;
var rotstaw3bb = reka3b._rotation;
var rotstaw4ab = reka4a._rotation;
var rotstaw4bb = reka4b._rotation;
var staw1a = 0;
var staw1b = 0;
var staw2a = 0;
var staw2b = 0;
var ruch = false;
var aspect = new Object({sca1:0, sca2:0, sca3:0, sca4:0, sca5:0, sca6:0, sca7:0, sca8:0, sca9:0, sca10:0, wca1:0, wca2:0, wca3:0, wca4:0, wca5:0, wca6:0, wca7:0, wca8:0, typ1:1, typ2:1, typ3:1, typ4:1, typ5:1, typ6:1, typ7:1, typ8:1, rot1:0, rot2:0, rot3:0, rot4:0});
aspect.sca1 = _global.aspectsca1;
aspect.sca2 = _global.aspectsca2;
aspect.sca3 = _global.aspectsca3;
aspect.sca4 = _global.aspectsca4;
aspect.sca5 = _global.aspectsca5;
aspect.sca6 = _global.aspectsca6;
aspect.sca7 = _global.aspectsca7;
aspect.sca8 = _global.aspectsca8;
aspect.wca1 = _global.aspectwca1;
aspect.wca2 = _global.aspectwca2;
aspect.wca3 = _global.aspectwca3;
aspect.wca4 = _global.aspectwca4;
aspect.wca5 = _global.aspectwca5;
aspect.wca6 = _global.aspectwca6;
aspect.wca7 = _global.aspectwca7;
aspect.wca8 = _global.aspectwca8;
aspect.typ1 = _global.aspecttyp1;
aspect.typ2 = _global.aspecttyp2;
aspect.typ3 = _global.aspecttyp3;
aspect.typ4 = _global.aspecttyp4;
aspect.typ5 = _global.aspecttyp5;
aspect.typ6 = _global.aspecttyp6;
aspect.typ7 = _global.aspecttyp7;
aspect.typ8 = _global.aspecttyp8;
aspect.rot1 = _global.aspectrot1;
aspect.rot2 = _global.aspectrot2;
aspect.rot3 = _global.aspectrot3;
aspect.rot4 = _global.aspectrot4;
kreg0.gotoAndPlay(aspect.typ5);
kreg1.gotoAndPlay(aspect.typ6);
kreg2.gotoAndPlay(aspect.typ7);
kreg3.gotoAndPlay(aspect.typ8);
reka1a.gotoAndPlay(aspect.typ1);
reka2a.gotoAndPlay(aspect.typ1);
reka1b.gotoAndPlay(aspect.typ2);
reka2b.gotoAndPlay(aspect.typ2);
reka3a.gotoAndPlay(aspect.typ3);
reka4a.gotoAndPlay(aspect.typ3);
reka3b.gotoAndPlay(aspect.typ4);
reka4b.gotoAndPlay(aspect.typ4);
var kolor = new Color(kreg0);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(kreg3);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(reka1b);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(reka2b);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(reka3b);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(reka4b);
var myTransform = {rb:_global.kol1r, gb:_global.kol1g, bb:_global.kol1b};
kolor.setTransform(myTransform);
var kolor = new Color(reka1a);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var kolor = new Color(reka2a);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var kolor = new Color(reka3a);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var kolor = new Color(reka4a);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var kolor = new Color(kreg1);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var kolor = new Color(kreg2);
var myTransform = {rb:_global.kol2r, gb:_global.kol2g, bb:_global.kol2b};
kolor.setTransform(myTransform);
var plyw = new Sound();
plyw.attachSound("water");
var ded = new Sound();
ded.attachSound("Alien_de");
onEnterFrame = function () {
rpow = 16 + Math.round(((((aspect.sca1 + aspect.sca3) + aspect.sca6) + aspect.sca7) + aspect.sca8) / 70);
if ((jajko >= jajkolimit) && (!jajko_jest)) {
_root.attachMovie("jajo", "jajko", _root.getNextHighestDepth(), {_x:_x, _y:_y});
jajko = jajko - jajkolimit;
jajko_jest = true;
}
mousedist = Math.round(Math.sqrt((Math.abs(_root._xmouse - _x) * Math.abs(_root._xmouse - _x)) + (Math.abs(_root._ymouse - _y) * Math.abs(_root._ymouse - _y))));
if ((mousedist > 30) && (!editor)) {
_rotation = (Math.round((Math.atan2(_y - _root._root._ymouse, _x - _root._xmouse) / Math.PI) * 180) - 90);
}
if (ruch == true) {
if (mousedist > 90) {
if (rtim == 0) {
plyw.start();
rtim = 20;
v = v + rpow;
}
}
}
if (rtim > 0) {
rtim--;
}
if (health < 0) {
ruch = false;
health = 0;
ded.start();
}
if ((health <= 0) && (_alpha > 0)) {
_alpha = (_alpha - 10);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * v));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * v) * -1));
v = v * 0.92;
ogrl = ogr - Math.round(v / 2);
if ((og < ogrl) && (ogk == true)) {
og = og + (ogm + Math.round(v / 4));
}
if ((og >= ogrl) && (ogk == true)) {
ogk = false;
}
if ((og > (ogrl * -1)) && (ogk == false)) {
og = og - (ogm + Math.round(v / 4));
}
if ((og <= (ogrl * -1)) && (ogk == false)) {
ogk = true;
}
reka1a._rotation = rotstaw1a - (rtim * 5);
reka2a._rotation = rotstaw2a + (rtim * 5);
reka3a._rotation = rotstaw3a - (rtim * 2);
reka4a._rotation = rotstaw4a + (rtim * 2);
reka1b._rotation = rotstaw1b - (rtim * 2);
reka2b._rotation = rotstaw2b + (rtim * 2);
reka3b._rotation = rotstaw3b - (rtim * 2);
reka4b._rotation = rotstaw4b + (rtim * 2);
dl = Math.round(reka1a._yscale * 0.75);
reka1b._x = reka1a._x - (Math.sin(reka1a._rotation * (Math.PI/180)) * dl);
reka1b._y = reka1a._y + (Math.cos(reka1a._rotation * (Math.PI/180)) * dl);
reka2b._x = reka2a._x - (Math.sin(reka2a._rotation * (Math.PI/180)) * dl);
reka2b._y = reka2a._y + (Math.cos(reka2a._rotation * (Math.PI/180)) * dl);
dl = Math.round(reka3a._yscale * 0.75);
reka3b._x = reka3a._x - (Math.sin(reka3a._rotation * (Math.PI/180)) * dl);
reka3b._y = reka3a._y + (Math.cos(reka3a._rotation * (Math.PI/180)) * dl);
reka4b._x = reka4a._x - (Math.sin(reka4a._rotation * (Math.PI/180)) * dl);
reka4b._y = reka4a._y + (Math.cos(reka4a._rotation * (Math.PI/180)) * dl);
kreg1._rotation = og;
dl = Math.round(kreg1._yscale * 0.75);
kreg2._x = kreg1._x + (Math.sin((kreg1._rotation + 180) * (Math.PI/180)) * dl);
kreg2._y = kreg1._y + ((Math.cos((kreg1._rotation + 180) * (Math.PI/180)) * -1) * dl);
kreg2._rotation = kreg1._rotation + og;
dl = Math.round(kreg2._yscale * 0.75);
kreg3._x = kreg2._x + (Math.sin((kreg2._rotation + 180) * (Math.PI/180)) * dl);
kreg3._y = kreg2._y + ((Math.cos((kreg2._rotation + 180) * (Math.PI/180)) * -1) * dl);
kreg3._rotation = (kreg2._rotation + og) + 180;
rotstaw1a = rotstaw1ab - aspect.rot1;
rotstaw1b = rotstaw1bb - aspect.rot2;
rotstaw2a = rotstaw2ab + aspect.rot1;
rotstaw2b = rotstaw2bb + aspect.rot2;
rotstaw3a = rotstaw3ab - aspect.rot3;
rotstaw3b = rotstaw3bb - aspect.rot4;
rotstaw4a = rotstaw4ab + aspect.rot3;
rotstaw4b = rotstaw4bb + aspect.rot4;
reka1a._yscale = (reka2a._yscale = 100 + aspect.sca1);
reka1b._yscale = (reka2b._yscale = 100 + aspect.sca2);
reka3a._yscale = (reka4a._yscale = 100 + aspect.sca3);
reka3b._yscale = (reka4b._yscale = 100 + aspect.sca4);
kreg0._yscale = 100 + aspect.sca5;
kreg1._yscale = 100 + aspect.sca6;
kreg2._yscale = 100 + aspect.sca7;
kreg3._yscale = 100 + aspect.sca8;
reka1a._xscale = (reka2a._xscale = 100 + aspect.wca1);
reka1b._xscale = (reka2b._xscale = 100 + aspect.wca2);
reka3a._xscale = (reka4a._xscale = 100 + aspect.wca3);
reka3b._xscale = (reka4b._xscale = 100 + aspect.wca4);
kreg0._xscale = 100 + aspect.wca5;
kreg1._xscale = 100 + aspect.wca6;
kreg2._xscale = 100 + aspect.wca7;
kreg3._xscale = 100 + aspect.wca8;
};
onMouseDown = function () {
if (health > 0) {
ruch = true;
}
};
onMouseUp = function () {
ruch = false;
};
Symbol 40 MovieClip [jajo] Frame 1
_yscale = 0;
_xscale = 0;
onEnterFrame = function () {
if (_xscale < 100) {
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
if (_root.scene != "gra") {
this.removeMovieClip();
}
};
Instance of Symbol 39 MovieClip in Symbol 40 MovieClip [jajo] Frame 1
on (press) {
_global.x = _root.jajko._x;
_global.y = _root.jajko._y;
_root.scene = "ed";
}
Symbol 42 MovieClip [food2] Frame 1
_yscale = 0;
_xscale = 0;
zyje = true;
var plum = new Sound();
plum.attachSound("drip");
d = 32;
ze = 15;
rot = 0;
var listazesek = new Array();
while (ze > 0) {
ze--;
nazwa = "zesa" + _global.n;
_global.n++;
_root.attachMovie("zezka", nazwa, _root.getNextHighestDepth(), {rodzic:_name, _rotation:rot, _x:_x + (Math.sin(rot * (Math.PI/180)) * 32), _y:_y - (Math.cos(rot * (Math.PI/180)) * 32), rodzic:_name});
rot = rot + 24;
}
_rotation = Math.round(Math.random() * 360);
onEnterFrame = function () {
if ((_xscale < 100) && (zyje)) {
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
if ((_root.gracz.kreg0.hitTest(this) && (_root.gracz.aspect.sca5 >= 100)) && (zyje)) {
_root.gracz.jajko = _root.gracz.jajko + 17;
_root.farm_liczba--;
zyje = false;
plum.start();
}
if ((!zyje) && (_xscale > 0)) {
_xscale = (_xscale - 10);
_yscale = _xscale;
}
if ((!zyje) && (_xscale <= 0)) {
this.removeMovieClip();
}
_rotation;
if (_root.scene != "gra") {
this.removeMovieClip();
}
};
Symbol 44 MovieClip [good_food] Frame 1
_yscale = 0;
_xscale = 0;
zyje = true;
var plum = new Sound();
plum.attachSound("drip");
onEnterFrame = function () {
if ((_xscale < 100) && (zyje)) {
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
if (_root.gracz.kreg0.hitTest(this) && (zyje)) {
if ((_root.gracz.health + 5) < _root.gracz.healthmax) {
_root.gracz.health = _root.gracz.health + 5;
} else if ((_root.gracz.health + 5) >= _root.gracz.healthmax) {
_root.gracz.health = _root.gracz.healthmax;
}
_root.gracz.jajko = _root.gracz.jajko + 2;
_root.good_food_liczba--;
zyje = false;
plum.start();
}
if ((!zyje) && (_xscale > 0)) {
_yscale = (_yscale - 10);
_xscale = _yscale;
}
if ((!zyje) && (_xscale <= 0)) {
this.removeMovieClip();
}
if (_root.scene != "gra") {
_root.food_liczba--;
this.removeMovieClip();
}
};
Symbol 46 MovieClip [false_food] Frame 1
_yscale = 0;
_xscale = 0;
zyje = true;
var plum = new Sound();
plum.attachSound("drip");
onEnterFrame = function () {
if ((_xscale < 100) && (zyje)) {
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
if (_root.gracz.kreg0.hitTest(this) && (zyje)) {
_root.gracz.health = _root.gracz.health - 7;
_root.false_food_liczba--;
zyje = false;
plum.start();
}
if ((!zyje) && (_xscale > 0)) {
_yscale = (_yscale - 10);
_xscale = _yscale;
}
if ((!zyje) && (_xscale <= 0)) {
this.removeMovieClip();
}
if (_root.scene != "gra") {
_root.food_liczba--;
this.removeMovieClip();
}
};
Symbol 48 MovieClip [food] Frame 1
_yscale = 0;
_xscale = 0;
zyje = true;
var plum = new Sound();
plum.attachSound("drip");
onEnterFrame = function () {
if ((_xscale < 100) && (zyje)) {
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
if (_root.gracz.kreg0.hitTest(this) && (zyje)) {
_root.gracz.jajko = _root.gracz.jajko + 4;
_root.food_liczba--;
zyje = false;
plum.start();
}
if ((!zyje) && (_xscale > 0)) {
_yscale = (_yscale - 10);
_xscale = _yscale;
}
if ((!zyje) && (_xscale <= 0)) {
this.removeMovieClip();
}
if (_root.scene != "gra") {
_root.food_liczba--;
this.removeMovieClip();
}
};
Symbol 50 MovieClip [animker] Frame 1
d = 12;
child--;
if (child >= 1) {
nazwa = "ikpart" + _global.n;
_global.n++;
_root.attachMovie("animker", nazwa, _root.getNextHighestDepth(), {_x:_x, _y:_y, child:child, fath:fath});
}
onEnterFrame = function () {
if (child >= 1) {
var _local5 = _root[nazwa]._x - _x;
var _local4 = _root[nazwa]._y - _y;
var _local3 = Math.atan2(_local4, _local5);
_root[nazwa]._x = this._x + (Math.cos(_local3) * d);
_root[nazwa]._y = this._y + (Math.sin(_local3) * d);
_root[nazwa]._rotation = (((Math.PI + _local3) * 180) / Math.PI) - 90;
}
if (_root[fath].health <= 0) {
this.removeMovieClip();
}
if (_root.scene != "gra") {
this.removeMovieClip();
}
};
Symbol 52 MovieClip [wrog] Frame 1
tim = 0;
tim2 = 0;
d = 10;
child = Math.round(Math.random() * 4) + 2;
v = 14 - child;
nazwa = "ikpart" + _global.n;
fath = _name;
_global.n++;
_root.attachMovie("animker", nazwa, _root.getNextHighestDepth(), {_x:_x, _y:_y, child:child, fath:fath});
waz = false;
strafe = 20;
time = 0;
health = 20;
onEnterFrame = function () {
if (this.hitTest(_root.gracz) && (time == 0)) {
_root.gracz.health = _root.gracz.health - Math.round(child * 2);
_root.attachMovie("pain", "pain" + _global.n, _root.getNextHighestDepth(), {_x:_root.gracz._x, _y:_root.gracz._y});
_global.n++;
time = 25;
}
if (time > 0) {
time--;
}
var _local6 = _root[nazwa]._x - _x;
var _local5 = _root[nazwa]._y - _y;
var _local4 = Math.atan2(_local5, _local6);
_root[nazwa]._x = this._x + (Math.cos(_local4) * d);
_root[nazwa]._y = this._y + (Math.sin(_local4) * d);
_root[nazwa]._rotation = (((Math.PI + _local4) * 180) / Math.PI) - 90;
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * v));
_y = (_y - (Math.cos(_rotation * (Math.PI/180)) * v));
tim--;
_global.n++;
if (tim2 == 0) {
tim2 = 30;
rc = Math.round(Math.random() * 60) - 30;
}
tim2--;
if (rc > 0) {
rc--;
_rotation = (_rotation+1);
}
if (rc < 0) {
rc++;
_rotation = (_rotation-1);
}
if (waz && (strafe > 0)) {
strafe--;
_rotation = (_rotation - 12);
}
if ((!waz) && (strafe > 0)) {
strafe--;
_rotation = (_rotation + 12);
}
if (strafe <= 0) {
if (waz) {
waz = false;
} else {
waz = true;
}
strafe = 20;
}
if (_x > 1224) {
_x = -200;
}
if (_x < -200) {
_x = 1224;
}
if (_y > 968) {
_y = -200;
}
if (_y < -200) {
_y = 968;
}
if (_root.scene != "gra") {
this.removeMovieClip();
}
};
Symbol 54 MovieClip [zezka] Frame 1
_yscale = 0;
_xscale = 0;
zyje = true;
start = false;
var plum = new Sound();
plum.attachSound("drip");
v = 0;
onEnterFrame = function () {
if ((_xscale < 100) && (zyje)) {
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
if (_root.gracz.kreg0.hitTest(this) && (zyje)) {
_root.gracz.jajko++;
zyje = false;
plum.start();
}
if ((!zyje) && (_xscale > 0)) {
_yscale = (_yscale - 10);
_xscale = _yscale;
}
if (start == true) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * v));
_y = (_y - (Math.cos(_rotation * (Math.PI/180)) * v));
v = v * 0.93;
}
if ((_root[rodzic].zyje == false) && (start == false)) {
start = true;
v = 10;
}
if ((!zyje) && (_xscale <= 0)) {
this.removeMovieClip();
}
if (_root.scene != "gra") {
this.removeMovieClip();
}
if ((((_x > 1024) || (_x < 0)) || (_y > 768)) || (_y < 0)) {
this.removeMovieClip();
}
};
Instance of Symbol 59 MovieClip in Symbol 64 MovieClip [gizmo_hand] Frame 1
on (press) {
startDrag (this, false, 0, 0, 0, -200);
}
on (release) {
stopDrag();
}
on (releaseOutside) {
stopDrag();
}
Symbol 68 MovieClip [hud] Frame 1
pas1._xscale = (pas2._xscale = 0);
na = _global.n;
onEnterFrame = function () {
if ((_root.gracz.jajko < _root.gracz.jajkolimit) && (!_root.gracz.jajko_jest)) {
pas1._xscale = Math.round((_root.gracz.jajko * 100) / _root.gracz.jajkolimit);
} else {
pas1._xscale = 100;
}
pas2._xscale = Math.round((_root.gracz.health * 100) / _root.gracz.healthmax);
if (na != _global.n) {
this.swapDepths(_root.getNextHighestDepth());
na = _global.n;
}
if (_root.scene != "gra") {
this.removeMovieClip();
}
};
Symbol 70 MovieClip [pain] Frame 1
_alpha = 100;
var ded = new Sound();
ded.attachSound("dead");
ded.start();
onEnterFrame = function () {
_x = _root.gracz._x;
_y = _root.gracz._y;
_alpha = (_alpha - 20);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 72 MovieClip Frame 1
_rotation = Math.round(Math.random() * 360);
_x = Math.round(Math.random() * 1024);
_y = Math.round(Math.random() * 768);
var vi = Math.round(Math.random() * 1);
if (vi == 0) {
v = 0.1;
} else {
v = -0.1;
}
onEnterFrame = function () {
_rotation = (_rotation + v);
};
Symbol 82 MovieClip Frame 1
_rotation = Math.round(Math.random() * 360);
_x = Math.round(Math.random() * 1024);
_y = Math.round(Math.random() * 768);
_yscale = (Math.round(Math.random() * 140) + 10);
_xscale = (Math.round(Math.random() * 140) + 10);
wyg.gotoAndStop(Math.round(Math.random() * wyg._totalframes) + 1);
v = Math.round((Math.random() * 2) + 1);
onEnterFrame = function () {
_rotation + v;
};
Symbol 86 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation - 0.1);
};
Symbol 113 MovieClip Frame 1
var af = 1;
var ac = 1;
onEnterFrame = function () {
if ((af != ac) && (_alpha > 0)) {
_alpha = (_alpha - 20);
}
if ((af != ac) && (_alpha <= 0)) {
this.gotoAndPlay(ac);
af = ac;
}
if ((af == ac) && (_alpha < 100)) {
_alpha = (_alpha + 20);
}
};
stop();
Symbol 113 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 3
stop();
Symbol 113 MovieClip Frame 4
stop();
Symbol 113 MovieClip Frame 5
stop();
Symbol 113 MovieClip Frame 6
stop();
Symbol 117 Button
on (rollOver) {
_root.infor.ac = 2;
}
on (rollOut) {
_root.infor.ac = 1;
}
on (press) {
gotoAndPlay (2);
}
Symbol 120 Button
on (rollOver) {
_root.infor.ac = 3;
}
on (rollOut) {
_root.infor.ac = 1;
}
on (press) {
gotoAndPlay (3);
}
Symbol 123 Button
on (rollOver) {
_root.infor.ac = 4;
}
on (rollOut) {
_root.infor.ac = 1;
}
on (press) {
fscommand ("quit");
}
Symbol 129 Button
on (rollOver) {
_root.infor.ac = 5;
}
on (rollOut) {
_root.infor.ac = 1;
}
on (press) {
gotoAndPlay (4);
}
Symbol 147 Button
on (press) {
_global.aspectsca1 = aspect.sca1;
_global.aspectsca2 = aspect.sca2;
_global.aspectsca3 = aspect.sca3;
_global.aspectsca4 = aspect.sca4;
_global.aspectsca5 = aspect.sca5;
_global.aspectsca6 = aspect.sca6;
_global.aspectsca7 = aspect.sca7;
_global.aspectsca8 = aspect.sca8;
_global.aspectwca1 = aspect.wca1;
_global.aspectwca2 = aspect.wca2;
_global.aspectwca3 = aspect.wca3;
_global.aspectwca4 = aspect.wca4;
_global.aspectwca5 = aspect.wca5;
_global.aspectwca6 = aspect.wca6;
_global.aspectwca7 = aspect.wca7;
_global.aspectwca8 = aspect.wca8;
_global.aspectrot1 = aspect.rot1;
_global.aspectrot2 = aspect.rot2;
_global.aspectrot3 = aspect.rot3;
_global.aspectrot4 = aspect.rot4;
_global.aspecttyp1 = aspect.typ1;
_global.aspecttyp2 = aspect.typ2;
_global.aspecttyp3 = aspect.typ3;
_global.aspecttyp4 = aspect.typ4;
_global.aspecttyp5 = aspect.typ5;
_global.aspecttyp6 = aspect.typ6;
_global.aspecttyp7 = aspect.typ7;
_global.aspecttyp8 = aspect.typ8;
_global.kol1r = kol1r;
_global.kol1g = kol1g;
_global.kol1b = kol1b;
_global.kol2r = kol2r;
_global.kol2b = kol2b;
_global.kol2g = kol2g;
gotoAndPlay (2);
}
Symbol 149 Button
on (press) {
gotoAndPlay (2);
}
Symbol 157 Button
on (press) {
if (aspect.typ5 < spit) {
aspect.typ5++;
} else {
aspect.typ5 = 1;
}
}
Symbol 158 Button
on (press) {
if (aspect.typ5 > 1) {
aspect.typ5--;
} else {
aspect.typ5 = spit;
}
}
Symbol 159 Button
on (press) {
if (aspect.typ6 > 1) {
aspect.typ6--;
} else {
aspect.typ6 = bont;
}
}
Symbol 160 Button
on (press) {
if (aspect.typ6 < bont) {
aspect.typ6++;
} else {
aspect.typ6 = 1;
}
}
Symbol 161 Button
on (press) {
if (aspect.typ7 > 1) {
aspect.typ7--;
} else {
aspect.typ7 = bont;
}
}
Symbol 162 Button
on (press) {
if (aspect.typ7 < bont) {
aspect.typ7++;
} else {
aspect.typ7 = 1;
}
}
Symbol 163 Button
on (press) {
if (aspect.typ8 > 1) {
aspect.typ8--;
} else {
aspect.typ8 = spit;
}
}
Symbol 164 Button
on (press) {
if (aspect.typ8 < spit) {
aspect.typ8++;
} else {
aspect.typ8 = 1;
}
}
Symbol 165 Button
on (press) {
if (aspect.typ1 > 1) {
aspect.typ1--;
} else {
aspect.typ1 = bont;
}
}
Symbol 166 Button
on (press) {
if (aspect.typ1 < bont) {
aspect.typ1++;
} else {
aspect.typ1 = 1;
}
}
Symbol 167 Button
on (press) {
if (aspect.typ2 > 1) {
aspect.typ2--;
} else {
aspect.typ2 = spit;
}
}
Symbol 168 Button
on (press) {
if (aspect.typ2 < spit) {
aspect.typ2++;
} else {
aspect.typ2 = 1;
}
}
Symbol 169 Button
on (press) {
if (aspect.typ4 > 1) {
aspect.typ4--;
} else {
aspect.typ4 = spit;
}
}
Symbol 170 Button
on (press) {
if (aspect.typ4 < spit) {
aspect.typ4++;
} else {
aspect.typ4 = 1;
}
}
Symbol 176 Button
on (press) {
startDrag (this, true, 0, 0, 96, 0);
}
on (release) {
stopDrag();
}
on (releaseOutside) {
stopDrag();
}
Symbol 178 MovieClip Frame 1
onEnterFrame = function () {
va = Math.round((lolek._x / 96) * 255);
};
Symbol 180 MovieClip Frame 1
onEnterFrame = function () {
va = Math.round((lolek._x / 96) * 100);
};
Symbol 181 Button
on (press) {
if (aspect.typ3 > 1) {
aspect.typ3--;
} else {
aspect.typ3 = bont;
}
}
Symbol 182 Button
on (press) {
if (aspect.typ3 < bont) {
aspect.typ3++;
} else {
aspect.typ3 = 1;
}
}
Symbol 192 Button
on (rollOver) {
v = true;
}
on (rollOut) {
v = false;
}
on (press) {
rot = true;
}
on (release) {
rot = false;
}
on (releaseOutside) {
rot = false;
v = false;
}
Symbol 193 MovieClip Frame 1
rot = false;
v = false;
_alpha = 0;
onEnterFrame = function () {
if ((v == true) && (_alpha < 100)) {
_alpha = (_alpha + 20);
}
if ((v == false) && (_alpha > 0)) {
_alpha = (_alpha - 10);
}
if (rot == true) {
_rotation = (Math.round((Math.atan2(_y - _root._ymouse, _x - _root._xmouse) / Math.PI) * 180) - 90);
}
};
Symbol 198 Button
on (rollOver) {
v = true;
}
on (rollOut) {
v = false;
}
on (press) {
rot = true;
}
on (release) {
rot = false;
}
on (releaseOutside) {
rot = false;
v = false;
}
Symbol 199 MovieClip Frame 1
rot = false;
v = false;
_alpha = 0;
onEnterFrame = function () {
if ((v == true) && (_alpha < 100)) {
_alpha = (_alpha + 20);
}
if ((v == false) && (_alpha > 0)) {
_alpha = (_alpha - 10);
}
if (rot == true) {
a = Math.round((Math.atan2(_y - _root._ymouse, _x - _root._xmouse) / Math.PI) * 180) - 90;
}
};
Symbol 200 Button
on (press) {
dane.data.sca1 = aspect.sca1;
dane.data.sca2 = aspect.sca2;
dane.data.sca3 = aspect.sca3;
dane.data.sca4 = aspect.sca4;
dane.data.sca5 = aspect.sca5;
dane.data.sca6 = aspect.sca6;
dane.data.sca7 = aspect.sca7;
dane.data.sca8 = aspect.sca8;
dane.data.wca1 = aspect.wca1;
dane.data.wca2 = aspect.wca2;
dane.data.wca3 = aspect.wca3;
dane.data.wca4 = aspect.wca4;
dane.data.wca5 = aspect.wca5;
dane.data.wca6 = aspect.wca6;
dane.data.wca7 = aspect.wca7;
dane.data.wca8 = aspect.wca8;
dane.data.rot1 = aspect.rot1;
dane.data.rot2 = aspect.rot2;
dane.data.rot3 = aspect.rot3;
dane.data.rot4 = aspect.rot4;
dane.data.typ1 = aspect.typ1;
dane.data.typ2 = aspect.typ2;
dane.data.typ3 = aspect.typ3;
dane.data.typ4 = aspect.typ4;
dane.data.typ5 = aspect.typ5;
dane.data.typ6 = aspect.typ6;
dane.data.typ7 = aspect.typ7;
dane.data.typ8 = aspect.typ8;
dane.data.kol1r = kol1r;
dane.data.kol1g = kol1g;
dane.data.kol1b = kol1b;
dane.data.kol2r = kol2r;
dane.data.kol2b = kol2b;
dane.data.kol2g = kol2g;
dane.data.zapisane = true;
}
Symbol 202 Button
on (press) {
zapisane = dane.data.zapisane;
if (zapisane == true) {
aspect.sca1 = dane.data.sca1;
p5a.lolek._x = Math.round((aspect.sca1 / 100) * 96);
aspect.sca2 = dane.data.sca2;
p6a.lolek._x = Math.round((aspect.sca2 / 100) * 96);
aspect.sca3 = dane.data.sca3;
p7a.lolek._x = Math.round((aspect.sca3 / 100) * 96);
aspect.sca4 = dane.data.sca4;
p8a.lolek._x = Math.round((aspect.sca4 / 100) * 96);
aspect.sca5 = dane.data.sca5;
p1a.lolek._x = Math.round((aspect.sca5 / 100) * 96);
aspect.sca6 = dane.data.sca6;
p2a.lolek._x = Math.round((aspect.sca6 / 100) * 96);
aspect.sca7 = dane.data.sca7;
p3a.lolek._x = Math.round((aspect.sca7 / 100) * 96);
aspect.sca8 = dane.data.sca8;
p4a.lolek._x = Math.round((aspect.sca8 / 100) * 96);
aspect.wca1 = dane.data.wca1;
p5b.lolek._x = Math.round((aspect.wca1 / 100) * 96);
aspect.wca2 = dane.data.wca2;
p6b.lolek._x = Math.round((aspect.wca2 / 100) * 96);
aspect.wca3 = dane.data.wca3;
p7b.lolek._x = Math.round((aspect.wca3 / 100) * 96);
aspect.wca4 = dane.data.wca4;
p8b.lolek._x = Math.round((aspect.wca4 / 100) * 96);
aspect.wca5 = dane.data.wca5;
p1b.lolek._x = Math.round((aspect.wca5 / 100) * 96);
aspect.wca6 = dane.data.wca6;
p2b.lolek._x = Math.round((aspect.wca6 / 100) * 96);
aspect.wca7 = dane.data.wca7;
p3b.lolek._x = Math.round((aspect.wca7 / 100) * 96);
aspect.wca8 = dane.data.wca8;
p4b.lolek._x = Math.round((aspect.wca8 / 100) * 96);
aspect.rot1 = dane.data.rot1;
ro5.a = (_root.rotstaw2ab + _root.aspect.rot1) + 180;
aspect.rot2 = dane.data.rot2;
ro1._rotation = _root.rotstaw1bb + _root.aspect.rot2;
ro2._rotation = _root.rotstaw2bb + _root.aspect.rot2;
aspect.rot3 = dane.data.rot3;
ro6.a = (_root.rotstaw4ab + _root.aspect.rot3) + 180;
aspect.rot4 = dane.data.rot4;
ro3._rotation = _root.rotstaw3bb + _root.aspect.rot4;
ro4._rotation = _root.rotstaw4bb + _root.aspect.rot4;
aspect.typ1 = dane.data.typ1;
aspect.typ2 = dane.data.typ2;
aspect.typ3 = dane.data.typ3;
aspect.typ4 = dane.data.typ4;
aspect.typ5 = dane.data.typ5;
aspect.typ6 = dane.data.typ6;
aspect.typ7 = dane.data.typ7;
aspect.typ8 = dane.data.typ8;
kol1r = dane.data.kol1r;
k1r.lolek._x = Math.round((kol1r / 255) * 96);
kol1g = dane.data.kol1g;
k1g.lolek._x = Math.round((kol1g / 255) * 96);
kol1b = dane.data.kol1b;
k1b.lolek._x = Math.round((kol1b / 255) * 96);
kol2r = dane.data.kol2r;
k2r.lolek._x = Math.round((kol2r / 255) * 96);
kol2b = dane.data.kol2b;
k2g.lolek._x = Math.round((kol2g / 255) * 96);
kol2g = dane.data.kol2g;
k2b.lolek._x = Math.round((kol2b / 255) * 96);
}
}
Symbol 211 Button
on (press) {
gotoAndPlay (1);
}