Frame 1
stop();
_root.showMenu = false;
Stage.showMenu = false;
urls_allowed = ["http://www.bigdino.com", "http://bigdino.com", "bigdino.com"];
lock = false;
real_domain = _url;
for (x in urls_allowed) {
if (!(_root._url.indexOf(urls_allowed[x]) === -1)) {
lock = false;
}
}
if (lock == true) {
gotoAndStop ("game");
}
onEnterFrame = function () {
if (lock == false) {
if (!(wyslane === true)) {
Playtomic.Log.View(2642, "f04e261b52a8413b", _root._url);
Playtomic.Log.ForceSend();
if (lock == true) {
Playtomic.Log.CustomMetric("Stolen");
Playtomic.Log.ForceSend();
gotoAndStop ("game");
} else {
Playtomic.Log.CustomMetric("Preloader", "Pregame", true);
Playtomic.Log.ForceSend();
}
wyslane = true;
}
loader.loadd = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
if (getBytesLoaded() == getBytesTotal()) {
loader.mozna = true;
}
}
};
Frame 2
_root.showMenu = false;
Frame 3
_root.showMenu = false;
Frame 4
function zmieniaj() {
if (podkladwdol == true) {
podklad.setVolume(pvolume);
if (pvolume > 0) {
pvolume = pvolume - 10;
} else {
podkladwdol = false;
podklad.setVolume(0);
podklad.stop();
}
}
if (podkladwgore == true) {
podklad.setVolume(pvolume);
if (pvolume < 100) {
pvolume = pvolume + 10;
} else {
podkladwgore = false;
podklad.setVolume(100);
}
}
if (Key.isDown(77)) {
if (!(mjest === true)) {
mabycmute = true;
if (mute == true) {
mute = false;
} else {
mute = true;
}
mjest = true;
}
} else {
mjest = false;
}
if (mabycmute == true) {
if (mute == true) {
ogolnysound.setVolume(0);
mabycmute = false;
} else {
mabycmute = false;
ogolnysound.setVolume(100);
}
}
if (nastawia == true) {
if (dajboss == true) {
if (!(bosswlaczony === true)) {
muzykaboss.stop();
delete muzykaboss;
muzykaboss = new Sound(sounds.bg);
muzykaboss.attachSound("boss_fight.wav");
muzykaboss.start(0, 999999);
bosswlaczony = true;
}
}
if (wdol == true) {
muzykatlo.setVolume(mvolume);
if (mvolume > 0) {
mvolume = mvolume - 10;
} else {
wdol = false;
nastawia = false;
muzykatlo.setVolume(0);
}
}
if (wgore == true) {
muzykatlo.setVolume(mvolume);
if (mvolume < 100) {
mvolume = mvolume + 20;
} else {
wgore = false;
muzykatlo.setVolume(100);
nastawia = false;
}
}
}
}
stop();
dzwieki = 0;
_root.showMenu = false;
Stage.showMenu = false;
removeMovieClip(menu);
attachMovie("menu_s", "menu", getNextHighestDepth());
removeMovieClip(preloader_czarne_wejscie);
attachMovie("preloader_czarne_wejscie", "preloader_czarne_wejscie", getNextHighestDepth());
preloader_czarne_wejscie.wraca = true;
createEmptyMovieClip("sounds", getNextHighestDepth());
sounds.createEmptyMovieClip("bg", sounds.getNextHighestDepth());
sounds.createEmptyMovieClip("intro", sounds.getNextHighestDepth());
sounds.createEmptyMovieClip("orion", sounds.getNextHighestDepth());
sounds.createEmptyMovieClip("rain", sounds.getNextHighestDepth());
sounds.createEmptyMovieClip("ele", sounds.getNextHighestDepth());
sounds.createEmptyMovieClip("mesmer", sounds.getNextHighestDepth());
podklad = new Sound(sounds.intro);
podklad.attachSound("podkladintro.wav");
pvolume = 0;
podklad.setVolume(pvolume);
podklad.stop();
achieve = new Sound(sounds);
achieve.attachSound("achievement.wav");
mesmergin = new Sound(sounds);
mesmergin.attachSound("mesmergin.wav");
aresgin = new Sound(sounds);
aresgin.attachSound("aresgin.wav");
strobesound = new Sound(sounds);
strobesound.attachSound("strobesound.mp3");
mesmerbron = new Sound(sounds.mesmer);
mesmerbron.attachSound("mesmerbron.wav");
fwing = new Sound(sounds);
fwing.attachSound("fwing.wav");
fdie = new Sound(sounds);
fdie.attachSound("fdie.wav");
hdie = new Sound(sounds);
hdie.attachSound("harpiagin.wav");
boxsound = new Sound(sounds);
boxsound.attachSound("boxsound.wav");
krabjump = new Sound(sounds);
krabjump.attachSound("krabjump.wav");
krabdie = new Sound(sounds);
krabdie.attachSound("krabdie.wav");
hwing = new Sound(sounds);
hwing.attachSound("hwing.wav");
cbron = new Sound(sounds);
cbron.attachSound("cstrzal.wav");
komenda = new Sound(sounds);
komenda.attachSound("komenda.wav");
cdie = new Sound(sounds);
cdie.attachSound("cdie.wav");
kroplasound = new Sound(sounds);
kroplasound.attachSound("kropla_spad.wav");
btnover = new Sound(sounds);
btnover.attachSound("button_hover.wav");
hover = new Sound(sounds);
hover.attachSound("hover.wav");
ndie = new Sound(sounds);
ndie.attachSound("ndie.wav");
elecsound = new Sound(sounds.ele);
elecsound.attachSound("elec_inv.wav");
happysound = new Sound(sounds);
happysound.attachSound("happy_sound.wav");
wstrzalc_sound = new Sound(sounds);
wstrzalc_sound.attachSound("wstrzalc_sound.wav");
ownedsound = new Sound(sounds);
ownedsound.attachSound("ownedsound.wav");
btnclick = new Sound(sounds);
btnclick.attachSound("button click.wav");
piorunsound = new Sound(sounds);
piorunsound.attachSound("piorun.wav");
muzykatlo = new Sound(sounds.bg);
muzykatlo.attachSound("zima_menu_sound.wav");
shopclick = new Sound(sounds);
shopclick.attachSound("plus button click.wav");
cavein = new Sound(sounds);
cavein.attachSound("cave in.wav");
deszcz = new Sound(sounds.rain);
deszcz.attachSound("deszcz.wav");
spadsound = new Sound(sounds);
spadsound.attachSound("spad_sound.wav");
spadsound1 = new Sound(sounds);
spadsound1.attachSound("spad_sound1.wav");
odkup1 = new Sound(sounds);
odkup1.attachSound("odkupienie1.wav");
odkup2 = new Sound(sounds);
odkup2.attachSound("odkupienie2.wav");
orionsound = new Sound(sounds.orion);
orionsound.attachSound("orionsound.wav");
ovolume = 0;
orionsound.setVolume(ovolume);
strata1 = new Sound(sounds);
strata1.attachSound("strata1.wav");
strata2 = new Sound(sounds);
strata2.attachSound("strata2.wav");
blingcoin = new Sound(sounds);
blingcoin.attachSound("blingcoin.wav");
blingstar = new Sound(sounds);
blingstar.attachSound("blingstar.wav");
throw1 = new Sound(sounds);
throw1.attachSound("throw1.wav");
hit1 = new Sound(sounds);
hit1.attachSound("hit1.wav");
hit2 = new Sound(sounds);
hit2.attachSound("hit2.wav");
hit3 = new Sound(sounds);
hit3.attachSound("hit3.wav");
hit4 = new Sound(sounds);
hit4.attachSound("hit4.wav");
hit5 = new Sound(sounds);
hit5.attachSound("hit5.wav");
hit6 = new Sound(sounds);
hit6.attachSound("hit6.wav");
ddsound = new Sound(sounds);
ddsound.attachSound("ddsound.wav");
throw2 = new Sound(sounds);
throw2.attachSound("throw2.wav");
throw3 = new Sound(sounds);
throw3.attachSound("throw3.wav");
throw4 = new Sound(sounds);
throw4.attachSound("throw4.wav");
throw5 = new Sound(sounds);
throw5.attachSound("throw5.wav");
throw6 = new Sound(sounds);
throw6.attachSound("throw6.wav");
odkup3 = new Sound(sounds);
odkup3.attachSound("odkupienie3.wav");
wybuchkoniec = new Sound(sounds);
wybuchkoniec.attachSound("wybuchkoniec.wav");
stoneclick = new Sound(sounds);
stoneclick.attachSound("stone button.wav");
minosgrun = new Sound(sounds);
minosgrun.attachSound("minosgrunt.wav");
zeusdie = new Sound(sounds);
zeusdie.attachSound("zeusdie.wav");
zeusbron = new Sound(sounds);
zeusbron.attachSound("zeusbron.wav");
zstrzal = new Sound(sounds);
zstrzal.attachSound("zstrzal.wav");
ogolnysound = new Sound();
mvolume = 100;
shopmusic = new Sound(sounds);
shopmusic.attachSound("sklep.wav");
muzykatlo.setVolume(mvolume);
muzykatlo.start(0, 99999999);
muzykaboss = new Sound(sounds.bg);
muzykaboss.attachSound("boss_fight.wav");
podkladwdol = false;
podkladwgore = false;
setInterval(zmieniaj, 90);
Frame 5
_root.showMenu = false;
Stage.showMenu = false;
Frame 6
gotoAndStop (1);
_root.showMenu = false;
Symbol 2 MovieClip [elebuff] Frame 1
onEnterFrame = function () {
this._rotation = this._rotation + 40;
};
Symbol 5 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 36 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.bigdino.com/clickreg.php?id=182&link=splash", _blank);
};
Symbol 37 MovieClip [preloader_czarne_wejscie] Frame 1
stop();
onEnterFrame = function () {
if (wraca == true) {
if (this._alpha > 0) {
this._alpha = this._alpha - 15;
} else {
removeMovieClip(this);
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 15;
} else {
play();
}
};
Symbol 37 MovieClip [preloader_czarne_wejscie] Frame 64
unloadMovie (_root.loader);
removeMovieClip(this);
_root.gotoAndPlay("gierka");
Symbol 40 MovieClip Frame 1
stop();
if (_root.czapki == true) {
gotoAndStop (2);
}
Symbol 40 MovieClip Frame 2
stop();
Symbol 45 MovieClip [fly6] Frame 1
stop();
Symbol 45 MovieClip [fly6] Frame 32
_parent.dying = false;
removeMovieClip(this);
Symbol 47 MovieClip [fly5] Frame 1
stop();
Symbol 47 MovieClip [fly5] Frame 32
_parent.dying = false;
removeMovieClip(this);
Symbol 49 MovieClip [fly4] Frame 1
stop();
Symbol 49 MovieClip [fly4] Frame 32
_parent.dying = false;
removeMovieClip(this);
Symbol 51 MovieClip [fly3] Frame 1
stop();
Symbol 51 MovieClip [fly3] Frame 32
_parent.dying = false;
removeMovieClip(this);
Symbol 53 MovieClip [fly2] Frame 1
stop();
Symbol 53 MovieClip [fly2] Frame 32
_parent.dying = false;
removeMovieClip(this);
Symbol 55 MovieClip [fly1] Frame 1
stop();
Symbol 55 MovieClip [fly1] Frame 32
_parent.dying = false;
removeMovieClip(this);
Symbol 57 MovieClip [fly0] Frame 1
stop();
Symbol 57 MovieClip [fly0] Frame 32
_parent.dying = false;
removeMovieClip(this);
Symbol 59 MovieClip [niebo1] Frame 1
this.cacheAsBitmap = true;
Symbol 77 MovieClip [ziemi2] Frame 1
this.cacheAsBitmap = true;
Symbol 88 MovieClip Frame 1
stop();
Symbol 109 MovieClip [preloader] Frame 1
loaded.text = "0%";
var CPMStarContentSpotID = "4555QACFFDD2D";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
timerwycz = 40 + random(57);
realscale = tlo.maska._xscale;
tlo.maska._xscale = 0;
i = 0;
while (i < 7) {
a = tlo["fly" + i];
if (i < 3) {
a.radius = 20;
a.sped = 0.05;
} else {
a.radius = 50;
a.sped = -0.05;
}
a = tlo["fl" + i];
if (i < 3) {
a.radius = 20;
a.sped = 0.05;
} else {
a.radius = 50;
a.sped = -0.05;
}
i++;
}
tlo.fly0.angle = 0;
tlo.fly1.angle = 2;
tlo.fly2.angle = 4;
tlo.fly3.angle = 4.5;
tlo.fly4.angle = 3;
tlo.fly5.angle = 1.5;
tlo.fly6.angle = 0;
tlo.fl0.angle = 0;
tlo.fl1.angle = 2;
tlo.fl2.angle = 4;
tlo.fl3.angle = 4.5;
tlo.fl4.angle = 3;
tlo.fl5.angle = 1.5;
tlo.fl6.angle = 0;
onEnterFrame = function () {
sponsor_btn.onRelease = function () {
getURL ("http://www.bigdino.com/clickreg.php?id=182&link=preloader", _blank);
};
if ((mozna == true) && (wyczekal == true)) {
if (_parent.preloader_czarne_wejscie == undefined) {
_parent.attachMovie("preloader_czarne_wejscie", "preloader_czarne_wejscie", _parent.getNextHighestDepth());
_parent.preloader_czarne_wejscie._alpha = 0;
unloadMovie (adBox);
}
}
i = 0;
while (i < 7) {
a = tlo["fly" + i];
a._x = 150 + (Math.cos(a.angle) * a.radius);
a._y = 185 + (Math.sin(a.angle) * a.radius);
a.angle = a.angle + a.sped;
a = tlo["fl" + i];
a._x = 150 + (Math.cos(a.angle) * a.radius);
a._y = 185 + (Math.sin(a.angle) * a.radius);
a.angle = a.angle + a.sped;
i++;
}
if ((wyczekal == true) || (loadd < 90)) {
loaded.text = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
tlo.maska._xscale = (-realscale) * (loadd / 100);
if (loadd > 0) {
txt.text = "Opening the gates of Tartarus.";
}
if (loadd > 20) {
txt.text = "Unleashing hell on Earth.";
}
if (loadd > 40) {
txt.text = "Filling the world with colour.";
}
if (loadd > 60) {
txt.text = "Scratching my nose.";
}
if (loadd > 80) {
txt.text = "Almost there!";
}
}
if (loadd >= 90) {
if (wyczekal == undefined) {
loaded.text = 90;
tlo.maska._xscale = (-realscale) * 0.9;
wyczekal = false;
}
}
if (wyczekal == false) {
timerwycz--;
if (timerwycz <= 0) {
wyczekal = true;
}
}
};
Symbol 1756 MovieClip [__Packages.Playtomic.LogRequest] Frame 0
class Playtomic.LogRequest
{
var Pieces;
function LogRequest () {
}
function Queue(data) {
Pieces++;
Data = Data + (((Data == "") ? "" : "~") + data);
if ((Pieces == 8) || (Data.length > 300)) {
Pieces = 0;
Ready = true;
}
}
function Send() {
var _local2 = new LoadVars();
_local2.load(((((((((("http://g" + Playtomic.Log.GUID) + ".api.playtomic.com/Tracker/q.aspx?swfid=") + Playtomic.Log.SWFID) + "&q=") + Data) + "&url=") + Playtomic.Log.SourceUrl) + "&") + Math.random()) + "z", null, "POST");
}
var Data = "";
var Ready = false;
}
Symbol 1757 MovieClip [__Packages.Playtomic.Log] Frame 0
class Playtomic.Log
{
static var SourceUrl, Cookie;
function Log () {
}
static function View(swfid, guid, defaulturl) {
if (swfid == undefined) {
swfid = 0;
}
if (guid == undefined) {
guid = "";
}
if (defaulturl == undefined) {
defaulturl = "";
}
if (SWFID > 0) {
return(undefined);
}
SWFID = swfid;
GUID = guid;
Enabled = true;
if ((SWFID == 0) || (GUID == "")) {
Enabled = false;
return(undefined);
}
if (((defaulturl.indexOf("http://") != 0) && (System.security.sandboxType != "localWithNetwork")) && (System.security.sandboxType != "localTrusted")) {
Enabled = false;
return(undefined);
}
SourceUrl = GetUrl(defaulturl);
if (((SourceUrl == null) || (SourceUrl == "")) || (SourceUrl.indexOf("https://") == 0)) {
Enabled = false;
return(undefined);
}
Cookie = SharedObject.getLocal("playtomic");
var _local2 = GetCookie("views");
_local2++;
SaveCookie("views", _local2);
Send("v/" + _local2, true);
_global.setTimeout(PingServer, 60000);
}
static function ForceSend() {
Request.Send();
Request = new Playtomic.LogRequest();
}
static function Play() {
if (!Enabled) {
return(undefined);
}
LevelCounters = new Array();
LevelAverages = new Array();
LevelRangeds = new Array();
Plays++;
Send("p/" + Plays);
}
static function CustomMetric(name, group, unique) {
if (!Enabled) {
return(undefined);
}
if ((group == null) || (group == undefined)) {
group = "";
}
if ((unique == null) || (unique == undefined)) {
unique = false;
}
if (unique) {
if (Customs.indexOf(name) > -1) {
return(undefined);
}
Customs.push(name);
}
Send((("c/" + Clean(name)) + "/") + Clean(group));
}
static function Link(url, name, group, unique, total, fail) {
if (!Enabled) {
return(undefined);
}
Send((((((((((("l/" + Clean(name)) + "/") + Clean(group)) + "/") + Clean(url)) + "/") + unique) + "/") + total) + "/") + fail);
}
static function LevelCounterMetric(name, level, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
if (LevelCounters.indexOf(name) > -1) {
return(undefined);
}
LevelCounters.push(name);
}
Send((("lc/" + Clean(name)) + "/") + Clean(level));
}
static function LevelRangedMetric(name, level, value, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
if (LevelRangeds.indexOf(name) > -1) {
return(undefined);
}
LevelRangeds.push(name);
SaveCookie("lr_" + name, 1);
}
Send((((("lr/" + Clean(name)) + "/") + Clean(level)) + "/") + value);
}
static function LevelAverageMetric(name, level, value, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
if (LevelAverages.indexOf(name) > -1) {
return(undefined);
}
LevelAverages.push(name);
}
Send((((("la/" + Clean(name)) + "/") + Clean(level)) + "/") + value);
}
static function PingServer() {
if (!Enabled) {
return(undefined);
}
Pings++;
Send((("t/" + (FirstPing ? "y" : "n")) + "/") + Pings, true);
if (FirstPing) {
FirstPing = false;
setInterval(PingServer, 60000);
}
}
static function Send(s, view) {
if (view == undefined) {
view = false;
}
Request.Queue(s);
if ((Request.Ready || (view)) || (!Queue)) {
Request.Send();
Request = new Playtomic.LogRequest();
}
}
static function GetCookie(n) {
if (Cookie.data[n] == undefined) {
return(0);
}
return(parseInt(Cookie.data[n]));
}
static function SaveCookie(n, v) {
var _local1 = SharedObject.getLocal("swfstats");
_local1.data[n] = v.toString();
_local1.flush();
}
static function Clean(s) {
while (s.indexOf("/") > -1) {
s = s.replace("/", "\\");
}
while (s.indexOf("~") > -1) {
s = s.replace("~", "-");
}
return(escape(s));
}
static function Replace(str, find, replace) {
return(str.split(find).join(replace));
}
static function GetUrl(defaulturl) {
return(defaulturl);
}
static var Enabled = false;
static var Queue = true;
static var SWFID = 0;
static var GUID = "";
static var Request = new Playtomic.LogRequest();
static var FirstPing = true;
static var Pings = 0;
static var Plays = 0;
static var HighestGoal = 0;
static var Customs = new Array();
static var LevelCounters = new Array();
static var LevelAverages = new Array();
static var LevelRangeds = new Array();
}
Symbol 1758 MovieClip [__Packages.Playtomic.Link] Frame 0
class Playtomic.Link
{
function Link () {
}
static function Open(url, name, group) {
var _local9 = 0;
var _local5 = 0;
var _local3 = 0;
var _local4 = 0;
var _local8 = 0;
var _local11 = 0;
var _local6 = (url + ".") + name;
var _local7;
var _local1 = url;
_local1 = Replace(_local1, "http://", "");
if (_local1.indexOf("/") > -1) {
_local1 = _local1.substring(0, _local1.indexOf("/"));
}
if (_local1.indexOf("?") > -1) {
_local1 = _local1.substring(0, _local1.indexOf("?"));
}
_local1 = ("http://" + _local1) + "/";
var _local2 = _local1;
if (_local2.indexOf("//") > -1) {
_local2 = _local2.substring(_local2.indexOf("//") + 2);
}
_local2 = Replace(_local2, "www.", "");
if (_local2.indexOf("/") > -1) {
_local2 = _local2.substring(0, _local2.indexOf("/"));
}
try {
getURL (url, "_blank");
if (Clicks.indexOf(_local6) > -1) {
_local3 = 1;
} else {
_local3 = 1;
_local9 = 1;
Clicks.push(_local6);
}
if (Clicks.indexOf(_local2) > -1) {
_local4 = 1;
} else {
_local4 = 1;
_local5 = 1;
Clicks.push(_local2);
}
_local7 = true;
} catch(err) {
_local8 = 1;
_local11 = 1;
_local7 = false;
}
Playtomic.Log.Link(_local1, _local2.toLowerCase(), "DomainTotals", _local5, _local4, _local11);
Playtomic.Log.Link(url, name, group, _local9, _local3, _local8);
Playtomic.Log.ForceSend();
return(_local7);
}
static function Replace(str, find, replace) {
return(str.split(find).join(replace));
}
static var Clicks = new Array();
}
Symbol 1759 MovieClip [__Packages.Playtomic.Leaderboards] Frame 0
class Playtomic.Leaderboards
{
function Leaderboards () {
}
static function List(table, callback, options) {
var _local21 = (options.hasOwnProperty("global") ? (options.global) : true);
var _local20 = (options.hasOwnProperty("highest") ? (options.highest) : true);
var _local23 = (options.hasOwnProperty("mode") ? (options.mode) : "alltime");
var _local12 = (options.hasOwnProperty("customfilters") ? (options.customfilters) : ({}));
var _local22 = (options.hasOwnProperty("page") ? (options.page) : 1);
var _local24 = (options.hasOwnProperty("perpage") ? (options.perpage) : 20);
var _local19 = new LoadVars();
_local19.onLoad = function (success) {
if (callback == null) {
return(undefined);
}
if (!success) {
callback([], 0, {Success:false, ErrorCode:1});
return(undefined);
}
var _local8 = new XML(this["<?xml version"]);
_local8.ignoreWhite = true;
var _local13 = parseInt(_local8.lastChild.childNodes[0].firstChild);
var _local14 = parseInt(_local8.lastChild.childNodes[1].firstChild);
var _local11 = [];
var _local12 = 0;
if (_local13 == 1) {
_local12 = parseInt(_local8.lastChild.childNodes[2].firstChild);
var _local7 = 3;
while (_local7 < _local8.lastChild.childNodes.length) {
var _local3 = _local8.lastChild.childNodes[_local7].childNodes;
var _local4 = new Playtomic.PlayerScore();
for (var _local10 in _local3) {
var _local6 = _local3[_local10].toString().substring(1);
_local6 = _local6.substring(0, _local6.indexOf(">"));
var _local5 = _local3[_local10].firstChild;
switch (_local6) {
case "name" :
_local4.Name = _local5;
break;
case "points" :
_local4.Points = _local5;
break;
case "website" :
_local4.Website = _local5;
break;
case "rdate" :
_local4.RDate = _local5;
break;
case "sdate" :
_local4.SDate = _local5;
break;
case "custom" :
for (var _local9 in _local3[_local10].childNodes) {
var _local2 = _local3[_local10].childNodes[_local9].toString().substring(1);
_local2 = _local2.substring(0, _local2.indexOf(">"));
_local4.CustomData[_local2] = _local3[_local10].childNodes[_local9].firstChild;
}
}
}
_local11.push(_local4);
_local7++;
}
}
callback(_local11, _local12, {Success:_local13 == 1, ErrorCode:_local14});
};
var _local11 = new LoadVars();
var _local8 = 0;
if (_local12 != null) {
for (var _local16 in _local12) {
_local11["ckey" + _local8] = _local16;
_local11["cdata" + _local8] = escape(_local12[_local16]);
_local8++;
}
}
_local11.sendAndLoad((((((((((((((((((("http://g" + Playtomic.Log.GUID) + ".api.playtomic.com/leaderboards/list.aspx?swfid=") + Playtomic.Log.SWFID) + "&table=") + table) + "&mode=") + _local23) + "&filters=") + _local8) + "&url=") + ((_local21 || (Playtomic.Log.SourceUrl == null)) ? "global" : (Playtomic.Log.SourceUrl))) + "&highest=") + (_local20 ? "y" : "n")) + "&page=") + _local22) + "&perpage=") + _local24) + "&") + Math.random(), _local19, "POST");
}
static function ListFB(table, callback, options) {
var _local19 = (options.hasOwnProperty("global") ? (options.global) : true);
var _local18 = (options.hasOwnProperty("highest") ? (options.highest) : true);
var _local23 = (options.hasOwnProperty("mode") ? (options.mode) : "alltime");
var _local25 = (options.hasOwnProperty("friendslist") ? (options.friendslist) : (new Array()));
var _local11 = (options.hasOwnProperty("customfilters") ? (options.customfilters) : ({}));
var _local22 = (options.hasOwnProperty("page") ? (options.page) : 1);
var _local24 = (options.hasOwnProperty("perpage") ? (options.perpage) : 20);
var _local17 = new LoadVars();
_local17.onLoad = function (success) {
if (callback == null) {
return(undefined);
}
if (!success) {
callback([], 0, {Success:false, ErrorCode:1});
return(undefined);
}
var _local8 = new XML(this["<?xml version"]);
_local8.ignoreWhite = true;
var _local12 = parseInt(_local8.lastChild.childNodes[0].firstChild);
var _local14 = parseInt(_local8.lastChild.childNodes[1].firstChild);
var _local11 = [];
var _local13 = 0;
if (_local12 == 1) {
_local13 = parseInt(_local8.lastChild.childNodes[2].firstChild);
var _local7 = 3;
while (_local7 < _local8.lastChild.childNodes.length) {
var _local4 = _local8.lastChild.childNodes[_local7].childNodes;
var _local3 = new Playtomic.PlayerScore();
for (var _local10 in _local4) {
var _local6 = _local4[_local10].toString().substring(1);
_local6 = _local6.substring(0, _local6.indexOf(">"));
var _local5 = _local4[_local10].firstChild;
switch (_local6) {
case "name" :
_local3.Name = _local5;
break;
case "points" :
_local3.Points = _local5;
break;
case "website" :
_local3.Website = _local5;
break;
case "rdate" :
_local3.RDate = _local5;
break;
case "sdate" :
_local3.SDate = _local5;
break;
case "fbuserid" :
_local3.FBUserId = _local5;
break;
case "custom" :
for (var _local9 in _local4[_local10].childNodes) {
var _local2 = _local4[_local10].childNodes[_local9].toString().substring(1);
_local2 = _local2.substring(0, _local2.indexOf(">"));
_local3.CustomData[_local2] = _local4[_local10].childNodes[_local9].firstChild;
}
}
}
_local11.push(_local3);
_local7++;
}
}
callback(_local11, 0, {Success:_local12 == 1, ErrorCode:_local14});
};
var _local20 = new LoadVars();
_local20.friendslist = _local25.join(",");
var _local8 = 0;
if (_local11 != null) {
for (var _local15 in _local11) {
_local20["ckey" + _local8] = _local15;
_local20["cdata" + _local8] = escape(_local11[_local15]);
_local8++;
}
}
_local20 = new LoadVars();
_local20.sendAndLoad((((((((((((((((((("http://g" + Playtomic.Log.GUID) + ".api.playtomic.com/leaderboards/listfb.aspx?swfid=") + Playtomic.Log.SWFID) + "&table=") + table) + "&mode=") + _local23) + "&filters=") + _local8) + "&url=") + ((_local19 || (Playtomic.Log.SourceUrl == null)) ? "global" : (Playtomic.Log.SourceUrl))) + "&highest=") + (_local18 ? "y" : "n")) + "&page=") + _local22) + "&perpage=") + _local24) + "&") + Math.random(), _local17, "POST");
}
static function Submit(score, table, callback, options) {
if (options == null) {
options = new Object();
}
var _local11 = (options.hasOwnProperty("facebook") ? (options.facebook) : false);
var _local9 = (options.hasOwnProperty("allowduplicates") ? (options.allowduplicates) : false);
var _local10 = (options.hasOwnProperty("highest") ? (options.highest) : true);
var _local8 = new LoadVars();
if (callback != null) {
_local8.onLoad = function (success) {
if (callback == null) {
return(undefined);
}
if (!success) {
callback({Success:false, ErrorCode:1});
return(undefined);
}
var _local2 = new XML(this["<?xml version"]);
_local2.ignoreWhite = true;
var _local3 = parseInt(_local2.lastChild.childNodes[0].firstChild);
var _local4 = parseInt(_local2.lastChild.childNodes[0].firstChild);
callback({Success:_local3 == 1, ErrorCode:_local4});
};
}
var _local2 = new LoadVars();
_local2.table = escape(table);
_local2.highest = _local10;
_local2.name = escape(score.Name);
_local2.points = score.Points;
_local2.allowduplicates = (_local9 ? "y" : "n");
_local2.auth = (new Playtomic.md5()).hash(Playtomic.Log.SourceUrl + score.Points.toString());
_local2.fb = (_local11 ? "y" : "n");
_local2.fbuserid = score.FBUserId;
var _local3 = 0;
if (score.CustomData != null) {
for (var _local6 in score.CustomData) {
_local2["ckey" + _local3] = _local6;
_local2["cdata" + _local3] = escape(score.CustomData[_local6]);
_local3++;
}
}
_local2.customfields = _local3;
_local2.sendAndLoad((((((("http://g" + Playtomic.Log.GUID) + ".api.playtomic.com/leaderboards/save.aspx?swfid=") + Playtomic.Log.SWFID) + "&url=") + Playtomic.Log.SourceUrl) + "&r=") + Math.random(), _local8, "POST");
}
}
Symbol 1760 MovieClip [__Packages.Playtomic.PlayerScore] Frame 0
class Playtomic.PlayerScore
{
function PlayerScore () {
}
var CustomData = {};
}
Symbol 1761 MovieClip [__Packages.Playtomic.md5] Frame 0
class Playtomic.md5
{
function md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 1762 MovieClip [__Packages.Playtomic.GeoIP] Frame 0
class Playtomic.GeoIP
{
function GeoIP () {
}
static function Lookup(callback) {
var _local4 = new LoadVars();
_local4.onLoad = function (success) {
if (callback == null) {
return(undefined);
}
if (!success) {
callback(result, {Success:false, ErrorCode:1});
return(undefined);
}
var _local2 = new XML(this["<?xml version"]);
_local2.ignoreWhite = true;
var _local3 = parseInt(_local2.lastChild.childNodes[0].firstChild);
var _local4 = parseInt(_local2.lastChild.childNodes[1].firstChild);
if (_local3 == 1) {
result.Code = _local2.lastChild.childNodes[2].firstChild.firstChild;
result.Name = _local2.lastChild.childNodes[2].lastChild.firstChild;
}
callback(result, {Success:_local3 == 1, ErrorCode:_local4});
};
var result = {Code:"N/A", Name:"UNKNOWN"};
var _local5 = new LoadVars();
_local5.sendAndLoad((("http://g" + Playtomic.Log.GUID) + ".api.playtomic.com/geoip/Lookup.aspx?swfid=") + Playtomic.Log.SWFID, _local4, "POST");
}
}
Symbol 111 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 350;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
hp = 120;
exp = 280;
money = 90;
spadanie = 0;
spad_speed = 0.6;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
}
this._rotation++;
}
};
Symbol 113 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 350;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
hp = 120;
exp = 280;
money = 90;
spadanie = 0;
spad_speed = 0.6;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
if (dist < (-this._width)) {
unloadMovie (this);
}
hitowanie();
}
this._rotation = this._rotation + 0.5;
}
};
Symbol 115 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 350;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
hp = 120;
exp = 280;
money = 90;
spadanie = 0;
spad_speed = 0.6;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
if (dist < (-this._width)) {
unloadMovie (this);
}
hitowanie();
}
this._rotation = this._rotation + 3;
}
};
Symbol 117 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 350;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
hp = 120;
exp = 280;
money = 90;
spadanie = 0;
spad_speed = 0.6;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
if (dist < (-this._width)) {
unloadMovie (this);
}
hitowanie();
}
this._rotation--;
}
};
Symbol 119 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 350;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
if (!(workibyly === true)) {
_root.gra.etab++;
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
hp = 120;
exp = 280;
money = 90;
spadanie = 0;
spad_speed = 0.6;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
if (dist < (-this._width)) {
unloadMovie (this);
}
hitowanie();
}
this._rotation = this._rotation - 0.5;
}
};
Symbol 134 MovieClip Frame 2
if ((this._x + this._parent._x) < 710) {
if (_parent.hp > 0) {
_root.krabjump.start(0, 1);
}
}
Symbol 134 MovieClip Frame 14
_parent.skacze = false;
Symbol 135 MovieClip [boss1] Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
d0.hp = d0.hp - a.damage;
a.damagedone = true;
speed = speed + 10;
if (speed > 10) {
speed = 10;
}
}
}
}
}
}
i++;
}
if (!spada) {
if (d0.hp < 0) {
d0.hp = 0;
}
_root.gra.gui.bosshp.fillreal._yscale = (d0.hp / d0.hpmax) * _root.gra.realyscale;
_root.gra.pobity = false;
if (d0.hp <= 0) {
_root.krabdie.start(0, 1);
_root.gra.etab++;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
spada = true;
}
} else {
if (!(_root.gra.pobity === true)) {
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
_root.gra.pobity = true;
}
if (this._rotation < 90) {
this._rotation = this._rotation + (0.3 * i);
i = i + 0.2;
}
if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
} else {
removeMovieClip(this);
}
}
}
function dziala() {
if (!(skacze === true)) {
d0.stop();
timer--;
time = 0;
}
if (timer <= 0) {
skacze = true;
}
if (skacze == true) {
if (skok > 0) {
if (this._x > 650) {
if (wraca == true) {
wraca = false;
if (obrotbyl == true) {
obrotbyl = false;
this._xscale = 100;
}
}
}
if (this._x > 50) {
if (!(wraca === true)) {
this._x = this._x - 4;
} else {
this._x = this._x + 4;
}
} else {
this._x = this._x + 4;
if (!(obrotbyl === true)) {
this._xscale = -100;
obrotbyl = true;
}
wraca = true;
}
}
time++;
if (time <= 8) {
d0.play();
yspeed = yspeed - 1.3;
} else if (!(this._y === thisy)) {
if (skok == 0) {
yspeed = yspeed + 1.5;
} else {
yspeed = yspeed + 0.5;
}
d0.stop();
if ((this._y + (d0._height / 2)) >= (thisy + 10)) {
d0.play();
}
if ((this._y + yspeed) >= thisy) {
if (skok == 0) {
this._y = thisy;
yspeed = 0;
skok++;
timer = 0;
} else {
this._y = thisy;
yspeed = 0;
timer = 50;
}
}
}
this._y = this._y + yspeed;
}
}
ilosc = 1;
flies = 0;
d0.hptotal = 12;
i = 0;
while (i < 7) {
if (!(_parent.pleiades[i] === 0)) {
flies++;
}
i++;
}
if (!(flies === 7)) {
d0.hp = Math.round((flies * d0.hptotal) / _root.gra.trudnosc);
} else {
d0.hp = d0.hptotal;
}
d0.hpmax = d0.hp;
money = 6;
exp = 49;
spadanie = 0;
spad_speed = 0.6;
timer = 0;
yspeed = 0;
speed = 0;
spadek = 0.7;
skok = 0;
thisy = 342;
i = 1;
this._y = thisy;
onEnterFrame = function () {
if (_parent.paused == false) {
if (_parent.bossfight == true) {
if (this._x < 780) {
hitowanie();
}
if (!(spada === true)) {
dziala();
}
}
}
};
Symbol 136 MovieClip [boss11] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
co.hp = co.hp - a.damage;
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co.hp < 0) {
co.hp = 0;
}
co._x = Math.cos(co.angle) * radius;
co._y = Math.sin(co.angle) * radius;
co.angle = co.angle + co.sped;
if (co.hp <= 0) {
if (!(_root.cgi === true)) {
_root.cgi = true;
_root.cdie.start(0, 1);
}
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
os = _root.gra["warning_c" + co.ktore];
removeMovieClip(os);
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
if (co._rotation < 90) {
co._rotation = co._rotation + (0.4 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
if (!(liczone === true)) {
_root.gra.etab++;
liczone = true;
}
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 4;
}
if (this._x <= 625) {
if (strzelili >= (3 - died)) {
czektimer--;
if (czektimer <= 0) {
j = 0;
while (j < 3) {
b = this["d" + j];
if (!(b === undefined)) {
b.gra = false;
b.stimer = b.stimermax;
b.warningbyl = false;
b.strzelil = false;
}
j++;
}
strzelili = 0;
czektimer = czektimermax;
}
}
i = 0;
while (i < ilosc) {
a = this["d" + i];
if (!(a === undefined)) {
if (!(a.gra === true)) {
czektimermax = 64 / (died + 1);
a.stimer--;
a.gra = false;
if (a.stimer <= 0) {
if (!(a.strzelil === true)) {
a.bron.graj = true;
os = _root.gra["warning_c" + a.ktore];
a.bron.gdziex = os._x;
a.bron.gdziey = os._y;
a.gra = true;
strzelili++;
a.strzelil = true;
}
} else {
if (a.stimer < 22) {
if (!(a.warningbyl === true)) {
a.warningbyl = true;
a.ktore = _root.gra.ostrz;
_root.gra.attachMovie("warning_c", "warning_c" + a.ktore, 9920 + a.ktore);
os = _root.gra["warning_c" + a.ktore];
os._x = _root.gra.kursor._x;
os._y = _root.gra.kursor._y;
os._alpha = 0;
_root.gra.ostrz++;
if (_root.gra.ostrz > 10) {
_root.gra.ostrz = 0;
}
}
}
os = _root.gra["warning_c" + a.ktore];
os._x = _root.gra.kursor._x;
os._y = _root.gra.kursor._y;
os._alpha = os._alpha + 3.3;
}
}
}
i++;
}
}
}
}
attachMovie("boss11_baza", "d0", getNextHighestDepth());
attachMovie("boss11_baza", "d1", getNextHighestDepth());
attachMovie("boss11_baza", "d2", getNextHighestDepth());
ilosc = 3;
this._y = 215;
thisy = this._y;
died = 0;
radius = 35;
d0.angle = 0;
d1.angle = 2.1;
d2.angle = 4.2;
d0.sped = -0.04;
d1.sped = -0.04;
d2.sped = -0.04;
d0.stimermax = 22;
d1.stimermax = 44;
d2.stimermax = 66;
flies = 0;
strzelili = 0;
czektimermax = 64;
czektimer = czektimermax;
i = 0;
while (i < ilosc) {
d = this["d" + i];
d.hptotal = 45;
j = 0;
while (j < 7) {
if (!(_parent.pleiades[j] === 0)) {
flies++;
}
j++;
}
if (!(flies === 7)) {
d.hp = Math.round((flies * d.hptotal) / _root.gra.trudnosc);
} else {
d.hp = d.hptotal;
}
d.stimer = d.stimermax;
d.i = 1;
d.speed = 0;
d.spadek = 0.7;
d.exp = 84;
d.bron.bulletspeed = 12;
d.money = 29;
d.spadanie = 0;
d.spad_speed = 0.5;
d._x = Math.cos(d.angle) * radius;
d._y = Math.sin(d.angle) * radius;
i++;
}
hpmax = 0;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
os = _root.gra["warning_c" + a.ktore];
removeMovieClip(os);
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 137 MovieClip [boss12] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
co.hp = co.hp - a.damage;
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co.hp <= 0) {
_root.mesmergin.start(0, 1);
_root.gra.etab++;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
removeMovieClip(_root.gra.klatka_gora);
removeMovieClip(_root.gra.klatka_dol);
removeMovieClip(_root.gra.klatka_prawo);
removeMovieClip(_root.gra.klatka_lewo);
os = _root.gra["warning_d" + ktore];
_root.mesmerbron.stop();
removeMovieClip(os);
co.bron.graj = false;
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 4;
}
k = 0;
while (k < ilosc) {
a = this["d" + k];
if (a.gra) {
b = _parent;
if (!(celbyl === true)) {
celx = (130 + random(160)) + random(160);
cely = (175 + random(45)) + random(40);
celbyl = true;
b.attachMovie("klatka_gora", "klatka_gora", 86090 + b.wpociski);
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
b.attachMovie("klatka_prawo", "klatka_prawo", 86090 + b.wpociski);
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
b.attachMovie("klatka_lewo", "klatka_lewo", 869090 + b.wpociski);
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
b.attachMovie("klatka_dol", "klatka_dol", 86090 + b.wpociski);
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
b.klatka_gora._x = celx;
b.klatka_dol._x = celx;
b.klatka_gora._y = -60;
b.klatka_dol._y = 480;
b.klatka_lewo._y = cely;
b.klatka_prawo._y = cely;
b.klatka_lewo._x = -60;
b.klatka_prawo._x = 770;
}
if (b.klatka_gora._y < (cely - 100)) {
b.klatka_gora._y = b.klatka_gora._y + klatka_speed;
}
if (b.klatka_dol._y > (cely + 100)) {
b.klatka_dol._y = b.klatka_dol._y - klatka_speed;
}
if (b.klatka_lewo._x < (celx - 115)) {
b.klatka_lewo._x = b.klatka_lewo._x + klatka_speed;
}
if (b.klatka_prawo._x > (celx + 115)) {
b.klatka_prawo._x = b.klatka_prawo._x - klatka_speed;
}
if (!(stopwarning === true)) {
if ((b.klatka_prawo._x - celx) < dokladnosc) {
if ((b.klatka_lewo._x - celx) > (-dokladnosc)) {
if ((b.klatka_gora._y - cely) > (-dokladnosc)) {
if ((b.klatka_dol._y - cely) < dokladnosc) {
if (!(a.warningbyl === true)) {
a.warningbyl = true;
ktore = _root.gra.ostrz;
_root.gra.attachMovie("warning_d", "warning_d" + ktore, 9920 + ktore);
os = _root.gra["warning_d" + ktore];
os._x = 680;
os._y = -20;
os._rotation = -90;
os._alpha = 0;
_root.gra.ostrz++;
if (_root.gra.ostrz > 10) {
_root.gra.ostrz = 0;
}
}
os = _root.gra["warning_d" + ktore];
os._alpha = os._alpha + 0.5;
}
}
}
}
}
if (!(a.strzelaj === true)) {
if (((b.klatka_prawo._x - celx) - 115) <= 0) {
if (((b.klatka_lewo._x - celx) + 115) >= 0) {
if (((b.klatka_gora._y - cely) + 100) >= 0) {
if (((b.klatka_dol._y - cely) - 100) <= 0) {
a.bron.graj = true;
wrocil1 = false;
wrocil2 = false;
wrocil3 = false;
wrocil4 = false;
al = 0;
}
}
}
}
} else {
if (!(a.skonczylstrzelac === true)) {
stopwarning = true;
a.warningbyl = false;
os = _root.gra["warning_d" + ktore];
removeMovieClip(os);
a.btimer--;
if (a.btimer <= 0) {
a.btimer = a.btimermax;
b.attachMovie("wstrzal1", "wstrzal" + b.wpociski, 99090 + b.wpociski);
c = b["wstrzal" + b.wpociski];
c._x = 730;
if (!(_root.thr6 === true)) {
_root.throw6.start(0, 1);
_root.thr6 = true;
}
c._y = 60 + (al * 40);
c.speed = 12;
if (!(a.wracac === true)) {
al++;
} else {
al--;
}
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
if (al > 7) {
a.wracac = true;
al = 7;
}
if ((al <= -2) && (a.wracac == true)) {
a.skonczylstrzelac = true;
}
}
}
if (a.skonczylstrzelac == true) {
if ((((wrocil1 == true) && (wrocil2 == true)) && (wrocil3 == true)) && (wrocil4 == true)) {
a.gra = false;
a.wracac = false;
a.strzelaj = false;
a.bron.graj = true;
stopwarning = false;
strzalybyly = false;
celbyl = false;
a.skonczylstrzelac = false;
a.btimer = a.btimermax;
removeMovieClip(b.klatka_gora);
removeMovieClip(b.klatka_dol);
removeMovieClip(b.klatka_lewo);
removeMovieClip(b.klatka_prawo);
}
if (b.klatka_gora._y > -60) {
b.klatka_gora._y = b.klatka_gora._y - (4 * klatka_speed);
} else {
wrocil1 = true;
}
if (b.klatka_dol._y < 480) {
b.klatka_dol._y = b.klatka_dol._y + (4 * klatka_speed);
} else {
wrocil2 = true;
}
if (b.klatka_lewo._x > -60) {
b.klatka_lewo._x = b.klatka_lewo._x - (4 * klatka_speed);
} else {
wrocil3 = true;
}
if (b.klatka_prawo._x < 770) {
b.klatka_prawo._x = b.klatka_prawo._x + (4 * klatka_speed);
} else {
wrocil4 = true;
}
}
}
}
if (!a.gra) {
a.stimer--;
if (a.stimer <= 0) {
a.gra = true;
a.bron.graj = true;
a.stimer = a.stimermax;
}
}
k++;
}
}
}
ilosc = 1;
attachMovie("boss12_baza", "d0", getNextHighestDepth());
this._y = 215;
thisy = this._y;
died = 0;
flies = 0;
d0.hptotal = 130;
i = 0;
while (i < 7) {
if (!(_parent.pleiades[i] === 0)) {
flies++;
}
i++;
}
if (!(flies === 7)) {
d0.hp = Math.round((flies * d0.hptotal) / _root.gra.trudnosc);
} else {
d0.hp = d0.hptotal;
}
d0.i = 1;
d0.exp = 98;
d0.money = 79;
d0.spadanie = 0;
d0.speed = 0;
d0.spadek = 0.7;
d0.spad_speed = 0.5;
d0.stimermax = 64;
d0.stimer = d0.stimermax;
d0.btimermax = 11;
d0.btimer = d0.btimermax;
klatka_speed = 1.5;
dokladnosc = 350;
hpmax = 0;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 138 MovieClip [boss13] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
if (!(co.inv === true)) {
co.hp = co.hp - a.damage;
}
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co.hp <= 0) {
_root.aresgin.start(0, 1);
_root.gra.etab++;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 4;
}
k = 0;
while (k < ilosc) {
a = this["d" + k];
if (a.gra) {
if (a.strzelaj == true) {
d0.stimer--;
if (d0.stimer <= 0) {
licznik++;
d0.stimer = d0.stimermax;
if (!(_root.thr6 === true)) {
_root.throw6.start(0, 1);
_root.thr6 = true;
}
i = 0;
while (i < tablica.length) {
if (((!(i === cel)) && (!(i === (cel - 1)))) && (!(i === (cel + 1)))) {
b = _parent;
b.attachMovie("wstrzal1", "wstrzal" + b.wpociski, 99090 + b.wpociski);
c = b["wstrzal" + b.wpociski];
c._x = 730;
c._y = 70 + (i * (280 / (tablica.length - 1)));
c.speed = 15 - dokladnosc;
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
}
i++;
}
celpop = cel;
cel = cel + (-1 + random(3));
while (cel <= 0) {
cel = cel + (-1 + random(3));
}
while (cel >= (tablica.length - 1)) {
cel = tablica.length - 2;
}
if (cel == celpop) {
liczd++;
}
if (liczd > dokladnosc) {
liczd = 0;
while (cel == celpop) {
cel = cel + (-1 + random(3));
while (cel <= 0) {
cel = cel + (-1 + random(3));
}
while (cel >= (tablica.length - 1)) {
cel = tablica.length - 2;
}
}
}
}
}
if (licznik >= licznikmax) {
a.strzelaj = false;
licznik = 0;
a.bron.graj = true;
a.gra = false;
}
}
if (!a.gra) {
a.btimer--;
if (a.btimer <= 0) {
if (a.hp < 150) {
dokladnosc = 2;
licznikmax = 12;
}
if (a.hp < 100) {
dokladnosc = 1;
licznikmax = 14;
}
if (a.hp < 50) {
dokladnosc = 0;
licznikmax = 15;
}
cel = 1 + random(tablica.length - 1);
a.gra = true;
a.bron.graj = true;
a.btimer = a.btimermax;
}
}
k++;
}
}
}
ilosc = 1;
attachMovie("boss13_baza", "d0", getNextHighestDepth());
this._y = 215;
flies = 0;
thisy = this._y;
died = 0;
d0.hptotal = 200;
i = 0;
while (i < 7) {
if (!(_parent.pleiades[i] === 0)) {
flies++;
}
i++;
}
if (!(flies === 7)) {
d0.hp = Math.round((flies * d0.hptotal) / _root.gra.trudnosc);
} else {
d0.hp = d0.hptotal;
}
d0.i = 1;
d0.exp = 112;
d0.money = 89;
d0.spadanie = 0;
d0.speed = 0;
d0.spadek = 0.7;
d0.spad_speed = 0.5;
d0.stimermax = 16;
d0.stimer = d0.stimermax;
d0.btimermax = 132;
d0.btimer = d0.btimermax;
hpmax = 0;
tablica = new Array(0, 0, 0, 0, 0, 0, 0);
dokladnosc = 3;
liczd = 0;
licznik = 0;
licznikmax = 10;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 139 MovieClip [boss14] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 680) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
a.damagedone = true;
co.hp = co.hp - a.damage;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co.hp <= 0) {
_root.minosgrun.start(0, 1);
trace(_root.gra.etab);
_root.gra.etab++;
trace(_root.gra.etab);
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 4;
}
k = 0;
while (k < ilosc) {
a = this["d" + k];
if (a.gra) {
if (a.ruszac == true) {
if (a._y < cely) {
a._y = a._y + a.yspeed;
}
if (a._y > cely) {
a._y = a._y - a.yspeed;
}
if (a._y == cely) {
a.gra = false;
}
}
d0.stimer--;
if (d0.stimer <= 0) {
d0.stimer = d0.stimermax;
a.bron.graj = true;
}
}
if (!a.gra) {
a.btimer--;
if (a.btimer <= 0) {
if (a.hp < ((hpmax * 2) / 3)) {
a.stimermax = 20;
}
if (a.hp < (hpmax / 3)) {
a.stimermax = 3;
}
if (a._y > 0) {
cely = -110;
} else {
cely = 110;
}
a.ruszac = false;
a.stimer = 0;
a.gra = true;
a.bron.graj = true;
a.btimer = a.btimermax;
}
}
k++;
}
}
}
ilosc = 1;
attachMovie("boss14_baza", "d0", getNextHighestDepth());
this._y = 215;
thisy = this._y;
flies = 0;
died = 0;
d0._y = -110;
d0.hptotal = 250;
i = 0;
while (i < 7) {
if (!(_parent.pleiades[i] === 0)) {
flies++;
}
i++;
}
if (!(flies === 7)) {
d0.hp = Math.round((flies * d0.hptotal) / _root.gra.trudnosc);
} else {
d0.hp = d0.hptotal;
}
d0.i = 1;
d0.exp = 140;
d0.money = 99;
d0.spadanie = 0;
d0.speed = 0;
d0.spadek = 0.7;
d0.spad_speed = 0.5;
d0.stimermax = 32;
d0.stimer = d0.stimermax;
d0.btimermax = 115;
d0.btimer = d0.btimermax / 2;
d0.bulletspeed = 13;
d0.yspeed = 5;
hpmax = 0;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 140 MovieClip [boss15] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 680) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
a.damagedone = true;
co.hp = co.hp - a.damage;
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co.hp <= 0) {
_root.zeusdie.start(0, 1);
_root.gra.etab++;
_parent.pobity = true;
co.baza.gotoAndStop("dead");
co.bron.graj = false;
co.bron.gotoAndPlay(1);
co.bron1.graj = false;
os = _root.gra["warning_d" + ktore];
removeMovieClip(os);
co.spada = true;
died = true;
zx = d0._x;
zy = d0._y;
zradius = 50;
zsped = 8;
}
}
if (died) {
if (zradius <= (zsped + 1)) {
_parent.koniecboss = true;
} else if (!(punktjest === true)) {
punktjest = true;
zangle = ((random(3) + random(3)) + random(3)) + random(3);
px = zx + (Math.cos(zangle) * zradius);
py = zy + (Math.sin(zangle) * zradius);
zradius = zradius - 1;
zsped = zsped + 0.5;
} else {
var _local5 = d0._x - px;
var _local6 = d0._y - py;
dist = Math.sqrt((_local5 * _local5) + (_local6 * _local6));
if (dist > zsped) {
d0.rotation = (Math.atan2(_local5, _local6) / Math.PI) * -180;
d0._x = d0._x + (zsped * Math.sin((d0.rotation * Math.PI) / 180));
d0._y = d0._y + ((-zsped) * Math.cos((d0.rotation * Math.PI) / 180));
} else {
punktjest = false;
}
}
if (!(kasabyla === true)) {
kasabyla = true;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
}
}
}
function dziala() {
if (!(d0.spada === true)) {
if (_root.gra.pioruntimer <= 10) {
d0.bron1.graj = true;
}
if (this._x > 630) {
this._x = this._x - 5;
czeka = true;
} else {
timer1--;
if (timer1 <= 0) {
timer1 = timer1max;
d0.bron.graj = true;
}
if (d0.hp < (hpmax * 0.75)) {
timer1max = 56;
}
if (d0.hp < (hpmax / 2)) {
timer1max = 48;
}
if (d0.hp < (hpmax / 4)) {
timer1max = 40;
}
if (czeka) {
timer0--;
if (timer0 <= 0) {
timer0 = timer0max;
czeka = false;
rusza = true;
if (d0._y == 0) {
cely = 110;
}
if (d0._y == 110) {
cely = -110;
}
if (d0._y == -110) {
cely = 0;
}
}
} else if (rusza) {
if (d0._y < cely) {
d0._y = d0._y + 5;
}
if (d0._y > cely) {
d0._y = d0._y - 5;
}
if (d0._y == cely) {
rusza = false;
czeka = true;
}
}
}
}
}
ilosc = 1;
attachMovie("boss15_baza", "d0", getNextHighestDepth());
this._y = 215;
thisy = this._y;
d0.hptotal = 400;
flies = 0;
i = 0;
while (i < 7) {
if (!(_parent.pleiades[i] === 0)) {
flies++;
}
i++;
}
if (!(flies === 7)) {
d0.hp = Math.round((flies * d0.hptotal) / _root.gra.trudnosc);
} else {
d0.hp = d0.hptotal;
}
d0.exp = 280;
d0.money = 199;
_parent.pobity = false;
hpmax = 0;
timer0max = 64;
timer0 = timer0max;
timer1max = 64;
timer1 = timer1max;
d0.bron.bulletspeed = 14;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
d.bron1.stop();
k++;
}
} else {
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
if (d.bron1.graj == true) {
d.bron1.play();
} else {
d.bron1.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 141 MovieClip [boss2] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
co.hp = co.hp - a.damage;
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co.hp <= 0) {
if (!(_root.hgi === true)) {
_root.hgi = true;
_root.hdie.start(0, 1);
}
co.baza.cacheAsBitmap = false;
_root.gra.etab++;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 3;
} else {
btimer--;
if (!(cely === undefined)) {
if (this._y < cely) {
this._y = this._y + 5;
}
if (this._y > cely) {
this._y = this._y - 5;
}
if (this._y == cely) {
if (!(dodane === true)) {
btimer = btimermax;
miejsce++;
if (miejsce > 2) {
miejsce = 0;
}
dodane = true;
}
} else {
dodane = false;
}
}
if (btimer <= 0) {
switch (miejsce) {
case 0 :
cely = 215;
break;
case 1 :
cely = 315;
break;
case 2 :
cely = 115;
}
}
}
i = 0;
while (i < 3) {
a = this["d" + i];
if ((!(a === undefined)) && (!(a.spada === true))) {
a._x = Math.cos(a.angle) * radius;
a._y = Math.sin(a.angle) * radius;
a.angle = a.angle + a.sped;
a.timer++;
if (a.timer < 7) {
a._y = a._y - 0.3;
} else {
a._y = a._y + 0.3;
}
if (a.timer >= 11) {
a.timer = 0;
a._y = a._y + 0.5;
if (!(_root.hwin === true)) {
_root.hwing.start(0, 1);
_root.hwin = true;
}
}
if (this._x < 690) {
if (a.stimer <= 0) {
a.bron.graj = true;
a.stimer = a.stimermax;
}
a.stimer--;
}
a.s1.play();
a.s2.play();
}
i++;
}
}
}
stop();
attachMovie("h1_boss", "d0", getNextHighestDepth());
attachMovie("h1_boss", "d1", getNextHighestDepth());
attachMovie("h1_boss", "d2", getNextHighestDepth());
ilosc = 3;
hpmax = 0;
radius = 28;
d0.angle = 0;
d1.angle = 2.1;
d2.angle = 4.2;
d0.sped = -0.05;
d1.sped = -0.05;
d2.sped = -0.05;
btimermax = 96;
died = 0;
btimer = btimermax;
miejsce = 1;
this._y = 215;
thisy = 215;
flies = 0;
i = 0;
while (i < 7) {
if (!(_parent.pleiades[i] === 0)) {
flies++;
}
i++;
}
i = 0;
while (i < 3) {
a = this["d" + i];
a.stimer = 0;
a.stimermax = 96;
a.i = 1;
a.hptotal = 13;
if (!(flies === 7)) {
a.hp = Math.round((flies * a.hptotal) / _root.gra.trudnosc);
} else {
a.hp = a.hptotal;
}
a.exp = 21;
a.money = 9;
a.baza.cacheAsBitmap = true;
a.speed = 0;
a.spadek = 0.7;
a.spadanie = 0;
a.spad_speed = 0.5;
a.bron.bulletspeed = 11;
a.rand = random(10);
a.timer = a.rand;
a.s1.gotoAndStop(a.rand);
a.s2.gotoAndStop(a.rand);
i++;
}
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 142 MovieClip [boss3] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
co.hp = co.hp - a.damage;
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co.hp <= 0) {
if (!(_root.hgi === true)) {
_root.hgi = true;
_root.hdie.start(0, 1);
}
co.baza.cacheAsBitmap = false;
_root.gra.etab++;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 3;
}
i = 0;
while (i < 5) {
a = this["d" + i];
if ((!(a === undefined)) && (!(a.spada === true))) {
if (i < 3) {
a._x = Math.cos(a.angle) * radius;
a._y = Math.sin(a.angle) * radius;
a.angle = a.angle + a.sped;
}
a.timer++;
if (a.timer < 7) {
a._y = a._y - 0.3;
} else {
a._y = a._y + 0.3;
}
if (a.timer >= 11) {
a.timer = 0;
if (!(i === 3)) {
a._y = a._y + 0.5;
}
if (!(_root.hwin === true)) {
_root.hwing.start(0, 1);
_root.hwin = true;
}
}
if (this._x < 690) {
if (a.stimer <= 0) {
a.bron.graj = true;
a.stimer = a.stimermax;
}
a.stimer--;
}
a.s1.play();
a.s2.play();
}
i++;
}
}
}
stop();
attachMovie("h1_boss", "d0", getNextHighestDepth());
attachMovie("h1_boss", "d1", getNextHighestDepth());
attachMovie("h1_boss", "d2", getNextHighestDepth());
attachMovie("h2_boss", "d3", getNextHighestDepth());
attachMovie("h2_boss", "d4", getNextHighestDepth());
ilosc = 5;
hpmax = 0;
d3._y = -95;
d4._y = 95;
radius = 30;
d0.angle = 0;
d1.angle = 2.1;
d2.angle = 4.2;
d0.sped = -0.05;
d1.sped = -0.05;
d2.sped = -0.05;
btimermax = 96;
died = 0;
btimer = btimermax;
miejsce = 1;
this._y = 215;
thisy = 215;
flies = 0;
i = 0;
while (i < 7) {
if (!(_parent.pleiades[i] === 0)) {
flies++;
}
i++;
}
i = 0;
while (i < 3) {
a = this["d" + i];
a.stimer = 0;
a.stimermax = 96;
a.speed = 0;
a.spadek = 0.7;
a.i = 1;
a.hptotal = 13;
if (!(flies === 7)) {
a.hp = Math.round((flies * a.hptotal) / _root.gra.trudnosc);
} else {
a.hp = a.hptotal;
}
a.baza.cacheAsBitmap = true;
a.exp = 21;
a.money = 9;
a.spadanie = 0;
a.spad_speed = 0.5;
a.bron.bulletspeed = 11;
a.rand = random(10);
a.timer = a.rand;
a.s1.gotoAndStop(a.rand);
a.s2.gotoAndStop(a.rand);
i++;
}
i = 3;
while (i < 5) {
a = this["d" + i];
a.stimer = 0;
a.stimermax = 62;
a.i = 1;
a.speed = 0;
a.spadek = 0.7;
a.hptotal = 18;
if (!(flies === 7)) {
a.hp = Math.round((flies * a.hptotal) / _root.gra.trudnosc);
} else {
a.hp = a.hptotal;
}
a.baza.cacheAsBitmap = true;
a.exp = 28;
a.money = 14;
a.spadanie = 0;
a.spad_speed = 0.5;
a.timer = 0;
a.bron.bulletspeed = 14;
a.rand = random(10);
a.s1.gotoAndStop(a.rand);
a.timer = a.rand;
a.s2.gotoAndStop(a.rand);
i++;
}
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 143 MovieClip [boss4] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
co.hp = co.hp - a.damage;
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if ((_parent.r.hitTest((co._x + this._x) - 17, co._y + this._y, true) || (_parent.r.hitTest(co._x + this._x, (co._y + this._y) + 16, true))) || (_parent.r.hitTest(co._x + this._x, (co._y + this._y) - 16, true))) {
if (!(co.hp === 0)) {
co.exp = 56;
co.hp = 0;
_root.gra.kills_new++;
}
}
if (co.hp <= 0) {
if (!(_root.hgi === true)) {
_root.hgi = true;
_root.hdie.start(0, 1);
}
co.baza.cacheAsBitmap = false;
_root.gra.etab++;
co.died = true;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 3;
}
}
i = 0;
while (i < 5) {
a = this["d" + i];
if ((!(a === undefined)) && (!(a.spada === true))) {
a.timer++;
if (a.timer < 7) {
a._y = a._y - 0.3;
} else {
a._y = a._y + 0.3;
}
if (a.timer >= 11) {
a.timer = 0;
a._y = 85 + (i * 66);
if (!(_root.hwin === true)) {
_root.hwing.start(0, 1);
_root.hwin = true;
}
}
if (this._x < 690) {
if (a.stimer <= 0) {
a.bron.graj = true;
a.stimer = a.stimermax;
}
}
a.stimer--;
a.s1.play();
a.s2.play();
}
i++;
}
}
stop();
attachMovie("h2_boss", "d0", getNextHighestDepth());
attachMovie("h2_boss", "d1", getNextHighestDepth());
attachMovie("h2_boss", "d2", getNextHighestDepth());
attachMovie("h2_boss", "d3", getNextHighestDepth());
attachMovie("h2_boss", "d4", getNextHighestDepth());
ilosc = 5;
flies = 0;
i = 0;
while (i < 7) {
if (!(_parent.pleiades[i] === 0)) {
flies++;
}
i++;
}
i = 0;
while (i < 5) {
a = this["d" + i];
a._y = 85 + (i * 66);
a.stimer = 0;
a.stimermax = 62;
a.i = 1;
a.hptotal = 23;
if (!(flies === 7)) {
a.hp = Math.round((flies * a.hptotal) / _root.gra.trudnosc);
} else {
a.hp = a.hptotal;
}
a.exp = 28;
a.money = 14;
a.speed = 0;
a.baza.cacheAsBitmap = true;
a.spadek = 0.7;
a.spadanie = 0;
a.spad_speed = 0.5;
a.timer = 0;
a.bron.bulletspeed = 14;
a.rand = random(10);
a.timer = a.rand;
a.s1.gotoAndStop(a.rand);
a.s2.gotoAndStop(a.rand);
i++;
}
died = 0;
this._y = 0;
thisy = 0;
hpmax = 0;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 144 MovieClip [boss5] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
co.hp = co.hp - a.damage;
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co.hp <= 0) {
if (!(co.bron.harp === undefined)) {
co.bron.harp.stop();
}
if (!(_root.ngi === true)) {
_root.ngi = true;
_root.ndie.start(0, 1);
}
_root.gra.etab++;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
os = _root.gra["warning_d" + co.ktore];
removeMovieClip(os);
strzal = _root.gra["brond_dzwiek" + co.ktory];
removeMovieClip(strzal);
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 4;
}
i = 0;
while (i < ilosc) {
a = this["d" + i];
if (!(a.spada === true)) {
if (this._x <= 640) {
if (a.gra) {
os = _root.gra["warning_d" + a.ktore];
removeMovieClip(os);
a.obrottimer--;
a.bron.lira.play();
strzal = _root.gra["brond_dzwiek" + a.ktory];
strzal._x = this._x + a._x;
strzal._y = this._y + a._y;
if (a.obrottimer <= 0) {
if (!(a.czeka === true)) {
if (_parent.kursor._y >= (a._y + this._y)) {
a.tkat = -katmax;
} else {
a.tkat = katmax;
}
a.czeka = true;
}
if (a._rotation < a.tkat) {
strzal._rotation = strzal._rotation + katspeed;
a._rotation = a._rotation + katspeed;
}
if (a._rotation > a.tkat) {
strzal._rotation = strzal._rotation - katspeed;
a._rotation = a._rotation - katspeed;
}
if (Math.round(a._rotation) == a.tkat) {
a._rotation = a.tkat;
a.czektimer--;
if (a.czektimer <= 0) {
removeMovieClip(strzal);
a.obrottimer = obrottimermax;
a.gra = false;
a.skonczyl = true;
a.czektimer = czektimermax;
a.czeka = false;
a.dodane = false;
a.wraca = true;
a.stimer = a.stimermax;
a.bron.graj = true;
a.warningbyl = false;
}
}
}
}
if (a.wraca) {
if (a._rotation > 0) {
a._rotation--;
}
if (a._rotation < 0) {
a._rotation++;
}
if (Math.round(a._rotation) == 0) {
a._rotation = 0;
a.rusza = true;
}
}
if (a.rusza) {
if (!(a.dodane === true)) {
a.miejsce++;
if (a.miejsce > 2) {
a.miejsce = 0;
}
a.dodane = true;
}
switch (a.miejsce) {
case 0 :
a.cely = 0;
break;
case 1 :
a.cely = 68;
break;
case 2 :
a.cely = -68;
}
if (a._y < a.cely) {
a._y = a._y + 4;
}
if (a._y > a.cely) {
a._y = a._y - 4;
}
if (a._y == a.cely) {
a.rusza = false;
a.wraca = false;
}
}
if ((!(a.gra === true)) && (!(a.rusza === true))) {
a.stimer--;
a.gra = false;
a.skonczyl = false;
if (a.stimer <= 0) {
a.bron.graj = true;
if (!(a.warningbyl === true)) {
a.warningbyl = true;
a.ktore = _root.gra.ostrz;
_root.gra.attachMovie("warning_d", "warning_d" + a.ktore, 9920 + a.ktore);
os = _root.gra["warning_d" + a.ktore];
os._x = a._x + this._x;
os._y = a._y + this._y;
os._rotation = a._rotation;
os._alpha = 8;
_root.gra.ostrz++;
if (_root.gra.ostrz > 10) {
_root.gra.ostrz = 0;
}
}
os = _root.gra["warning_d" + a.ktore];
os._alpha = os._alpha + 3;
os._x = a._x + this._x;
os._y = a._y + this._y;
}
}
}
}
i++;
}
}
}
attachMovie("boss5_baza", "d0", getNextHighestDepth());
ilosc = 1;
this._y = 215;
thisy = this._y;
died = 0;
katmax = 25;
katspeed = 0.8;
btimer = 0;
btimermax = 64;
flies = 0;
czektimermax = 40;
obrottimermax = 40;
i = 0;
while (i < ilosc) {
d = this["d" + i];
d.miejsce = 0;
d.stimer = 45;
d.stimermax = 45;
d.hptotal = 50;
j = 0;
while (j < 7) {
if (!(_parent.pleiades[j] === 0)) {
flies++;
}
j++;
}
if (!(flies === 7)) {
d.hp = Math.round((flies * d.hptotal) / _root.gra.trudnosc);
} else {
d.hp = d.hptotal;
}
d.i = 1;
d.exp = 49;
d.speed = 0;
d.spadek = 0.7;
d.money = 19;
d.spadanie = 0;
d.spad_speed = 0.5;
d.obrottimer = obrottimermax;
d.czektimer = czektimermax;
i++;
}
hpmax = 0;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 145 MovieClip [boss6] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
co.hp = co.hp - a.damage;
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
co._x = Math.cos(co.angle) * radius;
co._y = Math.sin(co.angle) * radius;
co.angle = co.angle + co.sped;
if (co.hp <= 0) {
if (!(_root.cgi === true)) {
_root.cgi = true;
_root.cdie.start(0, 1);
}
co.baza.cacheAsBitmap = false;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
if (!(liczone === true)) {
_root.gra.etab++;
liczone = true;
}
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 4;
}
if (this._x <= 625) {
if (gra) {
czektimer--;
if (czektimer <= 0) {
gra = false;
czektimer = czektimermax;
stimer = stimermax;
warningbyl = false;
}
}
if (!(gra === true)) {
stimer--;
gra = false;
if (stimer <= 0) {
d0.bron.graj = true;
d1.bron.graj = true;
d2.bron.graj = true;
os = _root.gra["warning_c" + ktore];
d0.bron.gdziex = os._x;
d0.bron.gdziey = os._y;
d1.bron.gdziex = os._x;
d1.bron.gdziey = os._y;
d2.bron.gdziex = os._x;
d2.bron.gdziey = os._y;
gra = true;
} else {
if (!(warningbyl === true)) {
warningbyl = true;
ktore = _root.gra.ostrz;
_root.gra.attachMovie("warning_c", "warning_c" + ktore, 9920 + ktore);
os = _root.gra["warning_c" + ktore];
os._x = _root.gra.kursor._x;
os._y = _root.gra.kursor._y;
os._alpha = 0;
_root.gra.ostrz++;
if (_root.gra.ostrz > 10) {
_root.gra.ostrz = 0;
}
}
os = _root.gra["warning_c" + ktore];
os._x = _root.gra.kursor._x;
os._y = _root.gra.kursor._y;
os._alpha = os._alpha + 3.3;
}
}
}
}
}
attachMovie("boss6_baza", "d0", getNextHighestDepth());
attachMovie("boss6_baza", "d1", getNextHighestDepth());
attachMovie("boss6_baza", "d2", getNextHighestDepth());
ilosc = 3;
this._y = 215;
thisy = this._y;
died = 0;
czektimermax = 64;
radius = 35;
d0.angle = 0;
d1.angle = 2.1;
d2.angle = 4.2;
d0.sped = -0.04;
d1.sped = -0.04;
d2.sped = -0.04;
czektimer = czektimermax;
flies = 0;
stimermax = 22;
stimer = stimermax;
i = 0;
while (i < ilosc) {
d = this["d" + i];
d.hptotal = 29;
j = 0;
while (j < 7) {
if (!(_parent.pleiades[j] === 0)) {
flies++;
}
j++;
}
d.hp = Math.round((flies * d.hptotal) / _root.gra.trudnosc);
d.i = 1;
d.baza.cacheAsBitmap = true;
d.exp = 70;
d.bron.bulletspeed = 16;
d.speed = 0;
d.spadek = 0.7;
d.money = 29;
d.spadanie = 0;
d.spad_speed = 0.5;
d._x = Math.cos(d.angle) * radius;
d._y = Math.sin(d.angle) * radius;
i++;
}
hpmax = 0;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
os = _root.gra["warning_c" + ktore];
removeMovieClip(os);
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 146 MovieClip [boss7] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
co.hp = co.hp - a.damage;
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co.hp <= 0) {
if (!(co.bron.harp === undefined)) {
co.bron.harp.stop();
}
if (!(_root.ngi === true)) {
_root.ngi = true;
_root.ndie.start(0, 1);
}
co.baza.cacheAsBitmap = false;
_root.gra.etab++;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
os = _root.gra["warning_d" + co.ktore];
removeMovieClip(os);
strzal = _root.gra["brond_dzwiek" + co.ktory];
removeMovieClip(strzal);
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 4;
}
i = 0;
while (i < ilosc) {
a = this["d" + i];
if (!(a.spada === true)) {
if (this._x <= 640) {
if (a.gra) {
os = _root.gra["warning_d" + a.ktore];
removeMovieClip(os);
strzal = _root.gra["brond_dzwiek" + a.ktory];
strzal._x = this._x + a._x;
strzal._y = this._y + a._y;
a.obrottimer--;
if (a.obrottimer <= 0) {
if (!(a.czeka === true)) {
if (_parent.kursor._y >= (a._y + this._y)) {
a.tkat = -katmax;
} else {
a.tkat = katmax;
}
a.czeka = true;
}
if (a._rotation < a.tkat) {
strzal._rotation = strzal._rotation + katspeed;
a._rotation = a._rotation + katspeed;
}
if (a._rotation > a.tkat) {
strzal._rotation = strzal._rotation - katspeed;
a._rotation = a._rotation - katspeed;
}
if (Math.round(a._rotation) == a.tkat) {
a._rotation = a.tkat;
strzal._rotation = a.tkat;
a.czektimer--;
if (a.czektimer <= 0) {
removeMovieClip(strzal);
a.obrottimer = obrottimermax;
a.gra = false;
a.skonczyl = true;
a.czektimer = czektimermax;
a.czeka = false;
a.dodane = false;
a.wraca = true;
a.stimer = a.stimermax;
a.bron.graj = true;
a.warningbyl = false;
}
}
}
}
if (a.wraca) {
if (a._rotation > 0) {
a._rotation--;
}
if (a._rotation < 0) {
a._rotation++;
}
if (Math.round(a._rotation) == 0) {
a._rotation = 0;
a.rusza = true;
}
}
if (a.rusza) {
if (!(a.dodane === true)) {
a.miejsce++;
if (a.miejsce > 1) {
a.miejsce = 0;
}
a.dodane = true;
}
switch (a.miejsce) {
case 0 :
a.cely = a.cely0;
break;
case 1 :
a.cely = a.cely1;
}
if (a._y < a.cely) {
a._y = a._y + 4;
}
if (a._y > a.cely) {
a._y = a._y - 4;
}
if (a._y == a.cely) {
a.rusza = false;
a.wraca = false;
}
}
if ((!(a.gra === true)) && (!(a.rusza === true))) {
trace(d0._y);
trace(d0.cely);
trace(d1._y);
trace(d1.cely);
if ((d0._y == d0.cely) && (d1._y == d1.cely)) {
a.stimer--;
a.gra = false;
a.skonczyl = false;
if (a.stimer <= 0) {
a.bron.graj = true;
if (!(a.warningbyl === true)) {
a.warningbyl = true;
a.ktore = _root.gra.ostrz;
_root.gra.attachMovie("warning_d", "warning_d" + a.ktore, 9920 + a.ktore);
os = _root.gra["warning_d" + a.ktore];
os._x = a._x + this._x;
os._y = a._y + this._y;
os._rotation = a._rotation;
os._alpha = 8;
_root.gra.ostrz++;
if (_root.gra.ostrz > 10) {
_root.gra.ostrz = 0;
}
}
os = _root.gra["warning_d" + a.ktore];
os._alpha = os._alpha + 3;
os._x = a._x + this._x;
os._y = a._y + this._y;
}
}
}
}
}
i++;
}
}
}
attachMovie("boss5_baza", "d0", getNextHighestDepth());
attachMovie("boss5_baza", "d1", getNextHighestDepth());
ilosc = 2;
this._y = 215;
thisy = this._y;
died = 0;
katmax = 25;
katspeed = 0.8;
btimer = 0;
btimermax = 64;
czektimermax = 40;
flies = 0;
obrottimermax = 40;
d0._y = -100;
d1._y = 100;
d0.cely = -100;
d1.cely = 100;
d0.cely0 = -100;
d0.cely1 = -60;
d1.cely0 = 100;
d1.cely1 = -20;
i = 0;
while (i < ilosc) {
d = this["d" + i];
d.miejsce = 0;
d.stimer = 45;
d.stimermax = 45;
d.hptotal = 40;
j = 0;
while (j < 7) {
if (!(_parent.pleiades[j] === 0)) {
flies++;
}
j++;
}
if (!(flies === 7)) {
d.hp = Math.round((flies * d.hptotal) / _root.gra.trudnosc);
} else {
d.hp = d.hptotal;
}
d.i = 1;
d.baza.cacheAsBitmap = true;
d.exp = 49;
d.money = 19;
d.spadanie = 0;
d.speed = 0;
d.spadek = 0.7;
d.spad_speed = 0.5;
d.obrottimer = obrottimermax;
d.czektimer = czektimermax;
i++;
}
hpmax = 0;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 147 MovieClip [boss8] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
co.hp = co.hp - a.damage;
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co.hp <= 0) {
if (co == d0) {
if (!(co.bron.harp === undefined)) {
co.bron.harp.stop();
}
if (!(_root.ngi === true)) {
_root.ngi = true;
_root.ndie.start(0, 1);
}
} else if (!(_root.hgi === true)) {
_root.hgi = true;
_root.hdie.start(0, 1);
}
co.baza.cacheAsBitmap = false;
_root.gra.etab++;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
os = _root.gra["warning_d" + co.ktore];
if (!(os === undefined)) {
removeMovieClip(os);
}
strzal = _root.gra["brond_dzwiek" + co.ktory];
if (!(strzal === undefined)) {
removeMovieClip(strzal);
}
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
_root.gra.pobity = true;
} else {
_root.gra.pobity = false;
if (this._x > 620) {
this._x = this._x - 4;
}
i = 0;
while (i < 3) {
a = this["d" + i];
if ((!(a === undefined)) && (!(a.spada === true))) {
if (i > 0) {
a.timer++;
if (a.timer < 7) {
a._y = a._y - 0.3;
} else {
a._y = a._y + 0.3;
}
if (a.timer >= 11) {
a.timer = 0;
if (!(_root.hwin === true)) {
_root.hwing.start(0, 1);
_root.hwin = true;
}
if (i == 1) {
a._y = 140;
} else {
a._y = -135;
}
}
if (this._x < 690) {
if (a.stimer <= 0) {
a.bron.graj = true;
a.stimer = a.stimermax;
}
a.stimer--;
}
a.s1.play();
a.s2.play();
} else if (this._x <= 640) {
if (a.gra) {
os = _root.gra["warning_d" + a.ktore];
removeMovieClip(os);
strzal = _root.gra["brond_dzwiek" + a.ktory];
strzal._x = this._x + a._x;
strzal._y = a._y + this._y;
a.obrottimer--;
if (a.obrottimer <= 0) {
if (!(a.czeka === true)) {
if (_parent.kursor._y >= (a._y + this._y)) {
a.tkat = -katmax;
} else {
a.tkat = katmax;
}
a.czeka = true;
}
if (a._rotation < a.tkat) {
strzal._rotation = strzal._rotation + katspeed;
a._rotation = a._rotation + katspeed;
}
if (a._rotation > a.tkat) {
strzal._rotation = strzal._rotation - katspeed;
a._rotation = a._rotation - katspeed;
}
if (Math.round(a._rotation) == a.tkat) {
a._rotation = a.tkat;
strzal._rotation = a.tkat;
a.czektimer--;
if (a.czektimer <= 0) {
removeMovieClip(strzal);
a.obrottimer = a.obrottimermax;
a.gra = false;
a.skonczyl = true;
a.czektimer = a.czektimermax;
a.czeka = false;
a.dodane = false;
a.wraca = true;
a.stimer = a.stimermax;
a.bron.graj = true;
a.warningbyl = false;
}
}
}
}
if (a.wraca) {
if (a._rotation > 0) {
a._rotation--;
}
if (a._rotation < 0) {
a._rotation++;
}
if (Math.round(a._rotation) == 0) {
a._rotation = 0;
a.rusza = true;
}
}
if (a.rusza) {
if (!(a.dodane === true)) {
a.miejsce++;
if (a.miejsce > 1) {
a.miejsce = 0;
}
a.dodane = true;
}
switch (a.miejsce) {
case 0 :
a.cely = a.cely0;
break;
case 1 :
a.cely = a.cely1;
}
if (a._y < a.cely) {
a._y = a._y + 4;
}
if (a._y > a.cely) {
a._y = a._y - 4;
}
if (a._y == a.cely) {
a.rusza = false;
a.wraca = false;
}
}
if ((!(a.gra === true)) && (!(a.rusza === true))) {
a.stimer--;
a.gra = false;
a.skonczyl = false;
if (a.stimer <= 0) {
a.bron.graj = true;
if (!(a.warningbyl === true)) {
a.warningbyl = true;
a.ktore = _root.gra.ostrz;
_root.gra.attachMovie("warning_d", "warning_d" + a.ktore, 9920 + a.ktore);
os = _root.gra["warning_d" + a.ktore];
os._x = a._x + this._x;
os._y = a._y + this._y;
os._rotation = a._rotation;
os._alpha = 8;
_root.gra.ostrz++;
if (_root.gra.ostrz > 10) {
_root.gra.ostrz = 0;
}
}
os = _root.gra["warning_d" + a.ktore];
os._alpha = os._alpha + 3;
os._x = a._x + this._x;
os._y = a._y + this._y;
}
}
}
}
i++;
}
}
}
attachMovie("boss5_baza", "d0", getNextHighestDepth());
attachMovie("h2_boss", "d1", getNextHighestDepth());
attachMovie("h2_boss", "d2", getNextHighestDepth());
ilosc = 3;
this._y = 215;
thisy = this._y;
died = 0;
flies = 0;
katmax = 25;
katspeed = 0.8;
d0.btimer = 0;
d0.btimermax = 64;
d0.czektimermax = 40;
d0.obrottimermax = 40;
d0._y = 70;
d1._y = 80;
d2._y = -80;
d0.cely0 = 70;
d0.cely1 = -70;
d0.miejsce = 0;
d0.stimer = 45;
i = 0;
while (i < 7) {
if (!(_parent.pleiades[i] === 0)) {
flies++;
}
i++;
}
d0.stimermax = 45;
d0.hptotal = 50;
if (!(flies === 7)) {
d0.hp = Math.round((flies * d0.hptotal) / _root.gra.trudnosc);
} else {
d0.hp = d0.hptotal;
}
d0.i = 1;
d0.exp = 49;
d0.money = 19;
d0.baza.cacheAsBitmap = true;
d0.spadanie = 0;
d0.spad_speed = 0.5;
d0.obrottimer = d0.obrottimermax;
d0.czektimer = d0.czektimermax;
i = 1;
while (i < 3) {
d = this["d" + i];
d.stimer = 0;
d.stimermax = 62;
d.i = 1;
d.hptotal = 18;
if (!(flies === 7)) {
d.hp = Math.round((flies * d.hptotal) / _root.gra.trudnosc);
} else {
d.hp = d.hptotal;
}
d.exp = 28;
d.money = 14;
d.spadanie = 0;
d.baza.cacheAsBitmap = true;
d.spad_speed = 0.5;
d.speed = 0;
d.spadek = 0.7;
d.timer = 0;
d.bron.bulletspeed = 14;
d.rand = random(10);
d.timer = d.rand;
d.s1.gotoAndStop(a.rand);
d.s2.gotoAndStop(a.rand);
i++;
}
hpmax = 0;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 148 MovieClip [boss9] Frame 1
function hitowanie(co) {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (Math.abs(((co._x + this._x) + _parent._x) - a._x) < ((co._width / 2) + (a._width / 2))) {
if (Math.abs(((co._y + this._y) + _parent._y) - a._y) < ((co._height / 2) + (a._height / 2))) {
if ((((co.hitTest(a._x + (a._width / 2), a._y, true) || (co.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (co.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (co.hitTest(a._x, a._y - (a._height / 2), true))) || (co.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x >= 690) {
a.damagedone = true;
}
a.baza.play();
if (!(a.damagedone === true)) {
co.hp = co.hp - a.damage;
a.damagedone = true;
co.speed = co.speed + 10;
if (co.speed > 10) {
co.speed = 10;
}
}
}
}
}
}
i++;
}
if (!co.spada) {
if (co == d2) {
if ((co.hp <= 40) && (co.hp > 0)) {
if (!(went === true)) {
_root.gra.r.dajkolce = true;
went = true;
}
}
}
if (((_parent.r.hitTest((co._x + this._x) + (co.baza._width / 2), co._y + this._y, true) || (_parent.r.hitTest((co._x + this._x) - (co.baza._width / 2), co._y + this._y, true))) || (_parent.r.hitTest(co._x + this._x, (co._y + this._y) - (co.baza._height / 2), true))) || (_parent.r.hitTest(co._x + this._x, (co._y + this._y) + (co.baza._height / 2), true))) {
if (!(co.hp === 0)) {
if (!(co === d2)) {
co.exp = 98;
co.hp = 0;
co.wybuch.gotoAndStop(2);
_root.gra.kills_new++;
} else {
co.exp = 140;
co.hp = 0;
co.wybuch.gotoAndStop(2);
_root.gra.kills_new++;
}
}
}
if (co.hp <= 0) {
if (!(co === d2)) {
if (!(co.bron.harp === undefined)) {
co.bron.harp.stop();
}
if (!(_root.ngi === true)) {
_root.ngi = true;
_root.ndie.start(0, 1);
}
} else {
if (!(_root.ngi === true)) {
_root.ngi = true;
_root.ndie.start(0, 1);
}
co.baza.gotoAndStop("stunned");
_root.gra.r.spadbos.dzialaj = true;
}
co.baza.cacheAsBitmap = false;
_root.gra.etab++;
i = 100;
while (i <= (Math.floor(co.money / 100) * 100)) {
co.jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(co.money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (co.money - (Math.floor(co.money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((co.money - (Math.floor(co.money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
while (a.ex > 650) {
a.ex = a.ex - 10;
}
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (co.money - (Math.floor(co.money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (co.money - (Math.floor(co.money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = co._x + co._parent._x;
a._y = co._y + co._parent._y;
a.ex = co._x + co._parent._x;
a.ey = co._y + co._parent._y;
while (a.ex > 650) {
a.ex = a.ex - 10;
}
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = co.jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
co.ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
co.ex = co.ex + (co.exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + co.ex;
co.spada = true;
died++;
}
} else {
if (!(co.speed === 0)) {
co.speed = co.speed * spadek;
co._x = co._x + co.speed;
if (co.speed < 0.5) {
co.speed = 0;
}
}
co.bron.graj = false;
os = _root.gra["warning_d" + co.ktore];
removeMovieClip(os);
strzal = _root.gra["brond_dzwiek" + co.ktory];
removeMovieClip(strzal);
if (co._rotation < 90) {
co._rotation = co._rotation + (0.3 * co.i);
co.i++;
}
if (co._y < 500) {
co._y = co._y + co.spadanie;
co.spadanie = co.spadanie + co.spad_speed;
} else {
removeMovieClip(co);
}
}
}
function dziala() {
if (died > (ilosc - 1)) {
timery--;
if (timery <= 0) {
_root.gra.r.juzpo = true;
_root.gra.pobity = true;
}
} else {
_root.gra.pobity = false;
if (this._x > 630) {
this._x = this._x - 4;
}
i = 0;
while (i < (ilosc - 1)) {
a = this["d" + i];
if (!(a.spada === true)) {
if (this._x <= 640) {
if (a.gra) {
os = _root.gra["warning_d" + a.ktore];
removeMovieClip(os);
strzal = _root.gra["brond_dzwiek" + a.ktory];
strzal._x = this._x + a._x;
strzal._y = this._y + a._y;
a.obrottimer--;
if (a.obrottimer <= 0) {
a.czektimer--;
if (a.czektimer <= 0) {
removeMovieClip(strzal);
a.obrottimer = obrottimermax;
a.gra = false;
a.czektimer = czektimermax;
a.wraca = true;
a.bron.graj = true;
a.warningbyl = false;
}
}
}
if (a.wraca) {
if (a._rotation == 0) {
if (_root.gra.kursor._y < (this._y + a._y)) {
a.celr = katmax;
} else {
a.celr = -katmax;
}
} else if ((a._rotation == katmax) || (a._rotation == (-katmax))) {
a.celr = 0;
}
if (a._rotation > a.celr) {
a._rotation = a._rotation - katspeed;
}
if (a._rotation < a.celr) {
a._rotation = a._rotation + katspeed;
}
if (Math.round(a._rotation) == a.celr) {
a.wraca = false;
a._rotation = a.celr;
}
}
if ((!(a.gra === true)) && (!(a.wraca === true))) {
a.gra = false;
a.bron.graj = true;
if (!(a.warningbyl === true)) {
a.warningbyl = true;
a.ktore = _root.gra.ostrz;
_root.gra.attachMovie("warning_d", "warning_d" + a.ktore, 9920 + a.ktore);
os = _root.gra["warning_d" + a.ktore];
os._x = a._x + this._x;
os._y = a._y + this._y;
os._rotation = a._rotation;
os._alpha = 8;
_root.gra.ostrz++;
if (_root.gra.ostrz > 10) {
_root.gra.ostrz = 0;
}
}
os = _root.gra["warning_d" + a.ktore];
os._alpha = os._alpha + 3;
os._x = a._x + this._x;
os._y = a._y + this._y;
}
}
}
i++;
}
}
}
attachMovie("boss5_baza", "d0", getNextHighestDepth());
attachMovie("boss5_baza", "d1", getNextHighestDepth());
attachMovie("echidna", "d2", getNextHighestDepth());
ilosc = 3;
this._y = 215;
thisy = this._y;
died = 0;
katmax = 25;
katspeed = 0.8;
btimer = 0;
btimermax = 64;
flies = 0;
czektimermax = 40;
obrottimermax = 40;
d0._y = -120;
d1._y = 120;
d2._y = 0;
d2.hptotal = 130;
i = 0;
while (i < 7) {
if (!(_parent.pleiades[i] === 0)) {
flies++;
}
i++;
}
if (!(flies === 7)) {
d2.hp = Math.round((flies * d2.hptotal) / _root.gra.trudnosc);
} else {
d2.hp = d2.hptotal;
}
d2.i = 1;
d2.exp = 98;
d2.money = 44;
d2.spadanie = 0;
d2.speed = 0;
d2.spadek = 0.7;
d2.spad_speed = 0.5;
d2.baza.cacheAsBitmap = true;
timery = 16;
i = 0;
while (i < (ilosc - 1)) {
d = this["d" + i];
d.miejsce = 0;
d.hptotal = 50;
if (!(flies === 7)) {
d.hp = Math.round((flies * d.hptotal) / _root.gra.trudnosc);
} else {
d.hp = d.hptotal;
}
d.i = 1;
d.speed = 0;
d.spadek = 0.7;
d.baza.cacheAsBitmap = true;
d.exp = 49;
d.money = 19;
d.spadanie = 0;
d.spad_speed = 0.5;
d.obrottimer = obrottimermax;
d.czektimer = czektimermax;
i++;
}
hpmax = 0;
onEnterFrame = function () {
if (_root.gra.paused == true) {
k = 0;
while (k < ilosc) {
d = this["d" + k];
d.bron.stop();
k++;
}
} else {
if (died > (ilosc - 1)) {
gin = true;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
gin = false;
}
k++;
}
if (gin == true) {
removeMovieClip(this);
}
}
sumahp = 0;
k = 0;
while (k < ilosc) {
d = this["d" + k];
if (!(d === undefined)) {
if (this._x < 700) {
if (!(d.zsumowane === true)) {
hpmax = hpmax + d.hp;
d.zsumowane = true;
}
hitowanie(d);
if (!(d.hp === undefined)) {
if (d.hp < 0) {
d.hp = 0;
}
sumahp = sumahp + d.hp;
}
}
if (d.bron.graj == true) {
d.bron.play();
} else {
d.bron.stop();
}
}
k++;
}
if (this._x < 700) {
_root.gra.gui.bosshp.fillreal._yscale = (sumahp / hpmax) * _root.gra.realyscale;
}
dziala();
}
};
Symbol 151 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 154 MovieClip Frame 1
stop();
if (_root.gra.level == 15) {
gotoAndStop (2);
}
Symbol 155 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
a.damagedone = true;
if (a._y < (this._y - 10)) {
rot = rot + ((this._y - a._y) / 8);
}
if (a._y > (this._y + 10)) {
rot = rot - ((a._y - this._y) / 8);
}
speed = speed + 8;
if (speed > 8) {
speed = 8;
}
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
speed = speed + -8;
if (b._y < (this._y - 10)) {
rot = rot + ((this._y - b._y) / 8);
}
if (b._y > (this._y + 10)) {
rot = rot - ((b._y - this._y) / 8);
}
if (speed < -8) {
speed = -8;
}
}
}
}
}
}
}
i++;
}
}
function dziala() {
if (!(speed === 0)) {
speed = speed * spadek;
this._x = this._x + speed;
if (speed < 0.5) {
speed = 0;
}
}
if (!(rot === 0)) {
if (rot > 4) {
rot = 4;
}
if (rot < -4) {
rot = -4;
}
this._rotation = this._rotation + rot;
i = 0;
while (i <= 5) {
place = _root.gra["boxd" + i];
if (!(place === undefined)) {
if (place._y == this._y) {
place._rotation = place._rotation + rot;
}
}
i++;
}
rot = rot * 0.7;
if (rot < 0.3) {
rot = 0;
}
}
if (!(dzialaj === true)) {
i = 0;
while (i <= 5) {
place = _root.gra["boxd" + i];
if (!(place === undefined)) {
if (place._y == this._y) {
if ((this._x + _parent._x) >= (place._x - (place._width / 13))) {
this._x = place._x - _parent._x;
if (!(_root.boxsoun === true)) {
_root.boxsound.start(0, 1);
_root.boxsoun = true;
}
removeMovieClip(place);
dzialaj = true;
}
}
}
i++;
}
} else if (this._y < 600) {
if (rot >= 0) {
nrot = nrot + 0.2;
} else {
nrot = nrot - 0.2;
}
this._rotation = this._rotation + nrot;
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
} else {
unloadMovie (this);
}
}
speed = 0;
rot = 0;
spadek = 0.7;
spadanie = 0;
spad_speed = 0.6;
rspeed = 0;
nrot = 0;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
dziala();
if (dist < (-this._width)) {
unloadMovie (this);
}
}
}
};
Symbol 158 MovieClip Frame 1
stop();
_root.gra.boxy++;
if (_root.gra.boxy > 5) {
_root.gra.boxy = 0;
}
thisx = this._x;
thisy = this._y;
_root.gra.attachMovie("boxd_baza", "boxd" + _root.gra.boxy, 2450 + _root.gra.boxy);
a = _root.gra["boxd" + _root.gra.boxy];
a._y = thisy;
a._x = thisx + _parent._x;
a._width = this._width - 3;
a._height = this._height - 3;
unloadMovie (this);
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 16
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 16
stop();
Symbol 201 MovieClip [feniks] Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x <= 690) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
speed = speed + 10;
if (speed > 10) {
speed = 10;
}
}
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs(this._x - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs(this._y - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
speed = speed - 10;
if (speed < -10) {
speed = -10;
}
}
}
}
}
}
}
i++;
}
if (!spada) {
if (this._x > (this._width / 2)) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2))) {
if (((pi.hitTest(this._x - 40, this._y, true) || (pi.hitTest(this._x - 10, this._y, true))) || (_parent.p.hitTest(this._x + 30, this._y, true))) || (_parent.p.hitTest(this._x + 10, this._y, true))) {
hp = 0;
exp = 35;
wybuch.gotoAndStop(2);
_root.gra.kills_new++;
}
}
}
if (!(_parent.p === undefined)) {
if (Math.abs((this._x - _parent.p._x) - _parent.p._width) < ((this._width / 2) + _parent.p._width)) {
if (((_parent.p.hitTest(this._x - 40, this._y, true) || (_parent.p.hitTest(this._x, this._y + 31, true))) || (_parent.p.hitTest(this._x, this._y - 24, true))) || (_parent.p.hitTest(this._x + 24, this._y, true))) {
if (!(hp === 0)) {
wybuch.gotoAndStop(2);
exp = 35;
hp = 0;
_root.gra.kills_new++;
}
}
}
}
if (!(_parent.r === undefined)) {
if (Math.abs((this._x - _parent.r._x) - _parent.r._width) < ((this._width / 2) + _parent.r._width)) {
if (((_parent.r.hitTest(this._x - 40, this._y, true) || (_parent.r.hitTest(this._x, this._y + 31, true))) || (_parent.r.hitTest(this._x, this._y - 24, true))) || (_parent.r.hitTest(this._x + 24, this._y, true))) {
if (!(hp === 0)) {
exp = 35;
wybuch.gotoAndStop(2);
hp = 0;
_root.gra.kills_new++;
}
}
}
}
}
if (hp <= 0) {
if (!(_root.fgi === true)) {
_root.fgi = true;
_root.fdie.start(0, 1);
}
baza.cacheAsBitmap = false;
_root.gra.etab++;
trace(_root.gra.etab);
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else {
if (!(speed === 0)) {
speed = speed * spadek;
this._x = this._x + speed;
if (speed < 0.5) {
speed = 0;
}
}
if (this._rotation < 180) {
this._rotation = this._rotation + (0.5 * i);
i++;
}
if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
} else {
unloadMovie (this);
}
}
}
function dziala() {
this._x = this._x - xspeed;
timer++;
if (timer < 16) {
this._y = this._y - 0.35;
} else {
this._y = this._y + 0.35;
}
if (timer >= 30) {
timer = 0;
if (!(_root.fwin === true)) {
_root.fwing.start(0, 1);
_root.fwin = true;
}
}
s1.play();
s2.play();
}
i = 1;
hp = 11;
exp = 21;
money = 5;
spadanie = 0;
spad_speed = 0.5;
thisy = this._y;
speed = 0;
spadek = 0.7;
xspeed = 4;
rand = random(30);
timer = rand;
s1.gotoAndStop(rand);
s2.gotoAndStop(rand);
baza.cacheAsBitmap = true;
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
this._x = this._x + Math.round(_parent.formula);
if (this._x < ((-this._width) / 2)) {
unloadMovie (this);
}
hitowanie();
if (!(spada === true)) {
dziala();
}
}
};
Symbol 204 MovieClip Frame 1
stop();
onEnterFrame = function () {
dist = this._x + _parent._x;
if (dist < 800) {
_root.gra.wrogowie++;
if (_root.gra.wrogowie > 39) {
_root.gra.wrogowie = 0;
}
thisx = this._x;
thisy = this._y;
_root.gra.attachMovie("feniks", "wrog" + _root.gra.wrogowie, 89000 + _root.gra.wrogowie);
a = _root.gra["wrog" + _root.gra.wrogowie];
a._y = thisy;
a._x = thisx + _parent._x;
unloadMovie (this);
}
};
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 6
stop();
_parent.attachMovie("bling", "bling", _parent.getNextHighestDepth());
_parent.bling._yscale = 170;
_parent.bling._xscale = 170;
Symbol 210 MovieClip Frame 1
stop();
onEnterFrame = function () {
dist = this._x + _parent._x;
if (dist < 800) {
_root.gra.gwiazdy++;
if (_root.gra.gwiazdy > 10) {
_root.gra.gwiazdy = 0;
}
thisx = this._x;
thisy = this._y;
_root.gra.attachMovie("gwiazda", "gwiazda" + _root.gra.gwiazdy, 99800 + _root.gra.gwiazdy);
a = _root.gra["gwiazda" + _root.gra.gwiazdy];
a._y = thisy;
a._x = thisx + _parent._x;
unloadMovie (this);
}
};
Symbol 222 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
stop();
if (_parent.kolor == true) {
gotoAndStop (2);
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 8
_parent.play();
Symbol 241 MovieClip Frame 1
graj = false;
Symbol 241 MovieClip Frame 7
if (!(_root.thr6 === true)) {
_root.throw6.start(0, 1);
_root.thr6 = true;
}
Symbol 241 MovieClip Frame 10
b = _root.gra;
b.attachMovie("wstrzal1", "wstrzal" + b.wpociski, 99090 + b.wpociski);
a = b["wstrzal" + b.wpociski];
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
a._y = (_parent._y + this._y) + _parent._parent._y;
a._x = (((_parent._x + _parent._parent._x) + this._x) - 25) + _root.gra.formula;
a.speed = bulletspeed;
Symbol 242 MovieClip [harpia1] Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x <= 690) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
speed = speed + 10;
if (speed > 10) {
speed = 10;
}
}
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs(this._x - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs(this._y - b._y) < ((this._height / 2) + (b._height / 2))) {
if (((this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
speed = speed - 10;
if (speed < -10) {
speed = -10;
}
}
}
}
}
}
}
i++;
}
if (!spada) {
if (this._x > (this._width / 2)) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2))) {
if (((pi.hitTest(this._x - 17, this._y, true) || (pi.hitTest(this._x, this._y, true))) || (_parent.p.hitTest(this._x + 30, this._y, true))) || (_parent.p.hitTest(this._x + 15, this._y, true))) {
hp = 0;
wybuch.gotoAndStop(2);
exp = 35;
_root.gra.kills_new++;
}
}
}
if (!(_parent.p === undefined)) {
if (Math.abs((this._x - _parent.p._x) - _parent.p._width) < ((this._width / 2) + _parent.p._width)) {
if (((_parent.p.hitTest(this._x - 17, this._y, true) || (_parent.p.hitTest(this._x, this._y + 16, true))) || (_parent.p.hitTest(this._x, this._y - 16, true))) || (_parent.p.hitTest(this._x + 30, this._y, true))) {
if (!(hp === 0)) {
exp = 35;
wybuch.gotoAndStop(2);
hp = 0;
_root.gra.kills_new++;
}
}
}
}
if (!(_parent.r === undefined)) {
if (Math.abs((this._x - _parent.r._x) - _parent.r._width) < ((this._width / 2) + _parent.r._width)) {
if (((_parent.r.hitTest(this._x - 17, this._y, true) || (_parent.r.hitTest(this._x, this._y + 16, true))) || (_parent.r.hitTest(this._x, this._y - 16, true))) || (_parent.r.hitTest(this._x + 30, this._y, true))) {
if (!(hp === 0)) {
exp = 35;
wybuch.gotoAndStop(2);
hp = 0;
_root.gra.kills_new++;
}
}
}
}
}
if (hp <= 0) {
if (!(_root.hgi === true)) {
_root.hgi = true;
_root.hdie.start(0, 1);
}
_root.gra.etab++;
trace(_root.gra.etab);
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
baza.cacheAsBitmap = false;
}
} else {
if (!(speed === 0)) {
speed = speed * spadek;
this._x = this._x + speed;
if (speed < 0.5) {
speed = 0;
}
}
bron.graj = false;
if (this._rotation < 90) {
this._rotation = this._rotation + (0.3 * i);
i++;
}
if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
} else {
unloadMovie (this);
}
}
}
function dziala() {
this._x = this._x - xspeed;
timer++;
if (timer < 7) {
this._y = this._y - 0.3;
} else {
this._y = this._y + 0.3;
}
if (timer >= 11) {
timer = 0;
if (!(_root.hwin === true)) {
_root.hwing.start(0, 1);
_root.hwin = true;
}
this._y = thisy;
}
if (this._x < 690) {
if (stimer <= 0) {
bron.graj = true;
stimer = stimermax;
}
stimer--;
}
s1.play();
s2.play();
}
stop();
stimer = 0;
stimermax = 96;
i = 1;
hp = 11;
exp = 21;
money = 9;
spadanie = 0;
spad_speed = 0.5;
thisy = this._y;
baza.cacheAsBitmap = true;
speed = 0;
spadek = 0.7;
xspeed = 2;
bron.bulletspeed = 11;
rand = random(10);
timer = rand;
s1.gotoAndStop(rand);
s2.gotoAndStop(rand);
onEnterFrame = function () {
if (_root.gra.paused == true) {
bron.stop();
} else {
this._x = this._x + Math.round(_parent.formula);
if (this._x < ((-this._width) / 2)) {
unloadMovie (this);
}
hitowanie();
if (!(spada === true)) {
dziala();
}
if (bron.graj == true) {
bron.play();
} else {
bron.stop();
}
}
};
Symbol 245 MovieClip Frame 1
stop();
onEnterFrame = function () {
dist = this._x + _parent._x;
if (dist < 800) {
_root.gra.wrogowie++;
if (_root.gra.wrogowie > 39) {
_root.gra.wrogowie = 0;
}
thisx = this._x;
thisy = this._y;
_root.gra.attachMovie("harpia1", "wrog" + _root.gra.wrogowie, 89000 + _root.gra.wrogowie);
a = _root.gra["wrog" + _root.gra.wrogowie];
a._y = thisy;
a._x = thisx + _parent._x;
unloadMovie (this);
}
};
Symbol 250 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 8
_parent.play();
Symbol 262 MovieClip Frame 11
stop();
Symbol 273 MovieClip Frame 11
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 275 MovieClip [strzal3] Frame 1
stop();
if (_parent.kolor == true) {
baza.baz.gotoAndStop(2);
}
if (kolorjest == true) {
baza.baz.gotoAndStop(2);
}
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
if (!(damagedone === true)) {
this._x = this._x + speed;
if (this._x > 700) {
removeMovieClip(this);
}
} else {
baza.play();
if (!(bylo === true)) {
bylo = true;
if (kolorjest == true) {
wybuch.gotoAndStop(3);
if (!(popiorunie === true)) {
if (!(_root.ddsoun === true)) {
_root.ddsoun = true;
_root.ddsound.start(0, 1);
}
}
} else {
wybuch.gotoAndStop(2);
if (!(popiorunie === true)) {
if (!(_root.hi3 === true)) {
_root.hit3.start(0, 1);
_root.hi3 = true;
}
}
}
}
}
}
};
Symbol 275 MovieClip [strzal3] Frame 2
removeMovieClip(this);
Symbol 283 MovieClip Frame 1
graj = false;
Symbol 283 MovieClip Frame 13
if (!(_root.thr3 === true)) {
_root.throw3.start(0, 1);
_root.thr3 = true;
}
Symbol 283 MovieClip Frame 15
b = _root.gra;
b.attachMovie("wstrzal2", "wstrzal" + b.wpociski, 99090 + b.wpociski);
a = b["wstrzal" + b.wpociski];
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
a._y = (_parent._y + this._y) + _parent._parent._y;
a._x = (((_parent._x + _parent._parent._x) + this._x) - 30) + _root.gra.formula;
a.speed = bulletspeed;
Symbol 284 MovieClip [harpia2] Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x <= 690) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
speed = speed + 10;
if (speed > 10) {
speed = 10;
}
}
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs(this._x - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs(this._y - b._y) < ((this._height / 2) + (b._height / 2))) {
if (((this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
speed = speed - 10;
if (speed < -10) {
speed = -10;
}
}
}
}
}
}
}
i++;
}
if (!spada) {
if (this._x > (this._width / 2)) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2))) {
if (((pi.hitTest(this._x - 17, this._y, true) || (pi.hitTest(this._x, this._y, true))) || (_parent.p.hitTest(this._x + 30, this._y, true))) || (_parent.p.hitTest(this._x + 15, this._y, true))) {
hp = 0;
exp = 56;
wybuch.gotoAndStop(2);
_root.gra.kills_new++;
}
}
}
if (!(_parent.p === undefined)) {
if (Math.abs((this._x - _parent.p._x) - _parent.p._width) < ((this._width / 2) + _parent.p._width)) {
if (((_parent.p.hitTest(this._x - 17, this._y, true) || (_parent.p.hitTest(this._x, this._y + 16, true))) || (_parent.p.hitTest(this._x, this._y - 16, true))) || (_parent.p.hitTest(this._x + 30, this._y, true))) {
if (!(hp === 0)) {
exp = 56;
hp = 0;
wybuch.gotoAndStop(2);
_root.gra.kills_new++;
}
}
}
}
if (!(_parent.r === undefined)) {
if (Math.abs((this._x - _parent.r._x) - _parent.r._width) < ((this._width / 2) + _parent.r._width)) {
if (((_parent.r.hitTest(this._x - 17, this._y, true) || (_parent.r.hitTest(this._x, this._y + 16, true))) || (_parent.r.hitTest(this._x, this._y - 16, true))) || (_parent.r.hitTest(this._x + 30, this._y, true))) {
if (!(hp === 0)) {
exp = 56;
hp = 0;
wybuch.gotoAndStop(2);
_root.gra.kills_new++;
}
}
}
}
}
if (hp <= 0) {
if (!(_root.hgi === true)) {
_root.hgi = true;
_root.hdie.start(0, 1);
}
baza.cacheAsBitmap = false;
_root.gra.etab++;
trace(_root.gra.etab);
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else {
if (!(speed === 0)) {
speed = speed * spadek;
this._x = this._x + speed;
if (speed < 0.5) {
speed = 0;
}
}
bron.graj = false;
if (this._rotation < 90) {
this._rotation = this._rotation + (0.3 * i);
i++;
}
if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
} else {
removeMovieClip(this);
}
}
}
function dziala() {
this._x = this._x - xspeed;
timer++;
if (timer < 7) {
this._y = this._y - 0.3;
} else {
this._y = this._y + 0.3;
}
if (timer >= 11) {
timer = 0;
this._y = thisy;
if (!(_root.hwin === true)) {
_root.hwing.start(0, 1);
_root.hwin = true;
}
}
if (this._x < 690) {
if (stimer <= 0) {
bron.graj = true;
stimer = stimermax;
}
}
stimer--;
s1.play();
s2.play();
}
stop();
stimer = 0;
stimermax = 64;
i = 1;
hp = 23;
exp = 28;
money = 14;
spadanie = 0;
baza.cacheAsBitmap = true;
spad_speed = 0.5;
thisy = this._y;
speed = 0;
spadek = 0.7;
xspeed = 2;
rand = random(10);
timer = rand;
bron.bulletspeed = 14;
s1.gotoAndStop(rand);
s2.gotoAndStop(rand);
onEnterFrame = function () {
if (_root.gra.paused == true) {
bron.stop();
} else {
this._x = this._x + Math.round(_parent.formula);
if (this._x < ((-this._width) / 2)) {
unloadMovie (this);
}
hitowanie();
if (!(spada === true)) {
dziala();
}
if (bron.graj == true) {
bron.play();
} else {
bron.stop();
}
}
};
Symbol 286 MovieClip Frame 1
stop();
onEnterFrame = function () {
dist = this._x + _parent._x;
if (dist < 800) {
_root.gra.wrogowie++;
if (_root.gra.wrogowie > 39) {
_root.gra.wrogowie = 0;
}
thisx = this._x;
thisy = this._y;
_root.gra.attachMovie("harpia2", "wrog" + _root.gra.wrogowie, 89000 + _root.gra.wrogowie);
a = _root.gra["wrog" + _root.gra.wrogowie];
a._y = thisy;
a._x = thisx + _parent._x;
unloadMovie (this);
}
};
Symbol 288 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
}
this.cacheAsBitmap = true;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
}
}
};
Symbol 290 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
}
this.cacheAsBitmap = true;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
}
}
};
Symbol 293 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 210;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
this.cacheAsBitmap = true;
money = 90;
hp = 100;
exp = 140;
spadanie = 0;
spad_speed = 0.6;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
if (hp > 0) {
if (wroc == false) {
this._y = this._y + 4;
if (this._y >= (380 + (this._height / 2))) {
wroc = true;
}
} else {
this._y = this._y - 4;
if (this._y <= (50 - (this._height / 2))) {
wroc = false;
}
}
}
}
}
};
Symbol 294 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 210;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
this.cacheAsBitmap = true;
money = 90;
hp = 100;
exp = 140;
spadanie = 0;
spad_speed = 0.6;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
if (hp > 0) {
if (wroc == false) {
this._y = this._y + 2;
if (this._y >= (380 + (this._height / 2))) {
wroc = true;
}
} else {
this._y = this._y - 2;
if (this._y <= (50 - (this._height / 2))) {
wroc = false;
}
}
}
}
}
};
Symbol 296 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
}
this.cacheAsBitmap = true;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
if (dist < (-this._width)) {
unloadMovie (this);
}
hitowanie();
}
}
};
Symbol 297 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 210;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
this.cacheAsBitmap = true;
money = 90;
hp = 100;
exp = 140;
spadanie = 0;
spad_speed = 0.6;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
if (hp > 0) {
if (wroc == false) {
this._y = this._y - 4;
if (this._y <= (50 - (this._height / 2))) {
wroc = true;
}
} else {
this._y = this._y + 4;
if (this._y >= (380 + (this._height / 2))) {
wroc = false;
}
}
}
}
}
};
Symbol 298 MovieClip [kolczak2_opozniony] Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 210;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
this.cacheAsBitmap = true;
money = 90;
hp = 100;
exp = 140;
spadanie = 0;
spad_speed = 0.6;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
if (hp > 0) {
if (wroc == false) {
this._y = this._y - 2;
if (this._y <= (50 - (this._height / 2))) {
wroc = true;
}
} else {
this._y = this._y + 2;
if (this._y >= (380 + (this._height / 2))) {
wroc = false;
}
}
}
}
}
};
Symbol 300 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
}
this.cacheAsBitmap = true;
if (!(mozna === false)) {
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
}
}
};
}
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 7
stop();
Symbol 318 MovieClip Frame 1
graj = false;
Symbol 318 MovieClip Frame 30
if (!(_root.dbro === true)) {
a = "brond" + _root.dzwieki;
_root.sounds.createEmptyMovieClip(a, _root.sounds.getNextHighestDepth());
a = _root.sounds["brond" + _root.dzwieki];
harp = new Sound(a);
_root.dzwieki++;
rando = random(2);
switch (rando) {
case 0 :
harp.attachSound("harp1.wav");
break;
case 1 :
harp.attachSound("harp2.wav");
}
harp.start(0, 999);
_root.dbro = true;
_parent.gra = true;
stop();
b = _root.gra;
_parent.ktory = b.wpociski;
b.attachMovie("brond_dzwiek", "brond_dzwiek" + b.wpociski, 8900 + b.wpociski);
a = b["brond_dzwiek" + b.wpociski];
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
a._rotation = _parent._rotation;
a._y = _parent._y + _parent._parent._y;
a._x = _parent._x + _parent._parent._x;
reka.play();
graj = false;
} else {
gotoAndPlay (29);
}
Symbol 318 MovieClip Frame 31
reka.stop();
harp.stop();
Symbol 319 MovieClip [nimfa] Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
if (this._x <= 690) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
speed = speed + 10;
if (speed > 10) {
speed = 10;
}
}
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs(this._x - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs(this._y - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
speed = speed - 10;
if (speed < -10) {
speed = -10;
}
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2))) {
if ((pi.hitTest(this._x - 25, this._y, true) || (pi.hitTest(this._x + 22, this._y, true))) || (pi.hitTest(this._x, this._y, true))) {
hp = 0;
exp = 98;
wybuch.gotoAndStop(2);
_root.gra.kills_new++;
}
}
}
if (!(_parent.p === undefined)) {
if (Math.abs((this._x - _parent.p._x) - _parent.p._width) < ((this._width / 2) + _parent.p._width)) {
if ((((_parent.p.hitTest(this._x - 25, this._y, true) || (_parent.p.hitTest(this._x + 22, this._y, true))) || (_parent.p.hitTest(this._x, this._y - 23, true))) || (_parent.p.hitTest(this._x, this._y + 19, true))) || (_parent.p.hitTest(this._x, this._y, true))) {
if ((!(hp === 0)) && (!(spada === true))) {
exp = 98;
hp = 0;
wybuch.gotoAndStop(2);
_root.gra.kills_new++;
}
}
}
}
if (!(_parent.r === undefined)) {
if (Math.abs((this._x - _parent.p._x) - _parent.p._width) < ((this._width / 2) + _parent.r._width)) {
if ((((_parent.r.hitTest(this._x - 25, this._y, true) || (_parent.r.hitTest(this._x + 22, this._y, true))) || (_parent.r.hitTest(this._x, this._y - 23, true))) || (_parent.r.hitTest(this._x, this._y + 19, true))) || (_parent.r.hitTest(this._x, this._y, true))) {
if ((!(hp === 0)) && (!(spada === true))) {
exp = 98;
hp = 0;
wybuch.gotoAndStop(2);
_root.gra.kills_new++;
}
}
}
}
if (hp <= 0) {
if (!(bron.harp === undefined)) {
bron.harp.stop();
}
if (!(_root.ngi === true)) {
_root.ngi = true;
_root.ndie.start(0, 1);
}
baza.cacheAsBitmap = false;
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else {
os = _root.gra["warning_d" + ktore];
removeMovieClip(os);
strzal = _root.gra["brond_dzwiek" + ktory];
removeMovieClip(strzal);
bron.graj = false;
if (!(speed === 0)) {
speed = speed * spadek;
this._x = this._x + speed;
if (speed < 0.5) {
speed = 0;
}
}
if (this._rotation < 90) {
this._rotation = this._rotation + (0.3 * i);
i++;
}
if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
} else {
removeMovieClip(this);
}
}
}
function dziala() {
if (!(spada === true)) {
if (this._x <= 690) {
if (gra) {
os = _root.gra["warning_d" + ktore];
removeMovieClip(os);
obrottimer--;
bron.lira.play();
strzal = _root.gra["brond_dzwiek" + ktory];
strzal._x = this._x;
strzal._y = this._y;
if (obrottimer <= 0) {
if (!(czeka === true)) {
if (_parent.kursor._y >= this._y) {
tkat = rotation - katmax;
} else {
tkat = rotation + katmax;
}
czeka = true;
}
if (this._rotation < tkat) {
strzal._rotation = strzal._rotation + katspeed;
this._rotation = this._rotation + katspeed;
}
if (this._rotation > tkat) {
strzal._rotation = strzal._rotation - katspeed;
this._rotation = this._rotation - katspeed;
}
if (Math.round(this._rotation) == tkat) {
this._rotation = tkat;
czektimer--;
if (czektimer <= 0) {
removeMovieClip(strzal);
obrottimer = obrottimermax;
gra = false;
skonczyl = true;
czektimer = czektimermax;
czeka = false;
dodane = false;
wraca = true;
stimer = stimermax;
bron.graj = true;
warningbyl = false;
wrocil = false;
}
}
}
}
if (wraca) {
if (this._rotation > rotation) {
this._rotation--;
}
if (this._rotation < rotation) {
this._rotation++;
}
if (Math.round(this._rotation) == rotation) {
wrocil = true;
wraca = false;
this._rotation = rotation;
}
}
if ((!(gra === true)) && (!(wrocil === false))) {
stimer--;
gra = false;
skonczyl = false;
if (stimer <= 0) {
bron.graj = true;
}
if (!(warningbyl === true)) {
warningbyl = true;
ktore = _root.gra.ostrz;
_root.gra.attachMovie("warning_d", "warning_d" + ktore, 9920 + ktore);
os = _root.gra["warning_d" + ktore];
os._x = this._x;
os._y = this._y;
os._rotation = this._rotation;
os._alpha = 8;
_root.gra.ostrz++;
if (_root.gra.ostrz > 10) {
_root.gra.ostrz = 0;
}
}
os = _root.gra["warning_d" + ktore];
os._alpha = os._alpha + 3;
os._x = this._x;
os._y = this._y;
}
}
}
}
rotation = Math.round(this._rotation);
this._rotation = rotation;
katmax = 25;
katspeed = 0.8;
btimer = 0;
btimermax = 64;
czektimermax = 40;
obrottimermax = 40;
stimer = 45;
stimermax = 45;
hp = 50;
i = 1;
exp = 49;
baza.cacheAsBitmap = true;
speed = 0;
spadek = 0.7;
money = 25;
spadanie = 0;
spad_speed = 0.5;
obrottimer = obrottimermax;
czektimer = czektimermax;
onEnterFrame = function () {
if (_root.gra.paused == true) {
bron.stop();
} else {
this._x = this._x + Math.round(_parent.formula);
if (this._x < ((-this._width) / 2)) {
bron.harp.stop();
removeMovieClip(this);
}
hitowanie();
if (!(spada === true)) {
dziala();
}
if (bron.graj == true) {
bron.play();
} else {
bron.stop();
}
}
};
Symbol 321 MovieClip Frame 1
stop();
onEnterFrame = function () {
dist = this._x + _parent._x;
if (dist < 800) {
_root.gra.wrogowie++;
if (_root.gra.wrogowie > 39) {
_root.gra.wrogowie = 0;
}
thisx = this._x;
thisy = this._y;
_root.gra.attachMovie("nimfa", "wrog" + _root.gra.wrogowie, 89000 + _root.gra.wrogowie);
a = _root.gra["wrog" + _root.gra.wrogowie];
a._rotation = this._rotation;
a._y = thisy;
a._x = thisx + _parent._x;
unloadMovie (this);
}
};
Symbol 323 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 23
a = _root.gra;
a.attachMovie("kropla_spad", "kropla_spad" + _root.gra.krople, 230 + _root.gra.krople);
b = a["kropla_spad" + _root.gra.krople];
b._x = ((this._x + _parent._x) + _parent._parent._x) + 13.5;
b._y = ((this._y + _parent._y) + _parent._parent._y) + 345;
b.speed = 10;
_root.gra.krople++;
if (_root.gra.krople > 29) {
_root.gra.krople = 0;
}
_root.kroplasound.start(0, 1);
Symbol 326 MovieClip Frame 37
a = _root.gra;
a.attachMovie("kropla_spad", "kropla_spad" + _root.gra.krople, 230 + _root.gra.krople);
b = a["kropla_spad" + _root.gra.krople];
b._x = ((this._x + _parent._x) + _parent._parent._x) + 13.5;
b._y = ((this._y + _parent._y) + _parent._parent._y) + 345;
b.speed = 10;
_root.gra.krople++;
if (_root.gra.krople > 29) {
_root.gra.krople = 0;
}
_root.kroplasound.start(0, 1);
Symbol 327 MovieClip [spad] Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
dzialaj = true;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
}
function dziala() {
if (Math.abs((this._x + _parent._x) - _root.gra.kursor._x) < (((this._width / 2) + (_root.gra.kursor._width / 2)) - 25)) {
if (!(mozna === false)) {
dzialaj = true;
}
}
if (dzialaj == true) {
if (!(soundbyl === true)) {
_root.spadsound.start(0, 1);
soundbyl = true;
}
baza.stop();
baza.cacheAsBitmap = true;
this._y = this._y + speed;
speed = speed * spadek;
if (this._y > 600) {
unloadMovie (this);
}
}
}
stop();
speed = 6;
spadek = 1.02;
onEnterFrame = function () {
if (!(_parent._parent.paused === false)) {
baza.stop();
} else {
dist = this._x + _parent._x;
if (dist < 720) {
if (!(dzialaj === true)) {
if (!(mozna === false)) {
baza.play();
} else {
baza.stop();
}
}
hitowanie();
dziala();
} else {
baza.stop();
}
}
};
Symbol 330 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 140;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
this.cacheAsBitmap = true;
var licz = 0;
var wroc = false;
hp = 80;
exp = 70;
money = 66;
spadanie = 0;
spad_speed = 0.6;
thisy = 0;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
}
if (hp > 0) {
if (licz >= ok) {
if (wroc == false) {
thisy = thisy - 7;
this._y = this._y - 7;
if (thisy <= -80) {
wroc = true;
}
} else {
thisy = thisy + 3;
this._y = this._y + 3;
if (thisy >= 0) {
wroc = false;
licz = 0;
}
}
}
licz++;
}
}
};
Symbol 333 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 140;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
this.cacheAsBitmap = true;
var licz = 0;
var wroc = false;
hp = 80;
exp = 70;
money = 66;
spadanie = 0;
spad_speed = -0.7;
thisy = 0;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
}
if (hp > 0) {
if (licz >= ok) {
if (wroc == false) {
thisy = thisy + 7;
this._y = this._y + 7;
if (thisy >= 80) {
wroc = true;
}
} else {
thisy = thisy - 3;
this._y = this._y - 3;
if (thisy <= 0) {
wroc = false;
licz = 0;
}
}
}
licz++;
}
}
};
Symbol 335 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 140;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
this.cacheAsBitmap = true;
var licz = 0;
var wroc = false;
hp = 150;
exp = 98;
money = 90;
spadanie = 0;
spad_speed = 0.6;
thisy = 0;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
}
if (hp > 0) {
if (licz >= ok) {
if (wroc == false) {
thisy = thisy - 12;
this._y = this._y - 12;
if (thisy <= -150) {
wroc = true;
}
} else {
thisy = thisy + 3;
this._y = this._y + 3;
if (thisy >= 0) {
wroc = false;
licz = 0;
}
}
}
licz++;
}
}
};
Instance of Symbol 300 MovieClip in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
this.mozna = false;
}
Instance of Symbol 300 MovieClip in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
this.mozna = false;
}
Symbol 337 MovieClip Frame 1
function hitowanie() {
i = 0;
while (i < _root.gra.ilepociskow) {
a = _root.gra["strzal" + i];
if (!(a === undefined)) {
if (!(a.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - a._x) < ((this._width / 2) + (a._width / 2))) {
if (Math.abs((this._y + _parent._y) - a._y) < ((this._height / 2) + (a._height / 2))) {
if ((((this.hitTest(a._x + (a._width / 2), a._y, true) || (this.hitTest(a._x + (a._width / 4), a._y - (a._height / 4), true))) || (this.hitTest(a._x + (a._width / 4), a._y + (a._height / 4), true))) || (this.hitTest(a._x, a._y - (a._height / 2), true))) || (this.hitTest(a._x, a._y + (a._height / 2), true))) {
a.baza.play();
if (!(a.damagedone === true)) {
hp = hp - a.damage;
a.damagedone = true;
}
}
}
}
}
}
b = _root.gra["wstrzal" + i];
if (!(b === undefined)) {
if (!(b.damagedone === true)) {
if (Math.abs((this._x + _parent._x) - b._x) < ((this._width / 2) + (b._width / 2))) {
if (Math.abs((this._y + _parent._y) - b._y) < ((this._height / 2) + (b._height / 2))) {
if ((((this.hitTest(b._x + (b._width / 2), b._y, true) || (this.hitTest(b._x + (b._width / 4), b._y - (b._height / 4), true))) || (this.hitTest(b._x + (b._width / 4), b._y + (b._height / 4), true))) || (this.hitTest(b._x, b._y - (b._height / 2), true))) || (this.hitTest(b._x, b._y + (b._height / 2), true))) {
b.baza.play();
if (!(b.damagedone === true)) {
b.damagedone = true;
}
}
}
}
}
}
i++;
}
if (!spada) {
pi = _root.gra["piorun" + _root.gra.ktorep];
if (!(pi === undefined)) {
if (Math.abs((this._x + _parent._x) - pi._x) < ((this._width / 2) + (pi._width / 2.3))) {
hp = 0;
exp = 140;
_root.gra.kills_new++;
}
}
if (hp <= 0) {
wybuch.gotoAndStop(2);
_root.gra.etab++;
if (!(workibyly === true)) {
workibyly = true;
i = 100;
while (i <= (Math.floor(money / 100) * 100)) {
jest100 = true;
_root.gra.attachMovie("wor", "wor" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["wor" + _root.gra.worki];
a.angle = (i / 100) * (6.3 / Math.floor(money / 100));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 100;
}
i = 10;
while (i <= (money - (Math.floor(money / 100) * 100))) {
_root.gra.attachMovie("worek", "worek" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["worek" + _root.gra.worki];
a.angle = (i / 10) * (6.3 / Math.floor((money - (Math.floor(money / 100) * 100)) / 10));
a.angle = int(a.angle * 100) / 100;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a._x = this._x + _parent._x;
a._y = this._y;
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i = i + 10;
}
i = 1;
while (i <= (money - (Math.floor(money / 10) * 10))) {
_root.gra.attachMovie("coin", "coin" + _root.gra.worki, 3000 + _root.gra.worki);
a = _root.gra["coin" + _root.gra.worki];
a.angle = i * (6.3 / (money - (Math.floor(money / 10) * 10)));
a.angle = int(a.angle * 100) / 100;
a._x = this._x + _parent._x;
a._y = this._y;
a.ex = this._x + _parent._x;
a.ey = this._y;
while (a.ey < 60) {
a.ey = a.ey + 10;
}
while (a.ey > 370) {
a.ey = a.ey - 10;
}
a.speed = 30;
a.radius = 1;
a.jest100 = jest100;
_root.gra.worki++;
if (_root.gra.worki > 79) {
_root.gra.worki = 0;
}
i++;
}
}
ex = 0;
i = 0;
while (i < 7) {
if (_root.gra.pleiades[i] == 1) {
ex = ex + (exp / 7);
}
i++;
}
_root.gra.exp = _root.gra.exp + ex;
spada = true;
}
} else if (this._y < 500) {
this._y = this._y + spadanie;
spadanie = spadanie + spad_speed;
if (spad_speed < 0) {
if (this._y < -500) {
unloadMovie (this);
}
}
} else {
unloadMovie (this);
}
}
this.cacheAsBitmap = true;
var licz = 0;
var wroc = false;
hp = 150;
exp = 98;
money = 90;
spadanie = 0;
spad_speed = -0.7;
thisy = 0;
onEnterFrame = function () {
if (_parent._parent.paused == false) {
dist = this._x + _parent._x;
if (dist < 800) {
hitowanie();
if (dist < (-this._width)) {
unloadMovie (this);
}
}
if (hp > 0) {
if (licz >= ok) {
if (wroc == false) {
thisy = thisy + 12;
this._y = this._y + 12;
if (thisy >= 150) {
wroc = true;
}
} else {
thisy = thisy - 3;
this._y = this._y - 3;
if (thisy <= 0) {
wroc = false;
licz = 0;
}
}
}
licz++;
}
}
};
Instance of Symbol 300 MovieClip in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
this.mozna = false;
}
Instance of Symbol 300 MovieClip in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
this.mozna = false;
}
Symbol 361 MovieClip Frame 1
graj = false;
Symbol 361 MovieClip Frame 3
if (!(_root.cbro === true)) {
_root.cbron.start(0, 1);
_root.cbro = true;
}
Symbol 361 MovieClip Frame 14
b = _root.gra;
b.attachMovie("wstrzalc", "wstrzal" + b.wpociski, 99090 + b.wpociski);
a = b["wstrzal" + b.wpociski];
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
a._y = (_parent._y + 11.5) + _parent._parent._y;
a._x = ((_parent._x - 14) + _parent._parent._x) + this._x;
a.speed = bulletspeed;
a.gdziex = gdziex;
a.gdziey = gdziey;
Symbol 381 MovieClip Frame 1
graj = false;
Symbol 381 MovieClip Frame 3
if (!(_root.cbro === true)) {
_root.cbron.start(0, 1);
_root.cbro = true;
}
Symbol 381 MovieClip Frame 9
b = _root.gra;
b.attachMovie("wstrzalc", "wstrzal" + b.wpociski, 99090 + b.wpociski);
a = b["wstrzal" + b.wpociski];
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
a._y = (_parent._y + 7) + _parent._parent._y;
a._x = (_parent._x + _parent._parent._x) + this._x;
a.speed = bulletspeed;
a.gdziex = gdziex;
a.gdziey = gdziey;
Symbol 384 MovieClip Frame 1
graj = false;
Symbol 384 MovieClip Frame 2
reka.stop();
Symbol 384 MovieClip Frame 20
_parent.gra = true;
stop();
reka.play();
graj = false;
_root.mesmerbron.start(0, 999);
Symbol 384 MovieClip Frame 21
reka1.stop();
Symbol 384 MovieClip Frame 51
_parent.strzelaj = true;
Symbol 384 MovieClip Frame 55
_root.komenda.start(0, 1);
Symbol 384 MovieClip Frame 67
graj = false;
Symbol 384 MovieClip Frame 68
reka.stop();
_root.mesmerbron.stop();
Instance of Symbol 381 MovieClip in Symbol 385 MovieClip [boss12_baza] Frame 1
onClipEvent (load) {
stop();
}
Symbol 390 MovieClip Frame 1
graj = false;
Symbol 390 MovieClip Frame 15
_parent.inv = true;
Symbol 390 MovieClip Frame 34
_parent.strzelaj = true;
_root.komenda.start(0, 1);
Symbol 390 MovieClip Frame 43
graj = false;
Symbol 390 MovieClip Frame 44
_parent.inv = false;
Instance of Symbol 381 MovieClip in Symbol 391 MovieClip [boss13_baza] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 395 MovieClip Frame 1
stop();
if (_parent.kolor == true) {
gotoAndStop (2);
}
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
_parent._rotation = 0;
_parent.rusza = false;
Symbol 396 MovieClip Frame 10
_parent.play();
Symbol 397 MovieClip Frame 1
graj = false;
Symbol 397 MovieClip Frame 8
if (!(_root.thr5 === true)) {
_root.throw5.start(0, 1);
_root.thr5 = true;
}
Symbol 397 MovieClip Frame 11
b = _root.gra;
b.attachMovie("wstrzalmin", "wstrzal" + b.wpociski, 99090 + b.wpociski);
a = b["wstrzal" + b.wpociski];
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
a._y = (_parent._y + this._y) + _parent._parent._y;
a._x = ((_parent._x + _parent._parent._x) + this._x) - 55;
a.speed = _parent.bulletspeed;
_parent.ruszac = true;
Symbol 397 MovieClip Frame 18
gotoAndPlay (1);
Symbol 397 MovieClip Frame 32
gotoAndPlay (1);
Symbol 402 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
graj = false;
Symbol 419 MovieClip Frame 3
_parent.dawaj = true;
Symbol 419 MovieClip Frame 14
removeMovieClip(_parent);
Symbol 421 MovieClip [wstrzalz] Frame 1
stop();
ysped = 0;
if (!(mozna === false)) {
xborder = random(600);
if (xborder > 300) {
xborder = ((((200 + random(100)) + random(100)) + random(100)) + random(100)) + random(100);
} else {
xborder = ((150 + random(100)) + random(100)) + random(100);
}
rotspeed = 20 - (xborder / 100);
speed = 13 - (xborder / 100);
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
if (!(damagedone === true)) {
if (_parent.boss.d0.spada == true) {
this._y = this._y + ysped;
ysped = ysped + 0.6;
if (this._y > 450) {
removeMovieClip(this);
}
} else {
this._rotation = this._rotation + rotspeed;
this._x = this._x - speed;
if (this._x < xborder) {
speed = speed - 0.6;
rotspeed = rotspeed - 0.6;
if (!(warningbyl === true)) {
warningbyl = true;
attachMovie("warningz", "warningz", getNextHighestDepth());
baza.swapDepths(getNextHighestDepth());
warningz._alpha = 20;
warningz._yscale = 120;
warningz._xscale = 120;
}
if (speed < 0) {
if (rotspeed <= 0) {
rotspeed = 0;
warningz._alpha = warningz._alpha + 2;
warningz._yscale = warningz._yscale + 4;
warningz._xscale = warningz._xscale + 4;
if (warningz._alpha > 100) {
unloadMovie (baza);
removeMovieClip(warningz);
gotoAndStop ("maly");
damagedone = true;
strzela = true;
}
}
speed = 0;
}
}
if (this._x < 0) {
removeMovieClip(this);
}
}
} else if (!(strzela === true)) {
unloadMovie (baza);
removeMovieClip(warningz);
gotoAndStop ("duzy");
}
}
};
}
Symbol 421 MovieClip [wstrzalz] Frame 5
stop();
if (!(_root.zstrz === true)) {
_root.zstrz = true;
_root.zstrzal.start(0, 1);
}
Symbol 421 MovieClip [wstrzalz] Frame 10
stop();
if (!(_root.wstrzc === true)) {
_root.wstrzalc_sound.start(0, 1);
_root.wstrzc = true;
}
onEnterFrame = function () {
if (dawaj == true) {
if (!(kulkibyly === true)) {
kulkibyly = true;
i = 0;
while (i < 3) {
b = _root.gra;
b.attachMovie("wstrzalc", "wstrzaly" + b.wpociski, 99090 + b.wpociski);
a = b["wstrzaly" + b.wpociski];
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
a._y = (_parent._y + this._y) + _parent._parent._y;
a._x = (_parent._x + _parent._parent._x) + this._x;
a.speed = 14;
angle = ((i / 3) * 6.3) + ((this._rotation - 90) * (Math.PI/180));
a.gdziex = this._x + (Math.cos(angle) * 700);
a.gdziey = this._y + (Math.sin(angle) * 500);
i++;
}
}
}
};
Symbol 422 MovieClip Frame 1
graj = false;
Symbol 422 MovieClip Frame 3
this._alpha = 20;
bomb.mozna = false;
Symbol 422 MovieClip Frame 4
this._alpha = 40;
Symbol 422 MovieClip Frame 5
this._alpha = 60;
Symbol 422 MovieClip Frame 6
this._alpha = 80;
Symbol 422 MovieClip Frame 7
this._alpha = 100;
Symbol 422 MovieClip Frame 10
_root.zeusbron.start(0, 1);
Symbol 422 MovieClip Frame 14
b = _root.gra;
b.attachMovie("wstrzalz", "wstrzal" + b.wpociski, 99020 + b.wpociski);
a = b["wstrzal" + b.wpociski];
a._y = (_parent._y - 15) + _parent._parent._y;
a._x = ((_parent._x + _parent._parent._x) + this._x) - 45;
a.speed = bulletspeed;
b.wpociski++;
if (b.wpociski > (b.ilepociskow - 1)) {
b.wpociski = 0;
}
Symbol 422 MovieClip Frame 17
this._alpha = 80;
Symbol 422 MovieClip Frame 18
this._alpha = 60;
Symbol 422 MovieClip Frame 19
this._alpha = 40;
Symbol 422 MovieClip Frame 20
this._alpha = 20;
Symbol 447 MovieClip [warning_c] Frame 70
removeMovieClip(this);
Symbol 456 MovieClip Frame 1
stop();
Symbol 457 MovieClip [wstrzal1] Frame 1
stop();
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
if (!(damagedone === true)) {
this._x = this._x - speed;
if (this._x < -10) {
removeMovieClip(this);
}
} else if (!(bylo === true)) {
bylo = true;
baza.play();
wybuch.gotoAndStop(2);
if (!(popiorunie === true)) {
if (!(_root.hi6 === true)) {
_root.hit6.start(0, 1);
_root.hi6 = true;
}
}
}
}
};
Symbol 457 MovieClip [wstrzal1] Frame 2
removeMovieClip(this);
Symbol 458 MovieClip [wstrzal2] Frame 1
stop();
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
if (!(damagedone === true)) {
this._x = this._x - speed;
if (this._x < 0) {
removeMovieClip(this);
}
} else if (!(bylo === true)) {
bylo = true;
baza.play();
wybuch.gotoAndStop(2);
if (!(popiorunie === true)) {
if (!(_root.hi3 === true)) {
_root.hit3.start(0, 1);
_root.hi3 = true;
}
}
}
}
};
Symbol 458 MovieClip [wstrzal2] Frame 2
removeMovieClip(this);
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 15
_parent.play();
Symbol 476 MovieClip [wstrzalc] Frame 1
stop();
timer = 2;
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
timer--;
if (!(damagedone === true)) {
if (timer > 0) {
this._x = this._x - speed;
} else {
if (yspeed == undefined) {
var _local4 = this._x - gdziex;
var _local3 = this._y - gdziey;
rotation = (Math.atan2(_local4, _local3) / Math.PI) * -180;
xspeed = speed * Math.sin((rotation * Math.PI) / 180);
yspeed = (-speed) * Math.cos((rotation * Math.PI) / 180);
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
}
if (this._y > 380) {
damagedone = true;
}
if (this._x < 0) {
removeMovieClip(this);
}
} else {
baza.play();
if (!(gral === true)) {
gral = true;
if (!(_root.wstrzc === true)) {
_root.wstrzalc_sound.start(0, 1);
_root.wstrzc = true;
}
}
}
}
};
Symbol 476 MovieClip [wstrzalc] Frame 2
removeMovieClip(this);
Symbol 477 MovieClip [wstrzalmin] Frame 1
stop();
if (_parent.boss.cely == 110) {
cely = 345;
tops = 4 * (this._y / cely);
} else {
cely = 85;
tops = 4 * (cely / this._y);
}
xspeed = speed;
xborder = 200;
yspeed = speed / tops;
if (yspeed > 8) {
yspeed = 8;
}
ysped = 0;
if (!(_root.rot === true)) {
_root.rot = true;
a = "min" + _root.dzwieki;
_root.sounds.createEmptyMovieClip(a, _root.sounds.getNextHighestDepth());
a = _root.sounds["min" + _root.dzwieki];
rot = new Sound(a);
rot.attachSound("minbron.wav");
rot.start(0, 999);
_root.dzwieki++;
}
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
if (_parent.boss.d0.spada == true) {
rot.stop();
this._y = this._y + ysped;
ysped = ysped + 0.6;
if (this._y > 450) {
removeMovieClip(this);
}
} else {
this._rotation = this._rotation + 45;
this._x = this._x - xspeed;
if (this._x < xborder) {
if (xspeed > (-speed)) {
xspeed = xspeed - 0.5;
}
if (!(wraca === true)) {
if (_parent.boss.cely == 110) {
this._y = this._y + yspeed;
if (this._y >= cely) {
this._y = cely;
wraca = true;
}
} else {
this._y = this._y - yspeed;
if (this._y <= cely) {
this._y = cely;
wraca = true;
}
}
}
}
if (((_parent.boss._x - this._x) < 50) && (wraca == true)) {
rot.stop();
_parent.boss.d0.bron.gotoAndPlay("lap");
_parent.boss.d0.bron.graj = true;
removeMovieClip(this);
}
}
}
};
Symbol 477 MovieClip [wstrzalmin] Frame 2
removeMovieClip(this);
Symbol 481 MovieClip Frame 1
stop();
Symbol 488 MovieClip [orion] Frame 1
this.cacheAsBitmap = true;
Symbol 489 MovieClip [spad_bos10] Frame 1
this.cacheAsBitmap = true;
Symbol 497 MovieClip [bling] Frame 14
removeMovieClip(_parent);
Symbol 500 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 7
stop();
Symbol 501 MovieClip [coin] Frame 192
removeMovieClip(this);
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 7
stop();
Symbol 505 MovieClip [wor] Frame 192
removeMovieClip(this);
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 7
stop();
Symbol 509 MovieClip [worek] Frame 193
removeMovieClip(this);
Symbol 510 MovieClip [strzelanie1] Frame 6
if (!(_root.thr1 === true)) {
_root.throw1.start(0, 1);
_root.thr1 = true;
}
Symbol 510 MovieClip [strzelanie1] Frame 8
b = _parent._parent;
b.attachMovie("strzal1", "strzal" + _parent._parent.pociski, 91000 + _parent._parent.pociski);
a = b["strzal" + _parent._parent.pociski];
_parent._parent.pociski++;
if (_parent._parent.pociski > (_root.gra.ilepociskow - 1)) {
_parent._parent.pociski = 0;
}
a._x = _parent._x + 5;
a._y = _parent._y;
a.speed = bulletspeed;
a.damage = damage;
a.kolorjest = kolor;
Symbol 510 MovieClip [strzelanie1] Frame 14
_parent.strzelil = false;
removeMovieClip(this);
Instance of Symbol 510 MovieClip [strzelanie1] in Symbol 511 MovieClip [ciesz] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 510 MovieClip [strzelanie1] in Symbol 511 MovieClip [ciesz] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 511 MovieClip [ciesz] Frame 63
stop();
Symbol 519 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 9
removeMovieClip(_parent);
Symbol 521 MovieClip [strzal1] Frame 1
stop();
if (kolorjest == true) {
baza.baz.gotoAndStop(2);
}
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
if (!(damagedone === true)) {
this._x = this._x + speed;
if (this._x > 700) {
removeMovieClip(this);
}
} else {
baza.play();
if (!(bylo === true)) {
bylo = true;
if (kolorjest == true) {
wybuch.gotoAndStop(3);
if (!(popiorunie === true)) {
if (!(_root.ddsoun === true)) {
_root.ddsoun = true;
_root.ddsound.start(0, 1);
}
}
} else {
wybuch.gotoAndStop(2);
if (!(popiorunie === true)) {
if (!(_root.hi1 === true)) {
_root.hit1.start(0, 1);
_root.hi1 = true;
}
}
}
}
}
}
};
Symbol 521 MovieClip [strzal1] Frame 2
stop();
baza.play();
Symbol 522 MovieClip [strzal2] Frame 1
stop();
if (kolorjest == true) {
baza.baz.gotoAndStop(2);
}
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
if (!(damagedone === true)) {
this._x = this._x + speed;
if (this._x > 700) {
removeMovieClip(this);
}
} else {
baza.play();
if (!(bylo === true)) {
bylo = true;
if (kolorjest == true) {
wybuch.gotoAndStop(3);
if (!(popiorunie === true)) {
if (!(_root.ddsoun === true)) {
_root.ddsoun = true;
_root.ddsound.start(0, 1);
}
}
} else {
wybuch.gotoAndStop(2);
if (!(popiorunie === true)) {
if (!(_root.hi2 === true)) {
_root.hit2.start(0, 1);
_root.hi2 = true;
}
}
}
}
}
}
};
Symbol 522 MovieClip [strzal2] Frame 2
stop();
baza.play();
Symbol 523 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 1
stop();
if (_parent.kolor == true) {
baz.gotoAndStop(2);
}
Symbol 524 MovieClip Frame 2
_parent._rotation = 0;
_parent.rusza = false;
Symbol 524 MovieClip Frame 9
_parent.play();
Symbol 525 MovieClip [strzal4] Frame 1
stop();
if (kolorjest == true) {
baza.baz.gotoAndStop(2);
}
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
if (!(rusza === false)) {
this._rotation = this._rotation + 30;
}
if (!(damagedone === true)) {
this._x = this._x + speed;
if (this._x > 700) {
removeMovieClip(this);
}
} else {
baza.play();
if (!(bylo === true)) {
bylo = true;
if (kolorjest == true) {
wybuch.gotoAndStop(3);
if (!(popiorunie === true)) {
if (!(_root.ddsoun === true)) {
_root.ddsoun = true;
_root.ddsound.start(0, 1);
}
}
} else {
wybuch.gotoAndStop(2);
if (!(popiorunie === true)) {
if (!(_root.hi4 === true)) {
_root.hit4.start(0, 1);
_root.hi4 = true;
}
}
}
}
}
}
};
Symbol 525 MovieClip [strzal4] Frame 2
removeMovieClip(this);
Symbol 526 MovieClip [strzal5] Frame 1
stop();
if (kolorjest == true) {
baza.baz.gotoAndStop(2);
}
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
if (!(rusza === false)) {
this._rotation = this._rotation + 20;
}
if (!(damagedone === true)) {
this._x = this._x + speed;
if (this._x > 700) {
removeMovieClip(this);
}
} else {
baza.play();
if (!(bylo === true)) {
bylo = true;
if (kolorjest == true) {
wybuch.gotoAndStop(3);
if (!(popiorunie === true)) {
if (!(_root.ddsoun === true)) {
_root.ddsoun = true;
_root.ddsound.start(0, 1);
}
}
} else {
wybuch.gotoAndStop(2);
if (!(popiorunie === true)) {
if (!(_root.hi5 === true)) {
_root.hit5.start(0, 1);
_root.hi5 = true;
}
}
}
}
}
}
};
Symbol 526 MovieClip [strzal5] Frame 2
removeMovieClip(this);
Symbol 527 MovieClip [strzal6] Frame 1
stop();
if (kolorjest == true) {
baza.baz.gotoAndStop(2);
}
onEnterFrame = function () {
if (!(_root.gra.paused === true)) {
if (!(damagedone === true)) {
this._x = this._x + speed;
if (this._x > 700) {
removeMovieClip(this);
}
} else {
baza.play();
if (!(bylo === true)) {
bylo = true;
if (kolorjest == true) {
wybuch.gotoAndStop(3);
if (!(popiorunie === true)) {
if (!(_root.ddsoun === true)) {
_root.ddsoun = true;
_root.ddsound.start(0, 1);
}
}
} else {
wybuch.gotoAndStop(2);
if (!(popiorunie === true)) {
if (!(_root.hi6 === true)) {
_root.hit6.start(0, 1);
_root.hi6 = true;
}
}
}
}
}
}
};
Symbol 527 MovieClip [strzal6] Frame 2
removeMovieClip(this);
Symbol 545 MovieClip [strzelanie2] Frame 10
if (!(_root.thr2 === true)) {
_root.throw2.start(0, 1);
_root.thr2 = true;
}
Symbol 545 MovieClip [strzelanie2] Frame 12
b = _parent._parent;
b.attachMovie("strzal2", "strzal" + _parent._parent.pociski, 91000 + _parent._parent.pociski);
a = b["strzal" + _parent._parent.pociski];
_parent._parent.pociski++;
if (_parent._parent.pociski > (_root.gra.ilepociskow - 1)) {
_parent._parent.pociski = 0;
}
a._x = _parent._x + 10;
a._y = _parent._y;
a.speed = bulletspeed;
a.damage = damage;
a.kolorjest = kolor;
Symbol 545 MovieClip [strzelanie2] Frame 16
this._alpha = 80;
Symbol 545 MovieClip [strzelanie2] Frame 17
this._alpha = 60;
Symbol 545 MovieClip [strzelanie2] Frame 18
this._alpha = 40;
Symbol 545 MovieClip [strzelanie2] Frame 19
this._alpha = 20;
Symbol 545 MovieClip [strzelanie2] Frame 20
_parent.strzelil = false;
removeMovieClip(this);
Symbol 550 MovieClip [strzelanie3] Frame 12
if (!(_root.thr3 === true)) {
_root.throw3.start(0, 1);
_root.thr3 = true;
}
Symbol 550 MovieClip [strzelanie3] Frame 13
b = _parent._parent;
b.attachMovie("strzal3", "strzal" + _parent._parent.pociski, 91000 + _parent._parent.pociski);
a = b["strzal" + _parent._parent.pociski];
_parent._parent.pociski++;
if (_parent._parent.pociski > (_root.gra.ilepociskow - 1)) {
_parent._parent.pociski = 0;
}
a._x = _parent._x + 11;
a._y = _parent._y;
a.speed = bulletspeed;
a.damage = damage;
a.kolorjest = kolor;
Symbol 550 MovieClip [strzelanie3] Frame 20
_parent.strzelil = false;
removeMovieClip(this);
Symbol 551 MovieClip [strzelanie4] Frame 6
if (!(_root.thr4 === true)) {
_root.throw4.start(0, 1);
_root.thr4 = true;
}
Symbol 551 MovieClip [strzelanie4] Frame 8
b = _parent._parent;
b.attachMovie("strzal4", "strzal" + _parent._parent.pociski, 91000 + _parent._parent.pociski);
a = b["strzal" + _parent._parent.pociski];
_parent._parent.pociski++;
if (_parent._parent.pociski > (_root.gra.ilepociskow - 1)) {
_parent._parent.pociski = 0;
}
a._x = _parent._x + 10;
a._y = _parent._y + 2;
a.speed = bulletspeed;
a.damage = damage;
a.kolorjest = kolor;
Symbol 551 MovieClip [strzelanie4] Frame 13
_parent.strzelil = false;
removeMovieClip(this);
Symbol 552 MovieClip [strzelanie5] Frame 6
if (!(_root.thr5 === true)) {
_root.throw5.start(0, 1);
_root.thr5 = true;
}
Symbol 552 MovieClip [strzelanie5] Frame 8
b = _parent._parent;
b.attachMovie("strzal5", "strzal" + _parent._parent.pociski, 91000 + _parent._parent.pociski);
a = b["strzal" + _parent._parent.pociski];
_parent._parent.pociski++;
if (_parent._parent.pociski > (_root.gra.ilepociskow - 1)) {
_parent._parent.pociski = 0;
}
a._x = _parent._x + 7;
a._y = _parent._y + 2;
a.speed = bulletspeed;
a.damage = damage;
a.kolorjest = kolor;
Symbol 552 MovieClip [strzelanie5] Frame 14
_parent.strzelil = false;
removeMovieClip(this);
Symbol 553 MovieClip [strzelanie6] Frame 6
if (!(_root.thr6 === true)) {
_root.throw6.start(0, 1);
_root.thr6 = true;
}
Symbol 553 MovieClip [strzelanie6] Frame 8
b = _parent._parent;
b.attachMovie("strzal6", "strzal" + _parent._parent.pociski, 91000 + _parent._parent.pociski);
a = b["strzal" + _parent._parent.pociski];
_parent._parent.pociski++;
if (_parent._parent.pociski > (_root.gra.ilepociskow - 1)) {
_parent._parent.pociski = 0;
}
a._x = _parent._x + 5;
a._y = _parent._y + 2;
a.speed = bulletspeed;
a.damage = damage;
a.kolorjest = kolor;
Symbol 553 MovieClip [strzelanie6] Frame 16
_parent.strzelil = false;
removeMovieClip(this);
Symbol 556 MovieClip [tarczowanie] Frame 1
onEnterFrame = function () {
if (graj == true) {
play();
}
};
Symbol 556 MovieClip [tarczowanie] Frame 6
stop();
Symbol 556 MovieClip [tarczowanie] Frame 11
removeMovieClip(this);
Symbol 557 MovieClip [gra] Frame 1
function diesf(i, a) {
if (inv == false) {
if (!dying) {
if (!(koniecinv === true)) {
if (a.bonusjest == true) {
switch (i) {
case 0 :
bonusreload = 0;
break;
case 1 :
inv_speed = 2.2;
break;
case 2 :
mozebycelec = false;
break;
case 3 :
doubledamage = false;
j = 0;
while (j < 7) {
b = this["fly" + j];
removeMovieClip(b.dmgbuff);
j++;
}
gui.dmgsign.fill._xscale = 130;
gui.dmgsign._visible = false;
dmgjest = false;
bonusdamage = 1;
break;
case 5 :
expkasa = 3;
break;
case 4 :
bonusrest = 0;
break;
case 6 :
if (przyciagac === false) {
break;
}
j = 0;
while (j < 7) {
b = this["fly" + j];
if (!(b.spedreduced === false)) {
b.sped = b.sped * 2;
b.spedreduced = false;
}
j++;
}
przyciagac = false;
}
}
ftab++;
randos = random(2) + 1;
switch (randos) {
case 1 :
_root.strata1.start(0, 1);
break;
case 2 :
_root.strata2.start(0, 1);
}
dying = true;
a.dead = true;
}
}
}
}
function fly_control() {
if (kursor == undefined) {
attachMovie("kursor", "kursor", 99990 + roznica);
gui.swapDepths(99992 + roznica);
roznica = roznica + 10;
i = 0;
while (i < 7) {
a = this["fly" + i];
if (!(a === undefined)) {
kursor._x = a._x;
kursor._y = a._y;
break;
}
i++;
}
}
kursor.xspeed = _xmouse - kursor._x;
kursor.yspeed = _ymouse - kursor._y;
kursor._x = kursor._x + (kursor.xspeed / lag);
kursor._y = kursor._y + (kursor.yspeed / lag);
kursor._x = kursor._x + formula;
if (!(shopinv === true)) {
if (mozebycelec) {
electimer++;
if (!(inv_tarcz === true)) {
if (elecjest) {
if (gui.elec.fill._xscale > 0) {
if (gui.elec._visible == true) {
gui.elec.fill._xscale = gui.elec.fill._xscale - inv_speed;
}
} else {
j = 0;
while (j < 7) {
b = this["fly" + j];
removeMovieClip(b.elebuff);
j++;
}
_root.elecsound.stop();
gui.elec.fill._xscale = 140;
gui.elec._visible = false;
inv = false;
elecjest = false;
}
} else if (electimer >= erand) {
if (!(dying === true)) {
_root.elecsound.start(0, 999);
elecjest = true;
erand = (300 + ((Math.random() * 60) * random(5))) + ((Math.random() * 60) * random(5));
electimer = 0;
gui.elec.fill._xscale = 140;
inv = true;
j = 0;
while (j < 7) {
b = this["fly" + j];
b.attachMovie("elebuff", "elebuff", b.getNextHighestDepth());
switch (size) {
case 30 :
b.elebuff._width = 39;
b.elebuff._height = 39;
break;
case 26 :
b.elebuff._width = 37;
b.elebuff._height = 37;
break;
case 24 :
b.elebuff._width = 35;
b.elebuff._height = 35;
break;
case 22 :
b.elebuff._width = 33;
b.elebuff._height = 33;
}
j++;
}
gui.elec._visible = true;
}
}
}
}
if (doubledamage) {
dmgtimer++;
bonusdamage = 1;
if (dmgjest == true) {
if (gui.dmgsign.fill._xscale > 0) {
if (gui.dmgsign._visible == true) {
bonusdamage = 2;
gui.dmgsign.fill._xscale = gui.dmgsign.fill._xscale - dmgspeed;
}
} else {
j = 0;
while (j < 7) {
b = this["fly" + j];
removeMovieClip(b.dmgbuff);
j++;
}
gui.dmgsign.fill._xscale = 130;
gui.dmgsign._visible = false;
dmgjest = false;
}
} else if (dmgtimer >= drand) {
dmgjest = true;
dmgtimer = 0;
drand = (300 + (Math.random() * 300)) + (Math.random() * 300);
gui.dmgsign.fill._xscale = 140;
j = 0;
while (j < 7) {
b = this["fly" + j];
b.attachMovie("dmgbuff", "dmgbuff", b.getNextHighestDepth());
switch (size) {
case 30 :
b.dmgbuff._width = 39;
b.dmgbuff._height = 39;
break;
case 26 :
b.dmgbuff._width = 37;
b.dmgbuff._height = 37;
break;
case 24 :
b.dmgbuff._width = 35;
b.dmgbuff._height = 35;
break;
case 22 :
b.dmgbuff._width = 33;
b.dmgbuff._height = 33;
}
j++;
}
gui.dmgsign._visible = true;
}
}
}
_root.zstrz = false;
_root.rot = false;
_root.dbro = false;
_root.ngi = false;
_root.hgi = false;
_root.fgi = false;
_root.boxsoun = false;
_root.thr1 = false;
_root.thr2 = false;
_root.thr3 = false;
_root.wstrzc = false;
_root.cgi = false;
_root.cbro = false;
_root.thr4 = false;
_root.thr5 = false;
_root.thr6 = false;
_root.ddsoun = false;
_root.hi1 = false;
_root.hi2 = false;
_root.hi3 = false;
_root.hi4 = false;
_root.hi5 = false;
_root.fwin = false;
_root.hwin = false;
_root.hi6 = false;
i = 0;
while (i < 7) {
a = this["fly" + i];
if (!(a === undefined)) {
a._x = kursor._x + (Math.cos(a.angle) * a.radius);
a._y = kursor._y + (Math.sin(a.angle) * a.radius);
a.angle = a.angle + a.sped;
if (!(a.sprawdzil === true)) {
a.sprawdzil = true;
if (a.bonusjest == true) {
switch (i) {
case 0 :
if (!(a.reloadreduced === true)) {
bonusreload = 1.5;
a.reloadreduced = true;
}
break;
case 1 :
inv_speed = 1.6;
break;
case 2 :
mozebycelec = true;
erand = (300 + (Math.random() * 600)) + (Math.random() * 600);
break;
case 3 :
doubledamage = true;
drand = (400 + (Math.random() * 600)) + (Math.random() * 600);
break;
case 5 :
if (!(a.expreduced === true)) {
expkasa = 5;
a.expreduced = true;
}
break;
case 4 :
bonusrest = 25;
break;
case 6 :
if (przyciagac === true) {
break;
}
j = 0;
while (j < 7) {
b = this["fly" + j];
if (!(b.spedreduced === true)) {
b.sped = b.sped / 2;
b.spedreduced = true;
}
j++;
}
przyciagac = true;
}
}
}
ha = 0;
while (ha < 40) {
ham = this["wrog" + ha];
if (!(ham === undefined)) {
if (ham.hp > 0) {
if (Math.abs(a._x - ham._x) < ((a.baza._width / 2) + (ham._width / 2))) {
if (Math.abs(a._y - ham._y) < ((a.baza._height / 2) + (ham._height / 2))) {
if (((ham.hitTest(a._x, a._y + a.heightminus, true) || (ham.hitTest(a._x, a._y - a.heightminus, true))) || (ham.hitTest(a._x + a.widthminus, a._y, true))) || (ham.hitTest(a._x - a.widthminus, a._y, true))) {
diesf(i, a);
}
}
}
}
}
ha++;
}
if ((!(p === undefined)) && (p._x < 700)) {
if (((p.hitTest(a._x, a._y + a.heightminus, true) || (p.hitTest(a._x, a._y - a.heightminus, true))) || (p.hitTest(a._x + a.widthminus, a._y, true))) || (p.hitTest(a._x - a.widthminus, a._y, true))) {
diesf(i, a);
}
}
if ((!(r === undefined)) && (r._x < 700)) {
if (((r.hitTest(a._x, a._y + a.heightminus, true) || (r.hitTest(a._x, a._y - a.heightminus, true))) || (r.hitTest(a._x + a.widthminus, a._y, true))) || (r.hitTest(a._x - a.widthminus, a._y, true))) {
diesf(i, a);
}
}
if (!(orion === undefined)) {
if (a._x < (orion._x + orion._width)) {
if (((orion.hitTest(a._x, a._y + a.heightminus, true) || (orion.hitTest(a._x, a._y - a.heightminus, true))) || (orion.hitTest(a._x + a.widthminus, a._y, true))) || (orion.hitTest(a._x - a.widthminus, a._y, true))) {
diesf(i, a);
}
}
}
if (!(boss === undefined)) {
if (Math.abs(a._x - boss._x) < ((a.baza._width / 2) + (boss._width / 2))) {
aj = 0;
while (aj < boss.ilosc) {
boso = this.boss["d" + aj];
if (boso.hp > 0) {
if (((boso.hitTest(a._x, a._y + a.heightminus, true) || (boso.hitTest(a._x, a._y - a.heightminus, true))) || (boso.hitTest(a._x + a.widthminus, a._y, true))) || (boso.hitTest(a._x - a.widthminus, a._y, true))) {
diesf(i, a);
}
}
aj++;
}
}
}
zmecz = gui["strzel" + i];
reload = gui["reload" + i];
if (a.dead == true) {
pleiades[i] = 0;
a.play();
removeMovieClip(a.dmgbuff);
cross = gui["krzyz" + i];
cross._visible = true;
reload.fill._visible = false;
zmecz.fill._visible = false;
removeMovieClip(a.strzelanie);
}
if (inv_tarcz == true) {
if (!(a.tarcza_jest === true)) {
if (!(a.dead === true)) {
a.attachMovie("tarczowanie", "tarcza", a.getNextHighestDepth());
a.tarcza._width = a.tarcza._width * (size / 30);
a.tarcza._height = a.tarcza._height * (size / 30);
inv = true;
a.tarcza_jest = true;
}
} else if (gui.inv_bar.fill._width <= (6 * inv_speed)) {
a.tarcza.graj = true;
}
} else {
if (gui.elec._visible == false) {
inv = false;
}
a.tarcza_jest = false;
}
if (shooting == true) {
if ((a.reloading == 100) && ((a.total_zmeczenie - a.zmeczenie) >= 0)) {
if (!(a.strzelil === true)) {
if (!(a.dead === true)) {
if (!(happy === true)) {
if ((a.wep == 2) || (a.wep == 3)) {
if (!a.tarcza_jest) {
a.reloading = 0;
a.strzelil = true;
a.attachMovie("strzelanie" + a.wep, "strzelanie", a.getNextHighestDepth());
a.strzelanie.bulletspeed = a.bulletspeed;
a.strzelanie.damage = a.damage * bonusdamage;
if (bonusdamage > 1) {
a.strzelanie.kolor = true;
}
if ((a.zmeczenie - bonusrest) > 0) {
a.total_zmeczenie = a.total_zmeczenie - (a.zmeczenie - bonusrest);
}
}
} else {
a.reloading = 0;
a.strzelil = true;
a.attachMovie("strzelanie" + a.wep, "strzelanie", a.getNextHighestDepth());
a.strzelanie.bulletspeed = a.bulletspeed;
a.strzelanie.damage = a.damage * bonusdamage;
if (bonusdamage > 1) {
a.strzelanie.kolor = true;
}
if ((a.zmeczenie - bonusrest) > 0) {
a.total_zmeczenie = a.total_zmeczenie - (a.zmeczenie - bonusrest);
}
}
}
}
}
}
}
if (a.reloading < 100) {
a.reloading = a.reloading + (a.reload_speed + bonusreload);
} else {
a.reloading = 100;
}
if (a.total_zmeczenie < 100) {
a.total_zmeczenie++;
} else {
a.total_zmeczenie = 100;
}
zmecz.fill._xscale = a.total_zmeczenie;
reload.fill._xscale = a.reloading;
if (zmecz.fill._xscale > 100) {
zmecz.fill._xscale = 100;
}
if (reload.fill._xscale > 100) {
reload.fill._xscale = 100;
}
}
i++;
}
}
function save() {
timetaba = new Array();
i = 0;
while (i < timetab.length) {
timetaba.push(timetab[i]);
i++;
}
user.data.timetab = timetaba;
dietaba = new Array();
i = 0;
while (i < dietab.length) {
dietaba.push(dietab[i]);
i++;
}
user.data.dietab = dietaba;
entaba = new Array();
i = 0;
while (i < entab.length) {
entaba.push(entab[i]);
i++;
}
user.data.entab = entaba;
lvltaba = new Array();
i = 0;
while (i < lvltab.length) {
lvltaba.push(lvltab[i]);
i++;
}
user.data.lvltab = lvltaba;
wepsa = new Array();
i = 0;
while (i < weps.length) {
wepsa.push(weps[i]);
i++;
}
staras = new Array();
i = 0;
while (i < stara.length) {
staras.push(stara[i]);
i++;
}
user.data.stara = staras;
pleiadesa = new Array();
i = 0;
while (i < pleiades.length) {
pleiadesa.push(pleiades[i]);
i++;
}
user.data.oriondist = oriondist;
user.data.weps = wepsa;
user.data.size = size;
user.data.ile_inv = ile_inv;
if ((level > user.data.level) || (user.data.level == undefined)) {
user.data.level = level;
}
user.data.which = which;
user.data.money = money;
user.data.exp = exp;
user.data.speed = speed;
user.data.pleiades = pleiadesa;
user.data.fly0_ile = fly0_ile;
user.data.fly1_ile = fly1_ile;
user.data.fly2_ile = fly2_ile;
user.data.fly3_ile = fly3_ile;
user.data.fly4_ile = fly4_ile;
user.data.fly5_ile = fly5_ile;
user.data.fly6_ile = fly6_ile;
if (gui.inv_krzyz._visible == false) {
user.data.invjest = true;
} else {
user.data.invjest = false;
}
gui.save_napis.play();
if (starlevel > 2) {
starlevel = 2;
}
if (user.data.stara[level - 1] < starlevel) {
stara[level - 1] = starlevel;
user.data.stara[level - 1] = starlevel;
}
sumas = 0;
k = 0;
while (k < 15) {
sumas = sumas + user.data.stara[k];
k++;
}
if (sumas == 30) {
achievement(2);
}
starlevel = user.data.stara[level];
if (((!(starlevel === 0)) && (!(starlevel === 1))) && (!(starlevel === 2))) {
starlevel = 0;
}
user.data.kills = kills;
osiagia = new Array();
i = 0;
while (i < osiagi.length) {
osiagia.push(osiagi[i]);
i++;
}
user.data.osiagi = osiagi;
user.data.czapki = czapki;
user.flush();
}
function kills_control() {
if (kills_new <= 50) {
if (!(kills === kills_new)) {
gui.enviro.timer = 0;
kills = kills_new;
gui.enviro.wraca = false;
gui.enviro.idzie = true;
gui.enviro.kills.text = kills;
}
}
if (gui.enviro.idzie) {
if (!(gui.enviro.wraca === true)) {
if (gui.enviro._y > 350) {
gui.enviro._y = gui.enviro._y - envirospeed;
} else {
gui.enviro.stoi = true;
}
} else if (gui.enviro._y < 430) {
gui.enviro._y = gui.enviro._y + envirospeed;
} else {
gui.enviro.wraca = false;
gui.enviro.idzie = false;
}
if (gui.enviro.stoi) {
if (gui.enviro.timer < enviroczek) {
gui.enviro.timer++;
} else {
gui.enviro.stoi = false;
gui.enviro.wraca = true;
}
}
}
if (kills >= 50) {
achievement(0);
}
}
function achievement(ktore) {
if (!(user.data.osiagi[ktore] === 1)) {
osiagi[ktore] = 1;
user.data.osiagi[ktore] = 1;
gui.gui_box.attachMovie("gbox", "gbox" + boxcount, boxcount);
bo = gui.gui_box["gbox" + boxcount];
bo.gotoAndStop(ktore + 1);
boxcount++;
am = random(level * 10) + (level * 4);
money = money + am;
user.data.money = user.data.money + am;
_root.achieve.start(0, 1);
}
}
function ach_control() {
i = 0;
while (i < boxcount) {
bo = gui.gui_box["gbox" + i];
if (!(bo === undefined)) {
if (!(bo.zaczal === true)) {
bo._y = 50;
bo._x = 100;
bo.cely = -170;
bo.czektimer = 0;
j = 0;
while (j < boxcount) {
box = gui.gui_box["gbox" + j];
if ((!(box === undefined)) && (!(box === bo))) {
if (!(box.wraca === true)) {
if (!(box.taken === true)) {
bo.taken = true;
bo.cely = bo.cely - 110;
if (bo.cely < -400) {
bo._x = 308;
bo.cely = -170;
}
}
}
}
j++;
}
bo.zaczal = true;
}
if (bo.zaczal) {
if (!(bo.wraca === true)) {
if (bo._y > bo.cely) {
bo._y = bo._y - boxspeed;
} else {
bo.czeka = true;
}
}
}
if (bo.czeka) {
if (bo.czektimer < boxczek) {
bo.czektimer++;
} else {
bo.czeka = false;
bo.wraca = true;
}
}
if (bo.wraca) {
bo._y = bo._y + boxspeed;
if (bo._y > 50) {
removeMovieClip(bo);
}
}
}
i++;
}
}
function level_control() {
if (!(tlo1 === undefined)) {
if (tlo1._x < -50) {
i = 0;
while (i < 23) {
a = tlo1["a" + i];
if (!(a === undefined)) {
if ((a._x + tlo1._x) < (-a._width)) {
unloadMovie (a);
}
}
i++;
}
}
}
if (!(tlo2 === undefined)) {
if (tlo2._x < -50) {
i = 0;
while (i < 23) {
a = tlo2["a" + i];
if (!(a === undefined)) {
if ((a._x + tlo2._x) < (-a._width)) {
unloadMovie (a);
}
}
i++;
}
}
}
i = 0;
while (i < 30) {
a = this["kropla_spad" + i];
if (!(a === undefined)) {
a._y = a._y + a.speed;
a.speed = a.speed * kropla_spadek;
a._x = a._x + formula;
if (a._y > 500) {
removeMovieClip(a);
}
}
i++;
}
if (wallybyl == true) {
czapki = true;
user.data.czapki = true;
_root.czapki = true;
user.flush();
achievement(6);
}
i = 0;
while (i < ilepociskow) {
po = this["strzal" + i];
if (!(po.damagedone === true)) {
pi = this["piorun" + ktorep];
if (!(pi === undefined)) {
if ((pi.hitTest(po._x, po._y, true) || (pi.hitTest((po._x - (po._width / 2)) + 2, po._y, true))) || (pi.hitTest((po._x + (po._width / 2)) - 2, po._y, true))) {
po.popiorunie = true;
po.damagedone = true;
}
}
}
po = undefined;
po = this["wstrzal" + i];
if (!(po === undefined)) {
if (!(bossfight === true)) {
po._x = po._x + formula;
}
if (!(po.damagedone === true)) {
pi = this["piorun" + ktorep];
if (!(pi === undefined)) {
if ((pi.hitTest(po._x, po._y, true) || (pi.hitTest((po._x - (po._width / 2)) + 2, po._y, true))) || (pi.hitTest((po._x + (po._width / 2)) - 2, po._y, true))) {
po.damagedone = true;
po.popiorunie = true;
}
}
j = 0;
while (j < 7) {
a = this["fly" + j];
if ((!(a === undefined)) && (!(a.dead === true))) {
if (Math.abs(a._x - po._x) < ((a._width / 2) + (po._width / 2))) {
if (Math.abs(a._y - po._y) < ((a._height / 2) + (po._height / 2))) {
if ((((a.hitTest(po._x + (po._width / 2), po._y, true) || (a.hitTest(po._x + (po._width / 4), po._y - (po._height / 4), true))) || (a.hitTest(po._x + (po._width / 4), po._y + (po._height / 4), true))) || (a.hitTest(po._x, po._y - (po._height / 2), true))) || (a.hitTest(po._x, po._y + (po._height / 2), true))) {
po.baza.play();
po.damagedone = true;
diesf(j, a);
}
}
}
}
j++;
}
}
} else if (!(this["brond_dzwiek" + i] === undefined)) {
po = this["brond_dzwiek" + i];
if (!(bossfight === true)) {
po._x = po._x + formula;
}
j = 0;
while (j < 7) {
a = this["fly" + j];
if ((!(a === undefined)) && (!(a.dead === true))) {
if (po.kolizja.hitTest(a._x, a._y + a.heightminus, true) || (po.kolizja.hitTest(a._x, a._y - a.heightminus, true))) {
diesf(j, a);
}
}
j++;
}
}
if (bossfight == true) {
po = this["wstrzaly" + i];
if (!(po === undefined)) {
if (!(po.damagedone === true)) {
j = 0;
while (j < 7) {
a = this["fly" + j];
if ((!(a === undefined)) && (!(a.dead === true))) {
if (Math.abs(a._x - po._x) < ((a._width / 2) + (po._width / 2))) {
if (Math.abs(a._y - po._y) < ((a._height / 2) + (po._height / 2))) {
if ((((a.hitTest(po._x + (po._width / 2), po._y, true) || a.hitTest(po._x + (po._width / 4), po._y - (po._height / 4), true)) || a.hitTest(po._x + (po._width / 4), po._y + (po._height / 4), true)) || a.hitTest(po._x, po._y - (po._height / 2), true)) || a.hitTest(po._x, po._y + (po._height / 2), true)) {
po.baza.play();
po.damagedone = true;
diesf(j, a);
}
}
}
}
j++;
}
}
}
}
i++;
}
if (happy) {
happytimer--;
if (happytimer <= 0) {
i = 0;
while (i < 7) {
a = this["fly" + i];
removeMovieClip(a.ciesz);
i++;
}
happy = false;
}
}
if (level == 15) {
if (!(piorunymoved === true)) {
piorunymoved = true;
dajpioruny = true;
pioruntimer = pioruntimermax;
os = this["warning_p" + ktorep];
removeMovieClip(os);
pi = this["piorun" + ktorep];
removeMovieClip(pi);
pwarningbyl = true;
ktorep = ostrz;
attachMovie("warning_p", "warning_p" + ostrz, 99993);
os = this["warning_p" + ostrz];
pdamage = false;
os._x = kursor._x;
os._y = 50;
os._alpha = 0;
ostrz++;
if (ostrz > 10) {
ostrz = 0;
}
}
}
if (dajpioruny == true) {
pi = this["piorun" + ktorep];
if (pi == undefined) {
pioruntimer--;
if (level == 15) {
if (piorunymoved == true) {
if (pioruntimer <= 0) {
pioruntimer = pioruntimermax;
pwarningbyl = false;
attachMovie("piorun", "piorun" + ktorep, 99994);
os = this["warning_p" + ktorep];
_root.piorunsound.start(0, 1);
pi = this["piorun" + ktorep];
pi._x = os._x;
pi._y = 50;
removeMovieClip(os);
} else {
if (!(pwarningbyl === true)) {
pwarningbyl = true;
ktorep = ostrz;
attachMovie("warning_p", "warning_p" + ostrz, 99993);
os = this["warning_p" + ostrz];
pdamage = false;
os._x = kursor._x;
os._y = 50;
os._alpha = 0;
ostrz++;
if (ostrz > 10) {
ostrz = 0;
}
}
os = this["warning_p" + ktorep];
os._alpha = os._alpha + (100 / pioruntimermax);
}
}
} else if (pioruntimer <= 0) {
pioruntimer = pioruntimermax;
pwarningbyl = false;
attachMovie("piorun", "piorun" + ktorep, 99994);
os = this["warning_p" + ktorep];
pi = this["piorun" + ktorep];
_root.piorunsound.start(0, 1);
pi._x = os._x;
pi._y = 50;
removeMovieClip(os);
} else {
if (!(pwarningbyl === true)) {
pwarningbyl = true;
ktorep = ostrz;
attachMovie("warning_p", "warning_p" + ostrz, 99993);
os = this["warning_p" + ostrz];
pdamage = false;
os._x = kursor._x;
os._y = 50;
os._alpha = 0;
ostrz++;
if (ostrz > 10) {
ostrz = 0;
}
}
os = this["warning_p" + ktorep];
os._alpha = os._alpha + (100 / pioruntimermax);
}
} else {
pi._x = pi._x + formula;
if (Math.abs(boss._x - pi._x) < (boss._width + (pi._width / 2))) {
if ((pi.hitTest(boss._x, boss._y, true) || (pi.hitTest((boss._x - (boss._width / 2)) + 2, boss._y, true))) || (pi.hitTest((boss._x + (boss._width / 2)) - 2, boss._y, true))) {
if (!(pdamage === true)) {
boss.d0.wybuch.gotoAndStop(2);
pdamage = true;
boss.d0.hp = boss.d0.hp - (boss.hpmax / 6);
}
}
}
if (Math.abs(kursor._x - pi._x) < (50 + (pi._width / 2))) {
i = 0;
while (i < 7) {
a = this["fly" + i];
if ((!(a === undefined)) && (!(a.dead === true))) {
if (pi.hitTest(a._x + a.widthminus, a._y, true) || (pi.hitTest(a._x - a.widthminus, a._y, true))) {
diesf(i, a);
}
}
i++;
}
}
}
}
if (!(bossfight === true)) {
if (level == 14) {
if (!(r.punkcik === undefined)) {
if (kursor._x > (r.punkcik._x + r._x)) {
if (!(strobebyl === true)) {
strobebyl = true;
_root.strobesound.start();
attachMovie("strobelight", "strobelight", 99993);
removeMovieClip(orion);
pioruntimer = pioruntimermax;
}
}
}
}
if (level == 10) {
if (!(lawinajest === true)) {
lawinajest = true;
attachMovie("lawina", "lawina", 9910);
lawina.tablica = new Array(0, 0, 0, 0, 0);
lawina.timer = 0;
lawina.timermax = 4;
lawina.i = 0;
lawina.spadek = 1.03;
lawina_speed = 2;
}
}
if (lawinajest) {
if (!(r.punkt === undefined)) {
if (kursor._x > (r.punkt._x + r._x)) {
if (!(polawinie === true)) {
_root.cavein.start(0, 1);
polawinie = true;
happy = true;
_root.happysound.start(0, 1);
happytimer = 64;
i = 0;
while (i < 7) {
a = this["fly" + i];
a.attachMovie("ciesz", "ciesz", a.getNextHighestDepth());
i++;
}
}
}
}
if (polawinie) {
lawina_speed = 0;
glupie = false;
if (lawina._x <= -600) {
removeMovieClip(lawina);
}
}
if (kursor._x <= 400) {
ki = 0;
while (ki < 7) {
f = this["fly" + ki];
if (lawina.hitTest(f._x + f.widthminus, f._y, true) || (lawina.hitTest(f._x - f.widthminus, f._y, true))) {
diesf(ki, f);
}
ki++;
}
}
lawina.timer--;
if (Math.round(formula) == 0) {
lawinaminus = true;
} else {
lawinaminus = false;
}
if (!(polawinie === true)) {
if (lawina.timer <= 0) {
lawina.timer = lawina.timermax;
rand = ((random(2) + random(2)) + random(2)) + random(2);
if (lawina.tablica[rand] == 0) {
lawina.tablica[rand] = 1;
lawina.attachMovie("spad_bos10", "spad" + lawina.i, lawina.i);
a = lawina["spad" + lawina.i];
a._x = (-a._width) + (rand * a._width);
a._y = -310;
a.speed = 6;
_root.spadsound1.start(0, 1);
a.baza.stop();
a.gdzie = rand;
lawina.i++;
if (lawina.i > 15) {
lawina.i = 0;
}
} else {
lawina.licznik = 0;
while ((lawina.tablica[rand] == 0) && (lawina.licznik < 3)) {
rand++;
if (rand > 4) {
rand = 0;
}
lawina.licznik++;
}
if (lawina.tablica[rand] == 0) {
lawina.tablica[rand] = 1;
lawina.attachMovie("spad_bos10", "spad" + lawina.i, lawina.i);
a = lawina["spad" + lawina.i];
a._x = ((-a._width) / 2) + ((rand * a._width) / 2);
a._y = -310;
a.speed = 6;
_root.spadsound1.start(0, 1);
a.baza.stop();
a.gdzie = rand;
lawina.i++;
if (lawina.i > 15) {
lawina.i = 0;
}
}
}
}
}
lspeed = formula + lawina_speed;
aj = 0;
while (aj < ilepociskow) {
po = this["strzal" + aj];
if (!(po === undefined)) {
if (!(po.damagedone === true)) {
if (Math.abs(lawina._x - po._x) < ((lawina._width / 2) + (po._width / 2))) {
if (lawina.hitTest(po._x - (po._width / 2), po._y, true) || (lawina.hitTest(po._x + (po._width / 2), po._y, true))) {
po.damagedone = true;
}
}
}
}
aj++;
}
al = 0;
while (al < 16) {
s = lawina["spad" + al];
if (!(s === undefined)) {
if (!(polawinie === true)) {
if (!(lawinaminus === true)) {
s._x = s._x + formula;
} else if (!(lawina.jest100 === true)) {
s._x = s._x - lawina_speed;
}
}
if ((s._x + lawina._x) < (-0.7 * s._width)) {
lawina.tablica[s.gdzie] = 0;
s.oddal = true;
unloadMovie (s);
}
s._y = s._y + s.speed;
if (s._y > 50) {
if (!(s.oddal === true)) {
lawina.tablica[s.gdzie] = 0;
s.oddal = true;
}
}
if (s._y > 400) {
unloadMovie (s);
}
s.speed = s.speed * lawina.spadek;
}
al++;
}
if (!(polawinie === true)) {
if (lawina._x < 100) {
lawina._x = lawina._x + lspeed;
lawina.jest100 = false;
} else {
lawina._x = 100;
lawina.jest100 = true;
}
}
if (!(glupie === false)) {
lawina._x = lawina._x + formula;
if (lawina._x <= 0) {
lawina._x = 0;
}
} else {
lawina._x = lawina._x + formula;
}
}
i = 0;
while (i <= 5) {
place = this["boxd" + i];
if (!(place === undefined)) {
place._x = place._x + Math.round(formula);
if (place._x < (-place._width)) {
removeMovieClip(place);
}
}
i++;
}
j = 0;
while (j <= 10) {
gl = this["gwiazda" + j];
if (!(gl === undefined)) {
if (gl._x < -20) {
removeMovieClip(gl);
}
gl._x = gl._x + Math.round(formula);
if (!(gl.bylo === true)) {
i = 0;
while (i < 7) {
a = this["fly" + i];
if (!(a === undefined)) {
if (gl.hitTest(a)) {
if (gl.ran == undefined) {
_root.blingstar.start(0, 1);
starlevel++;
gl.ran = Math.round(1.5 * random(level * 5)) + (level * 2);
money = money + gl.ran;
stime = stime - 10;
if (stime < 0) {
mtime--;
stime = stime + 60;
if (mtime < 0) {
mtime = 0;
stime = 0;
}
}
gl.baza.play();
}
}
}
i++;
}
}
}
j++;
}
if (!(dajpioruny === true)) {
if (!(level === 10)) {
oriondist = oriondist + ((-formula) - orionspeed);
oriondist = Math.round(oriondist);
if (oriondist > 999) {
oriondist = 999;
}
if (oriondist < 200) {
_root.orionsound.setVolume(_root.ovolume);
if (!(orionjest === true)) {
attachMovie("orion", "orion", 99991);
orion._x = (-orion._width) - 150;
orionjest = true;
}
if (!(osound === true)) {
osound = true;
_root.orionsound.start(0, 9999);
}
_root.ovolume = (400 - ((kursor._x - orion._x) - orion._width)) / 4;
if (root.ovolume < 0) {
root.ovolume = 0;
}
if (_root.ovolume > 200) {
_root.ovolume = 200;
}
} else if (orionjest == true) {
removeMovieClip(orion);
_root.orionsound.stop();
osound = false;
_root.ovolume = 0;
orionjest = false;
_root.orionsound.setVolume(_root.ovolume);
if (meetorion == true) {
achievement(5);
}
}
if (oriondist < 0) {
oriondis = 0;
meetorion = true;
} else {
oriondis = oriondist;
}
gui.distance.text = oriondis;
orion._x = orion._x + (Math.round(formula) + orionspeed);
} else {
if (orionjest) {
orionspeed = 0.4;
oriondist = oriondist + ((-formula) - orionspeed);
oriondist = Math.round(oriondist);
if (oriondist > 200) {
removeMovieClip(orion);
_root.orionsound.stop();
osound = false;
_root.ovolume = 0;
orionjest = false;
_root.orionsound.setVolume(_root.ovolume);
if (meetorion == true) {
achievement(5);
}
}
if (oriondist < 0) {
oriondis = 0;
meetorion = true;
} else {
oriondis = oriondist;
}
gui.distance.text = oriondis;
orion._x = orion._x + (Math.round(formula) + orionspeed);
}
gui.distance.text = "???";
}
} else {
gui.distance.text = ":D";
if (orionjest == true) {
removeMovieClip(orion);
orionjest = false;
if (meetorion == true) {
achievement(5);
}
}
}
if (p._x < ((-p._width) - 5)) {
removeMovieClip(p);
removeMovieClip(tut1);
}
if (r._x < ((-r._width) - 5)) {
removeMovieClip(r);
removeMovieClip(tut2);
}
if (tlo1._x < ((-tlo1._width) - 100)) {
removeMovieClip(tlo1);
}
if (tlo2._x < ((-tlo2._width) - 100)) {
removeMovieClip(tlo2);
}
if (tlo2._x < -950) {
if (!(tlo2attach === true)) {
y = "tlo" + (level + 1);
attachMovie(y, "tlo1", 102);
tlo1._x = 870 + Math.round(formula);
tlo2attach = true;
}
} else {
tlo2attach = false;
}
if (tlo1._x < -950) {
if (!(tlo1attach === true)) {
y = "tlo" + (level + 1);
attachMovie(y, "tlo2", 103);
tlo2._x = 870 + Math.round(formula);
tlo1attach = true;
}
} else {
tlo1attach = false;
}
if (!(p === undefined)) {
if (p._x < -2100) {
if (!(kafattachp === true)) {
kafattachp = true;
kaf++;
if (level == 1) {
if (kaf == 1) {
ab = ("tut" + level) + kaf;
attachMovie(ab, "tut2", 99994);
tut2._x = 750 + Math.round(formula);
}
}
if (kaf == 3) {
xx = "boskaf" + level;
attachMovie(xx, "r", 9995);
r._x = 750 + Math.round(formula);
} else {
xx = ("ob" + level) + kaf;
attachMovie(xx, "r", 9995);
r._x = 750 + Math.round(formula);
}
}
} else {
kafattachp = false;
}
}
if (!(r === undefined)) {
if (r._x < -2100) {
if (!(kafattachr === true)) {
kafattachr = true;
kaf++;
if (level == 1) {
if (kaf == 2) {
ab = ("tut" + level) + kaf;
attachMovie(ab, "tut1", 99993);
tut1._x = 730 + Math.round(formula);
}
}
if (level == 3) {
if (kaf == 2) {
ab = ("tut" + level) + kaf;
attachMovie(ab, "tut1", 99993);
tut1._x = 730 + Math.round(formula);
}
}
if (level == 5) {
if (kaf == 2) {
ab = ("tut" + level) + kaf;
attachMovie(ab, "tut1", 99993);
tut1._x = 730 + Math.round(formula);
}
}
xx = ("ob" + level) + kaf;
attachMovie(xx, "p", 9994);
p._x = 730 + Math.round(formula);
}
} else {
kafattachr = false;
}
}
if ((!(tut1 === undefined)) || (!(tut2 === undefined))) {
tut1._x = tut1._x + Math.round(formula);
tut2._x = tut2._x + Math.round(formula);
}
if (level == 1) {
if (kursor._x > (p._x + p.opunkt._x)) {
if (!(otu === true)) {
otu = true;
gui.attachMovie("otut", "otut", gui.getNextHighestDepth());
}
}
}
if (level == 2) {
if (kursor._x > (p._x + p.invpunkt._x)) {
if (!(invtu === true)) {
invtu = true;
gui.attachMovie("invtut", "invtut", gui.getNextHighestDepth());
}
}
}
p._x = p._x + Math.round(formula);
r._x = r._x + Math.round(formula);
tlo1._x = tlo1._x + (Math.round(formula) / 5);
tlo2._x = tlo2._x + (Math.round(formula) / 5);
if (!(btimer === 0)) {
_root.bosswlaczony = false;
attache = false;
bossattached = false;
btimer = 0;
}
if (gui.bosshp._y < 440) {
gui.bosshp._y = gui.bosshp._y + 2.5;
} else {
gui.bosshp.wraca = false;
bosshpoff = true;
}
} else {
if (lawinajest) {
al = 0;
while (al < 20) {
s = lawina["spad" + al];
if (!(s === undefined)) {
if (!(polawinie === true)) {
if (!(lawinaminus === true)) {
s._x = s._x + formula;
} else if (!(lawina.jest100 === true)) {
s._x = s._x - lawina_speed;
}
}
s._y = s._y + s.speed;
if ((s._x + lawina._x) < ((-s._width) / 2)) {
removeMovieClip(s);
}
if (s._y > 400) {
removeMovieClip(s);
}
s.speed = s.speed * lawina.spadek;
}
al++;
}
}
if (orionjest) {
if (!(osound === true)) {
osound = true;
_root.orionsound.start(0, 9999);
}
_root.ovolume = (400 - ((kursor._x - orion._x) - orion._width)) / 4;
if (root.ovolume < 0) {
root.ovolume = 0;
}
if (_root.ovolume > 200) {
_root.ovolume = 200;
}
_root.orionsound.setVolume(_root.ovolume);
orion._x = orion._x - 3;
oriondist = oriondist + 3;
if (oriondist < 0) {
oriondis = 0;
meetorion = true;
} else {
oriondis = oriondist;
}
gui.distance.text = oriondis;
if (oriondist > 200) {
removeMovieClip(orion);
removeMovieClip(orion);
_root.orionsound.stop();
osound = false;
_root.ovolume = 0;
orionjest = false;
_root.orionsound.setVolume(_root.ovolume);
orionjest = false;
if (meetorion == true) {
achievement(5);
}
}
}
if (!(klatka_gora === undefined)) {
i = 0;
while (i < ilepociskow) {
po = this["strzal" + i];
if (!(po === undefined)) {
if (!(po.damagedone === true)) {
if (Math.abs(klatka_gora._x - po._x) < ((klatka_gora._width / 2) + (po._width / 2))) {
if (Math.abs(klatka_gora._y - po._y) < ((klatka_gora._height / 2) + (po._height / 2))) {
if ((((klatka_gora.hitTest(po._x + (po._width / 2), po._y, true) || (klatka_gora.hitTest(po._x + (po._width / 4), po._y - (po._height / 4), true))) || (klatka_gora.hitTest(po._x + (po._width / 4), po._y + (po._height / 4), true))) || (klatka_gora.hitTest(po._x, po._y - (po._height / 2), true))) || (klatka_gora.hitTest(po._x, po._y + (po._height / 2), true))) {
po.baza.play();
po.damagedone = true;
}
}
}
}
if (!(po.damagedone === true)) {
if (Math.abs(klatka_lewo._x - po._x) < ((klatka_lewo._width / 2) + (po._width / 2))) {
if (Math.abs(klatka_lewo._y - po._y) < ((klatka_lewo._height / 2) + (po._height / 2))) {
if ((((klatka_lewo.hitTest(po._x + (po._width / 2), po._y, true) || (klatka_lewo.hitTest(po._x + (po._width / 4), po._y - (po._height / 4), true))) || (klatka_lewo.hitTest(po._x + (po._width / 4), po._y + (po._height / 4), true))) || (klatka_lewo.hitTest(po._x, po._y - (po._height / 2), true))) || (klatka_lewo.hitTest(po._x, po._y + (po._height / 2), true))) {
po.baza.play();
po.damagedone = true;
}
}
}
}
if (!(po.damagedone === true)) {
if (Math.abs(klatka_prawo._x - po._x) < ((klatka_prawo._width / 2) + (po._width / 2))) {
if (Math.abs(klatka_prawo._y - po._y) < ((klatka_prawo._height / 2) + (po._height / 2))) {
if ((((klatka_prawo.hitTest(po._x + (po._width / 2), po._y, true) || (klatka_prawo.hitTest(po._x + (po._width / 4), po._y - (po._height / 4), true))) || (klatka_prawo.hitTest(po._x + (po._width / 4), po._y + (po._height / 4), true))) || (klatka_prawo.hitTest(po._x, po._y - (po._height / 2), true))) || (klatka_prawo.hitTest(po._x, po._y + (po._height / 2), true))) {
po.baza.play();
po.damagedone = true;
}
}
}
}
if (!(po.damagedone === true)) {
if (Math.abs(klatka_dol._x - po._x) < ((klatka_dol._width / 2) + (po._width / 2))) {
if (Math.abs(klatka_dol._y - po._y) < ((klatka_dol._height / 2) + (po._height / 2))) {
if ((((klatka_dol.hitTest(po._x + (po._width / 2), po._y, true) || (klatka_dol.hitTest(po._x + (po._width / 4), po._y - (po._height / 4), true))) || (klatka_dol.hitTest(po._x + (po._width / 4), po._y + (po._height / 4), true))) || (klatka_dol.hitTest(po._x, po._y - (po._height / 2), true))) || (klatka_dol.hitTest(po._x, po._y + (po._height / 2), true))) {
po.baza.play();
po.damagedone = true;
}
}
}
}
}
po = this["wstrzal" + i];
if (!(po === undefined)) {
if (!(po.damagedone === true)) {
if (Math.abs(klatka_gora._x - po._x) < ((klatka_gora._width / 2) + (po._width / 2))) {
if (Math.abs(klatka_gora._y - po._y) < ((klatka_gora._height / 2) + (po._height / 2))) {
if ((((klatka_gora.hitTest(po._x + (po._width / 2), po._y, true) || (klatka_gora.hitTest(po._x + (po._width / 4), po._y - (po._height / 4), true))) || (klatka_gora.hitTest(po._x + (po._width / 4), po._y + (po._height / 4), true))) || (klatka_gora.hitTest(po._x, po._y - (po._height / 2), true))) || (klatka_gora.hitTest(po._x, po._y + (po._height / 2), true))) {
po.baza.play();
po.damagedone = true;
}
}
}
if (Math.abs(klatka_lewo._x - po._x) < ((klatka_lewo._width / 2) + (po._width / 2))) {
if (Math.abs(klatka_lewo._y - po._y) < ((klatka_lewo._height / 2) + (po._height / 2))) {
if ((((klatka_lewo.hitTest(po._x + (po._width / 2), po._y, true) || (klatka_lewo.hitTest(po._x + (po._width / 4), po._y - (po._height / 4), true))) || (klatka_lewo.hitTest(po._x + (po._width / 4), po._y + (po._height / 4), true))) || (klatka_lewo.hitTest(po._x, po._y - (po._height / 2), true))) || (klatka_lewo.hitTest(po._x, po._y + (po._height / 2), true))) {
po.baza.play();
po.damagedone = true;
}
}
}
if (Math.abs(klatka_prawo._x - po._x) < ((klatka_prawo._width / 2) + (po._width / 2))) {
if (Math.abs(klatka_prawo._y - po._y) < ((klatka_prawo._height / 2) + (po._height / 2))) {
if ((((klatka_prawo.hitTest(po._x + (po._width / 2), po._y, true) || (klatka_prawo.hitTest(po._x + (po._width / 4), po._y - (po._height / 4), true))) || (klatka_prawo.hitTest(po._x + (po._width / 4), po._y + (po._height / 4), true))) || (klatka_prawo.hitTest(po._x, po._y - (po._height / 2), true))) || (klatka_prawo.hitTest(po._x, po._y + (po._height / 2), true))) {
po.baza.play();
po.damagedone = true;
}
}
}
if (Math.abs(klatka_dol._x - po._x) < ((klatka_dol._width / 2) + (po._width / 2))) {
if (Math.abs(klatka_dol._y - po._y) < ((klatka_dol._height / 2) + (po._height / 2))) {
if ((((klatka_dol.hitTest(po._x + (po._width / 2), po._y, true) || (klatka_dol.hitTest(po._x + (po._width / 4), po._y - (po._height / 4), true))) || (klatka_dol.hitTest(po._x + (po._width / 4), po._y + (po._height / 4), true))) || (klatka_dol.hitTest(po._x, po._y - (po._height / 2), true))) || (klatka_dol.hitTest(po._x, po._y + (po._height / 2), true))) {
po.baza.play();
po.damagedone = true;
}
}
}
}
}
i++;
}
i = 0;
while (i < 7) {
a = this["fly" + i];
if (!(a === undefined)) {
if (!(a.dead === true)) {
if (Math.abs(a._x - klatka_gora._x) < ((a._width / 2) + (klatka_gora._width / 2))) {
if (Math.abs(a._y - klatka_gora._y) < ((a._height / 2) + (klatka_gora._height / 2))) {
if (((klatka_gora.hitTest(a._x, a._y + a.heightminus, true) || (klatka_gora.hitTest(a._x, a._y - a.heightminus, true))) || (klatka_gora.hitTest(a._x + a.widthminus, a._y, true))) || (klatka_gora.hitTest(a._x - a.widthminus, a._y, true))) {
diesf(i, a);
}
}
}
if (Math.abs(a._x - klatka_dol._x) < ((a._width / 2) + (klatka_dol._width / 2))) {
if (Math.abs(a._y - klatka_dol._y) < ((a._height / 2) + (klatka_dol._height / 2))) {
if (((klatka_dol.hitTest(a._x, a._y + a.heightminus, true) || (klatka_dol.hitTest(a._x, a._y - a.heightminus, true))) || (klatka_dol.hitTest(a._x + a.widthminus, a._y, true))) || (klatka_dol.hitTest(a._x - a.widthminus, a._y, true))) {
diesf(i, a);
}
}
}
if (Math.abs(a._x - klatka_prawo._x) < ((a._width / 2) + (klatka_prawo._width / 2))) {
if (Math.abs(a._y - klatka_prawo._y) < ((a._height / 2) + (klatka_prawo._height / 2))) {
if (((klatka_prawo.hitTest(a._x, a._y + a.heightminus, true) || (klatka_prawo.hitTest(a._x, a._y - a.heightminus, true))) || (klatka_prawo.hitTest(a._x + a.widthminus, a._y, true))) || (klatka_prawo.hitTest(a._x - a.widthminus, a._y, true))) {
diesf(i, a);
}
}
}
if (Math.abs(a._x - klatka_lewo._x) < ((a._width / 2) + (klatka_lewo._width / 2))) {
if (Math.abs(a._y - klatka_lewo._y) < ((a._height / 2) + (klatka_lewo._height / 2))) {
if (((klatka_lewo.hitTest(a._x, a._y + a.heightminus, true) || (klatka_lewo.hitTest(a._x, a._y - a.heightminus, true))) || (klatka_lewo.hitTest(a._x + a.widthminus, a._y, true))) || (klatka_lewo.hitTest(a._x - a.widthminus, a._y, true))) {
diesf(i, a);
}
}
}
}
}
i++;
}
}
if (!(bossattached === true)) {
_root.muzykatlo.stop();
if (!(level === 10)) {
_root.dajboss = true;
_root.nastawia = true;
}
gui.bosshp.fill._yscale = realyscale;
gui.bosshp.fillreal._yscale = realyscale;
bosshpoff = false;
save();
bossattached = true;
attachMovie(["boss" + level], "boss", 9996);
boss._x = 850;
if (level == 10) {
achievement(4);
}
}
if (pobity == true) {
sumap = 0;
k = 0;
while (k < 7) {
sumap = sumap + pleiades[k];
k++;
}
if (sumap == 1) {
koniecinv = true;
}
if (level == 16) {
dajpioruny = false;
pwarningbyl = false;
os = this["warning_p" + ktorep];
pi = this["piorun" + ktorep];
if (!(konk === true)) {
if (!(happybyl === true)) {
konk = true;
happy = true;
happytimer = 64;
_root.happysound.start(0, 1);
i = 0;
while (i < 7) {
a = this["fly" + i];
a.attachMovie("ciesz", "ciesz", a.getNextHighestDepth());
i++;
}
happybyl = true;
}
}
removeMovieClip(os);
removeMovieClip(pi);
if (koniecboss == true) {
user.data.skonczylgre = true;
user.flush();
if (_parent.wybuch_koniec == undefined) {
_parent.attachMovie("wybuch_koniec", "wybuch_koniec", _parent.getNextHighestDepth());
_root.wybuchkoniec.start(0, 1);
_parent.wybuch_koniec._x = boss._x;
_parent.wybuch_koniec._y = boss._y + boss.d0._y;
}
if (_parent.dajtekst == true) {
_parent.attachMovie("koniectekst", "koniectekst", getNextHighestDepth());
removeMovieClip(_parent.wybuch_koniec);
removeMovieClip(this);
}
}
} else {
lag = 4;
btimer++;
if ((user.data.level == 1) && (!(tipsbyl === true))) {
tipsbyl = true;
gui.tips.play();
gui.tips.baza.tekst.text = "Good job!";
}
if (btimer >= 194) {
i = 0;
while (i < dietab[level - 2]) {
Playtomic.Log.LevelCounterMetric("Deaths", level);
i++;
}
pobity = false;
bossfight = false;
shop_av = true;
if (level == 11) {
oriondist = 999;
}
orionspeed = 1 + ((level - 1) / 6);
xx = ("ob" + level) + kaf;
if (level == 2) {
if (kaf == 0) {
ab = ("tut" + level) + kaf;
attachMovie(ab, "tut1", 99993);
tut1._x = 705 + Math.round(formula);
}
}
attachMovie(xx, "p", 9994);
p._x = 705 + Math.round(formula);
save();
shop_av = true;
lag = 8;
}
}
if (!(attache === true)) {
_root.nastawia = true;
_root.wdol = true;
if (!(happy === true)) {
if ((!(level === 10)) && (!(level === 15))) {
if (!(konk === true)) {
konk = true;
happy = true;
happytimer = 64;
_root.happysound.start(0, 1);
i = 0;
while (i < 7) {
a = this["fly" + i];
a.attachMovie("ciesz", "ciesz", a.getNextHighestDepth());
i++;
}
}
}
}
sumap = 0;
k = 0;
while (k < 7) {
sumap = sumap + pleiades[k];
k++;
}
if (sumap == 1) {
achievement(1);
user.flush();
}
if (sumap == 7) {
achievement(3);
user.flush();
}
attache = true;
nowylevel = true;
if (fly3.bonusjest == true) {
attachMovie("ownednapis", "owned", 100000);
owned._x = 350;
owned._y = 220;
}
if (level == 15) {
if ((stime + (mtime * 60)) < timetab[level - 1]) {
timetab[level - 1] = stime + (mtime * 60);
}
}
if ((stime + (mtime * 60)) < timetab[level - 1]) {
timetab[level - 1] = stime + (mtime * 60);
}
lvltab[level] = 1;
Playtomic.Log.LevelAverageMetric("Time", level, timetab[level - 1]);
ktor = "Reached level" + level;
Playtomic.Log.CustomMetric(ktor);
dietab[level - 1] = ftab;
entab[level - 1] = etab;
level++;
kaf = 0;
save();
ftab = dietab[level];
etab = dietab[level];
zapisal = true;
}
}
if ((!(l10jest === true)) && (btimer < 194)) {
if (!(bosshpoff === true)) {
if (gui.bosshp.wraca == true) {
if (gui.bosshp._y < 440) {
gui.bosshp._y = gui.bosshp._y + 2.5;
} else {
gui.bosshp.wraca = false;
bosshpoff = true;
}
} else {
if (gui.bosshp._y > 385) {
gui.bosshp._y = gui.bosshp._y - 2.5;
}
if (gui.bosshp.fill._yscale > gui.bosshp.fillreal._yscale) {
gui.bosshp.fill._yscale = gui.bosshp.fill._yscale - (gui.bosshp.fill._yscale / gui.bosshp.fillreal._yscale);
}
if (gui.bosshp.fillreal._yscale <= 0.01) {
gui.bosshp.fillreal._yscale = 0.01;
gui.bosshp.fill._yscale = gui.bosshp.fill._yscale - 4;
} else if (gui.bosshp.fill._yscale < 0) {
gui.bosshp.fill._yscale = 0.02;
}
if (gui.bosshp.fill._yscale < 0) {
gui.bosshp.fill._yscale = 0;
gui.bosshp.wraca = true;
}
}
}
}
}
}
function shop_control() {
if (shop_av == true) {
koniecinv = false;
if (!(shopping === true)) {
i = 0;
while (i < 7) {
a = this["fly" + i];
a.baza.gotoAndStop(1);
if (!(a.tarczowanie === undefined)) {
_root.gra.gui.inv_bar.fill._width = 0;
}
_root.gra.gui.elec.fill._xscale = 0;
_root.gra.gui.dmgsign.fill._xscale = 0;
removeMovieClip(a.strzelanie);
removeMovieClip(a.tarczowanie);
removeMovieClip(a.elebuff);
removeMovieClip(a.dmgbuff);
i++;
}
_root.muzykaboss.stop();
delete _root.muzykaboss;
paused = true;
przyciski = true;
shopping = true;
_root.elecsound.stop();
attachMovie("shop", "shop", getNextHighestDepth());
shop._x = 55;
shop._y = 55;
}
}
if (shopinv == true) {
if (elecjest) {
if (gui.elec.fill._xscale > 0) {
if (gui.elec._visible == true) {
gui.elec.fill._xscale = gui.elec.fill._xscale - 4;
}
} else {
j = 0;
while (j < 7) {
b = this["fly" + j];
removeMovieClip(b.shopbuff);
j++;
}
gui.elec.fill._xscale = 140;
gui.elec._visible = false;
inv = false;
elecjest = false;
shopinv = false;
}
} else {
elecjest = true;
gui.elec.fill._xscale = 140;
inv = true;
j = 0;
while (j < 7) {
b = this["fly" + j];
b.attachMovie("shopbuff", "shopbuff", b.getNextHighestDepth());
switch (size) {
case 30 :
b.shopbuff._width = 39;
b.shopbuff._height = 39;
break;
case 26 :
b.shopbuff._width = 37;
b.shopbuff._height = 37;
break;
case 24 :
b.shopbuff._width = 35;
b.shopbuff._height = 35;
break;
case 22 :
b.shopbuff._width = 33;
b.shopbuff._height = 33;
}
j++;
}
gui.elec._visible = true;
}
}
}
function money_fly(co, ile, speed1, speed2) {
if (paused == true) {
co.stop();
co.bling.stop();
} else {
co.play();
co.bling.play();
if (bossfight == true) {
if (!(pobity === true)) {
co.stop();
}
}
if (co._x < -100) {
removeMovieClip(co);
}
if (co.bling == undefined) {
j = 0;
while (j < 7) {
g = this["fly" + j];
if ((!(g === undefined)) && (!(g.dead === true))) {
if (Math.abs(g._x - co._x) < (((g.baza._width - 1) / 2) + (co._width / 2))) {
if (Math.abs(g._y - co._y) < (((g.baza._height - 1) / 2) + (co._height / 2))) {
if (!(blingdzwiekjest === true)) {
_root.blingcoin.start(0, 1);
blingdzwiekjest = true;
}
this.money = this.money + ile;
co.baza.play();
co.stop();
co.attachMovie("bling", "bling", getNextHighestDepth());
co.bling._yscale = 130;
co.bling._xscale = 130;
}
}
}
j++;
}
}
if (!(co.speed === 0)) {
if ((co._y > 77) && (co._y < 355)) {
if (co.speed > 0.5) {
if (co.jest100 == true) {
co.speed = co.speed / speed1;
} else {
co.speed = co.speed / speed2;
}
} else {
co.speed = 0;
}
} else {
co.speed = 0;
}
co.ex = co.ex + Math.round(formula);
co.radius = co.radius + co.speed;
co._x = co.ex + (Math.cos(co.angle) * co.radius);
co._y = co.ey + (Math.sin(co.angle) * co.radius);
} else {
co._x = co._x + Math.round(formula);
}
if (przyciagac == true) {
var _local6 = co._x - kursor._x;
var _local5 = co._y - kursor._y;
var _local7 = Math.sqrt((_local6 * _local6) + (_local5 * _local5));
if (_local7 < 200) {
co.rotation = (Math.atan2(_local6, _local5) / Math.PI) * -180;
co._x = co._x + (5 * Math.sin((co.rotation * Math.PI) / 180));
co._y = co._y + (-5 * Math.cos((co.rotation * Math.PI) / 180));
}
}
}
}
function money_control() {
if (bossfight) {
formula = 0;
}
i = 0;
while (i < 7) {
a = this["fly" + i];
if (paused == true) {
a.strzelanie.stop();
a.stop();
} else {
if (a.dead == true) {
a.play();
}
a.strzelanie.play();
}
i++;
}
blingdzwiekjest = false;
i = 0;
while (i < 80) {
coin = this["coin" + i];
worek = this["worek" + i];
wor = this["wor" + i];
if (!(coin === undefined)) {
money_fly(coin, 1, 1.2, 1.4);
}
if (!(worek === undefined)) {
money_fly(worek, 10, 1.5, 1.6);
}
if (!(wor === undefined)) {
money_fly(wor, 100, 1, 1.8);
}
i++;
}
if (gui.dmgsign._visible == false) {
gui.elec._x = 5;
} else {
gui.elec._x = 160;
}
if (money >= 99999) {
money = 99999 /* 0x01869F */;
}
if (exp >= 99999) {
exp = 99999 /* 0x01869F */;
}
if (money < 10000) {
if (money <= 9999) {
mone = "0" + money;
}
if (money <= 999) {
mone = "00" + money;
}
if (money <= 99) {
mone = "000" + money;
}
if (money <= 9) {
mone = "0000" + money;
}
gui.mon.text = mone;
} else {
gui.mon.text = money;
}
if (exp < 10000) {
if (exp <= 9999) {
expe = "0" + exp;
}
if (exp <= 999) {
expe = "00" + exp;
}
if (exp <= 99) {
expe = "000" + exp;
}
if (exp <= 9) {
expe = "0000" + exp;
}
gui.ex.text = expe;
} else {
gui.ex.text = Math.round(exp);
}
}
function kasa() {
gui.exp_bar.fill._yscale = (etime / etimer) * 100;
etime--;
if (etime < 0) {
i = 0;
while (i < 7) {
a = pleiades[i];
if (a == 1) {
exp = exp + expkasa;
}
i++;
}
etime = etimer;
}
}
function saveroot() {
if (!(zapisal === true)) {
dietab[level - 1] = ftab - staryftab;
entab[level - 1] = etab - staryetab;
}
dietaba = new Array();
i = 0;
while (i < dietab.length) {
dietaba.push(dietab[i]);
i++;
}
user.data.dietab = dietaba;
entaba = new Array();
i = 0;
while (i < entab.length) {
entaba.push(entab[i]);
i++;
}
user.data.entab = entaba;
_root.mesmerbron.stop();
_root.deszcz.stop();
user.flush();
_root.muzykatlo.stop();
_root.dajboss = false;
_root.muzykaboss.stop();
delete _root.muzykaboss;
a = _root.sounds["brond" + _root.dzwieki];
harp = new Sound(a);
harp.stop();
a = _root.sounds["min" + _root.dzwieki];
rot = new Sound(a);
rot.stop();
clearInterval(interval);
if (user.data.level > 1) {
_root.fly0_ile = user.data.fly0_ile;
_root.fly1_ile = user.data.fly1_ile;
_root.fly2_ile = user.data.fly2_ile;
_root.fly3_ile = user.data.fly3_ile;
_root.fly4_ile = user.data.fly4_ile;
_root.fly5_ile = user.data.fly5_ile;
_root.fly6_ile = user.data.fly6_ile;
_root.timetab = user.data.timetab;
_root.lvltab = user.data.lvltab;
_root.weps = user.data.weps;
_root.ile_inv = user.data.ile_inv;
_root.size = user.data.size;
_root.speed = user.data.speed;
_root.money = user.data.money;
_root.exp = user.data.exp;
_root.which = user.data.which;
_root.stara = user.data.stara;
_root.level = level;
_root.pleiades = user.data.pleiades;
_root.osiagi = user.data.osiagi;
_root.kaf = 0;
_root.invjest = user.data.invjest;
_root.kills = user.data.kills;
} else {
_root.nowagra = true;
_root.stara = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.osiagi = new Array(0, 0, 0, 0, 0, 0, 0);
_root.timetab = new Array(699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699);
_root.lvltab = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
username = user.data.username;
user.clear();
user.data.username = username;
user.data.userzmiana = true;
user.flush();
_root.oriondist = 999;
_root.weps = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ile_inv = 1;
_root.size = 30;
_root.speed = -2;
_root.pleiades = new Array(1, 1, 1, 1, 1, 1, 1);
_root.exp = 0;
_root.money = 0;
_root.kaf = 0;
_root.level = 1;
_root.kills = 0;
_root.which = 1;
_root.invjest = true;
}
}
function pause_control() {
if (paused == false) {
if ((!(level === 15)) || (!(pobity === true))) {
if (Key.isDown(13)) {
if (!(entero === true)) {
paused = true;
Playtomic.Log.LevelCounterMetric("Pauses", level);
attachMovie("pauza", "pauza", getNextHighestDepth());
pauza._x = 221;
pauza._y = 90;
_root.btnclick.start(0, 1);
pauzed = true;
entero = true;
}
} else {
entero = false;
}
if (Key.isDown(80)) {
if (!(pentero === true)) {
paused = true;
Playtomic.Log.LevelCounterMetric("Pauses", level);
attachMovie("pauza", "pauza", getNextHighestDepth());
pauza._x = 221;
pauza._y = 90;
_root.btnclick.start(0, 1);
pauzed = true;
pentero = true;
}
} else {
pentero = false;
}
}
} else {
if (Key.isDown(80)) {
if (!(pentero === true)) {
if (!(pauza === undefined)) {
pauzed = false;
_root.btnclick.start(0, 1);
paused = false;
removeMovieClip(pauza);
pentero = true;
}
}
} else {
pentero = false;
}
if (Key.isDown(13)) {
if (!(entero === true)) {
if (!(pauza === undefined)) {
pauzed = false;
_root.btnclick.start(0, 1);
paused = false;
removeMovieClip(pauza);
entero = true;
}
}
} else {
entero = false;
}
pauza.resume_btn.onRollOver = function () {
if (!(lidze === true)) {
_root.btnover.start(0, 1);
}
};
pauza.more_games_btn.onRollOver = function () {
if (!(lidze === true)) {
_root.btnover.start(0, 1);
}
};
pauza.pleiades1_btn.onRollOver = function () {
if (!(lidze === true)) {
_root.btnover.start(0, 1);
}
};
pauza.pleiades1_btn.onRelease = function () {
_root.btnclick.start(0, 1);
getURL ("http://www.bigdino.com/clickreg.php?id=182&link=pausedplayp1", _blank);
};
pauza.more_games_btn.onRelease = function () {
_root.btnclick.start(0, 1);
getURL ("http://www.bigdino.com/clickreg.php?id=182&link=paused", _blank);
};
pauza.resume_btn.onRelease = function () {
_root.btnclick.start(0, 1);
pauzed = false;
paused = false;
removeMovieClip(pauza);
};
shop.restart_btn.onRollOver = function () {
if (!(lidze === true)) {
_root.btnover.start(0, 1);
}
};
shop.restart_btn.onRelease = function () {
if (!(lidze === true)) {
lidzie = true;
_root.shopmusic.stop();
_root.btnclick.start(0, 1);
Playtomic.Log.LevelCounterMetric("Restarts", level);
_root.elecsound.stop();
saveroot();
_root.orionsound.stop();
_root.attachMovie("gra", "gra", _root.getNextHighestDepth());
_root.attachMovie("loading", "loading", _root.getNextHighestDepth());
removeMovieClip(this._parent._parent);
}
};
shop.menu_btn.onRollOver = function () {
if (!(lidze === true)) {
_root.btnover.start(0, 1);
}
};
shop.menu_btn.onRelease = function () {
if (!(lidze === true)) {
_root.shopmusic.stop();
lidzie = true;
_root.elecsound.stop();
_root.orionsound.stop();
_root.btnclick.start(0, 1);
saveroot();
_root.muzykatlo.stop();
delete _root.muzykatlo;
_root.music = undefined;
_root.muzykatlo = new Sound(_root.sounds.bg);
_root.muzykatlo.attachSound("zima_menu_sound.wav");
_root.muzykatlo.start(0, 99999999);
_root.attachMovie("menu_s", "menu", _root.getNextHighestDepth());
_root.attachMovie("loading", "loading", _root.getNextHighestDepth());
_root.nastawia = true;
_root.wgore = true;
_root.menu.idzie = false;
removeMovieClip(this._parent._parent);
}
};
pauza.restart_btn.onRollOver = function () {
if (!(lidze === true)) {
_root.btnover.start(0, 1);
}
};
pauza.restart_btn.onRelease = function () {
if (!(lidze === true)) {
lidzie = true;
_root.btnclick.start(0, 1);
saveroot();
_root.orionsound.stop();
Playtomic.Log.LevelCounterMetric("Restarts", level);
_root.elecsound.stop();
_root.attachMovie("gra", "gra", _root.getNextHighestDepth());
_root.attachMovie("loading", "loading", _root.getNextHighestDepth());
removeMovieClip(this._parent._parent);
}
};
pauza.menu_btn.onRollOver = function () {
if (!(lidze === true)) {
_root.btnover.start(0, 1);
}
};
pauza.menu_btn.onRelease = function () {
if (!(lidze === true)) {
lidzie = true;
saveroot();
_root.muzykatlo.stop();
delete _root.muzykatlo;
_root.music = undefined;
_root.orionsound.stop();
_root.muzykatlo = new Sound(_root.sounds.bg);
_root.elecsound.stop();
_root.muzykatlo.attachSound("zima_menu_sound.wav");
_root.muzykatlo.start(0, 99999999);
_root.btnclick.start(0, 1);
_root.attachMovie("menu_s", "menu", _root.getNextHighestDepth());
_root.menu.idzie = false;
_root.attachMovie("loading", "loading", _root.getNextHighestDepth());
_root.nastawia = true;
_root.wgore = true;
removeMovieClip(this._parent._parent);
}
};
}
}
function addtime() {
if (stime == -1) {
gui.mtime.text = 0;
gui.stime.text = "00";
}
if ((!(paused === true)) && (!(nowylevel === true))) {
stime++;
if (stime > 59) {
if (mtime < 9) {
mtime++;
stime = 0;
} else {
stime = 60;
}
}
if (mtime > 9) {
mtime = 9;
}
if (stime < 10) {
mo = "0" + stime;
} else {
mo = stime;
}
gui.mtime.text = mtime;
gui.stime.text = mo;
}
}
function dajwelcome() {
if (!(welcomejest === true)) {
attachMovie("click", "click", getNextHighestDepth());
attachMovie("welcome", "welcome", getNextHighestDepth());
welcome._x = 350;
welcome._y = 225;
welcomejest = true;
}
if (!(welcome === undefined)) {
welcome.onRollOver = function () {
_root.btnover.start(0, 1);
};
welcome.onRelease = function () {
Playtomic.Log.LevelCounterMetric("Welcomes", level);
shopinv = true;
_root.shopmusic.stop();
_root.btnclick.start(0, 1);
_root.dajboss = false;
staremusic = _root.music;
_root.muzykaboss.stop();
if (level < 14) {
_root.music = "zima_menu_sound.wav";
}
if (level < 11) {
_root.music = "jaskinia_bgsound.wav";
}
if (level < 7) {
_root.music = "jesien_sound.wav";
}
if (level < 4) {
_root.music = "lato_sound.wav";
}
if (level > 13) {
_root.music = "pustynia_sound.wav";
}
if (!(staremusic === _root.music)) {
_root.muzykatlo.stop();
delete _root.muzykatlo;
_root.muzykatlo = new Sound(_root.sounds.bg);
_root.muzykatlo.attachSound(_root.music);
_root.muzykatlo.start(0, 99999999);
} else {
_root.muzykatlo.start(0, 99999999);
}
_root.nastawia = true;
_root.wgore = true;
welctimer = 5;
welcomebyc = false;
paused = false;
gui.chapter_napis.play();
welcomejest = false;
removeMovieClip(click);
removeMovieClip(welcome);
};
click.onRelease = function () {
Playtomic.Log.LevelCounterMetric("Welcomes", level);
shopinv = true;
_root.shopmusic.stop();
_root.btnclick.start(0, 1);
_root.dajboss = false;
staremusic = _root.music;
_root.muzykaboss.stop();
if (level < 14) {
_root.music = "zima_menu_sound.wav";
}
if (level < 11) {
_root.music = "jaskinia_bgsound.wav";
}
if (level < 7) {
_root.music = "jesien_sound.wav";
}
if (level < 4) {
_root.music = "lato_sound.wav";
}
if (level > 13) {
_root.music = "pustynia_sound.wav";
}
if (!(staremusic === _root.music)) {
_root.muzykatlo.stop();
delete _root.muzykatlo;
_root.muzykatlo = new Sound(_root.sounds.bg);
_root.muzykatlo.attachSound(_root.music);
_root.muzykatlo.start(0, 99999999);
} else {
_root.muzykatlo.start(0, 99999999);
}
_root.nastawia = true;
_root.wgore = true;
welctimer = 5;
welcomebyc = false;
paused = false;
gui.chapter_napis.play();
welcomejest = false;
removeMovieClip(click);
removeMovieClip(welcome);
};
}
}
user = SharedObject.getLocal("gwiazdyy");
var trudnosc = 6.5;
var paused = true;
var lag = 8;
var inv_speed = 2.2;
var inv = false;
var pociski = 0;
var wpociski = 0;
var wrogowie = 0;
var shop_max = 110;
var shop_timer = shop_max;
var etimer = 300;
var etime = etimer;
var worki = 0;
var gwiazdy = 0;
var boxy = 0;
var expkasa = 3;
var bonusreload = 0;
var dmgtimer = 0;
var bonusdamage = 1;
var bonusrest = 0;
var stime = 0;
var mtime = 0;
var boxcount = 0;
var boxspeed = 6;
var boxczek = 96;
var enviroczek = 32;
var envirospeed = 8;
var ostrz = 0;
var ilepociskow = 30;
var formula = 0;
var roznica = 10;
var krople = 10;
var kropla_spadek = 1.06;
var dmgspeed = 1;
var pioruntimermax = 72;
if (!(user.data.fly0_ile === undefined)) {
fly0_ile = user.data.fly0_ile;
fly1_ile = user.data.fly1_ile;
fly2_ile = user.data.fly2_ile;
fly3_ile = user.data.fly3_ile;
fly4_ile = user.data.fly4_ile;
fly5_ile = user.data.fly5_ile;
fly6_ile = user.data.fly6_ile;
} else {
fly0_ile = 1;
fly1_ile = 1;
fly2_ile = 1;
fly3_ile = 1;
fly4_ile = 1;
fly5_ile = 1;
fly6_ile = 1;
}
kills = _root.kills;
kills_new = kills;
stara = _root.stara;
osiagi = _root.osiagi;
timetab = _root.timetab;
lvltab = _root.lvltab;
weps = _root.weps;
ile_inv = _root.ile_inv;
size = _root.size;
speed = _root.speed;
money = _root.money;
dietab = _root.dietab;
entab = _root.entab;
exp = _root.exp;
pleiades = _root.pleiades;
invjest = _root.invjest;
which = _root.which;
level = _root.level;
staryftab = dietab[level - 1];
ftab = dietab[level - 1];
staryetab = entab[level - 1];
etab = entab[level - 1];
_root.czapki = user.data.czapki;
czapki = user.data.czapki;
var starlevel = stara[level - 1];
oriondist = _root.oriondist;
nowagra = _root.nowagra;
orionspeed = 1 + ((level - 1) / 6);
kaf = _root.kaf;
z = "niebo" + which;
y = "tlo" + level;
ab = ("tut" + level) + kaf;
if (level == 1) {
attachMovie(ab, "tut1", 99993);
}
if (level == 2) {
attachMovie(ab, "tut1", 99993);
}
attachMovie(z, "niebo", 100);
attachMovie(y, "tlo2", 103);
attachMovie("gui", "gui", 99992);
realyscale = gui.bosshp.fill._yscale;
attachMovie("kursor", "kursor", 99990);
x = ("ob" + level) + kaf;
attachMovie(x, "p", 9994);
kursor._x = 350;
kursor._y = 225;
if (invjest == false) {
gui.inv_krzyz._visible = true;
gui.inv_bar.fill._xscale = 0;
} else {
gui.inv_krzyz._visible = false;
}
i = 0;
while (i < 7) {
if (pleiades[i] == 1) {
attachMovie("fly" + i, "fly" + i, 9900 + i);
a = this["fly" + i];
if (i < 3) {
a.radius = 20;
a.sped = 0.05;
} else {
a.radius = 50;
a.sped = -0.05;
}
fly0.angle = 0;
fly1.angle = 2;
fly2.angle = 4;
fly3.angle = 4.5;
fly4.angle = 3;
fly5.angle = 1.5;
fly6.angle = 0;
if (nowagra == true) {
a.heightminus = 15;
a.widthminus = 13.7;
a.wep = 1;
a.reloading = 100;
a.total_zmeczenie = 100;
a.bulletspeed = 15;
a.reload_speed = 1;
a.damage = 2;
a.zmeczenie = 50;
cross = gui["krzyz" + i];
cross._visible = false;
} else {
cross = gui["krzyz" + i];
cross._visible = false;
a.heightminus = 15;
a.widthminus = 13.7;
if (size == 26) {
if (i < 3) {
a.radius = 16;
a.sped = 0.042;
} else {
a.radius = 42;
a.sped = -0.042;
}
a.heightminus = 14;
a.widthminus = 13;
a._height = 28;
a._width = 26;
}
if (size == 24) {
if (i < 3) {
a.radius = 14;
a.sped = 0.036;
} else {
a.radius = 37;
a.sped = -0.036;
}
a.heightminus = 13;
a.widthminus = 12;
a._height = 26;
a._width = 24;
}
if (size == 22) {
if (i < 3) {
a.radius = 12.5;
a.sped = 0.02;
} else {
a.radius = 33;
a.sped = -0.02;
}
a.heightminus = 12;
a.widthminus = 11;
a._height = 24;
a._width = 22;
}
if ((weps[(i * 7) + 5] == 9) && (weps[(i * 7) + 6] == 9)) {
a.bonusjest = true;
}
}
} else {
cross = gui["krzyz" + i];
cross._visible = true;
reload = gui["reload" + i];
strzel = gui["strzel" + i];
reload.fill._visible = false;
strzel.fill._visible = false;
}
i++;
}
pleiadesstart = new Array();
i = 0;
while (i < pleiades.length) {
pleiadesstart.push(pleiadesstart[i]);
i++;
}
i = 0;
while (i < 7) {
a = this["fly" + i];
a.spedreduced = false;
i++;
}
electimer = 0;
gui.distance.text = oriondist;
gui.dmgsign._visible = false;
gui.elec._visible = false;
i = 0;
while (i < 7) {
a = this["fly" + i];
if (!(a === undefined)) {
a._x = kursor._x + (Math.cos(a.angle) * a.radius);
a._y = kursor._y + (Math.sin(a.angle) * a.radius);
}
i++;
}
save();
clearInterval(interval);
interval = setInterval(addtime, 1000);
onEnterFrame = function () {
gui.logo.onRelease = function () {
Playtomic.Link.Open("http://www.bigdino.com/clickreg.php?id=182&link=gui", "gui", "Sponsor");
};
ach_control();
pause_control();
money_control();
pi = this["piorun" + ktorep];
if (!(pi === undefined)) {
if (paused == true) {
pi.stop();
} else {
pi.play();
}
}
if (paused == false) {
if (((((((pleiades[0] == 0) && (pleiades[1] == 0)) && (pleiades[2] == 0)) && (pleiades[3] == 0)) && (pleiades[4] == 0)) && (pleiades[5] == 0)) && (pleiades[6] == 0)) {
paused = true;
pauzed = true;
attachMovie("przegrana", "przegrana", getNextHighestDepth());
przegrana._x = 150;
przegrana._y = 220 - (przegrana._height / 2);
}
kasa();
kills_control();
shop_control();
fly_control();
level_control();
formula = (((-_xmouse) + 100) / 60) - speed;
if (formula > 0) {
formula = 0;
}
if (formula < -8) {
formula = -8;
}
if (inv_tarcz == true) {
if (gui.inv_krzyz._visible == true) {
if (gui.inv_bar.fill._width >= inv_speed) {
gui.inv_bar.fill._width = gui.inv_bar.fill._width - inv_speed;
} else {
inv_tarcz = false;
}
} else {
inv_tarcz = false;
}
}
if (Key.isDown(32)) {
shooting = true;
} else {
shooting = false;
}
if (welctimer > -5) {
welctimer--;
}
onMouseDown = function () {
if ((level > 1) || (user.data.level > 1)) {
if (gui.inv_krzyz._visible == false) {
if (!(happy === true)) {
if (!(welcomejest === true)) {
if (welctimer <= 0) {
if (((((!(shopping === true)) && (!(inv === true))) && (!pauza.hitTest(_xmouse, _ymouse, true))) && (!shop.hitTest(_xmouse, _ymouse, true))) && (!(pauzed === true))) {
if ((!tlo1.a22.hitTest(_xmouse, _ymouse, true)) && (!tlo2.a22.hitTest(_xmouse, _ymouse, true))) {
inv_tarcz = true;
gui.inv_krzyz._visible = true;
}
}
}
}
}
}
}
};
} else {
if (level == 15) {
gui.distance.text = ":D";
}
przegrana.more_games_btn.onRollOver = function () {
if (!(lidze === true)) {
_root.btnover.start(0, 1);
}
};
przegrana.pleiades1_btn.onRollOver = function () {
if (!(lidze === true)) {
_root.btnover.start(0, 1);
}
};
przegrana.pleiades1_btn.onRelease = function () {
_root.btnclick.start(0, 1);
getURL ("http://www.bigdino.com/clickreg.php?id=182&link=failedplayP1", _blank);
};
przegrana.more_games_btn.onRelease = function () {
_root.btnclick.start(0, 1);
getURL ("http://www.bigdino.com/clickreg.php?id=182&link=failedMoreGames", _blank);
};
przegrana.restart_btn.onRollOver = function () {
_root.btnover.start(0, 1);
};
przegrana.menu_btn.onRollOver = function () {
_root.btnover.start(0, 1);
};
przegrana.restart_btn.onRelease = function () {
_root.elecsound.stop();
_root.btnclick.start(0, 1);
Playtomic.Log.LevelCounterMetric("Restarts", level);
saveroot();
_root.attachMovie("gra", "gra", _root.getNextHighestDepth());
_root.afterintro = true;
_root.orionsound.stop();
_root.ready = true;
removeMovieClip(this._parent._parent);
};
przegrana.menu_btn.onRelease = function () {
_root.btnclick.start(0, 1);
_root.elecsound.stop();
saveroot();
_root.music = undefined;
_root.attachMovie("menu_s", "menu", _root.getNextHighestDepth());
_root.muzykatlo.stop();
delete _root.muzykatlo;
_root.muzykatlo = new Sound(_root.sounds.bg);
_root.orionsound.stop();
_root.muzykatlo.attachSound("zima_menu_sound.wav");
_root.muzykatlo.start(0, 99999999);
_root.afterintro = false;
_root.nastawia = true;
_root.wgore = true;
_root.menu.idzie = false;
_root.ready = false;
removeMovieClip(this._parent._parent);
};
if (!(pauzed === true)) {
if (!(user.data.level === undefined)) {
if (user.data.level > 1) {
if (!(welcomebyc === true)) {
shop_av = true;
}
}
}
if (_root.ready == true) {
przyciski = true;
}
if (shop_av == true) {
if (!(shopping === true)) {
paused = true;
shopping = true;
attachMovie("shop", "shop", getNextHighestDepth());
shop._x = 55;
shop._y = 55;
}
} else {
if (!(welcomejest === true)) {
attachMovie("click", "click", getNextHighestDepth());
attachMovie("welcome", "welcome", getNextHighestDepth());
welcome._x = 350;
welcome._y = 225;
welcomejest = true;
}
if (!(welcome === undefined)) {
if (_root.ready == true) {
welcome.onRollOver = function () {
_root.btnover.start(0, 1);
};
click.onRelease = function () {
Playtomic.Log.LevelCounterMetric("Welcomes", level);
_root.btnclick.start(0, 1);
staremusic = _root.music;
_root.dajboss = false;
_root.muzykaboss.stop();
if (level < 14) {
_root.music = "zima_menu_sound.wav";
}
if (level < 11) {
_root.music = "jaskinia_bgsound.wav";
}
if (level < 7) {
_root.music = "jesien_sound.wav";
}
if (level < 4) {
_root.music = "lato_sound.wav";
}
if (level > 13) {
_root.music = "pustynia_sound.wav";
}
if (!(staremusic === _root.music)) {
_root.muzykatlo.stop();
delete _root.muzykatlo;
_root.muzykatlo = new Sound(_root.sounds.bg);
_root.muzykatlo.attachSound(_root.music);
_root.muzykatlo.start(0, 99999999);
} else {
_root.muzykatlo.start(0, 99999999);
}
_root.nastawia = true;
_root.wgore = true;
welctimer = 5;
welcomebyc = false;
paused = false;
welcomejest = false;
_root.ready = false;
removeMovieClip(click);
removeMovieClip(welcome);
};
welcome.onRelease = function () {
Playtomic.Log.LevelCounterMetric("Welcomes", level);
_root.btnclick.start(0, 1);
staremusic = _root.music;
_root.dajboss = false;
_root.muzykaboss.stop();
if (level < 14) {
_root.music = "zima_menu_sound.wav";
}
if (level < 11) {
_root.music = "jaskinia_bgsound.wav";
}
if (level < 7) {
_root.music = "jesien_sound.wav";
}
if (level < 4) {
_root.music = "lato_sound.wav";
}
if (level > 13) {
_root.music = "pustynia_sound.wav";
}
if (!(staremusic === _root.music)) {
_root.muzykatlo.stop();
delete _root.muzykatlo;
_root.muzykatlo = new Sound(_root.sounds.bg);
_root.muzykatlo.attachSound(_root.music);
_root.muzykatlo.start(0, 99999999);
} else {
_root.muzykatlo.start(0, 99999999);
}
_root.nastawia = true;
_root.wgore = true;
welctimer = 5;
welcomebyc = false;
paused = false;
welcomejest = false;
_root.ready = false;
removeMovieClip(click);
removeMovieClip(welcome);
};
}
}
}
}
}
if (welcomebyc) {
dajwelcome();
}
};
Symbol 562 MovieClip Frame 1
stop();
onEnterFrame = function () {
tween.lvlname.text = _root.levelname[_root.gra.level - 1];
tween.lvl.text = _root.gra.level;
};
Symbol 619 MovieClip [gbox] Frame 1
this.cacheAsBitmap = true;
Symbol 619 MovieClip [gbox] Frame 2
this.cacheAsBitmap = true;
Symbol 619 MovieClip [gbox] Frame 3
this.cacheAsBitmap = true;
Symbol 619 MovieClip [gbox] Frame 4
this.cacheAsBitmap = true;
Symbol 619 MovieClip [gbox] Frame 5
this.cacheAsBitmap = true;
Symbol 619 MovieClip [gbox] Frame 6
this.cacheAsBitmap = true;
Symbol 619 MovieClip [gbox] Frame 7
this.cacheAsBitmap = true;
Symbol 636 MovieClip Frame 1
stop();
tween.lvlname.text = _root.levelname[_root.gra.level];
tween.lvl.text = _root.gra.level + 1;
Symbol 646 MovieClip Frame 1
stop();
Symbol 647 MovieClip [loading] Frame 1
realxscale = bar.fill._xscale;
bar.fill._xscale = 0;
onEnterFrame = function () {
if (this._alpha > 0) {
if (bar.fill._xscale >= realxscale) {
wraca = true;
} else {
bar.fill._xscale = bar.fill._xscale + (realxscale / 16);
}
}
if (wraca) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
_root.ready = true;
removeMovieClip(this);
}
} else {
_root.ready = false;
}
};
Symbol 658 MovieClip Frame 1
if (!(b === true)) {
a = random(3);
gotoAndPlay(a + 1);
b = true;
}
stop();
Symbol 658 MovieClip Frame 2
stop();
Symbol 658 MovieClip Frame 3
stop();
Symbol 659 MovieClip [ownednapis] Frame 1
stop();
rotation = -180;
timer = 0;
speed = 5.7;
this._xscale = 1;
this._yscale = 1;
_root.ownedsound.start(0, 1);
onEnterFrame = function () {
if (rotation < 0) {
this._rotation = rotation;
rotation = rotation + speed;
this._xscale = this._xscale + 4;
this._yscale = this._yscale + 4;
} else {
this._rotation = 0;
timer++;
}
if (timer > 80) {
_parent.attached = false;
removeMovieClip(this);
}
};
Symbol 686 MovieClip Frame 1
stop();
Symbol 687 MovieClip [piorun] Frame 1
baza.gotoAndStop(random(2) + 1);
Symbol 687 MovieClip [piorun] Frame 5
removeMovieClip(this);
Symbol 696 MovieClip [strobelight] Frame 4
_parent.dajpioruny = true;
removeMovieClip(this);
Symbol 737 MovieClip [wybor] Frame 1
function callback(country, response) {
if (response.Success) {
krajstring = String(country.Code);
kraj = krajstring.toLowerCase();
}
}
function ListComplete(scores, numscores, response) {
if (response.Success) {
i = 0;
while (i < 100) {
wyni = leaderboard.holder["mc_wynik" + i];
if (!(wyni === undefined)) {
removeMovieClip(wyni);
}
i++;
}
pozycja = "--";
datatext = "Not in Best 99";
wyniki = scores;
var i = 0;
while (i < scores.length) {
var _local1 = scores[i];
stringname = String(_local1.Name);
namename = String(user.data.username);
stringcountry = String(_local1.CustomData.kraj);
stringstring = String(kraj);
if (i == (scores.length - 1)) {
pok = _local1.Points;
ostwynik = parseInt(pok);
}
if ((stringname == namename) && (stringcountry == stringstring)) {
pozycja = i + 1;
datatext = _local1.RDate;
}
leaderboard.holder.attachMovie("mc_wynik", "mc_wynik" + i, leaderboard.holder.getNextHighestDepth());
wyni = leaderboard.holder["mc_wynik" + i];
wyni._y = 37 * i;
wyni.nametext.text = _local1.Name;
wyni.positiontext.text = i + 1;
wyni.datatext.text = _local1.RDate;
wyniko = _local1.Points;
wyniku = parseInt(wyniko);
if (wyniku >= 5999) {
wyni.timetext.text = "99:99";
} else {
if ((wyniku - (60 * Math.floor(wyniku / 60))) < 10) {
wyniksec = "0" + (wyniku - (60 * Math.floor(wyniku / 60)));
} else {
wyniksec = wyniku - (60 * Math.floor(wyniku / 60));
}
wyni.timetext.text = (Math.floor(wyniku / 60) + ":") + wyniksec;
}
kra = stringcountry + ".gif";
var _local3 = flash.display.BitmapData.loadBitmap(kra);
wyni.flagholder.attachBitmap(_local3, 0);
wyni.flagholder._width = 30;
wyni.flagholder._height = 20;
wyni.cacheAsBitmap = true;
i++;
}
leaderboard.positiontext.text = pozycja;
leaderboard.datatext.text = datatext;
}
}
function ktor() {
switch (ktory) {
case 0 :
attachMovie("ziemi1", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 1 :
attachMovie("ziemi1", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 2 :
attachMovie("ziemi1", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 3 :
attachMovie("ziemi2", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 4 :
attachMovie("ziemi2", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 5 :
attachMovie("ziemi2", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 6 :
attachMovie("ziemi3", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 7 :
attachMovie("ziemi3", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 8 :
attachMovie("ziemi3", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 9 :
attachMovie("ziemi3", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 10 :
attachMovie("ziemi34", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 11 :
attachMovie("ziemi4", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 12 :
attachMovie("ziemi45", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 13 :
attachMovie("ziemi5", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
return;
case 14 :
attachMovie("ziemi5", "z", getNextHighestDepth());
z._width = 705;
z._height = 10;
z._y = 254;
z._x = 0;
}
}
function checkday(ktory) {
przyc = leaderboard["btn_" + ktory];
if (!(ktory === ktoryprzyc)) {
przyc.onRelease = function () {
if (leaderboard.waiting._visible == false) {
leaderboard.levels = true;
leaderboard.total = false;
ktoryprzyc = ktory;
leaderboard.ever = false;
leaderboard.month = false;
leaderboard.today = true;
wyniki = undefined;
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "today";
leaderboard.nametext.text = user.data.username;
czasgracz = user.data.timetab[ktory - 1];
if ((czasgracz >= 5999) || ((ktory - 1) > ostatnil)) {
leaderboard.timetext.text = "99:99";
} else {
if ((user.data.timetab[ktory - 1] - (60 * Math.floor(user.data.timetab[ktory - 1] / 60))) < 10) {
wyniksec = "0" + (user.data.timetab[ktory - 1] - (60 * Math.floor(user.data.timetab[ktory - 1] / 60)));
} else {
wyniksec = user.data.timetab[ktory - 1] - (60 * Math.floor(user.data.timetab[ktory - 1] / 60));
}
leaderboard.timetext.text = String((Math.floor(user.data.timetab[ktory - 1] / 60) + ":") + wyniksec);
}
whatlist = "Time" + ktory;
kra = kraj + ".gif";
var _local1 = flash.display.BitmapData.loadBitmap(kra);
leaderboard.flagholder.attachBitmap(_local1, 0);
leaderboard.flagholder._width = 30;
leaderboard.flagholder._height = 20;
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
};
}
}
stop();
user = SharedObject.getLocal("gwiazdyy");
Playtomic.GeoIP.Lookup(callback);
this._alpha = 0;
timetab = user.data.timetab;
lvltab = user.data.lvltab;
stara = user.data.stara;
i = 0;
while (i < 7) {
pleiad = user.data.pleiades[i];
if (pleiad == 1) {
a = this["krzyz" + i];
a._visible = false;
}
i++;
}
money = user.data.money;
exp = user.data.exp;
timetab = user.data.timetab;
strz0._alpha = 30;
strz1._alpha = 30;
ttime = 0;
hints = new Array("Max out Celaeno's reloading and resting first.", "Merope's bonus reduces all Sisters' reload time", "Alcyone's bonus lengthens invulnerability (from shields and Electra's bonus).", "Electra's bonus gives you electric invulnerability at random times.", "Taygete's bonus gives double damage for Sisters' at random times.", "Celaeno's bonus gives additional experience per second.", "Sterope's bonus reduces all Sisters' rest time.", "Maia's bonus reduces all Sisters' rotation and coins are pulled.");
hintnr = random(8);
num.text = hintnr + 1;
hint.text = hints[hintnr];
sumas = 0;
ab = 0;
while (ab < user.data.stara.length) {
sumas = sumas + user.data.stara[ab];
ab++;
}
starcount.text = sumas;
dietab = user.data.dietab;
max = 0;
sumadied = 0;
i = 0;
while (i < 15) {
if (dietab[i] > max) {
max = dietab[i];
ktory = i;
}
if (dietab[i] > 999) {
dietab[i] = 999;
}
sumadied = sumadied + dietab[i];
i++;
}
if (sumadied > 999) {
sumadied = 999;
}
entab = user.data.entab;
sumakilled = 0;
i = 0;
while (i < 15) {
sumakilled = sumakilled + entab[i];
if (entab[i] > 999) {
entab[i] = 999;
}
i++;
}
if (sumakilled > 999) {
sumakilled = 999;
}
i = 0;
while (i < 15) {
if (!(znaleziony === true)) {
if (lvltab[i] == 0) {
ktorys = i - 1;
ostatnil = i - 2;
znaleziony = true;
ktory = i - 1;
}
if (lvltab[14] == 1) {
znaleziony = true;
ktory = 14;
ostatnil = 13;
ktorys = 14;
}
}
ttime = ttime + timetab[i];
i++;
}
if (stara[ktory] == 1) {
p0.gotoAndStop(2);
p1.gotoAndStop(1);
}
if (stara[ktory] == 2) {
p0.gotoAndStop(2);
p1.gotoAndStop(2);
}
if (stara[ktory] == 0) {
p0.gotoAndStop(1);
p1.gotoAndStop(1);
}
a = "tlo" + (ktory + 1);
niebo.attachMovie(a, "tlo", getNextHighestDepth());
niebo.tlo._width = 720;
niebo.tlo._height = 170;
niebo.tlo._y = -20;
niebo.tlo._x = 43;
ktor();
if (!(timetab[14] === 699)) {
tmtime = Math.floor(ttime / 60);
tstime = ttime - (Math.floor(ttime / 60) * 60);
} else {
tmtime = 99;
tstime = 99;
}
if (tstime < 10) {
tstim = "0" + tstime;
} else {
tstim = tstime;
}
if (tmtime < 10) {
tmtim = "0" + tmtime;
} else {
tmtim = tmtime;
}
tsti.text = tstim;
tmti.text = tmtim;
if (tmtim > 99) {
tmti.text = 99;
tsti.text = 99;
}
chap.text = ktory + 1;
name.text = _root.levelname[ktory];
if (timetab[ktory] >= 639) {
mtime = 9;
stime = 99;
} else {
mtime = Math.floor(timetab[ktory] / 60);
stime = timetab[ktory] - (60 * Math.floor(timetab[ktory] / 60));
}
if (money < 10000) {
if (money <= 9999) {
mone = "0" + money;
}
if (money <= 999) {
mone = "00" + money;
}
if (money <= 99) {
mone = "000" + money;
}
if (money <= 9) {
mone = "0000" + money;
}
mon.text = mone;
} else {
mon.text = money;
}
if (exp < 10000) {
if (exp <= 9999) {
expe = "0" + exp;
}
if (exp <= 999) {
expe = "00" + exp;
}
if (exp <= 99) {
expe = "000" + exp;
}
if (exp <= 9) {
expe = "0000" + exp;
}
ex.text = expe;
} else {
ex.text = Math.round(exp);
}
onEnterFrame = function () {
if (ktory == 0) {
strz0._alpha = 30;
} else {
strz0._alpha = 100;
}
if (ktory == ktorys) {
strz1._alpha = 30;
} else {
strz1._alpha = 100;
}
if ((!(idzie === true)) && (!(cofa === true))) {
strz0.onRollOver = function () {
if (leaderboard == undefined) {
_root.btnover.start(0, 1);
}
};
strz1.onRollOver = function () {
if (leaderboard == undefined) {
_root.btnover.start(0, 1);
}
};
strz0.onRelease = function () {
if (leaderboard == undefined) {
if (ktory > 0) {
_root.btnclick.start(0, 1);
ktory--;
staryhint = hintnr;
hintnr = random(8);
while (hintnr == staryhint) {
hintnr = (random(4) + random(4)) + random(2);
}
num.text = hintnr + 1;
hint.text = hints[hintnr];
removeMovieClip(tlo);
a = "tlo" + (ktory + 1);
removeMovieClip(niebo.tlo);
niebo.attachMovie(a, "tlo", getNextHighestDepth());
niebo.tlo._width = 720;
niebo.tlo._height = 170;
niebo.tlo._y = -20;
niebo.tlo._x = 43;
removeMovieClip(z);
ktor();
}
}
};
sponsor_btn.onRelease = function () {
if (leaderboard == undefined) {
_root.btnclick.start(0, 1);
getURL ("http://www.bigdino.com/clickreg.php?id=182&action=playgame&passvar=181&link=levels", _blank);
}
};
strz1.onRelease = function () {
if (leaderboard == undefined) {
if (ktory < ktorys) {
_root.btnclick.start(0, 1);
ktory++;
staryhint = hintnr;
hintnr = random(8);
while (hintnr == staryhint) {
hintnr = (random(3) + random(4)) + random(3);
}
num.text = hintnr + 1;
hint.text = hints[hintnr];
removeMovieClip(tlo);
a = "tlo" + (ktory + 1);
removeMovieClip(niebo.tlo);
niebo.attachMovie(a, "tlo", getNextHighestDepth());
niebo.tlo._width = 720;
niebo.tlo._height = 170;
niebo.tlo._y = -20;
niebo.tlo._x = 43;
removeMovieClip(z);
ktor();
}
}
};
}
if (stara[ktory] == 1) {
p0.gotoAndStop(2);
p1.gotoAndStop(1);
}
if (stara[ktory] == 2) {
p0.gotoAndStop(2);
p1.gotoAndStop(2);
}
if (stara[ktory] == 0) {
p0.gotoAndStop(1);
p1.gotoAndStop(1);
}
chap.text = ktory + 1;
name.text = _root.levelname[ktory];
if (timetab[ktory] >= 639) {
mtime = 9;
stime = 99;
} else {
mtime = Math.floor(timetab[ktory] / 60);
stime = timetab[ktory] - (60 * Math.floor(timetab[ktory] / 60));
}
if (stime < 10) {
stim = "0" + stime;
} else {
stim = stime;
}
sti.text = stim;
mti.text = mtime;
if (!(juznieidz === true)) {
this._alpha = this._alpha + 20;
}
if (this._alpha > 50) {
if (this._alpha > 100) {
this._alpha = 100;
juznieidz = true;
removeMovieClip(_root.menu);
}
if (!(wyniki === undefined)) {
if (!(kraj === undefined)) {
if (!(ktoryprzyc === 0)) {
if (!(user.data.skonczylgre === true)) {
if (ktoryprzyc <= (ostatnil + 1)) {
if ((czasgracz < ostwynik) || (wyniki.length < 99)) {
if (leaderboard.positiontext.text == "--") {
if (leaderboard.waiting.czas >= 2.5) {
if (!(sciagniete === true)) {
sciagniete = true;
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
}
dajwyniki = false;
} else {
dajwyniki = true;
sciagniete = false;
}
} else {
sciagniete = false;
dajwyniki = true;
}
} else {
dajwyniki = true;
sciagniete = false;
}
} else if ((czasgracz < ostwynik) || (wyniki.length < 99)) {
if (leaderboard.positiontext.text == "--") {
if (leaderboard.waiting.czas >= 2.5) {
if (!(sciagniete === true)) {
sciagniete = true;
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
}
dajwyniki = false;
} else {
dajwyniki = true;
sciagniete = false;
}
} else {
sciagniete = false;
dajwyniki = true;
}
} else if ((czasgracz < ostwynik) || (wyniki.length < 99)) {
if (leaderboard.positiontext.text == "--") {
if (leaderboard.waiting.czas >= 2.5) {
if (!(sciagniete === true)) {
sciagniete = true;
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
}
dajwyniki = false;
} else {
dajwyniki = true;
sciagniete = false;
}
} else {
sciagniete = false;
dajwyniki = true;
}
} else {
dajwyniki = false;
}
} else {
dajwyniki = false;
}
if (!(dajwyniki === true)) {
leaderboard.holder._y = -138;
leaderboard.waiting._visible = true;
leaderboard.waiting.play();
leaderboard.total_btn.gotoAndStop(1);
leaderboard.month_btn.gotoAndStop(1);
leaderboard.ever_btn.gotoAndStop(1);
leaderboard.today_btn.gotoAndStop(1);
leaderboard.btn_1.gotoAndStop(1);
leaderboard.btn_2.gotoAndStop(1);
leaderboard.btn_3.gotoAndStop(1);
leaderboard.btn_4.gotoAndStop(1);
leaderboard.btn_5.gotoAndStop(1);
leaderboard.btn_6.gotoAndStop(1);
leaderboard.btn_7.gotoAndStop(1);
leaderboard.btn_8.gotoAndStop(1);
leaderboard.scrollbar.bar._y = 60;
leaderboard.btn_9.gotoAndStop(1);
leaderboard.btn_10.gotoAndStop(1);
leaderboard.btn_11.gotoAndStop(1);
leaderboard.btn_12.gotoAndStop(1);
leaderboard.btn_13.gotoAndStop(1);
leaderboard.btn_14.gotoAndStop(1);
leaderboard.btn_15.gotoAndStop(1);
} else {
leaderboard.waiting._visible = false;
leaderboard.tryagain._visible = false;
leaderboard.waiting.czas = 0;
leaderboard.waiting.okreslone = false;
leaderboard.waiting.gotoAndStop(1);
}
leaderboard.close_btn.onRelease = function () {
ktoryprzyc = undefined;
submit._visible = true;
backbtn._visible = true;
start._visible = true;
strz0._visible = true;
strz1._visible = true;
wyniki = undefined;
dajwyniki = false;
removeMovieClip(_root.wybor.leaderboard);
};
leaderboard.scrollbar.bar.onRelease = function () {
};
leaderboard.scrollbar.do_btn.onRelease = function () {
};
leaderboard.scrollbar.up_btn.onRelease = function () {
};
if (leaderboard.waiting._visible == false) {
if ((((_xmouse > (leaderboard.scrollbar._x + leaderboard._x)) && (_xmouse < ((leaderboard.scrollbar._x + leaderboard._x) + leaderboard.scrollbar._width))) && (_ymouse > (leaderboard.scrollbar._y + leaderboard._y))) && (_ymouse < ((leaderboard.scrollbar._y + leaderboard._y) + leaderboard.scrollbar._height))) {
onMouseDown = function () {
leaderboard.scrollbar.bar._y = (_ymouse - leaderboard._y) - leaderboard.scrollbar._y;
};
}
if (leaderboard.scrollbar.bar.hitTest(_xmouse, _ymouse, true)) {
onMouseDown = function () {
movebar = true;
};
}
if ((((_xmouse < (leaderboard.scrollbar._x + leaderboard._x)) || (_xmouse > ((leaderboard.scrollbar._x + leaderboard._x) + leaderboard.scrollbar._width))) || (_ymouse < (leaderboard.scrollbar._y + leaderboard._y))) || (_ymouse > ((leaderboard.scrollbar._y + leaderboard._y) + leaderboard.scrollbar._height))) {
movebar = false;
}
if (leaderboard.scrollbar.up_btn.hitTest(_xmouse, _ymouse, true)) {
onMouseDown = function () {
moveup = true;
};
} else {
moveup = false;
}
if (moveup) {
leaderboard.scrollbar.bar._y = leaderboard.scrollbar.bar._y - 4;
}
if (leaderboard.scrollbar.do_btn.hitTest(_xmouse, _ymouse, true)) {
onMouseDown = function () {
movedo = true;
};
} else {
movedo = false;
}
if (movedo) {
leaderboard.scrollbar.bar._y = leaderboard.scrollbar.bar._y + 4;
}
onMouseUp = function () {
moveup = false;
movebar = false;
movedo = false;
};
if (movebar) {
leaderboard.scrollbar.bar._y = (_ymouse - leaderboard._y) - leaderboard.scrollbar._y;
}
if (leaderboard.scrollbar.bar._y < 60) {
leaderboard.scrollbar.bar._y = 60;
}
if (leaderboard.scrollbar.bar._y > 260) {
leaderboard.scrollbar.bar._y = 260;
}
if (leaderboard.holder._height > 300) {
leaderboard.holder._y = -138 - (((leaderboard.scrollbar.bar._y - 60) / 200) * (leaderboard.holder._height - 300));
if (leaderboard.holder._y < ((-138 - leaderboard.holder._height) + 300)) {
leaderboard.holder._y = (-138 - leaderboard.holder._height) + 300;
}
}
i = 1;
while (i < 16) {
checkday(i);
przyc = leaderboard["btn_" + i];
if (!(leaderboard.levels === true)) {
przyc.gotoAndStop(1);
} else if (!(i === ktoryprzyc)) {
przyc.gotoAndStop(1);
} else {
przyc.gotoAndStop(2);
}
if (!(i === ktoryprzyc)) {
if (przyc.hitTest(_xmouse, _ymouse, true)) {
przyc.gotoAndStop(2);
}
}
i++;
}
if (!(leaderboard.total === true)) {
if (!(movebar === true)) {
if (leaderboard.total_btn.hitTest(_xmouse, _ymouse, true)) {
if (_xmouse < (-273 + leaderboard._x)) {
leaderboard.total_btn.gotoAndStop(2);
}
} else {
leaderboard.total_btn.gotoAndStop(1);
}
}
leaderboard.total_btn.onRelease = function () {
if (leaderboard.waiting._visible == false) {
if (_xmouse < (-273 + leaderboard._x)) {
ktoryprzyc = 0;
leaderboard.levels = false;
leaderboard.total = true;
wyniki = undefined;
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "today";
whatlist = "TotalTime";
leaderboard.nametext.text = user.data.username;
if (ttime >= 5999) {
leaderboard.timetext.text = "99:99";
} else {
if ((ttime - (60 * Math.floor(ttime / 60))) < 10) {
wyniksec = "0" + (ttime - (60 * Math.floor(ttime / 60)));
} else {
wyniksec = ttime - (60 * Math.floor(ttime / 60));
}
leaderboard.timetext.text = String((Math.floor(ttime / 60) + ":") + wyniksec);
}
czasgracz = ttime;
kra = kraj + ".gif";
var _local1 = flash.display.BitmapData.loadBitmap(kra);
leaderboard.flagholder.attachBitmap(_local1, 0);
leaderboard.flagholder._width = 30;
leaderboard.flagholder._height = 20;
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
leaderboard.today = true;
}
}
};
} else {
leaderboard.total_btn.gotoAndStop(2);
}
if (!(leaderboard.today === true)) {
if (leaderboard.today_btn.hitTest(_xmouse, _ymouse, true)) {
leaderboard.today_btn.gotoAndStop(2);
} else {
leaderboard.today_btn.gotoAndStop(1);
}
leaderboard.today_btn.onRelease = function () {
if (leaderboard.waiting._visible == false) {
leaderboard.ever_btn.gotoAndStop(1);
leaderboard.month_btn.gotoAndStop(1);
leaderboard.ever = false;
leaderboard.month = false;
leaderboard.today = true;
wyniki = undefined;
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "today";
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
};
} else {
leaderboard.today_btn.gotoAndStop(2);
}
if (!(leaderboard.month === true)) {
if (leaderboard.month_btn.hitTest(_xmouse, _ymouse, true)) {
leaderboard.month_btn.gotoAndStop(2);
} else {
leaderboard.month_btn.gotoAndStop(1);
}
leaderboard.month_btn.onRelease = function () {
if (leaderboard.waiting._visible == false) {
leaderboard.ever_btn.gotoAndStop(1);
leaderboard.today_btn.gotoAndStop(1);
leaderboard.today = false;
leaderboard.ever = false;
leaderboard.month = true;
wyniki = undefined;
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "last30days";
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
};
} else {
leaderboard.month_btn.gotoAndStop(2);
}
if (!(leaderboard.ever === true)) {
if (leaderboard.ever_btn.hitTest(_xmouse, _ymouse, true)) {
leaderboard.ever_btn.gotoAndStop(2);
} else {
leaderboard.ever_btn.gotoAndStop(1);
}
leaderboard.ever_btn.onRelease = function () {
if (leaderboard.waiting._visible == false) {
leaderboard.month_btn.gotoAndStop(1);
leaderboard.today_btn.gotoAndStop(1);
leaderboard.today = false;
leaderboard.month = false;
leaderboard.ever = true;
wyniki = undefined;
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "alltime";
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
};
} else {
leaderboard.ever_btn.gotoAndStop(2);
}
}
if ((!(idzie === true)) && (!(cofa === true))) {
if (leaderboard == undefined) {
backbtn.onRelease = function () {
if (leaderboard == undefined) {
if ((!(idzie === true)) && (!(cofa === true))) {
removeMovieClip(_root.menu);
_root.attachMovie("menu_s", "menu", this._parent._parent.getNextHighestDepth());
this._parent.swapDepths(this._parent._parent.getNextHighestDepth());
this._parent._parent.menu.mready = false;
cofa = true;
}
}
};
start.onRollOver = function () {
if (leaderboard == undefined) {
_root.stoneclick.start(0, 1);
}
};
backbtn.onRollOver = function () {
if (leaderboard == undefined) {
_root.stoneclick.start(0, 1);
}
};
submit.onRollOver = function () {
if (leaderboard == undefined) {
_root.stoneclick.start(0, 1);
}
};
start.onRelease = function () {
if (leaderboard == undefined) {
if ((!(idzie === true)) && (!(cofa === true))) {
_root.btnclick.start(0, 1);
idzie = true;
_root.attachMovie("loading", "loading", _root.getNextHighestDepth());
_root.loading._alpha = 0;
}
}
};
submit.onRelease = function () {
if (leaderboard == undefined) {
if ((!(idzie === true)) && (!(cofa === true))) {
if (!(user.data.highscore === false)) {
_root.btnclick.start(0, 1);
var _local2 = new Playtomic.PlayerScore();
_local2.Name = user.data.username;
_local2.Points = ttime;
_local2.CustomData.kraj = kraj;
Playtomic.Leaderboards.Submit(_local2, "TotalTime", null, {highest:false});
if (!(user.data.skonczylgre === true)) {
i = 0;
while (i <= ostatnil) {
_local2 = new Playtomic.PlayerScore();
_local2.Name = user.data.username;
_local2.Points = user.data.timetab[i];
_local2.CustomData.kraj = kraj;
abs = "Time" + (i + 1);
Playtomic.Leaderboards.Submit(_local2, abs, null, {highest:false});
i++;
}
} else {
i = 0;
while (i < 15) {
_local2 = new Playtomic.PlayerScore();
_local2.Name = user.data.username;
_local2.Points = user.data.timetab[i];
_local2.CustomData.kraj = kraj;
abs = "Time" + (i + 1);
Playtomic.Leaderboards.Submit(_local2, abs, null, {highest:false});
i++;
}
}
option = new Object();
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "today";
whatlist = "TotalTime";
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
attachMovie("leaderboard", "leaderboard", getNextHighestDepth());
leaderboard._x = 350;
leaderboard._y = 250;
leaderboard.total = true;
leaderboard.today = true;
leaderboard.nametext.text = user.data.username;
czasgracz = ttime;
if (ttime >= 5999) {
leaderboard.timetext.text = "99:99";
} else {
if ((ttime - (60 * Math.floor(ttime / 60))) < 10) {
wyniksec = "0" + (ttime - (60 * Math.floor(ttime / 60)));
} else {
wyniksec = ttime - (60 * Math.floor(ttime / 60));
}
leaderboard.timetext.text = String((Math.floor(ttime / 60) + ":") + wyniksec);
}
kra = kraj + ".gif";
var _local4 = flash.display.BitmapData.loadBitmap(kra);
leaderboard.flagholder.attachBitmap(_local4, 0);
leaderboard.flagholder._width = 30;
leaderboard.flagholder._height = 20;
submit._visible = false;
backbtn._visible = false;
start._visible = false;
strz0._visible = false;
strz1._visible = false;
}
}
}
};
}
}
}
if (cofa) {
_root.deszcz.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 20;
} else {
removeMovieClip(this);
}
}
if (idzie) {
_root.deszcz.stop();
_root.nastawia = true;
_root.wdol = true;
if (!(loadingjuzidz === true)) {
_root.loading._alpha = _root.loading._alpha + 10;
}
if (_root.loading._alpha > 100) {
_root.loading._alpha = 100;
loadingjuzidz = true;
_root.level = ktory + 1;
_root.attachMovie("gra", "gra", _root.getNextHighestDepth());
_root.loading.swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
}
}
};
Symbol 795 MovieClip [koniec_menu] Frame 1
function callback(country, response) {
if (response.Success) {
krajstring = String(country.Code);
kraj = krajstring.toLowerCase();
}
}
function ListComplete(scores, numscores, response) {
if (response.Success) {
i = 0;
while (i < 100) {
wyni = leaderboard.holder["mc_wynik" + i];
if (!(wyni === undefined)) {
removeMovieClip(wyni);
}
i++;
}
pozycja = "--";
datatext = "Not in Best 99";
wyniki = scores;
var i = 0;
while (i < scores.length) {
var _local1 = scores[i];
stringname = String(_local1.Name);
namename = String(user.data.username);
stringcountry = String(_local1.CustomData.kraj);
stringstring = String(kraj);
if (i == (scores.length - 1)) {
pok = _local1.Points;
ostwynik = parseInt(pok);
}
if ((stringname == namename) && (stringcountry == stringstring)) {
pozycja = i + 1;
datatext = _local1.RDate;
}
leaderboard.holder.attachMovie("mc_wynik", "mc_wynik" + i, leaderboard.holder.getNextHighestDepth());
wyni = leaderboard.holder["mc_wynik" + i];
wyni._y = 37 * i;
wyni.nametext.text = _local1.Name;
wyni.positiontext.text = i + 1;
wyni.datatext.text = _local1.RDate;
wyniko = _local1.Points;
wyniku = parseInt(wyniko);
if (wyniku >= 5999) {
wyni.timetext.text = "99:99";
} else {
if ((wyniku - (60 * Math.floor(wyniku / 60))) < 10) {
wyniksec = "0" + (wyniku - (60 * Math.floor(wyniku / 60)));
} else {
wyniksec = wyniku - (60 * Math.floor(wyniku / 60));
}
wyni.timetext.text = (Math.floor(wyniku / 60) + ":") + wyniksec;
}
kra = stringcountry + ".gif";
var _local3 = flash.display.BitmapData.loadBitmap(kra);
wyni.flagholder.attachBitmap(_local3, 0);
wyni.flagholder._width = 30;
wyni.flagholder._height = 20;
wyni.cacheAsBitmap = true;
i++;
}
leaderboard.positiontext.text = pozycja;
leaderboard.datatext.text = datatext;
}
}
function checkday(ktory) {
przyc = leaderboard["btn_" + ktory];
if (!(ktory === ktoryprzyc)) {
przyc.onRelease = function () {
if (leaderboard.waiting._visible == false) {
leaderboard.levels = true;
leaderboard.total = false;
ktoryprzyc = ktory;
leaderboard.ever = false;
leaderboard.month = false;
leaderboard.today = true;
wyniki = undefined;
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "today";
leaderboard.nametext.text = user.data.username;
czasgracz = user.data.timetab[ktory - 1];
if ((czasgracz >= 5999) || ((ktory - 1) > ostatnil)) {
leaderboard.timetext.text = "99:99";
} else {
if ((user.data.timetab[ktory - 1] - (60 * Math.floor(user.data.timetab[ktory - 1] / 60))) < 10) {
wyniksec = "0" + (user.data.timetab[ktory - 1] - (60 * Math.floor(user.data.timetab[ktory - 1] / 60)));
} else {
wyniksec = user.data.timetab[ktory - 1] - (60 * Math.floor(user.data.timetab[ktory - 1] / 60));
}
leaderboard.timetext.text = String((Math.floor(user.data.timetab[ktory - 1] / 60) + ":") + wyniksec);
}
whatlist = "Time" + ktory;
kra = kraj + ".gif";
var _local1 = flash.display.BitmapData.loadBitmap(kra);
leaderboard.flagholder.attachBitmap(_local1, 0);
leaderboard.flagholder._width = 30;
leaderboard.flagholder._height = 20;
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
};
}
}
stop();
this._alpha = 0;
user = SharedObject.getLocal("gwiazdyy");
sumas = 0;
Playtomic.Log.CustomMetric("Finished Game");
timetab = user.data.timetab;
Playtomic.GeoIP.Lookup(callback);
ab = 0;
while (ab < user.data.stara.length) {
sumas = sumas + user.data.stara[ab];
ab++;
}
starcount.text = sumas;
ttime = 0;
lvltab = user.data.lvltab;
i = 0;
while (i < 15) {
if (!(znaleziony === true)) {
if (lvltab[i] == 0) {
ktorys = i - 1;
ostatnil = i - 2;
znaleziony = true;
ktory = i - 1;
}
if (lvltab[14] == 1) {
znaleziony = true;
ktory = 14;
ostatnil = 13;
ktorys = 14;
}
}
ttime = ttime + timetab[i];
i++;
}
dietab = user.data.dietab;
max = 0;
sumadied = 0;
i = 0;
while (i < 15) {
if (dietab[i] > max) {
max = dietab[i];
ktory = i;
}
if (dietab[i] > 9999) {
dietab[i] = 9999;
}
sumadied = sumadied + dietab[i];
i++;
}
if (sumadied > 9999) {
sumadied = 9999;
}
entab = user.data.entab;
sumakilled = 0;
i = 0;
while (i < 15) {
sumakilled = sumakilled + entab[i];
if (entab[i] > 9999) {
entab[i] = 9999;
}
i++;
}
if (sumakilled > 9999) {
sumakilled = 9999;
}
tmtime = Math.floor(ttime / 60);
tstime = ttime - (Math.floor(ttime / 60) * 60);
if (tstime < 10) {
tstim = "0" + tstime;
} else {
tstim = tstime;
}
if (tmtime < 10) {
tmtim = "0" + tmtime;
} else {
tmtim = tmtime;
}
if (sumadied > 9999) {
sdied.text = 9999;
} else {
sdied.text = sumadied;
}
if (sumakilled > 9999) {
edied.text = 9999;
} else {
edied.text = sumakilled;
}
tsti.text = tstim;
tmti.text = tmtim;
if (tmtim > 99) {
tmti.text = 99;
tsti.text = 99;
}
levelname.text = _root.levelname[ktory];
levelnr.text = ktory + 1;
if (ktory == undefined) {
levelname.text = "Wow, you're good";
levelnr.text = "--";
}
onEnterFrame = function () {
sponsor_btn.onRelease = function () {
if ((leaderboard == undefined) && (buttons == true)) {
_root.btnclick.start(0, 1);
getURL ("http://www.bigdino.com/clickreg.php?id=182&action=playgame&passvar=181&link=ending", _blank);
}
};
if (!(wraca === true)) {
if (this._alpha < 100) {
this._alpha = this._alpha + 15;
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 15;
} else {
this._parent._parent.menu.mready = true;
removeMovieClip(this);
}
if (this._alpha >= 100) {
buttons = true;
if (!(wyniki === undefined)) {
if (!(kraj === undefined)) {
if (!(ktoryprzyc === 0)) {
if (!(user.data.skonczylgre === true)) {
if (ktoryprzyc <= (ostatnil + 1)) {
if ((czasgracz < ostwynik) || (wyniki.length < 99)) {
if (leaderboard.positiontext.text == "--") {
if (leaderboard.waiting.czas >= 2.5) {
if (!(sciagniete === true)) {
sciagniete = true;
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
}
dajwyniki = false;
dajwyniki = true;
} else {
dajwyniki = true;
sciagniete = false;
}
} else {
sciagniete = false;
dajwyniki = true;
}
} else {
dajwyniki = true;
sciagniete = false;
}
} else if ((czasgracz < ostwynik) || (wyniki.length < 99)) {
if (leaderboard.positiontext.text == "--") {
if (leaderboard.waiting.czas >= 2.5) {
if (!(sciagniete === true)) {
sciagniete = true;
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
}
dajwyniki = false;
} else {
dajwyniki = true;
sciagniete = false;
}
} else {
sciagniete = false;
dajwyniki = true;
}
} else if ((czasgracz < ostwynik) || (wyniki.length < 99)) {
if (leaderboard.positiontext.text == "--") {
if (leaderboard.waiting.czas >= 2.5) {
if (!(sciagniete === true)) {
sciagniete = true;
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
}
dajwyniki = false;
} else {
dajwyniki = true;
sciagniete = false;
}
} else {
sciagniete = false;
dajwyniki = true;
}
} else {
dajwyniki = false;
}
} else {
dajwyniki = false;
}
if (!(dajwyniki === true)) {
leaderboard.holder._y = -138;
leaderboard.waiting._visible = true;
leaderboard.waiting.play();
leaderboard.total_btn.gotoAndStop(1);
leaderboard.month_btn.gotoAndStop(1);
leaderboard.ever_btn.gotoAndStop(1);
leaderboard.today_btn.gotoAndStop(1);
leaderboard.btn_1.gotoAndStop(1);
leaderboard.btn_2.gotoAndStop(1);
leaderboard.btn_3.gotoAndStop(1);
leaderboard.btn_4.gotoAndStop(1);
leaderboard.btn_5.gotoAndStop(1);
leaderboard.btn_6.gotoAndStop(1);
leaderboard.btn_7.gotoAndStop(1);
leaderboard.btn_8.gotoAndStop(1);
leaderboard.scrollbar.bar._y = 60;
leaderboard.btn_9.gotoAndStop(1);
leaderboard.btn_10.gotoAndStop(1);
leaderboard.btn_11.gotoAndStop(1);
leaderboard.btn_12.gotoAndStop(1);
leaderboard.btn_13.gotoAndStop(1);
leaderboard.btn_14.gotoAndStop(1);
leaderboard.btn_15.gotoAndStop(1);
} else {
leaderboard.waiting._visible = false;
leaderboard.tryagain._visible = false;
leaderboard.waiting.czas = 0;
leaderboard.waiting.okreslone = false;
leaderboard.waiting.gotoAndStop(1);
}
leaderboard.close_btn.onRelease = function () {
ktoryprzyc = undefined;
submit_btn._visible = true;
more_games_btn._visible = true;
menu_btn._visible = true;
wyniki = undefined;
dajwyniki = false;
removeMovieClip(_root.koniec_menu.leaderboard);
};
leaderboard.scrollbar.bar.onRelease = function () {
};
leaderboard.scrollbar.do_btn.onRelease = function () {
};
leaderboard.scrollbar.up_btn.onRelease = function () {
};
if (leaderboard.waiting._visible == false) {
if ((((_xmouse > (leaderboard.scrollbar._x + leaderboard._x)) && (_xmouse < ((leaderboard.scrollbar._x + leaderboard._x) + leaderboard.scrollbar._width))) && (_ymouse > (leaderboard.scrollbar._y + leaderboard._y))) && (_ymouse < ((leaderboard.scrollbar._y + leaderboard._y) + leaderboard.scrollbar._height))) {
onMouseDown = function () {
leaderboard.scrollbar.bar._y = (_ymouse - leaderboard._y) - leaderboard.scrollbar._y;
};
}
if (leaderboard.scrollbar.bar.hitTest(_xmouse, _ymouse, true)) {
onMouseDown = function () {
movebar = true;
};
}
if ((((_xmouse < (leaderboard.scrollbar._x + leaderboard._x)) || (_xmouse > ((leaderboard.scrollbar._x + leaderboard._x) + leaderboard.scrollbar._width))) || (_ymouse < (leaderboard.scrollbar._y + leaderboard._y))) || (_ymouse > ((leaderboard.scrollbar._y + leaderboard._y) + leaderboard.scrollbar._height))) {
movebar = false;
}
if (leaderboard.scrollbar.up_btn.hitTest(_xmouse, _ymouse, true)) {
onMouseDown = function () {
moveup = true;
};
} else {
moveup = false;
}
if (moveup) {
leaderboard.scrollbar.bar._y = leaderboard.scrollbar.bar._y - 4;
}
if (leaderboard.scrollbar.do_btn.hitTest(_xmouse, _ymouse, true)) {
onMouseDown = function () {
movedo = true;
};
} else {
movedo = false;
}
if (movedo) {
leaderboard.scrollbar.bar._y = leaderboard.scrollbar.bar._y + 4;
}
onMouseUp = function () {
moveup = false;
movebar = false;
movedo = false;
};
if (movebar) {
leaderboard.scrollbar.bar._y = (_ymouse - leaderboard._y) - leaderboard.scrollbar._y;
}
if (leaderboard.scrollbar.bar._y < 60) {
leaderboard.scrollbar.bar._y = 60;
}
if (leaderboard.scrollbar.bar._y > 260) {
leaderboard.scrollbar.bar._y = 260;
}
if (leaderboard.holder._height > 300) {
leaderboard.holder._y = -138 - (((leaderboard.scrollbar.bar._y - 60) / 200) * (leaderboard.holder._height - 300));
if (leaderboard.holder._y < ((-138 - leaderboard.holder._height) + 300)) {
leaderboard.holder._y = (-138 - leaderboard.holder._height) + 300;
}
}
i = 1;
while (i < 16) {
checkday(i);
przyc = leaderboard["btn_" + i];
if (!(leaderboard.levels === true)) {
przyc.gotoAndStop(1);
} else if (!(i === ktoryprzyc)) {
przyc.gotoAndStop(1);
} else {
przyc.gotoAndStop(2);
}
if (!(i === ktoryprzyc)) {
if (przyc.hitTest(_xmouse, _ymouse, true)) {
przyc.gotoAndStop(2);
}
}
i++;
}
if (!(leaderboard.total === true)) {
if (!(movebar === true)) {
if (leaderboard.total_btn.hitTest(_xmouse, _ymouse, true)) {
if (_xmouse < (-273 + leaderboard._x)) {
leaderboard.total_btn.gotoAndStop(2);
}
} else {
leaderboard.total_btn.gotoAndStop(1);
}
}
leaderboard.total_btn.onRelease = function () {
if (leaderboard.waiting._visible == false) {
if (_xmouse < (-273 + leaderboard._x)) {
ktoryprzyc = 0;
leaderboard.levels = false;
leaderboard.total = true;
wyniki = undefined;
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "today";
whatlist = "TotalTime";
leaderboard.nametext.text = user.data.username;
if (ttime >= 5999) {
leaderboard.timetext.text = "99:99";
} else {
if ((ttime - (60 * Math.floor(ttime / 60))) < 10) {
wyniksec = "0" + (ttime - (60 * Math.floor(ttime / 60)));
} else {
wyniksec = ttime - (60 * Math.floor(ttime / 60));
}
leaderboard.timetext.text = String((Math.floor(ttime / 60) + ":") + wyniksec);
}
czasgracz = ttime;
kra = kraj + ".gif";
var _local1 = flash.display.BitmapData.loadBitmap(kra);
leaderboard.flagholder.attachBitmap(_local1, 0);
leaderboard.flagholder._width = 30;
leaderboard.flagholder._height = 20;
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
leaderboard.today = true;
}
}
};
} else {
leaderboard.total_btn.gotoAndStop(2);
}
if (!(leaderboard.today === true)) {
if (leaderboard.today_btn.hitTest(_xmouse, _ymouse, true)) {
leaderboard.today_btn.gotoAndStop(2);
} else {
leaderboard.today_btn.gotoAndStop(1);
}
leaderboard.today_btn.onRelease = function () {
if (leaderboard.waiting._visible == false) {
leaderboard.ever_btn.gotoAndStop(1);
leaderboard.month_btn.gotoAndStop(1);
leaderboard.ever = false;
leaderboard.month = false;
leaderboard.today = true;
wyniki = undefined;
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "today";
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
};
} else {
leaderboard.today_btn.gotoAndStop(2);
}
if (!(leaderboard.month === true)) {
if (leaderboard.month_btn.hitTest(_xmouse, _ymouse, true)) {
leaderboard.month_btn.gotoAndStop(2);
} else {
leaderboard.month_btn.gotoAndStop(1);
}
leaderboard.month_btn.onRelease = function () {
if (leaderboard.waiting._visible == false) {
leaderboard.ever_btn.gotoAndStop(1);
leaderboard.today_btn.gotoAndStop(1);
leaderboard.today = false;
leaderboard.ever = false;
leaderboard.month = true;
wyniki = undefined;
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "last30days";
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
};
} else {
leaderboard.month_btn.gotoAndStop(2);
}
if (!(leaderboard.ever === true)) {
if (leaderboard.ever_btn.hitTest(_xmouse, _ymouse, true)) {
leaderboard.ever_btn.gotoAndStop(2);
} else {
leaderboard.ever_btn.gotoAndStop(1);
}
leaderboard.ever_btn.onRelease = function () {
if (leaderboard.waiting._visible == false) {
leaderboard.month_btn.gotoAndStop(1);
leaderboard.today_btn.gotoAndStop(1);
leaderboard.today = false;
leaderboard.month = false;
leaderboard.ever = true;
wyniki = undefined;
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "alltime";
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
}
};
} else {
leaderboard.ever_btn.gotoAndStop(2);
}
}
} else {
buttons = false;
}
menu_btn.onRollOver = function () {
if (buttons) {
_root.stoneclick.start(0, 1);
}
};
submit_btn.onRollOver = function () {
if (buttons) {
_root.stoneclick.start(0, 1);
}
};
more_games_btn.onRollOver = function () {
if (buttons) {
_root.stoneclick.start(0, 1);
}
};
menu_btn.onRelease = function () {
if (leaderboard == undefined) {
if (buttons) {
_root.nastawia = true;
_root.wgore = true;
_root.muzykaboss.stop();
_root.muzykatlo.stop();
_root.shopmusic.stop();
delete _root.muzykatlo;
_root.muzykatlo = new Sound(_root.sounds.bg);
_root.muzykatlo.attachSound("zima_menu_sound.wav");
_root.muzykatlo.start(0, 99999999);
_root.btnclick.start(0, 1);
removeMovieClip(this._parent._parent.menu);
this._parent._parent.attachMovie("menu_s", "menu", this._parent._parent.getNextHighestDepth());
this._parent.swapDepths(this._parent._parent.getNextHighestDepth());
this._parent._parent.menu.mready = false;
wraca = true;
}
}
};
submit_btn.onRelease = function () {
if (leaderboard == undefined) {
if (buttons) {
_root.btnclick.start(0, 1);
var _local2 = new Playtomic.PlayerScore();
_local2.Name = user.data.username;
_local2.Points = ttime;
_local2.CustomData.kraj = kraj;
Playtomic.Leaderboards.Submit(_local2, "TotalTime", null, {highest:false});
if (!(user.data.skonczylgre === true)) {
i = 0;
while (i <= ostatnil) {
_local2 = new Playtomic.PlayerScore();
_local2.Name = user.data.username;
_local2.Points = user.data.timetab[i];
_local2.CustomData.kraj = kraj;
abs = "Time" + (i + 1);
Playtomic.Leaderboards.Submit(_local2, abs, null, {highest:false});
i++;
}
} else {
i = 0;
while (i < 15) {
_local2 = new Playtomic.PlayerScore();
_local2.Name = user.data.username;
_local2.Points = user.data.timetab[i];
_local2.CustomData.kraj = kraj;
abs = "Time" + (i + 1);
Playtomic.Leaderboards.Submit(_local2, abs, null, {highest:false});
i++;
}
}
option = new Object();
option.global = true;
option.highest = false;
option.perpage = 99;
option.mode = "today";
whatlist = "TotalTime";
Playtomic.Leaderboards.List(whatlist, ListComplete, option);
attachMovie("leaderboard", "leaderboard", getNextHighestDepth());
leaderboard._x = 350;
leaderboard._y = 250;
leaderboard.total = true;
leaderboard.today = true;
leaderboard.nametext.text = user.data.username;
czasgracz = ttime;
if (ttime >= 5999) {
leaderboard.timetext.text = "99:99";
} else {
if ((ttime - (60 * Math.floor(ttime / 60))) < 10) {
wyniksec = "0" + (ttime - (60 * Math.floor(ttime / 60)));
} else {
wyniksec = ttime - (60 * Math.floor(ttime / 60));
}
leaderboard.timetext.text = String((Math.floor(ttime / 60) + ":") + wyniksec);
}
kra = kraj + ".gif";
var _local4 = flash.display.BitmapData.loadBitmap(kra);
leaderboard.flagholder.attachBitmap(_local4, 0);
leaderboard.flagholder._width = 30;
leaderboard.flagholder._height = 20;
submit_btn._visible = false;
menu_btn._visible = false;
more_games_btn._visible = false;
}
}
};
more_games_btn.onRelease = function () {
if (leaderboard == undefined) {
if (buttons) {
_root.btnclick.start(0, 1);
getURL ("http://www.bigdino.com/clickreg.php?id=182&action=playgame&passvar=181&link=endingMoreGames", _blank);
}
}
};
};
Symbol 818 MovieClip [koniectekst] Frame 1
_root.podkladwgore = true;
_root.podklad.start(0, 999999999);
_root.elecsound.stop();
Symbol 818 MovieClip [koniectekst] Frame 17
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(31);
};
};
Symbol 818 MovieClip [koniectekst] Frame 31
stop();
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(32);
};
};
Symbol 818 MovieClip [koniectekst] Frame 32
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(45);
};
};
Symbol 818 MovieClip [koniectekst] Frame 45
stop();
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(46);
};
};
Symbol 818 MovieClip [koniectekst] Frame 46
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
this._parent.gotoAndPlay(60);
};
};
Symbol 818 MovieClip [koniectekst] Frame 60
stop();
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(61);
};
};
Symbol 818 MovieClip [koniectekst] Frame 61
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(75);
};
};
Symbol 818 MovieClip [koniectekst] Frame 75
stop();
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(76);
};
};
Symbol 818 MovieClip [koniectekst] Frame 76
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(90);
};
};
Symbol 818 MovieClip [koniectekst] Frame 90
stop();
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(91);
};
};
Symbol 818 MovieClip [koniectekst] Frame 91
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(105);
};
};
Symbol 818 MovieClip [koniectekst] Frame 105
stop();
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(106);
};
};
Symbol 818 MovieClip [koniectekst] Frame 106
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(120);
};
};
Symbol 818 MovieClip [koniectekst] Frame 120
stop();
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(121);
};
};
Symbol 818 MovieClip [koniectekst] Frame 121
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(135);
};
};
Symbol 818 MovieClip [koniectekst] Frame 135
stop();
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(136);
};
};
Symbol 818 MovieClip [koniectekst] Frame 136
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent.gotoAndPlay(150);
};
};
Symbol 818 MovieClip [koniectekst] Frame 150
stop();
onEnterFrame = function () {
next.onRollOver = function () {
_root.btnover.start(0, 1);
};
next.onRelease = function () {
_root.btnclick.start(0, 1);
this._parent._parent.attachMovie("koniec_menu", "koniec_menu", this._parent._parent.getNextHighestDepth());
this._parent.play();
};
};
Symbol 818 MovieClip [koniectekst] Frame 151
_root.podkladwdol = true;
_root.shopmusic.start(0, 99999999);
Symbol 818 MovieClip [koniectekst] Frame 166
removeMovieClip(this);
Symbol 841 MovieClip [wybuch_koniec] Frame 50
stop();
_parent.dajtekst = true;
Symbol 903 MovieClip [intro] Frame 226
stop();
Symbol 913 MovieClip [przejscie] Frame 1
stop();
this._alpha = 0;
lvl_napis.chap.text = _root.level;
lvl_napis.name.text = _root.levelname[_root.level - 1];
timer = 0;
_root.ready = false;
Playtomic.Log.CustomMetric("Skipped");
onEnterFrame = function () {
skip.onRelease = function () {
_root.skipbyl = true;
_root.podkladwdol = true;
_root.podkladwgore = false;
if (!(this._parent.wraca === true)) {
this._parent._alpha = 100;
this._parent.wraca = true;
}
if (!(lama === true)) {
_root.attachMovie("gra", "gra", _root.getNextHighestDepth());
removeMovieClip(_root.menu);
lama = true;
}
removeMovieClip(this._parent.intro);
};
if (!(lama === true)) {
this._alpha = this._alpha + 10;
}
if (this._alpha >= 100) {
if (!(lama === true)) {
lama = true;
_root.attachMovie("gra", "gra", _root.getNextHighestDepth());
removeMovieClip(_root.menu);
this.swapDepths(_root.getNextHighestDepth());
}
if (timer < 16) {
timer++;
} else if (!(napis_wraca === true)) {
this._alpha = 100;
attachMovie("intro", "intro", getNextHighestDepth());
intro._alpha = 0;
napis_wraca = true;
}
}
if (!(intro_wraca === true)) {
if (intro._alpha < 100) {
intro._alpha = intro._alpha + 4;
itimer = 0;
}
}
if (intro._alpha >= 100) {
itimer++;
if (itimer > 200) {
wraca = true;
}
}
if (napis_wraca == true) {
lvl_napis._alpha = lvl_napis._alpha - 4;
}
if (wraca == true) {
this._alpha = this._alpha - 10;
}
if ((this._alpha <= 10) && (wraca == true)) {
_root.podkladwdol = true;
_root.ready = true;
}
if ((this._alpha <= 0) && (wraca == true)) {
removeMovieClip(this);
}
};
Symbol 944 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 949 MovieClip [menu_s] Frame 1
stop();
Playtomic.Log.CustomMetric("MainMenu", "Pregame", true);
Playtomic.Log.ForceSend();
user = SharedObject.getLocal("gwiazdyy");
idzie = false;
_root.levelname = Array("Tutorial", "The Beginning", "Tutorial Continues", "Autumn Comes", "Fun with Harpies", "The Middle", "A cave, that's promising", "Enough avoiding already!", "The Nest", "RUN!", "A big cave that was", "Yay snow!", "Difficult crossing", "Orion's End", "The Ending");
aspeed = 0.01;
i = 0;
while (i < 7) {
attachMovie("ach" + i, "ach" + i, 4 + i);
a = this["ach" + i];
a.angle = i * 0.9;
a.radius = 88;
if (user.data.osiagi[i] == 1) {
a.gotoAndStop(2);
} else {
a.gotoAndStop(1);
}
i++;
}
i = 0;
while (i < 7) {
a = this["ach" + i];
if (!(a === undefined)) {
a._x = ziemia._x + (Math.cos(a.angle) * a.radius);
a._y = ziemia._y + (Math.sin(a.angle) * a.radius);
a.angle = a.angle + aspeed;
}
i++;
}
new_btn.zap._visible = false;
onEnterFrame = function () {
function negame() {
attachMovie("name_box", "name_box", getNextHighestDepth());
name_box._y = 250;
name_box.holder.nametext.maxChars = 12;
name_box._x = 350;
defname = name_box.holder.nametext.text;
}
if (_parent.loading == undefined) {
mready = true;
} else {
mready = false;
}
if (new_btn.hitTest(_xmouse, _ymouse, true)) {
if (!(newbyl === true)) {
newbyl = true;
_root.btnover.start(0, 1);
new_btn.gotoAndStop(2);
}
} else {
newbyl = false;
new_btn.gotoAndStop(1);
}
dotyka = false;
stareak = aktore;
if ((!(creds === true)) && (name_box == undefined)) {
i = 0;
while (i < 7) {
a = this["ach" + i];
if (a.hitTest(_xmouse, _ymouse, true)) {
dotyka = true;
aktore = a;
if (!(boxattach === true)) {
boxattach = true;
attachMovie("mbox" + i, "mbox" + i, getNextHighestDepth());
b = this["mbox" + i];
if (i == 0) {
b.kills.text = user.data.kills;
if (user.data.kills == undefined) {
b.kills.text = 0;
}
}
if (i == 2) {
sumas = 0;
ab = 0;
while (ab < user.data.stara.length) {
sumas = sumas + user.data.stara[ab];
ab++;
}
b.stars.text = sumas;
}
b._xscale = 85;
b._yscale = 85;
b._y = a._y;
if (a._x >= ziemia._x) {
b._x = a._x + 81;
} else {
b._x = a._x - 81;
}
}
} else {
c = this["mbox" + i];
if (!(c === undefined)) {
removeMovieClip(c);
}
}
if (dotyka == true) {
aspeed = 0;
} else if (stareak == aktore) {
j = 0;
while (j < 7) {
b = this["mbox" + j];
removeMovieClip(b);
boxattach = false;
j++;
}
aspeed = 0.01;
}
i++;
}
}
if (dotyka) {
if (!(stareak === aktore)) {
dbyl = false;
}
if (!(dbyl === true)) {
if (!idzie) {
_root.hover.start(0, 1);
dbyl = true;
}
}
} else {
dbyl = false;
}
i = 0;
while (i < 7) {
a = this["ach" + i];
a._x = ziemia._x + (Math.cos(a.angle) * a.radius);
a._y = ziemia._y + (Math.sin(a.angle) * a.radius);
a.angle = a.angle + aspeed;
i++;
}
_root.tabChildren = false;
con_btn.onRollOver = function () {
if (!idzie) {
_root.btnover.start(0, 1);
}
};
more_btn.onRollOver = function () {
if (!idzie) {
_root.btnover.start(0, 1);
}
};
part_one_btn.onRollOver = function () {
if (!idzie) {
_root.btnover.start(0, 1);
}
};
unlock.onRelease = function () {
user.data.highscore = false;
user.data.stara = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
user.data.dietab = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
user.data.entab = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
user.data.osiagi = new Array(0, 0, 0, 0, 0, 0, 0);
user.data.nowagra = false;
user.data.timetab = new Array(699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699);
user.data.lvltab = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
user.data.oriondist = 999;
user.data.skipbyl = false;
user.data.weps = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
user.data.ile_inv = 1;
user.data.size = 30;
user.data.speed = -2;
user.data.pleiades = new Array(1, 1, 1, 1, 1, 1, 1);
user.data.exp = 99999 /* 0x01869F */;
user.data.money = 99999 /* 0x01869F */;
user.data.afterintro = false;
user.data.ready = false;
user.data.kaf = 0;
user.data.which = 1;
user.data.level = 14;
user.data.kills = 0;
user.data.invjest = true;
user.flush();
};
name_box.holder.nametext.onSetFocus = function () {
if (!(czyszczone === true)) {
name_box.holder.nametext.text = "";
czyszczone = true;
}
};
if (!(user.data.userzmiana === true)) {
welco.text = "Welcome, Guest";
} else {
welco.text = "Welcome, " + user.data.username;
}
name_box.butt.onRelease = function () {
if ((!(name_box.holder.nametext.text === "")) && (!(name_box.holder.nametext.text === String(defname)))) {
_root.podklad.start(5, 1);
_root.podkladwgore = true;
_root.btnclick.start(0, 1);
_root.entab = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.nastawia = true;
_root.wdol = true;
Playtomic.Log.Play();
Playtomic.Log.ForceSend();
_root.stara = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.osiagi = new Array(0, 0, 0, 0, 0, 0, 0);
_root.nowagra = true;
_root.timetab = new Array(699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699);
_root.lvltab = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
user.clear();
_root.oriondist = 999;
_root.afterintro = false;
_root.ready = false;
_root.skipbyl = false;
_root.weps = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ile_inv = 1;
_root.dietab = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.size = 30;
_root.speed = -2;
_root.pleiades = new Array(1, 1, 1, 1, 1, 1, 1);
_root.exp = 0;
_root.money = 0;
_root.kaf = 0;
_root.level = 1;
_root.which = 1;
user.data.level = 1;
user.data.username = name_box.holder.nametext.text;
user.data.userzmiana = true;
user.data.highscore = true;
user.flush();
_root.kills = 0;
_root.invjest = true;
_root.attachMovie("przejscie", "przejscie", _root.getNextHighestDepth());
_root.gdzie = "gra";
}
};
con_btn.onRelease = function () {
if ((!(idzie === true)) && (!(mready === false))) {
if ((!(user.data.level === undefined)) && (user.data.level > 1)) {
_root.btnclick.start(0, 1);
Playtomic.Log.CustomMetric("Continued");
Playtomic.Log.Play();
Playtomic.Log.ForceSend();
_root.dietab = user.data.dietab;
_root.entab = user.data.entab;
_root.lvltab = user.data.lvltab;
_root.timetab = user.data.timetab;
_root.oriondist = user.data.oriondist;
_root.weps = user.data.weps;
_root.ile_inv = user.data.ile_inv;
_root.size = user.data.size;
_root.speed = user.data.speed;
_root.money = user.data.money;
_root.exp = user.data.exp;
_root.which = user.data.which;
_root.afterintro = false;
_root.ready = false;
_root.level = user.data.level;
_root.pleiades = user.data.pleiades;
_root.kaf = 0;
_root.invjest = user.data.invjest;
_root.afterintro = true;
_root.start = false;
_root.stara = user.data.stara;
_root.kills = user.data.kills;
_root.osiagi = user.data.osiagi;
_root.attachMovie("wybor", "wybor", _root.getNextHighestDepth());
} else {
negame();
}
idzie = true;
}
};
new_btn.onRelease = function () {
if (user.data.level > 1) {
if (new_btn.zap._visible == true) {
if ((!(idzie === true)) && (!(mready === false))) {
negame();
new_btn.zap._visible = false;
idzie = true;
}
}
new_btn.zap._visible = true;
} else if ((!(idzie === true)) && (!(mready === false))) {
negame();
idzie = true;
}
};
minos.onRelease = function () {
if (!(creds === true)) {
if ((!(idzie === true)) && (!(mready === false))) {
if (!(minosplay === true)) {
if (!(gralmino === true)) {
Playtomic.Log.CustomMetric("MinotaurMenu");
gralmino = true;
}
realminosx = minos._xscale;
realminosy = minos._yscale;
minosplay = true;
_root.minosgrun.start(0, 0);
minos._xscale = 1.6 * realminosx;
minos._yscale = 1.6 * realminosy;
}
}
}
};
if (minosplay == true) {
if (minos._xscale > realminosx) {
minos._xscale = minos._xscale - 5;
minos._yscale = minos._yscale - 5;
} else {
minos._xscale = realminosx;
minos._yscale = realminosy;
minosplay = false;
}
}
more_btn.onRelease = function () {
if ((!(idzie === true)) && (!(mready === false))) {
_root.btnclick.start(0, 1);
Playtomic.Link.Open("http://www.bigdino.com/clickreg.php?id=182&link=menuMoreGames", "PlayMoreGames", "Sponsor");
}
};
sponsor_btn.onRelease = function () {
Playtomic.Link.Open("http://www.bigdino.com/clickreg.php?id=182&link=menu", "LogoMenu", "Sponsor");
};
sound_credits.onRelease = function () {
removeMovieClip(sound_credits);
_root.btnclick.start(0, 1);
creds = false;
};
sound_btn.onRelease = function () {
if (!(creds === true)) {
if ((!(idzie === true)) && (!(mready === false))) {
_root.btnclick.start(0, 1);
creds = true;
if (!(gralminoyo === true)) {
Playtomic.Log.CustomMetric("SoundCredits");
gralminoyo = true;
}
attachMovie("sound_credits", "sound_credits", getNextHighestDepth());
sound_credits._x = 247;
sound_credits._y = 206;
}
} else {
removeMovieClip(sound_credits);
_root.btnclick.start(0, 1);
creds = false;
}
};
part_one_btn.onRelease = function () {
if ((!(idzie === true)) && (!(mready === false))) {
_root.btnclick.start(0, 1);
Playtomic.Link.Open("http://www.bigdino.com/", "PlayPartOneMenu", "Sponsor");
}
};
music_btn.onRelease = function () {
if ((!(idzie === true)) && (!(mready === false))) {
_root.btnclick.start(0, 1);
Playtomic.Link.Open("http://computer112.newgrounds.com/", "Music", "MyStats");
}
};
rarykos_btn.onRelease = function () {
if ((!(idzie === true)) && (!(mready === false))) {
_root.btnclick.start(0, 1);
Playtomic.Link.Open("http://www.rarykos.com", "rarykos", "MyStats");
}
};
};
Symbol 952 MovieClip [ziemi1] Frame 1
this.cacheAsBitmap = true;
Symbol 953 MovieClip [boskaf1] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 956 MovieClip [ziemi4] Frame 1
this.cacheAsBitmap = true;
Symbol 957 MovieClip [boskaf10] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
_parent.l10jest = true;
_parent.bossfight = true;
jestfight = true;
_parent.pobity = true;
_parent.btimer = 32;
}
}
if (this._x < -580) {
_parent.l10jest = false;
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 958 MovieClip [boskaf11] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 959 MovieClip [boskaf12] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 961 MovieClip [ziemi5] Frame 1
this.cacheAsBitmap = true;
Symbol 962 MovieClip [boskaf13] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 963 MovieClip [boskaf14] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 964 MovieClip [boskaf15] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 966 MovieClip [boskaf2] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 967 MovieClip [boskaf3] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 968 MovieClip [boskaf4] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 969 MovieClip [boskaf5] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 971 MovieClip [ziemi3] Frame 1
this.cacheAsBitmap = true;
Symbol 972 MovieClip [boskaf6] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 973 MovieClip [boskaf7] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 974 MovieClip [boskaf8] Frame 1
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 975 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 976 MovieClip [boskaf9] Frame 1
function kolec(gdzie) {
if (juzpo == true) {
ilosc = 5;
} else {
ilosc = 3;
}
if (tablica[gdzie] == 1) {
licznik = 0;
while ((!(tablica[gdzie] === 0)) && (licznik < 5)) {
gdzie = random(ilosc + 1);
licznik++;
}
licznik = 0;
while ((!(tablica[gdzie] === 0)) && (licznik < (ilosc + 1))) {
licznik++;
gdzie++;
if (gdzie > ilosc) {
gdzie = 0;
}
}
}
if (tablica[gdzie] == 0) {
a = this["spad" + gdzie];
if (a == undefined) {
tablica[gdzie] = 1;
attachMovie("spad", "spad" + gdzie, getNextHighestDepth());
paski.swapDepths(getNextHighestDepth());
a = this["spad" + gdzie];
a._x = 60 + (gdzie * 120);
a.mozna = false;
a._y = -140;
a.przesuwaj = true;
a.gdzi = gdzie;
} else {
tablica[gdzie] = 1;
attachMovie("spad", ("spad" + gdzie) + "o", getNextHighestDepth());
paski.swapDepths(getNextHighestDepth());
a = this[("spad" + gdzie) + "o"];
a._x = 60 + (gdzie * 120);
a._y = -140;
a.mozna = false;
a.przesuwaj = true;
}
}
}
timermax = 130;
spadbos.mozna = false;
timer = timermax;
kolspeed = 2;
jak = 0;
tablica = new Array(0, 0, 0, 0, 0, 0);
onEnterFrame = function () {
if (this._x <= 5) {
if (!(jestfight === true)) {
this._x = 0;
_parent.bossfight = true;
jestfight = true;
}
if (dajkolce == true) {
if (spadbos._y < -50) {
spadbos._y = spadbos._y + kolspeed;
} else {
spadbos.mozna = true;
}
}
if (!(_root.gra.paused === true)) {
if (!(juzpo === true)) {
timer--;
if (timer <= 0) {
timer = timermax;
kolec((random(2) + random(2)) + random(2));
}
} else {
if (!(bylo === true)) {
timer = 20;
bylo = true;
}
timer--;
if (timer <= 0) {
kolec(jak);
jak++;
if (jak == 4) {
if (!(btimerbyl === true)) {
_root.gra.btimer = 190;
btimerbyl = true;
}
}
if (jak > 5) {
jak = 0;
}
timer = 30;
bylo = false;
}
}
k = 0;
while (k < 10) {
a = this["spad" + k];
if (!(a === undefined)) {
b = this[("spad" + k) + "o"];
if (!(b === undefined)) {
if (b.przesuwaj) {
if (b._y < -50) {
b._y = b._y + kolspeed;
} else {
b.przesuwaj = false;
b.mozna = true;
}
} else if (b._y >= 570) {
tablica[k] = 0;
removeMovieClip(b);
}
}
if (a.przesuwaj) {
if (a._y < -50) {
a._y = a._y + kolspeed;
} else {
a.przesuwaj = false;
a.mozna = true;
}
} else if (a._y >= 570) {
tablica[k] = 0;
removeMovieClip(a);
}
}
k++;
}
}
}
if (this._x < -580) {
_parent.nowylevel = false;
_parent.stime = -1;
_parent.mtime = 0;
}
};
Symbol 979 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 980 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 982 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 984 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 985 MovieClip Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 327 MovieClip [spad] in Symbol 986 MovieClip [ob100] Frame 1
onClipEvent (load) {
this.dzialaj = true;
}
Instance of Symbol 327 MovieClip [spad] in Symbol 986 MovieClip [ob100] Frame 1
onClipEvent (load) {
this.dzialaj = true;
}
Instance of Symbol 327 MovieClip [spad] in Symbol 987 MovieClip [ob101] Frame 1
onClipEvent (load) {
this.dzialaj = true;
}
Instance of Symbol 327 MovieClip [spad] in Symbol 987 MovieClip [ob101] Frame 1
onClipEvent (load) {
this.dzialaj = true;
}
Instance of Symbol 327 MovieClip [spad] in Symbol 987 MovieClip [ob101] Frame 1
onClipEvent (load) {
this.dzialaj = true;
}
Instance of Symbol 327 MovieClip [spad] in Symbol 988 MovieClip [ob102] Frame 1
onClipEvent (load) {
this.dzialaj = true;
}
Instance of Symbol 327 MovieClip [spad] in Symbol 988 MovieClip [ob102] Frame 1
onClipEvent (load) {
this.dzialaj = true;
}
Symbol 991 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 993 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 995 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 997 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 999 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1002 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1005 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1008 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1011 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1014 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1017 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1020 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1022 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1024 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1027 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1030 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1033 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1036 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1039 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1042 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1045 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1048 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1051 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1054 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1057 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1060 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1062 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1064 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1067 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1070 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1073 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1076 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1079 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1082 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1085 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1088 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1091 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1094 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1097 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1100 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1103 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1106 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1109 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1112 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1115 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1117 MovieClip [ziemi34] Frame 1
this.cacheAsBitmap = true;
Symbol 1126 MovieClip Frame 1
stop();
Symbol 1126 MovieClip Frame 2
stop();
Symbol 1126 MovieClip Frame 3
stop();
Symbol 1157 MovieClip Frame 1
stop();
Symbol 1157 MovieClip Frame 2
stop();
price.text = cost;
Symbol 1157 MovieClip Frame 3
stop();
Symbol 1157 MovieClip Frame 4
stop();
price.text = cost;
Symbol 1166 MovieClip Frame 1
stop();
Symbol 1166 MovieClip Frame 2
stop();
Symbol 1166 MovieClip Frame 3
stop();
Symbol 1169 MovieClip Frame 1
stop();
Symbol 1169 MovieClip Frame 2
stop();
Symbol 1169 MovieClip Frame 3
stop();
Symbol 1171 MovieClip Frame 1
stop();
Symbol 1171 MovieClip Frame 2
stop();
Symbol 1171 MovieClip Frame 3
stop();
Symbol 1172 MovieClip Frame 1
stop();
Symbol 1172 MovieClip Frame 2
stop();
Symbol 1172 MovieClip Frame 3
stop();
Symbol 1173 MovieClip Frame 1
stop();
Symbol 1173 MovieClip Frame 2
stop();
Symbol 1173 MovieClip Frame 3
stop();
Symbol 1184 MovieClip [shop] Frame 1
function check() {
if (_parent.size > 26) {
size1.jest = false;
} else {
size1.jest = true;
}
if (_parent.size > 24) {
size2.jest = false;
} else {
size2.jest = true;
}
if (_parent.size > 22) {
size3.jest = false;
} else {
size3.jest = true;
}
if (_parent.speed > -1.5) {
speed1.jest = true;
} else {
speed1.jest = false;
}
if (_parent.speed > -0.5) {
speed2.jest = true;
} else {
speed2.jest = false;
}
if (_parent.speed > 0.5) {
speed3.jest = true;
} else {
speed3.jest = false;
}
if (_parent.fly0_ile > 18) {
_parent.fly0_ile > 18;
}
if (_parent.fly1_ile > 18) {
_parent.fly1_ile > 18;
}
if (_parent.fly2_ile > 18) {
_parent.fly2_ile > 18;
}
if (_parent.fly3_ile > 18) {
_parent.fly3_ile > 18;
}
if (_parent.fly4_ile > 18) {
_parent.fly4_ile > 18;
}
if (_parent.fly5_ile > 18) {
_parent.fly5_ile > 18;
}
if (_parent.fly6_ile > 18) {
_parent.fly6_ile > 18;
}
fly0.cost = flyile[_parent.fly0_ile];
fly1.cost = flyile[_parent.fly1_ile];
fly2.cost = flyile[_parent.fly2_ile];
fly3.cost = flyile[_parent.fly3_ile];
fly4.cost = flyile[_parent.fly4_ile];
fly5.cost = flyile[_parent.fly5_ile];
fly6.cost = flyile[_parent.fly6_ile];
if (_parent.ile_inv > 12) {
_parent.ile_inv = 12;
}
inv_btn.cost = invile[_parent.ile_inv];
i = 0;
while (i < 7) {
a = this["krzyz" + i];
b = _parent.gui["krzyz" + i];
a._visible = b._visible;
c = this["napisrest" + i];
d = this["napisrel" + i];
c.text = weps[(i * 7) + 5];
d.text = weps[(i * 7) + 6];
i++;
}
if (_parent.przyciski == true) {
if (!(muzykabyla === true)) {
_root.shopmusic.start(0, 9999);
muzykabyla = true;
}
exit_btn.onRollOver = function () {
_root.stoneclick.start(0, 1);
detimer = 0;
};
exit_btn.onRelease = function () {
_parent.koniecinv = false;
_root.btnclick.start(0, 1);
_parent.fly0.angle = 0;
_parent.fly1.angle = 2;
_parent.fly2.angle = 4;
_parent.fly3.angle = 4.5;
_parent.fly4.angle = 3;
_parent.fly5.angle = 1.5;
_parent.fly6.angle = 0;
i = 0;
while (i < 7) {
a = _parent["fly" + i];
if (!(a === undefined)) {
weps = _parent.weps;
if ((weps[(i * 7) + 5] == 9) && (weps[(i * 7) + 6] == 9)) {
a.bonusjest = true;
}
a.heightminus = 15;
a.widthminus = 13.7;
if (i < 3) {
a.radius = 20;
a.sped = 0.05;
} else {
a.radius = 50;
a.sped = -0.05;
}
if (_parent.size == 26) {
if (i < 3) {
a.radius = 16;
a.sped = 0.042;
} else {
a.radius = 42;
a.sped = -0.042;
}
a.heightminus = 14;
a.widthminus = 13;
a._height = 28;
a._width = 26;
}
if (_parent.size == 24) {
if (i < 3) {
a.radius = 14;
a.sped = 0.036;
} else {
a.radius = 37;
a.sped = -0.036;
}
a.heightminus = 13;
a.widthminus = 12;
a._height = 26;
a._width = 24;
}
if (_parent.size == 22) {
if (i < 3) {
a.radius = 12.5;
a.sped = 0.02;
} else {
a.radius = 33;
a.sped = -0.02;
}
a.heightminus = 12;
a.widthminus = 11;
a._height = 24;
a._width = 22;
}
a.sprawdzil = false;
j = i * 7;
while (j < ((i * 7) + 5)) {
if (weps[j] == 2) {
a.wep = (j + 2) - (i * 7);
}
j++;
}
if (((((weps[i * 7] == 0) && (weps[(i * 7) + 1] == 0)) && (weps[(i * 7) + 2] == 0)) && (weps[(i * 7) + 3] == 0)) && (weps[(i * 7) + 4] == 0)) {
a.wep = 1;
}
switch (a.wep) {
case 1 :
a.reload_speed = 1.5 + ((1.8 * weps[(i * 7) + 6]) / 18);
a.zmeczenie = 60 - (3 * weps[(i * 7) + 5]);
a.damage = 2;
a.bulletspeed = 12;
break;
case 2 :
a.reload_speed = 0.85 + ((2.5 * weps[(i * 7) + 6]) / 18);
a.zmeczenie = 60 - (3 * weps[(i * 7) + 5]);
a.damage = 3;
a.bulletspeed = 14;
break;
case 3 :
a.reload_speed = 1.2 + ((2 * weps[(i * 7) + 6]) / 18);
a.zmeczenie = 70 - (2.6 * weps[(i * 7) + 5]);
a.damage = 4;
a.bulletspeed = 16;
break;
case 4 :
a.reload_speed = 1.6 + ((1.7 * weps[(i * 7) + 6]) / 18);
a.zmeczenie = 80 - (2.3 * weps[(i * 7) + 5]);
a.damage = 6;
a.bulletspeed = 15;
break;
case 5 :
a.reload_speed = 1.4 + ((1.4 * weps[(i * 7) + 6]) / 18);
a.zmeczenie = 90 - (2.1 * weps[(i * 7) + 5]);
a.damage = 8;
a.bulletspeed = 14;
break;
case 6 :
a.reload_speed = 0.9 + ((1 * weps[(i * 7) + 6]) / 18);
a.zmeczenie = 100 - (1.6 * weps[(i * 7) + 5]);
a.damage = 15;
a.bulletspeed = 13;
}
a.reloading = 100;
a.total_zmeczenie = 100;
a._x = _parent.kursor._x + (Math.cos(a.angle) * a.radius);
a._y = _parent.kursor._y + (Math.sin(a.angle) * a.radius);
if (_root.czapki == true) {
_parent.fly0.baza.gotoAndStop(2);
_parent.fly1.baza.gotoAndStop(2);
_parent.fly2.baza.gotoAndStop(2);
_parent.fly3.baza.gotoAndStop(2);
_parent.fly4.baza.gotoAndStop(2);
_parent.fly5.baza.gotoAndStop(2);
_parent.fly6.baza.gotoAndStop(2);
}
}
i++;
}
_parent.zapisal = false;
_parent.shop_av = false;
_parent.shopping = false;
_parent.welcomebyc = true;
_parent.przyciski = false;
removeMovieClip(_parent.shop);
};
}
}
function buye(what) {
if (what.hitTest(_xmouse + this._x, _ymouse + this._y)) {
detimer = 0;
buying = true;
ktore = what;
if (_parent.przyciski == true) {
price.gotoAndPlay(2);
}
price.cost = what.cost;
}
if (what.jest) {
what.gotoAndPlay(3);
what.mozna = false;
} else if ((_parent.exp >= what.cost) && ((_parent.exp - what.cost) >= 0)) {
what.gotoAndPlay(2);
what.mozna = true;
} else {
what.gotoAndPlay(1);
what.mozna = false;
}
if (_parent.przyciski) {
what.onRelease = function () {
if (what.mozna == true) {
_root.shopclick.start(0, 1);
_parent.exp = _parent.exp - what.cost;
what.happen = true;
what.jest = true;
what.gotoAndPlay(3);
}
};
}
}
function buy(what) {
if (what.hitTest(_xmouse + this._x, _ymouse + this._y)) {
detimer = 0;
ktore = what;
buying = true;
if (_parent.przyciski == true) {
price.gotoAndPlay(4);
}
price.cost = what.cost;
}
if (what.jest) {
what.gotoAndPlay(3);
what.mozna = false;
} else if ((_parent.money >= what.cost) && ((_parent.money - what.cost) >= 0)) {
what.gotoAndPlay(2);
what.mozna = true;
} else {
what.gotoAndPlay(1);
what.mozna = false;
}
if (_parent.przyciski) {
what.onRelease = function () {
if (what.mozna == true) {
_root.shopclick.start(0, 1);
_parent.money = _parent.money - what.cost;
what.happen = true;
what.jest = true;
what.gotoAndPlay(3);
}
};
}
}
function buyw(what, numb, num) {
if (what.hitTest(_xmouse + this._x, _ymouse + this._y)) {
detimer = detimermax;
ktore = what;
buying = true;
if (_parent.przyciski == true) {
price.gotoAndPlay(4);
}
price.cost = what.cost;
adotyka = true;
aktore = what;
if (details == undefined) {
attachMovie("details", "details", getNextHighestDepth());
}
b = this.details;
if (!(b === undefined)) {
switch (numb) {
case 1 :
damage = 3;
relstala = 3.67647058823529;
reststala = 1.875;
resta = 60 - (3 * weps[(num * 7) + 5]);
rela = 0.85 + ((2.5 * weps[(num * 7) + 6]) / 18);
break;
case 2 :
damage = 4;
relstala = 2.60416666666667;
reststala = 2.1875;
resta = 70 - (2.6 * weps[(num * 7) + 5]);
rela = 1.2 + ((2 * weps[(num * 7) + 6]) / 18);
break;
case 3 :
damage = 6;
relstala = 1.953125;
reststala = 2.5;
resta = 80 - (2.3 * weps[(num * 7) + 5]);
rela = 1.6 + ((1.7 * weps[(num * 7) + 6]) / 18);
break;
case 4 :
damage = 8;
relstala = 2.23214285714286;
reststala = 2.8125;
resta = 90 - (2.1 * weps[(num * 7) + 5]);
rela = 1.4 + ((1.4 * weps[(num * 7) + 6]) / 18);
break;
case 5 :
damage = 15;
relstala = 3.47222222222222;
reststala = 3.125;
resta = 100 - (1.6 * weps[(num * 7) + 5]);
rela = 0.9 + ((1 * weps[(num * 7) + 6]) / 18);
}
relstala = int(relstala * 10) / 10;
reststala = int(reststala * 10) / 10;
rel = (100 / rela) / 32;
rel = int(rel * 10) / 10;
rest = resta / 32;
rest = int(rest * 10) / 10;
if (((relstala == 1) || (relstala == 2)) || (relstala == 3)) {
b.relstala.text = (relstala + ".0") + "-";
} else {
b.relstala.text = relstala + "-";
}
if (((reststala == 1) || (reststala == 2)) || (reststala == 3)) {
b.reststala.text = (reststala + ".0") + "-";
} else {
b.reststala.text = reststala + "-";
}
b.rel.text = relstala - rel;
b.rest.text = reststala - rest;
if ((((relstala - rel) == 0) || ((relstala - rel) == 1)) || ((relstala - rel) == 2)) {
b.rel.text = (relstala - rel) + ".0";
}
if ((((reststala - rest) == 0) || ((reststala - rest) == 1)) || ((reststala - rest) == 2)) {
b.rest.text = (reststala - rest) + ".0";
}
if ((((rel == 0) || (rel == 1)) || (rel == 2)) || (rel == 3)) {
rel = rel + ".0";
}
if ((((rest == 0) || (rest == 1)) || (rest == 2)) || (rest == 3)) {
rest = rest + ".0";
}
b.reltotal.text = ("= " + rel) + "s";
b.resttotal.text = ("= " + rest) + "s";
b.damage.text = damage + " points";
}
}
if (what.jest) {
what.gotoAndPlay(3);
what.mozna = false;
} else if ((_parent.money >= what.cost) && ((_parent.money - what.cost) >= 0)) {
what.gotoAndPlay(2);
what.mozna = true;
} else {
what.gotoAndPlay(1);
what.mozna = false;
}
if (_parent.przyciski) {
what.onRelease = function () {
if (what.mozna == true) {
_root.shopclick.start(0, 1);
_parent.money = _parent.money - what.cost;
what.happen = true;
what.jest = true;
what.gotoAndPlay(3);
}
};
}
b = this.details;
if (!(b === undefined)) {
b._y = _ymouse + 15;
b._x = _xmouse;
}
}
_parent.fly0.baza.gotoAndStop(1);
_parent.fly1.baza.gotoAndStop(1);
_parent.fly2.baza.gotoAndStop(1);
_parent.fly3.baza.gotoAndStop(1);
_parent.fly4.baza.gotoAndStop(1);
_parent.fly5.baza.gotoAndStop(1);
_parent.fly6.baza.gotoAndStop(1);
weps = _parent.weps;
inv_btn.jest = !_parent.gui.inv_krzyz._visible;
fly0.jest = !_parent.gui.krzyz0._visible;
fly1.jest = !_parent.gui.krzyz1._visible;
fly2.jest = !_parent.gui.krzyz2._visible;
fly3.jest = !_parent.gui.krzyz3._visible;
fly4.jest = !_parent.gui.krzyz4._visible;
fly5.jest = !_parent.gui.krzyz5._visible;
fly6.jest = !_parent.gui.krzyz6._visible;
_parent.dying = false;
_parent.inv = false;
speed1.cost = 800;
speed2.cost = 1500;
speed3.cost = 2000;
size1.cost = 500;
size2.cost = 1600;
size3.cost = 2000;
detimermax = 6;
wepscost = new Array(5, 8, 15, 24, 36, 50, 70, 100, 150);
invile = new Array(3, 3, 5, 8, 12, 20, 30, 40, 60, 80, 100, 130, 200);
flyile = new Array(3, 3, 5, 8, 12, 16, 20, 30, 45, 60, 70, 80, 90, 100, 120, 140, 160, 180, 200);
_root.elecsound.stop();
i = 0;
while (i < 7) {
a = _parent["fly" + i];
if (!(a.tarczowanie === undefined)) {
_root.gra.gui.inv_bar.fill._width = 0;
}
_root.gra.gui.elec.fill._xscale = 0;
_root.gra.gui.dmgsign.fill._xscale = 0;
removeMovieClip(a.strzelanie);
removeMovieClip(a.tarczowanie);
removeMovieClip(a.elebuff);
removeMovieClip(a.dmgbuff);
a1 = this["we1" + i];
a1.cost = 20;
a2 = this["we2" + i];
a2.cost = 120;
a3 = this["we3" + i];
a3.cost = 400;
a4 = this["we4" + i];
a4.cost = 800;
a5 = this["we5" + i];
a5.cost = 1200;
i++;
}
i = 0;
while (i < 7) {
j = 0;
while (j < 5) {
c = this[("we" + (j + 1)) + i];
if (weps[(i * 7) + j] == 2) {
c.gotoAndPlay(3);
}
j++;
}
i++;
}
i = 0;
while (i < 7) {
weps = _parent.weps;
j = 0;
while (j < 5) {
c = this[("we" + (j + 1)) + i];
if (weps[(i * 7) + j] == 2) {
c.jest = true;
c.gotoAndPlay(3);
}
j++;
}
i++;
}
onEnterFrame = function () {
if (inv_btn.happen == true) {
_parent.ile_inv++;
_parent.gui.inv_krzyz._visible = false;
_parent.gui.inv_bar.fill._width = 131;
inv_btn.happen = false;
}
if (fly0.happen == true) {
rando = random(3) + 1;
switch (rando) {
case 1 :
_root.odkup1.start(0, 1);
break;
case 2 :
_root.odkup2.start(0, 1);
break;
case 3 :
_root.odkup3.start(0, 1);
}
_parent.fly0_ile++;
_parent.gui.krzyz0._visible = false;
_parent.gui.reload0.fill._visible = true;
_parent.gui.strzel0.fill._visible = true;
_parent.gui.reload0.fill._xscale = 100;
_parent.gui.strzel0.fill._xscale = 100;
_parent.pleiades[0] = 1;
_parent.attachMovie("fly0", "fly0", 9900);
a = _parent.fly0;
a.sprawdzil = false;
a._x = _parent.kursor._x;
a._y = _parent.kursor._y;
a.reloading = 100;
a.total_zmeczenie = 100;
a.angle = 0;
a.radius = 20;
a.speed = 0.05;
fly0.happen = false;
}
if (fly1.happen == true) {
rando = random(3) + 1;
switch (rando) {
case 1 :
_root.odkup1.start(0, 1);
break;
case 2 :
_root.odkup2.start(0, 1);
break;
case 3 :
_root.odkup3.start(0, 1);
}
_parent.fly1_ile++;
_parent.gui.krzyz1._visible = false;
_parent.gui.reload1.fill._visible = true;
_parent.gui.strzel1.fill._visible = true;
_parent.gui.reload1.fill._xscale = 100;
_parent.gui.strzel1.fill._xscale = 100;
_parent.pleiades[1] = 1;
_parent.attachMovie("fly1", "fly1", 9901);
a = _parent.fly1;
a._x = _parent.kursor._x;
a.sprawdzil = false;
a._y = _parent.kursor._y;
a.reloading = 100;
a.total_zmeczenie = 100;
a.angle = 2;
a.radius = 20;
a.speed = 0.05;
fly1.happen = false;
}
if (fly2.happen == true) {
rando = random(3) + 1;
switch (rando) {
case 1 :
_root.odkup1.start(0, 1);
break;
case 2 :
_root.odkup2.start(0, 1);
break;
case 3 :
_root.odkup3.start(0, 1);
}
_parent.fly2_ile++;
_parent.gui.krzyz2._visible = false;
_parent.gui.reload2.fill._xscale = 100;
_parent.gui.strzel2.fill._xscale = 100;
_parent.gui.reload2.fill._visible = true;
_parent.gui.strzel2.fill._visible = true;
_parent.pleiades[2] = 1;
_parent.attachMovie("fly2", "fly2", 9902);
a = _parent.fly2;
a._x = _parent.kursor._x;
a._y = _parent.kursor._y;
a.sprawdzil = false;
a.angle = 4;
a.radius = 20;
a.reloading = 100;
a.total_zmeczenie = 100;
a.speed = 0.05;
fly2.happen = false;
}
if (fly3.happen == true) {
rando = random(3) + 1;
switch (rando) {
case 1 :
_root.odkup1.start(0, 1);
break;
case 2 :
_root.odkup2.start(0, 1);
break;
case 3 :
_root.odkup3.start(0, 1);
}
_parent.fly3_ile++;
_parent.gui.krzyz3._visible = false;
_parent.gui.reload3.fill._visible = true;
_parent.gui.strzel3.fill._visible = true;
_parent.gui.reload3.fill._xscale = 100;
_parent.gui.strzel3.fill._xscale = 100;
_parent.pleiades[3] = 1;
_parent.attachMovie("fly3", "fly3", 9903);
a = _parent.fly3;
a._x = _parent.kursor._x;
a._y = _parent.kursor._y;
a.angle = 4.5;
a.sprawdzil = false;
a.reloading = 100;
a.total_zmeczenie = 100;
a.radius = 50;
a.speed = -0.05;
fly3.happen = false;
}
if (fly4.happen == true) {
rando = random(3) + 1;
switch (rando) {
case 1 :
_root.odkup1.start(0, 1);
break;
case 2 :
_root.odkup2.start(0, 1);
break;
case 3 :
_root.odkup3.start(0, 1);
}
_parent.fly4_ile++;
_parent.gui.krzyz4._visible = false;
_parent.gui.reload4.fill._visible = true;
_parent.gui.strzel4.fill._visible = true;
_parent.gui.reload4.fill._xscale = 100;
_parent.gui.strzel4.fill._xscale = 100;
_parent.pleiades[4] = 1;
_parent.attachMovie("fly4", "fly4", 9904);
a = _parent.fly4;
a._x = _parent.kursor._x;
a.sprawdzil = false;
a._y = _parent.kursor._y;
a.reloading = 100;
a.total_zmeczenie = 100;
a.angle = 3;
a.radius = 50;
a.speed = -0.05;
fly4.happen = false;
}
if (fly5.happen == true) {
rando = random(3) + 1;
switch (rando) {
case 1 :
_root.odkup1.start(0, 1);
break;
case 2 :
_root.odkup2.start(0, 1);
break;
case 3 :
_root.odkup3.start(0, 1);
}
_parent.fly5_ile++;
_parent.gui.krzyz5._visible = false;
_parent.gui.reload5.fill._visible = true;
_parent.gui.reload5.fill._xscale = 100;
_parent.gui.strzel5.fill._xscale = 100;
_parent.gui.strzel5.fill._visible = true;
_parent.pleiades[5] = 1;
_parent.attachMovie("fly5", "fly5", 9905);
a = _parent.fly5;
a._x = _parent.kursor._x;
a._y = _parent.kursor._y;
a.reloading = 100;
a.total_zmeczenie = 100;
a.angle = 1.5;
a.sprawdzil = false;
a.radius = 50;
a.speed = -0.05;
fly5.happen = false;
}
if (fly6.happen == true) {
rando = random(3) + 1;
switch (rando) {
case 1 :
_root.odkup1.start(0, 1);
break;
case 2 :
_root.odkup2.start(0, 1);
break;
case 3 :
_root.odkup3.start(0, 1);
}
_parent.fly6_ile++;
_parent.gui.krzyz6._visible = false;
_parent.gui.reload6.fill._visible = true;
_parent.gui.strzel6.fill._visible = true;
_parent.gui.reload6.fill._xscale = 100;
_parent.gui.strzel6.fill._xscale = 100;
_parent.pleiades[6] = 1;
_parent.attachMovie("fly6", "fly6", 9906);
a = _parent.fly6;
a.reloading = 100;
a.total_zmeczenie = 100;
a._x = _parent.kursor._x;
a._y = _parent.kursor._y;
a.sprawdzil = false;
a.angle = 0;
a.radius = 50;
a.speed = -0.05;
fly6.happen = false;
}
if (size1.happen == true) {
_parent.size = 26;
i = 0;
while (i < 7) {
a = _parent["fly" + i];
if (i < 3) {
a.radius = 16;
a.sped = 0.042;
} else {
a.radius = 42;
a.sped = -0.042;
}
a.heightminus = 14;
a.widthminus = 13;
a._height = 28;
a._width = 26;
i++;
}
size1.happen = false;
}
if (size2.happen == true) {
_parent.size = 24;
i = 0;
while (i < 7) {
a = _parent["fly" + i];
if (i < 3) {
a.radius = 14;
a.sped = 0.036;
} else {
a.radius = 37;
a.sped = -0.036;
}
a.heightminus = 13;
a.widthminus = 12;
a._height = 26;
a._width = 24;
i++;
}
size2.happen = false;
}
if (size3.happen == true) {
_parent.size = 22;
i = 0;
while (i < 7) {
a = _parent["fly" + i];
if (i < 3) {
a.radius = 12.5;
a.sped = 0.02;
} else {
a.radius = 33;
a.sped = -0.02;
}
a.heightminus = 12;
a.widthminus = 11;
a._height = 24;
a._width = 22;
i++;
}
size3.happen = false;
}
if (speed1.happen == true) {
speed1.jest = true;
_parent.speed = -1;
speed1.happen = false;
}
if (speed2.happen == true) {
speed1.jest = true;
speed2.jest = true;
_parent.speed = 0;
speed2.happen = false;
}
if (speed3.happen == true) {
speed1.jest = true;
speed2.jest = true;
speed3.jest = true;
_parent.speed = 1;
speed3.happen = false;
}
buying = false;
starektore = ktore;
check();
adotyka = false;
i = 0;
while (i < 7) {
weps = _parent.weps;
astare = aktore;
j = 0;
while (j < 5) {
c = this[("we" + (j + 1)) + i];
if (weps[(i * 7) + j] > 0) {
c.cost = 0;
}
buyw(c, j + 1, i);
if (c.happen == true) {
h = 0;
while (h < 5) {
d = this[("we" + (h + 1)) + i];
if (weps[(i * 7) + h] > 0) {
weps[(i * 7) + h] = 1;
d.jest = false;
}
h++;
}
weps[(i * 7) + j] = 2;
c.jest = true;
c.gotoAndPlay(3);
c.happen = false;
}
j++;
}
a = this["rel" + i];
b = this["rest" + i];
a.cost = wepscost[weps[(i * 7) + 6]];
b.cost = wepscost[weps[(i * 7) + 5]];
if (weps[(i * 7) + 6] < 9) {
buye(a);
a.jest = false;
}
if (weps[(i * 7) + 5] < 9) {
buye(b);
b.jest = false;
}
if (a.happen == true) {
_parent.weps[(i * 7) + 6]++;
a.happen = false;
}
if (b.happen == true) {
_parent.weps[(i * 7) + 5]++;
b.happen = false;
}
i++;
}
b = this.details;
if (!(b === undefined)) {
if (!(adotyka === true)) {
detimer--;
if (detimer <= 0) {
removeMovieClip(b);
}
}
}
buy(fly0);
buy(fly1);
buy(fly2);
buy(fly3);
buy(fly4);
buy(fly5);
buy(fly6);
buy(inv_btn);
buye(speed1);
buye(speed2);
buye(speed3);
buye(size1);
buye(size2);
buye(size3);
if (!(buying === true)) {
price.gotoAndPlay(1);
dzwiekbyl = false;
} else {
if (!(starektore === ktore)) {
dzwiekbyl = false;
}
if (!(dzwiekbyl === true)) {
_root.hover.start(0, 1);
dzwiekbyl = true;
}
}
};
Symbol 1188 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1190 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1198 MovieClip Frame 8
stop();
Symbol 1199 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((this._x + _parent._x) < 500) {
if (!(played === true)) {
play();
played = true;
}
}
};
Symbol 1199 MovieClip Frame 38
stop();
Symbol 1209 MovieClip Frame 1
poch.gotoAndPlay(random(9));
Symbol 1211 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1214 MovieClip Frame 1
function pada() {
j = 0;
while (j <= ilosc) {
a = this["k" + j];
if (!(a === undefined)) {
a._y = a._y + yspeed;
a._x = a._x + xspeed;
if (a._y > 400) {
removeMovieClip(a);
}
}
j++;
}
attachMovie("kropla", "k" + i, i);
a = this["k" + i];
a._x = random(560);
a._y = -10 + random(50);
i++;
if (i > ilosc) {
i = 0;
}
}
ilosc = 40;
i = 0;
yspeed = 12;
xspeed = 2;
onEnterFrame = function () {
if (!(_root.paused === true)) {
if (((_parent._x + _parent._parent._x) < 710) && ((_parent._x + _parent._parent._x) > -1000)) {
pada();
}
if (_parent._parent._parent == _level0.wybor.niebo) {
pada();
}
}
};
Symbol 1219 MovieClip [kropla] Frame 1
this.cacheAsBitmap = true;
Symbol 1225 MovieClip Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 1238 MovieClip in Symbol 1239 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 1244 MovieClip Frame 1
function addsand() {
attachMovie("sand", "sand" + piasek, piasek);
a = this["sand" + piasek];
a._y = ((-200 + random(251)) + random(251)) + random(251);
a._x = 830;
a.xspeed = -25;
a.gotoAndStop(random(3) + 1);
piasek++;
if (piasek > (ilosc - 1)) {
piasek = 0;
}
attachMovie("sand", "sand" + piasek, piasek);
a = this["sand" + piasek];
a._y = ((-200 + random(251)) + random(251)) + random(251);
a._x = 830;
a.xspeed = -20;
a.gotoAndStop(random(3) + 1);
piasek++;
if (piasek > (ilosc - 1)) {
piasek = 0;
}
}
yspeed = 2;
ilosc = 150;
piasek = 0;
onEnterFrame = function () {
addsand();
i = 0;
while (i < ilosc) {
a = this["sand" + i];
if (!(a === undefined)) {
a._x = a._x + a.xspeed;
a._y = a._y + yspeed;
if (a._y > 400) {
removeMovieClip(a);
}
if (a._x < -10) {
removeMovieClip(a);
}
}
i++;
}
};
Symbol 1260 MovieClip Frame 1
function pada() {
j = 0;
while (j <= ilosc) {
a = this["k" + j];
if (!(a === undefined)) {
a._y = a._y + a.yspeed;
a._x = a._x + a.xspeed;
if (a._y > 220) {
removeMovieClip(a);
}
}
j++;
}
timer--;
if (timer <= 0) {
attachMovie("platek", "k" + i, i);
a = this["k" + i];
a.xspeed = (-2 + random(2)) + random(4);
a.yspeed = 3 + random(3);
a._x = random(500);
a._y = random(50);
i++;
if (i > ilosc) {
i = 0;
}
timer = timermax;
}
}
ilosc = 30;
i = 0;
timermax = 4;
timer = timermax;
onEnterFrame = function () {
if (!(_root.paused === true)) {
if (((_parent._x + _parent._parent._x) < 710) && ((_parent._x + _parent._parent._x) > -670)) {
pada();
}
if (_parent._parent._parent == _level0.wybor.niebo) {
pada();
}
}
};
Symbol 1284 MovieClip [tlo6] Frame 1
volume = 0;
onEnterFrame = function () {
if (!(_parent === _level0.wybor.niebo)) {
if (this._x < 700) {
if (!(muzykabyla === true)) {
_root.deszcz.start(0, 999);
muzykabyla = true;
}
volume = (700 - this._x) / 7;
if (volume < 0) {
volume = 0;
}
if (volume > 100) {
volume = 100;
}
_root.deszcz.setVolume(volume);
}
if (this._x < ((-this._width) + 10)) {
_root.deszcz.stop();
}
a22.onRelease = function () {
_root.gra.wallybyl = true;
};
}
};
Symbol 1287 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1293 MovieClip [platek] Frame 1
this.cacheAsBitmap = true;
Symbol 1372 MovieClip Frame 1
stop();
Instance of Symbol 1374 MovieClip in Symbol 1375 MovieClip [invtut] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1375 MovieClip [invtut] Frame 85
removeMovieClip(this);
unloadMovie (this);
Instance of Symbol 1374 MovieClip in Symbol 1377 MovieClip [otut] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1377 MovieClip [otut] Frame 65
removeMovieClip(this);
unloadMovie (this);
Symbol 1380 MovieClip [tut10] Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 1374 MovieClip in Symbol 1380 MovieClip [tut10] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1374 MovieClip in Symbol 1380 MovieClip [tut10] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1374 MovieClip in Symbol 1380 MovieClip [tut10] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1383 MovieClip [tut11] Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 1374 MovieClip in Symbol 1383 MovieClip [tut11] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1374 MovieClip in Symbol 1383 MovieClip [tut11] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1384 MovieClip [tut12] Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 1374 MovieClip in Symbol 1384 MovieClip [tut12] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1374 MovieClip in Symbol 1384 MovieClip [tut12] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1385 MovieClip [tut32] Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 1374 MovieClip in Symbol 1385 MovieClip [tut32] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1374 MovieClip in Symbol 1385 MovieClip [tut32] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1386 MovieClip [tut20] Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 1374 MovieClip in Symbol 1386 MovieClip [tut20] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1374 MovieClip in Symbol 1386 MovieClip [tut20] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1387 MovieClip [tut52] Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 1374 MovieClip in Symbol 1387 MovieClip [tut52] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1664 MovieClip Frame 16
_parent.czas = _parent.czas + 0.5;
Symbol 1672 MovieClip Frame 1
if (!(okreslone === true)) {
okreslone = true;
czas = 0;
tryagain._visible = false;
}
onEnterFrame = function () {
if (czas > 5) {
tryagain._visible = true;
}
};