STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/52048352?noj=FRM52048352-22DC" width="1" height="1"></div>

Bow-Chief-2.swf

This is the info page for
Flash #113867

(Click the ID number above for more basic data on this flash file.)


Text
xx

xx

Angle:

Power:

Player

x

XX

XX

<p align="left"></p>

fps

xx

Are You sure,
we should do this, Princess?

Are You sure,
we should do this, Princess?

Are You sure,
we should do this, Princess?

Of course!
Shoot!

START

BOW CHIEF 2

OUT OF ARROWS

Well Done!

PLAYER 1
WINS

PLAYER 2
WINS

YOU LOSE

Well Done!

ActionScript [AS1/AS2]

Frame 1
this.stop(); mcStart._visible = false;
Instance of Symbol 239 MovieClip in Frame 1
on (release) { getURL ("http://www.i6.com/?utm_source=games&utm_medium=boxchief2pr", "_blank"); }
Instance of Symbol 243 MovieClip "mcStart" in Frame 1
on (release) { _root.play(); }
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version)); u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("a8acba61", this, 10301, true); this.stop(); singleplay = false; intrfc._visible = false; youwin._visible = false; puzzlewin._visible = false; youlose._visible = false; p1win._visible = false; p2win._visible = false; pbultas._visible = false; arrows = 50; cawin._visible = false; pulevel = 1; silevel = 1; calevel = 0;
Instance of Symbol 264 MovieClip "pbultas" in Frame 2
on (release) { _root.play2.removeMovieClip(); _root.intrfc._visible = false; singleplay = false; _root.two._visible = true; _root.single._visible = true; _root.pzle._visible = true; _root.plmr._visible = true; this._visible = false; _root.arrows = 50; }
Instance of Symbol 272 MovieClip "p1win" in Frame 2
on (release) { _root.play2.removeMovieClip(); _root.intrfc._visible = false; singleplay = false; _root.two._visible = true; _root.single._visible = true; _root.pzle._visible = true; _root.plmr._visible = true; this._visible = false; }
Instance of Symbol 270 MovieClip "cawin" in Frame 2
on (release) { _root.play2.removeMovieClip(); if (_root.calevel == 1) { this._visible = false; var game = _root.attachMovie("funk", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.calevel == 2) { this._visible = false; var game = _root.attachMovie("funk2", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.calevel == 3) { this._visible = false; var game = _root.attachMovie("funk3", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.calevel == 4) { this._visible = false; var game = _root.attachMovie("funk4", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 5) { this._visible = false; var game = _root.attachMovie("funk5", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 6) { this._visible = false; var game = _root.attachMovie("funk6", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 7) { this._visible = false; var game = _root.attachMovie("bosslev", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else { _root.pulevel = 1; _root.intrfc._visible = false; singleplay = false; _root.two._visible = true; _root.single._visible = true; _root.pzle._visible = true; this._visible = false; } }
Instance of Symbol 274 MovieClip "p2win" in Frame 2
on (release) { _root.play2.removeMovieClip(); _root.intrfc._visible = false; singleplay = false; _root.two._visible = true; _root.single._visible = true; _root.pzle._visible = true; this._visible = false; _root.plmr._visible = true; }
Instance of Symbol 276 MovieClip "youlose" in Frame 2
on (release) { _root.play2.removeMovieClip(); _root.intrfc._visible = false; singleplay = false; _root.two._visible = true; _root.single._visible = true; _root.pzle._visible = true; _root.plmr._visible = true; this._visible = false; }
Instance of Symbol 270 MovieClip in Frame 2
on (release) { _root.play2.removeMovieClip(); if (_root.pulevel == 2) { this._visible = false; var game = _root.attachMovie("puzzle2", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 3) { this._visible = false; var game = _root.attachMovie("puzzle3", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 4) { this._visible = false; var game = _root.attachMovie("puzzle4", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 5) { this._visible = false; var game = _root.attachMovie("puzzle5", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 6) { this._visible = false; var game = _root.attachMovie("puzzle6", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else { _root.pulevel = 1; _root.intrfc._visible = false; singleplay = false; _root.two._visible = true; _root.single._visible = true; _root.pzle._visible = true; this._visible = false; } }
Symbol 11 MovieClip [lode] Frame 1
this.stop(); var lido = true;
Symbol 11 MovieClip [lode] Frame 11
this.swapDepths(_root.play2.getNextHighestDepth()); this.removeMovieClip();
Symbol 16 MovieClip [arrow] Frame 1
this.stop(); var lido = true;
Symbol 16 MovieClip [arrow] Frame 20
this.swapDepths(_root.play2.getNextHighestDepth()); this.removeMovieClip();
Symbol 26 MovieClip Frame 1
this.stop();
Symbol 40 MovieClip Frame 1
this.stop(); var hit = false;
Symbol 40 MovieClip Frame 15
this.stop();
Symbol 49 MovieClip Frame 1
this.stop(); atlauts = false;
Symbol 49 MovieClip Frame 6
atlauts = true; trace(atlauts);
Symbol 49 MovieClip Frame 9
if ((_root.singleplay == false) || (_root.play2.player == 1)) { this.stop(); }
Symbol 49 MovieClip Frame 21
this.gotoAndStop(1);
Symbol 61 MovieClip [puzzle3] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); _root.arrows--; p1bulta = _root.arrows; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if (((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(siena1.gut))) || (this.hitTest(siena2.gut))) || (this.hitTest(siena3.gut))) || (this.hitTest(siena4.gut))) || (this.hitTest(siena5.gut))) || (this.hitTest(siena6.gut))) || (this.hitTest(siena.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); siena.swapDepths(this); siena1.swapDepths(this); siena2.swapDepths(this); siena3.swapDepths(this); siena4.swapDepths(this); siena5.swapDepths(this); siena6.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.hitTest(_root.play2.merkis.gut) && (this.lido)) { _root.play2.merkis.swapDepths(_root.play2.getNextHighestDepth()); clife2 = clife2 - (70 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.pulevel = 4; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = _root.arrows; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 10; clife2 = 10; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.puzzlewin._visible = true; _root.puzzlewin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p1bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 200 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(merkis) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 77 MovieClip [puzzle6] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); _root.arrows--; p1bulta = _root.arrows; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(this); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if (((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(siena1.gut))) || (this.hitTest(siena2.gut))) || (this.hitTest(siena3.gut))) || (this.hitTest(siena4.gut))) || (this.hitTest(siena5.gut))) || (this.hitTest(siena6.gut))) || (this.hitTest(siena.gut))) && (this.lido)) { if (this.hitTest(siena.gut) || (this.hitTest(siena2.gut) && (this.lido))) { this.play(); } if ((this.hitTest(siena5.gut) || (this.hitTest(siena3.gut))) || (this.hitTest(Merkis.gut) && (this.lido))) { kustigie.push(this); trace(kustigie); } bulta.start(0, 1); zale.swapDepths(this); siena5.swapDepths(this); sienat.swapDepths(this); siena3.swapDepths(this); sienat1.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(_root.play2.Merkis.gut) && (this.lido)) { _root.play2.Merkis.swapDepths(_root.play2.getNextHighestDepth()); clife2 = clife2 - (70 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.pulevel = 7; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = _root.arrows; p2bulta = 50; kustigie = []; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 10; clife2 = 10; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.puzzlewin._visible = true; _root.puzzlewin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p1bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 200 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(Merkis) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; }; sintervals = 170; virz = 2; ritenis.stop(); ritenis1.stop(); siena.onEnterFrame = function () { sintervals--; if (sintervals <= 0) { virz = virz * -1; sintervals = 150; trace(virz); } ritenis._x = ritenis._x - virz; ritenis._rotation = ritenis._rotation - virz; ritenis1._x = ritenis1._x - virz; ritenis1._rotation = ritenis1._rotation - virz; siena5._x = siena5._x - virz; siena2._x = siena2._x - virz; siena3._x = siena3._x - virz; sienat._x = sienat._x - virz; sienat1._x = sienat1._x - virz; Merkis._x = Merkis._x - virz; diegs._x = diegs._x - virz; this._y = this._y + virz; this._x = this._x - virz; for (var _local2 in kustigie) { kustigie[_local2]._x = kustigie[_local2]._x - virz; } }; siena2.onEnterFrame = function () { sintervals--; if (sintervals <= 0) { virz = virz * -1; sintervals = 150; trace(virz); } this._y = this._y + virz; };
Symbol 80 MovieClip [puzzle5] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); _root.arrows--; p1bulta = _root.arrows; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if (((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(siena1.gut))) || (this.hitTest(siena2.gut))) || (this.hitTest(siena3.gut))) || (this.hitTest(siena4.gut))) || (this.hitTest(siena5.gut))) || (this.hitTest(siena6.gut))) || (this.hitTest(siena.gut))) && (this.lido)) { if (this.hitTest(siena.gut) || (this.hitTest(siena2.gut) && (this.lido))) { this.play(); } bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); siena.swapDepths(this); siena1.swapDepths(this); siena2.swapDepths(this); siena3.swapDepths(this); siena4.swapDepths(this); siena5.swapDepths(this); siena6.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(_root.play2.merkis.gut) && (this.lido)) { _root.play2.merkis.swapDepths(_root.play2.getNextHighestDepth()); clife2 = clife2 - (70 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.pulevel = 6; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = _root.arrows; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 10; clife2 = 10; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.puzzlewin._visible = true; _root.puzzlewin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p1bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 200 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(merkis) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; }; sintervals = 170; virz = 2; siena.onEnterFrame = function () { sintervals--; if (sintervals <= 0) { virz = virz * -1; sintervals = 150; trace(virz); } this._y = this._y - virz; }; siena2.onEnterFrame = function () { sintervals--; if (sintervals <= 0) { virz = virz * -1; sintervals = 150; trace(virz); } this._y = this._y - virz; };
Symbol 81 MovieClip [puzzle4] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); _root.arrows--; p1bulta = _root.arrows; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if (((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(siena1.gut))) || (this.hitTest(siena2.gut))) || (this.hitTest(siena3.gut))) || (this.hitTest(siena4.gut))) || (this.hitTest(siena5.gut))) || (this.hitTest(siena6.gut))) || (this.hitTest(siena.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); siena.swapDepths(this); siena1.swapDepths(this); siena2.swapDepths(this); siena3.swapDepths(this); siena4.swapDepths(this); siena5.swapDepths(this); siena6.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(_root.play2.merkis.gut) && (this.lido)) { _root.play2.merkis.swapDepths(_root.play2.getNextHighestDepth()); clife2 = clife2 - (70 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.pulevel = 5; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = _root.arrows; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 10; clife2 = 10; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.puzzlewin._visible = true; _root.puzzlewin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p1bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 200 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(merkis) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 87 MovieClip [puzzle2] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); _root.arrows--; p1bulta = _root.arrows; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if (((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(siena1.gut))) || (this.hitTest(siena2.gut))) || (this.hitTest(siena3.gut))) || (this.hitTest(siena4.gut))) || (this.hitTest(siena5.gut))) || (this.hitTest(siena6.gut))) || (this.hitTest(siena.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); siena.swapDepths(this); siena1.swapDepths(this); siena2.swapDepths(this); siena3.swapDepths(this); siena4.swapDepths(this); siena5.swapDepths(this); siena6.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(_root.play2.merkis.gut) && (this.lido)) { _root.play2.merkis.swapDepths(_root.play2.getNextHighestDepth()); clife2 = clife2 - (70 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.pulevel = 3; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = _root.arrows; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 10; clife2 = 10; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.puzzlewin._visible = true; _root.puzzlewin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p1bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 200 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(merkis) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 103 Button
on (release) { if (_root.play2.clife1 > 0) { _root.play2.removeMovieClip(); _root.intrfc._visible = false; singleplay = false; _root.two._visible = true; _root.single._visible = true; _root.pzle._visible = true; _root.plmr._visible = true; } }
Symbol 107 MovieClip [fps] Frame 1
fps = 30; var timeinit = new Date(); var lasttime = timeinit.getMilliseconds(); onEnterFrame = function () { var _local3 = new Date(); timepassed = (((_local3.getMilliseconds() - lasttime) >= 0) ? (_local3.getMilliseconds() - lasttime) : (1000 + (_local3.getMilliseconds() - lasttime))); fps = Math.round(10000 / timepassed) / 10; lasttime = _local3.getMilliseconds(); if (_root.gameover) { this.unloadMovie(); } };
Symbol 111 MovieClip Frame 1
var ugls = 0; this.onEnterFrame = function () { if (_root.play2.player == 1) { ugls = _root._root.play2.angle * -1; } if (_root.play2.player == 2) { ugls = _root.play2.angle * -1; } };
Instance of Symbol 109 MovieClip in Symbol 111 MovieClip Frame 1
on (rollOver) { trace("over"); _root.play2.skrol = true; } on (rollOut) { trace("out"); _root.play2.skrol = false; _root.play2.kalibrejam = true; }
Symbol 116 MovieClip [putns2] Frame 1
var skatitajs = random(100); var igreks = (random(2) - 1); _y = (random(100) - 100); _x = 4000; var lido = true; this.onEnterFrame = function () { if (lido) { this._y = this._y + igreks; this._x = this._x - (random(3) + 2); if (this._x < -1000) { this._x = 4000; _y = (random(100) - 100); skatitajs = random(100) + 10; igreks = random(2) - 1; } if (_y < -130) { igreks = 1; } if (_y > 0) { igreks = -1; } } else if (this.hitTest(_root.play2.ground) == false) { this._y = this._y + 7; } };
Symbol 117 MovieClip [puzzle] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); _root.arrows--; p1bulta = _root.arrows; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(_root.play2.merkis.gut) && (this.lido)) { _root.play2.merkis.swapDepths(_root.play2.getNextHighestDepth()); clife2 = clife2 - (70 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.pulevel = 2; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = _root.arrows; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 10; clife2 = 10; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.puzzlewin._visible = true; _root.puzzlewin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p1bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 200 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(merkis) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 1; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 129 MovieClip [king] Frame 1
this.stop(); atlauts = false;
Symbol 129 MovieClip [king] Frame 6
atlauts = true; trace(atlauts);
Symbol 129 MovieClip [king] Frame 9
if ((_root.singleplay == false) || (_root.play2.player == 1)) { this.stop(); }
Symbol 129 MovieClip [king] Frame 21
this.gotoAndStop(1);
Symbol 131 MovieClip Frame 1
this.onEnterFrame = function () { if (_alpha > 0) { _alpha = (_alpha - 0.4); } };
Symbol 132 MovieClip [1play8] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(skersis1))) || (this.hitTest(skersis2))) || (this.hitTest(skersis3))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); kollona.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 9; trace("level2"); this._x = 0; this._y = 195; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 15; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 200; clife2 = 200; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -1628; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 250 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 3; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("lode", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(skersis1))) || (this.hitTest(skersis2))) || (this.hitTest(skersis3))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 134 MovieClip [1play4] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(skersis1))) || (this.hitTest(skersis2))) || (this.hitTest(skersis3))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); kollona.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 1; trace("level2"); this._x = 0; this._y = 195; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 15; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 100; clife2 = 100; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -1628; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 250 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 3; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(skersis1))) || (this.hitTest(skersis2))) || (this.hitTest(skersis3))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 141 MovieClip [bosslev] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(skersis1))) || (this.hitTest(skersis2))) || (this.hitTest(skersis3))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 3; trace("level2"); this._x = 0; this._y = 195; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 20; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 300; clife2 = 300; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -1628; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 260 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 3; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("lode", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(skersis1))) || (this.hitTest(skersis2))) || (this.hitTest(skersis3))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 146 MovieClip Frame 1
this.stop(); atlauts = false;
Symbol 146 MovieClip Frame 6
atlauts = true; trace(atlauts);
Symbol 146 MovieClip Frame 9
if ((_root.singleplay == false) || (_root.play2.player == 1)) { this.stop(); }
Symbol 146 MovieClip Frame 21
this.gotoAndStop(1);
Symbol 148 MovieClip Frame 1
this.onEnterFrame = function () { if (_alpha > 0) { _alpha = (_alpha - 0.4); } };
Symbol 149 MovieClip [1play5] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(skersis1))) || (this.hitTest(skersis2))) || (this.hitTest(skersis3))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 6; trace("level2"); this._x = 0; this._y = 195; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 20; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 80; clife2 = 80; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -1628; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 260 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 3; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(skersis1))) || (this.hitTest(skersis2))) || (this.hitTest(skersis3))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (35 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (15 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (5 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 155 MovieClip Frame 1
this.stop(); atlauts = false;
Symbol 155 MovieClip Frame 6
atlauts = true; trace(atlauts);
Symbol 155 MovieClip Frame 9
if ((_root.singleplay == false) || (_root.play2.player == 1)) { this.stop(); }
Symbol 155 MovieClip Frame 21
this.gotoAndStop(1);
Symbol 157 MovieClip Frame 1
this.onEnterFrame = function () { if (_alpha > 0) { _alpha = (_alpha - 0.4); } };
Symbol 158 MovieClip [1play2] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(skersis1))) || (this.hitTest(skersis2))) || (this.hitTest(skersis3))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 3; trace("level2"); this._x = 0; this._y = 195; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 20; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 50; clife2 = 50; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -1628; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 260 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 3; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(skersis1))) || (this.hitTest(skersis2))) || (this.hitTest(skersis3))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (35 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (15 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (5 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 167 MovieClip [goblins2] Frame 1
this.stop(); atlauts = false;
Symbol 167 MovieClip [goblins2] Frame 6
atlauts = true; trace(atlauts);
Symbol 167 MovieClip [goblins2] Frame 9
if ((_root.singleplay == false) || (_root.play2.player == 1)) { this.stop(); }
Symbol 167 MovieClip [goblins2] Frame 21
this.gotoAndStop(1);
Symbol 169 MovieClip Frame 1
this.onEnterFrame = function () { if (_alpha > 0) { _alpha = (_alpha - 0.4); } };
Symbol 170 MovieClip [1play7] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((((((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(kollona4.gut))) || (this.hitTest(kollona5.gut))) || (this.hitTest(kollona6.gut))) || (this.hitTest(skersis1.gut))) || (this.hitTest(skersis2.gut))) || (this.hitTest(skersis3.gut))) || (this.hitTest(skersis4.gut))) || (this.hitTest(skersis5.gut))) || (this.hitTest(skersis6.gut))) || (this.hitTest(skersis7.gut))) || (this.hitTest(skersis8.gut))) || (this.hitTest(skersis9.gut))) || (this.hitTest(skersis10.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); kollona4.swapDepths(this); kollona5.swapDepths(this); kollona6.swapDepths(this); kollona.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); skersis4.swapDepths(this); skersis5.swapDepths(this); skersis6.swapDepths(this); skersis7.swapDepths(this); skersis8.swapDepths(this); skersis9.swapDepths(this); skersis10.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 8; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 100; clife2 = 100; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 130 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -138 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("lode", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } this.play(); } if ((((((((((((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(kollona4.gut))) || (this.hitTest(kollona5.gut))) || (this.hitTest(kollona6.gut))) || (this.hitTest(skersis1.gut))) || (this.hitTest(skersis2.gut))) || (this.hitTest(skersis3.gut))) || (this.hitTest(skersis4.gut))) || (this.hitTest(skersis5.gut))) || (this.hitTest(skersis6.gut))) || (this.hitTest(skersis7.gut))) || (this.hitTest(skersis8.gut))) || (this.hitTest(skersis9.gut))) || (this.hitTest(skersis10.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); kollona4.swapDepths(this); kollona5.swapDepths(this); kollona6.swapDepths(this); kollona.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); skersis4.swapDepths(this); skersis5.swapDepths(this); skersis6.swapDepths(this); skersis7.swapDepths(this); skersis8.swapDepths(this); skersis9.swapDepths(this); skersis10.swapDepths(this); this.lido = false; this.play(); varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 172 MovieClip Frame 1
this.onEnterFrame = function () { if (_alpha > 0) { _alpha = (_alpha - 0.4); } };
Symbol 173 MovieClip [1play3] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((((((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(kollona4.gut))) || (this.hitTest(kollona5.gut))) || (this.hitTest(kollona6.gut))) || (this.hitTest(skersis1.gut))) || (this.hitTest(skersis2.gut))) || (this.hitTest(skersis3.gut))) || (this.hitTest(skersis4.gut))) || (this.hitTest(skersis5.gut))) || (this.hitTest(skersis6.gut))) || (this.hitTest(skersis7.gut))) || (this.hitTest(skersis8.gut))) || (this.hitTest(skersis9.gut))) || (this.hitTest(skersis10.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); kollona4.swapDepths(this); kollona5.swapDepths(this); kollona6.swapDepths(this); kollona.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); skersis4.swapDepths(this); skersis5.swapDepths(this); skersis6.swapDepths(this); skersis7.swapDepths(this); skersis8.swapDepths(this); skersis9.swapDepths(this); skersis10.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 4; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 50; clife2 = 50; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 130 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -138 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((((((((((((((((((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) || (this.hitTest(kollona1.gut))) || (this.hitTest(kollona2.gut))) || (this.hitTest(kollona3.gut))) || (this.hitTest(kollona4.gut))) || (this.hitTest(kollona5.gut))) || (this.hitTest(kollona6.gut))) || (this.hitTest(skersis1.gut))) || (this.hitTest(skersis2.gut))) || (this.hitTest(skersis3.gut))) || (this.hitTest(skersis4.gut))) || (this.hitTest(skersis5.gut))) || (this.hitTest(skersis6.gut))) || (this.hitTest(skersis7.gut))) || (this.hitTest(skersis8.gut))) || (this.hitTest(skersis9.gut))) || (this.hitTest(skersis10.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona1.swapDepths(this); kollona2.swapDepths(this); kollona3.swapDepths(this); kollona4.swapDepths(this); kollona5.swapDepths(this); kollona6.swapDepths(this); kollona.swapDepths(this); skersis1.swapDepths(this); skersis2.swapDepths(this); skersis3.swapDepths(this); skersis4.swapDepths(this); skersis5.swapDepths(this); skersis6.swapDepths(this); skersis7.swapDepths(this); skersis8.swapDepths(this); skersis9.swapDepths(this); skersis10.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (35 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (15 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (5 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 175 MovieClip [camp] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 2; _root.youlose._visible = false; _root.youwin._visible = false; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 50; clife2 = 50; tlife3 = 50; clife3 = 50; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { trace("varsaut" + varsaut); trace("player" + player); trace("kalibrejam" + kalibrejam); trace("drawing" + drawing); if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if ((clife2 <= 0) || (clife3 <= 0)) { } trace(clife2); trace(clife3); _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 30; if (clife1 <= 0) { } trace(clife1); _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 30; if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 30; } putn--; if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if ((player == 2) || (player == 3)) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 198 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -166 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); figna2.gotoAndPlay("b"); if (player == 2) { start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; } if (player == 3) { start_ball_x = figna3._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna3._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else if (player == 2) { player = 3; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { } bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { } clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else if (player == 2) { player = 3; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); if (this.gut.hitTest(figna.trunk) && (this.lido)) { } clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else if (player == 2) { player = 3; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); if (this.gut.hitTest(figna.legs) && (this.lido)) { } this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else if (player == 2) { player = 3; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { } clife2 = clife2 - (70 + random(6)); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else if (player == 2) { player = 3; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); if (this.gut.hitTest(figna2.trunk) && (this.lido)) { } clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else if (player == 2) { player = 3; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); if (this.gut.hitTest(figna2.legs) && (this.lido)) { } this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else if (player == 2) { player = 3; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 177 MovieClip Frame 1
this.onEnterFrame = function () { if (_alpha > 0) { _alpha = (_alpha - 0.4); } };
Symbol 178 MovieClip [1playa] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 2; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 50; clife2 = 50; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 200 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (35 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (15 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (5 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 180 MovieClip Frame 1
this.onEnterFrame = function () { if (_alpha > 0) { _alpha = (_alpha - 0.4); } };
Symbol 181 MovieClip [1play4b] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 5; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 80; clife2 = 80; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 200 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -175 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (35 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (15 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (5 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 183 MovieClip Frame 1
this.onEnterFrame = function () { if (_alpha > 0) { _alpha = (_alpha - 0.4); } };
Symbol 184 MovieClip [1play6] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 7; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 100; clife2 = 100; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 200 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("lode", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; this.play(); } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; this.play(); } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 185 MovieClip [1play] Frame 1
function onMouseDown() { if ((((drawing == false) && (varsaut)) && (kalibrejam == false)) && (player == 1)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if (((varsaut && (kalibrejam == false)) && (drawing == true)) && (player == 1)) { varsaut = false; if (player == 1) { figna.gotoAndPlay("b"); p1bulta--; } else { figna2.gotoAndPlay("b"); p2bulta--; } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } _root.silevel = 2; lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); leimums = 25; putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 100; clife2 = 100; varsaut = true; kalibrejam = false; skrol = false; pozicija2 = -740; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (skrol) { _root.play2._x = _root.play2._x - 3; ground._x = ground._x + 3; intrfc._x = intrfc._x + 3; fons1._x = fons1._x + 2.72727272727273; fons2._x = fons2._x + 2; trace("scrl"); } if (clife2 <= 0) { _root.youwin._visible = true; _root.youwin.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.youlose._visible = true; _root.youlose.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { putn = random(1200) + 60; var _local6 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local5 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local6); putni.push(_local5); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local3 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local3 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local3; ground._x = ground._x - _local3; intrfc._x = intrfc._x - _local3; fons1._x = fons1._x - (_local3 / 1.1); fons2._x = fons2._x - (_local3 / 1.5); if ((_local3 < 0.5) && (_local3 > -0.5)) { kalibrejam = false; gadijums1 = random(leimums) - (leimums / 2); arrowpower = 200 + gadijums1; gadijums1 = random(leimums) - (leimums / 2); angle = -167 + gadijums1; if (leimums > 5) { leimums = leimums - 2; } figna2._rotation = angle; arrowangle = angle; figna2.gotoAndPlay("a"); trace(String(figna2.atlauts)); figna2.gotoAndPlay("b"); start_ball_x = figna2._x - (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = (figna2._y + (48 * Math.sin((angle * Math.PI) / 180))) - 8; p2bulta--; cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna2._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 186 MovieClip [2play] Frame 1
function onMouseDown() { if (((drawing == false) && (varsaut)) && (kalibrejam == false)) { if (player == 1) { figna.gotoAndPlay("a"); } else { figna2.gotoAndPlay("a"); } startx = _xmouse; starty = _ymouse; drawing = true; } terrain.moveTo(startx, starty); } function onMouseUp() { if ((varsaut && (kalibrejam == false)) && (drawing == true)) { varsaut = false; if (player == 1) { p1bulta--; figna.gotoAndPlay("b"); } else { p2bulta--; figna2.gotoAndPlay("b"); } arrowpower = power; arrowangle = angle; power = 0; angle = 0; figna._rotation = 0; figna2._rotation = 180; arrovangle = 0; drawing = false; terrain.clear(); if (player == 1) { start_ball_x = figna._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna._y + (48 * Math.sin((angle * Math.PI) / 180)); } if (player == 2) { start_ball_x = figna2._x + (48 * Math.cos((angle * Math.PI) / 180)); start_ball_y = figna2._y + (48 * Math.sin((angle * Math.PI) / 180)); } cannonball_fired = attachMovie("arrow", "arrow" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y}); cannonball_fired._rotation = figna._rotation; cannonball_fired.dirx = Math.cos((arrowangle * Math.PI) / 180) * arrowpower; cannonball_fired.diry = Math.sin((arrowangle * Math.PI) / 180) * arrowpower; } cannonball_fired.onEnterFrame = function () { for (var _local3 in putni) { if (this.hitTest(putni[_local3])) { _root.play2.zale.swapDepths(_root.play2.getNextHighestDepth()); if (this.lido) { bulta.start(0, 1); putni[_local3].lido = false; putni[_local3]._rotation = putni[_local3]._rotation + (random(90) + 45); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; } this._x = putni[_local3]._x; this._y = putni[_local3]._y; } } if ((this.gut.hitTest(ground) || (this.hitTest(kollona.gut))) && (this.lido)) { bulta.start(0, 1); zale.swapDepths(this); kollona.swapDepths(this); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } } if (player == 2) { if ((this.hitTest(figna.cepure) && (this.lido)) && (figna.cepure.hit == false)) { figna.cepure.play(); figna.cepure.hit = true; } if (this.gut.hitTest(figna.head) && (this.lido)) { clife1 = clife1 - (70 + random(6)); trace("head"); trace(clife1); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.trunk) && (this.lido)) { clife1 = clife1 - (30 + random(6)); this.play(); trace("trunk"); trace(clife1); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } if (this.gut.hitTest(figna.legs) && (this.lido)) { trace("leg"); trace(clife1); this.play(); clife1 = clife1 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna.gotoAndPlay("damage"); kajas.play(); } } if (player == 1) { if ((this.hitTest(figna2.cepure) && (this.lido)) && (figna2.cepure.hit == false)) { figna2.cepure.play(); figna2.cepure.hit = true; } if (this.gut.hitTest(figna2.head) && (this.lido)) { clife2 = clife2 - (70 + random(6)); trace("head"); this.lido = false; varsaut = true; this.play(); if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.trunk) && (this.lido)) { clife2 = clife2 - (30 + random(6)); this.play(); trace("trunk"); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } if (this.gut.hitTest(figna2.legs) && (this.lido)) { trace("leg"); this.play(); clife2 = clife2 - (10 + random(6)); this.lido = false; varsaut = true; if (player == 1) { player = 2; } else { player = 1; } kalibrejam = true; figna2.gotoAndPlay("damage"); kajas2.play(); } } if (this.lido) { this.diry = this.diry + gravity; this.dirx = (this.dirx * friction) + (wind / 4); this.diry = this.diry * friction; this._rotation = Math.atan2(this.diry, this.dirx) / (Math.PI/180); this._x = this._x + (this.dirx / lenums); this._y = this._y + (this.diry / lenums); _root.play2._x = _root.play2._x - (this.dirx / lenums); intrfc._x = intrfc._x + (this.dirx / lenums); ground._x = ground._x + (this.dirx / lenums); fons1._x = fons1._x + (this.dirx / (lenums * 1.1)); fons2._x = fons2._x + (this.dirx / (lenums * 1.5)); } }; } lokam.mp3; bulta = new Sound(); bulta.attachSound("lokam.mp3"); bulta.setVolume(100); putni = []; putn = random(60) + 30; p1bulta = 50; p2bulta = 50; this.stop(); _root.play2.createEmptyMovieClip("terrain", 1); _root.play2.terrain.lineStyle(5, 13382451, 100); drawing = false; angle = 0; power = 0; gravity = 2.5; friction = 0.999; player = 1; lenums = 7; tlife1 = 100; clife1 = 100; tlife2 = 100; clife2 = 100; varsaut = true; kalibrejam = false; pozicija2 = -1628; wind = random(3) - 2; if (wind == -2) { karodzins1.gotoAndStop(1); karodzins2.gotoAndStop(1); } if (wind == 2) { karodzins1.gotoAndStop(2); karodzins2.gotoAndStop(2); } if (wind == 1) { karodzins1.gotoAndStop(3); karodzins2.gotoAndStop(3); } if (wind == -1) { karodzins1.gotoAndStop(4); karodzins2.gotoAndStop(4); } if (wind == 0) { karodzins1.gotoAndStop(5); karodzins2.gotoAndStop(5); } onEnterFrame = function () { if (clife2 <= 0) { _root.p1win._visible = true; _root.p1win.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (clife1 <= 0) { _root.p2win._visible = true; _root.p2win.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } if (p2bulta <= 0) { _root.pbultas._visible = true; _root.pbultas.swapDepths(_root.getNextHighestDepth()); varsaut = false; player = 3; } putn--; if (putn < 0) { putn = random(1200) + 60; var _local4 = attachMovie("putns2", "putns2" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); var _local3 = attachMovie("putns3", "putns3" + _root.play2.getNextHighestDepth(), _root.play2.getNextHighestDepth()); putni.push(_local4); putni.push(_local3); } if (kalibrejam) { if (player == 1) { if ((_root.play2._x > -0.1) || (_root.play2._x < 0.1)) { var _local2 = (-_root.play2._x) / 20; _root.play2._x = _root.play2._x + _local2; ground._x = ground._x - _local2; intrfc._x = intrfc._x - _local2; fons1._x = fons1._x - (_local2 / 1.1); fons2._x = fons2._x - (_local2 / 1.5); if ((_local2 < 0.5) && (_local2 > -0.5)) { kalibrejam = false; } } } else if (player == 2) { if ((_root.play2._x > (pozicija2 - 0.1)) || (_root.play2._x < (pozicija2 + 0.1))) { var _local2 = (pozicija2 - _root.play2._x) / 20; _root.play2._x = _root.play2._x + _local2; ground._x = ground._x - _local2; intrfc._x = intrfc._x - _local2; fons1._x = fons1._x - (_local2 / 1.1); fons2._x = fons2._x - (_local2 / 1.5); if ((_local2 < 0.5) && (_local2 > -0.5)) { kalibrejam = false; } } } } if (((drawing == true) && (varsaut == true)) && (kalibrejam == false)) { power = Math.round(Math.sqrt(((startx - _xmouse) * (startx - _xmouse)) + ((starty - _ymouse) * (starty - _ymouse)))) * 2; if (power > 300) { power = 300; } angle = Math.round(Math.atan2(starty - _ymouse, startx - _xmouse) / (Math.PI/180)); if (player == 1) { if ((angle > 70) && (angle >= 0)) { angle = 70; } if (angle < -70) { angle = -70; } } if (player == 2) { if ((angle < 120) && (angle >= 0)) { angle = 120; } if ((angle > -120) && (angle < 0)) { angle = -120; } } if (player == 1) { figna._rotation = angle; } else { figna2._rotation = angle; } terrain.clear(); _root.play2.terrain.lineStyle(4, 13382451, 100); terrain.moveTo(startx, starty); terrain.lineTo(_xmouse, _ymouse); } }; figna.onEnterFrame = function () { }; _root.intrfc.p1bar.onEnterFrame = function () { if (clife1 <= 0) { clife1 = 0; } if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p1bar.bar._width = (450 / tlife1) * clife1; }; _root.intrfc.p2bar.onEnterFrame = function () { if (clife2 <= 0) { clife2 = 0; } _root.intrfc.p2bar.bar._width = (450 / tlife2) * clife2; };
Symbol 187 MovieClip [putns3] Frame 1
var skatitajs = random(100); var igreks = (random(2) - 1); _y = (random(130) - 100); _x = -1000; var lido = true; this.onEnterFrame = function () { if (lido) { this._y = this._y + igreks; this._x = this._x + (random(3) + 2); if (this._x > 14000) { this._x = -1000; _y = (random(120) - 100); skatitajs = random(100) + 10; igreks = random(2) - 1; } if (_y < -130) { igreks = 1; } if (_y > 0) { igreks = -1; } } else if (this.hitTest(_root.play2.ground) == false) { this._y = this._y + 7; } };
Symbol 200 MovieClip [goblinsmirst] Frame 1
this.onEnterFrame = function () { this._y = this._y + 2; };
Symbol 200 MovieClip [goblinsmirst] Frame 20
this.stop();
Symbol 204 MovieClip [goblinsmirst2] Frame 10
this.stop();
Symbol 208 Button
on (release) { this.gotoAndPlay(625); }
Symbol 219 MovieClip [intro] Frame 627
_root.attachMovie("1playa", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc._visible = true; _root.intrfc.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip();
Symbol 222 MovieClip [outro] Frame 381
_root.intrfc._visible = false; _root.singleplay = false; _root.two._visible = true; _root.single._visible = true; _root.pzle._visible = true; this.removeMovieClip();
Symbol 229 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 1
function stop_waiting() { waiting = false; clearInterval(waitID); } var waiting = true; var waitID = setInterval(stop_waiting, 6000);
Symbol 239 MovieClip Frame 2
percent = Math.round((_root.getBytesLoaded() * 100) / _root.getBytesTotal()); intro.gauge.gotoAndStop(percent);
Symbol 239 MovieClip Frame 3
if ((percent < 100) || (waiting)) { gotoAndPlay (2); }
Symbol 239 MovieClip Frame 4
trace("upps!"); stop(); _root.mcStart._visible = true;
Symbol 281 MovieClip [__Packages.merkis] Frame 0
class merkis extends MovieClip { var stop, _width, _height, play, _visible, _x, _y; function merkis () { super(); } function onLoad() { stop(); _root.Naidnieks.nanimacija.Merkis.merkisHI._visible = false; _root.Naidnieks.nanimacija.Merkis.asinis._visible = false; } function onEnterFrame() { if (_root.Naidnieks.izturibask <= 0) { _width = _width + 40; _height = _height + 40; _root.Naidnieks._height = _root.Naidnieks._height + _root.Naidnieks.palielinajums; _root.Naidnieks._width = _root.Naidnieks._width + _root.Naidnieks.palielinajums; _root.Naidnieks.palsk++; _root.Naidnieks.reakcijassk = (_root.Naidnieks.reakcija * 1.5) + 20; _root.Naidnieks.izturibask = _root.Naidnieks.izturiba; play(); _root.Instrukcija.gotoAndPlay(2); _visible = true; _root.Naidnieks.nanimacija.Help._visible = false; } } function onPress() { _root.Instrukcija._visible = false; if (_root.Naidnieks.izturibask <= 0) { _root.Naidnieks.punktix = _root.Naidnieks.punktix + ((_root.Naidnieks.punkti + 1) * 5); } else { _root.Naidnieks.punktix = _root.Naidnieks.punktix + ((_root.Naidnieks.punkti + 1) * 20); } _root.Naidnieks._height = _root.Naidnieks._height - (_root.Naidnieks.palielinajums * _root.Naidnieks.palsk); _root.Naidnieks._width = _root.Naidnieks._width - (_root.Naidnieks.palielinajums * _root.Naidnieks.palsk); _root.Naidnieks.palsk = 0; _root.Naidnieks.reakcijassk = _root.Naidnieks.reakcijassk + 10; _root.Naidnieks.ndzivibas--; if (_root.Naidnieks.ndzivibas <= 0) { _root.Lapas.play(); _root.Naidnieks.riciba = 30; _root.Naidnieks.nanimacija.gotoAndStop("zaude"); } _root.Naidnieks.Asinis2._x = _x; _root.Naidnieks.Asinis2._y = _y; _root.Naidnieks.Asinis2.play(); _root.cert = true; _visible = false; } function onRollOver() { _root.Naidnieks.nanimacija.Merkis.merkisHI._visible = true; stop(); } function onRollOut() { _root.Naidnieks.nanimacija.Merkis.merkisHI._visible = false; play(); } }
Symbol 249 Button
on (release) { var game = attachMovie("2play", "play2", _root.getNextHighestDepth()); game._x = 0; game._y = 195; intrfc._visible = true; intrfc.swapDepths(_root.getNextHighestDepth()); singleplay = false; two._visible = false; single._visible = false; pzle._visible = false; plmr._visible = false; }
Symbol 252 Button
on (release) { var game = attachMovie("puzzle", "play2", _root.getNextHighestDepth()); game._x = 0; game._y = 195; intrfc._visible = true; intrfc.swapDepths(_root.getNextHighestDepth()); singleplay = true; single._visible = false; two._visible = false; pzle._visible = false; plmr._visible = false; }
Symbol 257 Button
on (release) { var game = attachMovie("intro", "intro", _root.getNextHighestDepth()); game._x = 550; game._y = 1036; intrfc._visible = true; singleplay = true; single._visible = false; two._visible = false; pzle._visible = false; plmr._visible = false; }
Symbol 260 Button
on (release) { getURL ("http://www.i6.com/?utm_source=games&utm_medium=boxchief2pmg", "_blank"); }
Symbol 267 Button
on (release) { getURL ("http://www.i6.com/?utm_source=games&utm_medium=boxchief2pmg", "_blank"); }
Symbol 269 Button
on (release) { _root.play2.removeMovieClip(); if (_root.silevel == 2) { _root.youwin._visible = false; var game = _root.attachMovie("1play2", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.silevel == 3) { _root.youwin._visible = false; var game = _root.attachMovie("1play3", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.silevel == 4) { _root.youwin._visible = false; var game = _root.attachMovie("1play4b", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.silevel == 5) { _root.youwin._visible = false; var game = _root.attachMovie("1play5", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.silevel == 6) { _root.youwin._visible = false; var game = _root.attachMovie("1play6", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.silevel == 7) { _root.youwin._visible = false; var game = _root.attachMovie("1play7", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.silevel == 8) { _root.youwin._visible = false; var game = _root.attachMovie("1play8", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.silevel == 9) { _root.intrfc._visible = false; _root.youwin._visible = false; var game = _root.attachMovie("outro", "play2", _root.getNextHighestDepth()); _root.play2._x = 550; _root.play2._y = 1036; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else { _root.intrfc._visible = false; singleplay = false; _root.two._visible = true; _root.single._visible = true; _root.pzle._visible = true; _root.youwin._visible = false; _root.plmr._visible = true; } }
Symbol 278 Button
on (release) { _root.play2.removeMovieClip(); if (_root.pulevel == 2) { _root.puzzlewin._visible = false; var game = _root.attachMovie("puzzle2", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 3) { _root.puzzlewin._visible = false; var game = _root.attachMovie("puzzle3", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 4) { _root.puzzlewin._visible = false; var game = _root.attachMovie("puzzle4", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 5) { _root.puzzlewin._visible = false; var game = _root.attachMovie("puzzle5", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else if (_root.pulevel == 6) { _root.puzzlewin._visible = false; var game = _root.attachMovie("puzzle6", "play2", _root.getNextHighestDepth()); _root.play2._x = 0; _root.play2._y = 195; _root.intrfc.swapDepths(_root.getNextHighestDepth()); } else { _root.pulevel = 1; _root.intrfc._visible = false; singleplay = false; _root.two._visible = true; _root.single._visible = true; _root.pzle._visible = true; _root.plmr._visible = true; _root.puzzlewin._visible = false; } }

Library Items

Symbol 1 Sound [lokam.mp3]
Symbol 2 Sound [SITIENS.mp3]Used by:49 129 146 155 167
Symbol 3 Sound [Arrow.mp3]Used by:49 146 155
Symbol 4 Sound [sword.mp3]Used by:40
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:11 16 60 76
Symbol 7 GraphicUsed by:11
Symbol 8 GraphicUsed by:11
Symbol 9 GraphicUsed by:11
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip [lode]Uses:6 7 8 9 10
Symbol 12 GraphicUsed by:16
Symbol 13 GraphicUsed by:16
Symbol 14 GraphicUsed by:16
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClip [arrow]Uses:6 12 13 14 15
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:19
Symbol 19 MovieClipUses:18Used by:61 77 80 81 87 117 132 134 141 149 158 170 173 175 178 181 184 185 186
Symbol 20 BitmapUsed by:21 246
Symbol 21 GraphicUses:20Used by:22
Symbol 22 MovieClipUses:21Used by:61 77 80 81 87 117 132 134 141 149 158 170 173 175 178 181 184 185 186
Symbol 23 GraphicUsed by:61
Symbol 24 GraphicUsed by:26
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClipUses:24 25Used by:61 77 80 81 87 117 132 134 141 149 158 170 173 175 178 181 184 185 186  Timeline
Symbol 27 GraphicUsed by:34
Symbol 28 GraphicUsed by:30
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:28 29Used by:34
Symbol 31 GraphicUsed by:34
Symbol 32 GraphicUsed by:34
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClipUses:27 30 31 32 33Used by:61 77 80 81 87 117 132 134 141 149 158 170 173 175 178 181 184 185 186
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:35Used by:49 56 69 70 72 74 129 146 155 167 200  Timeline
Symbol 37 GraphicUsed by:49
Symbol 38 GraphicUsed by:49
Symbol 39 GraphicUsed by:40  Timeline
Symbol 40 MovieClipUses:39 4Used by:49
Symbol 41 GraphicUsed by:49
Symbol 42 GraphicUsed by:49
Symbol 43 GraphicUsed by:49
Symbol 44 GraphicUsed by:49
Symbol 45 GraphicUsed by:49
Symbol 46 GraphicUsed by:49
Symbol 47 GraphicUsed by:49
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:36 37 38 40 41 42 43 3 44 45 46 47 2 48Used by:61 77 80 81 87 117 132 134 141 149 158 170 173 175 178 181 184 185 186
Symbol 50 GraphicUsed by:51 70
Symbol 51 MovieClipUses:50Used by:61 77 80 81 87 117 132 134 141 149 158 170 173 175 178 181 184 185 186
Symbol 52 BitmapUsed by:53 57 244
Symbol 53 GraphicUses:52Used by:61 77 80 81 87 117 132 134 141 149 158 170 173 175 178 181 184 185 186
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:56
Symbol 56 MovieClipUses:55 36Used by:61 81 117 141 149 158 170 173 175 178 184 185
Symbol 57 GraphicUses:52Used by:58
Symbol 58 MovieClipUses:57Used by:61 77 80 81 87 117 132 134 141 149 158 170 173 175 178 181 184 185 186
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:6 59Used by:61 81 117
Symbol 61 MovieClip [puzzle3]Uses:19 22 23 26 34 49 51 53 56 58 60
Symbol 62 GraphicUsed by:77 80 81
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:63Used by:77
Symbol 65 GraphicUsed by:67
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClipUses:65 66Used by:77 80
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68 36Used by:77 80
Symbol 70 MovieClipUses:36 50Used by:77 80 81 87 132 134
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClipUses:36 71Used by:77 80 81 181
Symbol 73 GraphicUsed by:74
Symbol 74 MovieClipUses:36 73Used by:77
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClipUses:6 75Used by:77 80 87
Symbol 77 MovieClip [puzzle6]Uses:19 22 62 64 67 69 70 72 74 26 34 49 51 53 58 76
Symbol 78 GraphicUsed by:80
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClip [puzzle5]Uses:19 22 62 70 72 67 78 69 26 34 49 51 53 58 79 76
Symbol 81 MovieClip [puzzle4]Uses:19 22 62 70 72 26 34 49 51 56 53 58 60
Symbol 82 GraphicUsed by:87
Symbol 83 GraphicUsed by:87 132 134
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:84Used by:87 132 134
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClip [puzzle2]Uses:19 22 82 70 83 85 26 34 49 51 53 58 86 76
Symbol 88 FontUsed by:89 90 95 96 97 98 99 100 110 210 211 213 216 263 265 271 273 275 277
Symbol 89 EditableTextUses:88Used by:111
Symbol 90 EditableTextUses:88Used by:111
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:94
Symbol 93 GraphicUsed by:94
Symbol 94 MovieClipUses:92 93Used by:111
Symbol 95 EditableTextUses:88Used by:111
Symbol 96 EditableTextUses:88Used by:111
Symbol 97 EditableTextUses:88Used by:111
Symbol 98 EditableTextUses:88Used by:111
Symbol 99 EditableTextUses:88Used by:111
Symbol 100 EditableTextUses:88Used by:111
Symbol 101 GraphicUsed by:111
Symbol 102 GraphicUsed by:103
Symbol 103 ButtonUses:102Used by:111
Symbol 104 FontUsed by:105 106
Symbol 105 EditableTextUses:104Used by:107
Symbol 106 TextUses:104Used by:107
Symbol 107 MovieClip [fps]Uses:105 106Used by:111
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:108Used by:111
Symbol 110 EditableTextUses:88Used by:111
Symbol 111 MovieClipUses:89 90 94 95 96 97 98 99 100 101 103 107 109 110Used by:117  Timeline
Symbol 112 GraphicUsed by:115
Symbol 113 GraphicUsed by:115
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:112 113 114Used by:116 187
Symbol 116 MovieClip [putns2]Uses:115Used by:117
Symbol 117 MovieClip [puzzle]Uses:19 22 26 34 49 51 111 53 56 58 116 60
Symbol 118 GraphicUsed by:132
Symbol 119 GraphicUsed by:132 134
Symbol 120 GraphicUsed by:121
Symbol 121 MovieClipUses:120Used by:132 141 149 158 173 178 181
Symbol 122 GraphicUsed by:129
Symbol 123 GraphicUsed by:129
Symbol 124 SoundUsed by:129 167
Symbol 125 GraphicUsed by:129
Symbol 126 GraphicUsed by:129
Symbol 127 GraphicUsed by:129
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClip [king]Uses:36 122 123 124 125 126 127 128 2Used by:132 141
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:130Used by:132
Symbol 132 MovieClip [1play8]Uses:19 22 118 49 51 119 70 83 85 121 129 131 26 34 53 58
Symbol 133 GraphicUsed by:134
Symbol 134 MovieClip [1play4]Uses:19 22 133 49 51 119 70 83 85 26 34 53 58
Symbol 135 GraphicUsed by:136
Symbol 136 ButtonUses:135Used by:139 140
Symbol 137 BitmapUsed by:138
Symbol 138 GraphicUses:137Used by:139 140
Symbol 139 MovieClipUses:136 138Used by:141 170 173
Symbol 140 ButtonUses:136 138Used by:141 149 158
Symbol 141 MovieClip [bosslev]Uses:19 22 26 34 121 49 51 139 140 129 53 56 58
Symbol 142 GraphicUsed by:146
Symbol 143 GraphicUsed by:146
Symbol 144 GraphicUsed by:146
Symbol 145 GraphicUsed by:146
Symbol 146 MovieClipUses:36 142 143 3 144 145 2Used by:149 181
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClipUses:147Used by:149
Symbol 149 MovieClip [1play5]Uses:19 22 26 34 121 146 49 51 140 148 53 56 58
Symbol 150 GraphicUsed by:155
Symbol 151 GraphicUsed by:155
Symbol 152 GraphicUsed by:155
Symbol 153 GraphicUsed by:155
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClipUses:36 150 151 3 152 153 154 2Used by:158 173 175 178
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClipUses:156Used by:158
Symbol 158 MovieClip [1play2]Uses:19 22 26 34 121 155 49 51 140 157 53 56 58
Symbol 159 GraphicUsed by:160
Symbol 160 MovieClipUses:159Used by:170 184
Symbol 161 GraphicUsed by:167
Symbol 162 GraphicUsed by:167
Symbol 163 GraphicUsed by:167
Symbol 164 GraphicUsed by:167
Symbol 165 GraphicUsed by:167
Symbol 166 GraphicUsed by:167
Symbol 167 MovieClip [goblins2]Uses:36 161 162 124 163 164 165 166 2Used by:170 184
Symbol 168 GraphicUsed by:169
Symbol 169 MovieClipUses:168Used by:170
Symbol 170 MovieClip [1play7]Uses:19 22 26 34 49 51 160 167 169 53 56 58 139
Symbol 171 GraphicUsed by:172
Symbol 172 MovieClipUses:171Used by:173
Symbol 173 MovieClip [1play3]Uses:19 22 26 34 121 155 49 51 53 56 58 139 172
Symbol 174 GraphicUsed by:175
Symbol 175 MovieClip [camp]Uses:19 22 26 34 174 49 51 155 53 56 58
Symbol 176 GraphicUsed by:177
Symbol 177 MovieClipUses:176Used by:178
Symbol 178 MovieClip [1playa]Uses:19 22 177 26 34 49 51 121 155 53 56 58
Symbol 179 GraphicUsed by:180
Symbol 180 MovieClipUses:179Used by:181
Symbol 181 MovieClip [1play4b]Uses:19 22 26 34 49 51 121 72 146 180 53 58
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClipUses:182Used by:184
Symbol 184 MovieClip [1play6]Uses:19 22 160 167 26 34 49 51 183 53 56 58
Symbol 185 MovieClip [1play]Uses:19 22 26 34 49 51 53 56 58
Symbol 186 MovieClip [2play]Uses:19 22 26 34 49 51 53 58
Symbol 187 MovieClip [putns3]Uses:115
Symbol 188 GraphicUsed by:200
Symbol 189 GraphicUsed by:200
Symbol 190 SoundUsed by:200 219
Symbol 191 GraphicUsed by:200
Symbol 192 GraphicUsed by:200
Symbol 193 GraphicUsed by:200
Symbol 194 GraphicUsed by:200
Symbol 195 GraphicUsed by:200
Symbol 196 GraphicUsed by:200
Symbol 197 GraphicUsed by:200
Symbol 198 GraphicUsed by:200
Symbol 199 GraphicUsed by:200
Symbol 200 MovieClip [goblinsmirst]Uses:188 36 189 190 191 192 193 194 195 196 197 198 199
Symbol 201 GraphicUsed by:204
Symbol 202 GraphicUsed by:204
Symbol 203 GraphicUsed by:204
Symbol 204 MovieClip [goblinsmirst2]Uses:201 202 203
Symbol 205 BitmapUsed by:206 220
Symbol 206 GraphicUses:205Used by:219
Symbol 207 GraphicUsed by:208
Symbol 208 ButtonUses:207Used by:219
Symbol 209 GraphicUsed by:219
Symbol 210 EditableTextUses:88Used by:219
Symbol 211 EditableTextUses:88Used by:219
Symbol 212 GraphicUsed by:219
Symbol 213 EditableTextUses:88Used by:219
Symbol 214 GraphicUsed by:219
Symbol 215 GraphicUsed by:219
Symbol 216 EditableTextUses:88Used by:219
Symbol 217 GraphicUsed by:219
Symbol 218 GraphicUsed by:219
Symbol 219 MovieClip [intro]Uses:206 208 209 210 211 212 213 214 215 216 190 217 218
Symbol 220 GraphicUses:205Used by:222
Symbol 221 GraphicUsed by:222
Symbol 222 MovieClip [outro]Uses:220 221
Symbol 223 GraphicUsed by:239
Symbol 224 GraphicUsed by:229
Symbol 225 GraphicUsed by:226
Symbol 226 MovieClipUses:225Used by:229
Symbol 227 GraphicUsed by:228
Symbol 228 MovieClipUses:227Used by:229
Symbol 229 MovieClipUses:224 226 228Used by:237
Symbol 230 GraphicUsed by:237 238
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClipUses:231Used by:237 238
Symbol 233 GraphicUsed by:234
Symbol 234 MovieClipUses:233Used by:237 238
Symbol 235 GraphicUsed by:236
Symbol 236 MovieClipUses:235Used by:237 238
Symbol 237 MovieClipUses:229 230 232 234 236Used by:239
Symbol 238 MovieClipUses:230 232 234 236Used by:239
Symbol 239 MovieClipUses:223 237 238Used by:Timeline
Symbol 240 GraphicUsed by:243
Symbol 241 FontUsed by:242
Symbol 242 TextUses:241Used by:243
Symbol 243 MovieClipUses:240 242Used by:Timeline
Symbol 281 MovieClip [__Packages.merkis]
Symbol 244 GraphicUses:52Used by:Timeline
Symbol 245 GraphicUsed by:Timeline
Symbol 246 GraphicUses:20Used by:Timeline
Symbol 247 GraphicUsed by:249
Symbol 248 GraphicUsed by:249
Symbol 249 ButtonUses:247 248Used by:Timeline
Symbol 250 GraphicUsed by:252
Symbol 251 GraphicUsed by:252
Symbol 252 ButtonUses:250 251Used by:Timeline
Symbol 253 FontUsed by:254
Symbol 254 TextUses:253Used by:Timeline
Symbol 255 GraphicUsed by:257
Symbol 256 GraphicUsed by:257
Symbol 257 ButtonUses:255 256Used by:Timeline
Symbol 258 GraphicUsed by:260
Symbol 259 GraphicUsed by:260
Symbol 260 ButtonUses:258 259Used by:Timeline
Symbol 261 GraphicUsed by:262
Symbol 262 MovieClipUses:261Used by:264 270 272 274 276 279
Symbol 263 EditableTextUses:88Used by:264
Symbol 264 MovieClipUses:262 263Used by:Timeline
Symbol 265 EditableTextUses:88Used by:270
Symbol 266 GraphicUsed by:267
Symbol 267 ButtonUses:266Used by:270 279
Symbol 268 GraphicUsed by:269 278
Symbol 269 ButtonUses:268Used by:270
Symbol 270 MovieClipUses:262 265 267 269Used by:Timeline
Symbol 271 EditableTextUses:88Used by:272
Symbol 272 MovieClipUses:262 271Used by:Timeline
Symbol 273 EditableTextUses:88Used by:274
Symbol 274 MovieClipUses:262 273Used by:Timeline
Symbol 275 EditableTextUses:88Used by:276
Symbol 276 MovieClipUses:262 275Used by:Timeline
Symbol 277 EditableTextUses:88Used by:279
Symbol 278 ButtonUses:268Used by:279
Symbol 279 MovieClipUses:262 277 267 278Used by:Timeline
Symbol 280 SoundUsed by:Timeline

Instance Names

"mcStart"Frame 1Symbol 243 MovieClip
"kajas2"Frame 2Symbol 26 MovieClip
"head"Frame 2Symbol 36 MovieClip
"trunk"Frame 2Symbol 36 MovieClip
"legs"Frame 2Symbol 36 MovieClip
"intrfc"Frame 2Symbol 111 MovieClip
"two"Frame 2Symbol 249 Button
"pzle"Frame 2Symbol 252 Button
"plmr"Frame 2Symbol 260 Button
"pbultas"Frame 2Symbol 264 MovieClip
"youwin"Frame 2Symbol 270 MovieClip
"p1win"Frame 2Symbol 272 MovieClip
"cawin"Frame 2Symbol 270 MovieClip
"p2win"Frame 2Symbol 274 MovieClip
"youlose"Frame 2Symbol 276 MovieClip
"puzzlewin"Frame 2Symbol 279 MovieClip
"gut"Symbol 11 MovieClip [lode] Frame 1Symbol 6 MovieClip
"gut"Symbol 16 MovieClip [arrow] Frame 1Symbol 6 MovieClip
"head"Symbol 49 MovieClip Frame 1Symbol 36 MovieClip
"trunk"Symbol 49 MovieClip Frame 1Symbol 36 MovieClip
"legs"Symbol 49 MovieClip Frame 1Symbol 36 MovieClip
"cepure"Symbol 49 MovieClip Frame 1Symbol 40 MovieClip
"gut"Symbol 56 MovieClip Frame 1Symbol 36 MovieClip
"gut"Symbol 60 MovieClip Frame 1Symbol 6 MovieClip
"fons1"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 19 MovieClip
"fons2"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 22 MovieClip
"karodzins1"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 34 MovieClip
"figna"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 49 MovieClip
"ground"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 51 MovieClip
"kollona"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 56 MovieClip
"siena3"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 56 MovieClip
"zale"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 58 MovieClip
"merkis"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 60 MovieClip
"siena2"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 56 MovieClip
"siena6"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 56 MovieClip
"siena"Symbol 61 MovieClip [puzzle3] Frame 1Symbol 56 MovieClip
"gut"Symbol 69 MovieClip Frame 1Symbol 36 MovieClip
"gut"Symbol 70 MovieClip Frame 1Symbol 36 MovieClip
"gut"Symbol 72 MovieClip Frame 1Symbol 36 MovieClip
"gut"Symbol 74 MovieClip Frame 1Symbol 36 MovieClip
"gut"Symbol 76 MovieClip Frame 1Symbol 6 MovieClip
"fons1"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 19 MovieClip
"fons2"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 22 MovieClip
"diegs"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 64 MovieClip
"ritenis"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 67 MovieClip
"ritenis1"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 67 MovieClip
"siena2"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 69 MovieClip
"siena"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 70 MovieClip
"siena3"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 72 MovieClip
"sienat"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 72 MovieClip
"sienat1"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 72 MovieClip
"siena5"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 74 MovieClip
"karodzins1"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 34 MovieClip
"figna"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 49 MovieClip
"ground"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 51 MovieClip
"zale"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 58 MovieClip
"Merkis"Symbol 77 MovieClip [puzzle6] Frame 1Symbol 76 MovieClip
"fons1"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 19 MovieClip
"fons2"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 22 MovieClip
"siena4"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 70 MovieClip
"siena5"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 70 MovieClip
"siena6"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 70 MovieClip
"siena6"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 70 MovieClip
"siena3"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 72 MovieClip
"siena5"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 72 MovieClip
"siena2"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 69 MovieClip
"siena"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 70 MovieClip
"karodzins1"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 34 MovieClip
"figna"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 49 MovieClip
"ground"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 51 MovieClip
"zale"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 58 MovieClip
"merkis"Symbol 80 MovieClip [puzzle5] Frame 1Symbol 76 MovieClip
"fons1"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 19 MovieClip
"fons2"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 22 MovieClip
"siena"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 70 MovieClip
"siena4"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 70 MovieClip
"siena5"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 70 MovieClip
"siena6"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 70 MovieClip
"siena2"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 70 MovieClip
"siena3"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 72 MovieClip
"karodzins1"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 34 MovieClip
"figna"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 49 MovieClip
"ground"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 51 MovieClip
"kollona"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 56 MovieClip
"zale"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 58 MovieClip
"merkis"Symbol 81 MovieClip [puzzle4] Frame 1Symbol 60 MovieClip
"fons1"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 19 MovieClip
"fons2"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 22 MovieClip
"siena"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 70 MovieClip
"siena4"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 70 MovieClip
"siena5"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 70 MovieClip
"siena3"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 70 MovieClip
"siena2"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 70 MovieClip
"siena6"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 70 MovieClip
"karodzins1"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 34 MovieClip
"figna"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 49 MovieClip
"ground"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 51 MovieClip
"zale"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 58 MovieClip
"merkis"Symbol 87 MovieClip [puzzle2] Frame 1Symbol 76 MovieClip
"bar"Symbol 94 MovieClip Frame 1Symbol 92 MovieClip
"p1bar"Symbol 111 MovieClip Frame 1Symbol 94 MovieClip
"p2bar"Symbol 111 MovieClip Frame 1Symbol 94 MovieClip
"fons1"Symbol 117 MovieClip [puzzle] Frame 1Symbol 19 MovieClip
"fons2"Symbol 117 MovieClip [puzzle] Frame 1Symbol 22 MovieClip
"karodzins1"Symbol 117 MovieClip [puzzle] Frame 1Symbol 34 MovieClip
"figna"Symbol 117 MovieClip [puzzle] Frame 1Symbol 49 MovieClip
"ground"Symbol 117 MovieClip [puzzle] Frame 1Symbol 51 MovieClip
"intrfc"Symbol 117 MovieClip [puzzle] Frame 1Symbol 111 MovieClip
"kollona"Symbol 117 MovieClip [puzzle] Frame 1Symbol 56 MovieClip
"zale"Symbol 117 MovieClip [puzzle] Frame 1Symbol 58 MovieClip
"merkis"Symbol 117 MovieClip [puzzle] Frame 1Symbol 60 MovieClip
"head"Symbol 129 MovieClip [king] Frame 1Symbol 36 MovieClip
"trunk"Symbol 129 MovieClip [king] Frame 1Symbol 36 MovieClip
"legs"Symbol 129 MovieClip [king] Frame 1Symbol 36 MovieClip
"fons1"Symbol 132 MovieClip [1play8] Frame 1Symbol 19 MovieClip
"fons2"Symbol 132 MovieClip [1play8] Frame 1Symbol 22 MovieClip
"figna"Symbol 132 MovieClip [1play8] Frame 1Symbol 49 MovieClip
"ground"Symbol 132 MovieClip [1play8] Frame 1Symbol 51 MovieClip
"kollona2"Symbol 132 MovieClip [1play8] Frame 1Symbol 70 MovieClip
"kollona1"Symbol 132 MovieClip [1play8] Frame 1Symbol 70 MovieClip
"skersis2"Symbol 132 MovieClip [1play8] Frame 1Symbol 70 MovieClip
"kollona"Symbol 132 MovieClip [1play8] Frame 1Symbol 70 MovieClip
"kollona3"Symbol 132 MovieClip [1play8] Frame 1Symbol 70 MovieClip
"skersis3"Symbol 132 MovieClip [1play8] Frame 1Symbol 70 MovieClip
"kajas2"Symbol 132 MovieClip [1play8] Frame 1Symbol 121 MovieClip
"figna2"Symbol 132 MovieClip [1play8] Frame 1Symbol 129 MovieClip [king]
"karodzins1"Symbol 132 MovieClip [1play8] Frame 1Symbol 34 MovieClip
"zale"Symbol 132 MovieClip [1play8] Frame 1Symbol 58 MovieClip
"fons1"Symbol 134 MovieClip [1play4] Frame 1Symbol 19 MovieClip
"fons2"Symbol 134 MovieClip [1play4] Frame 1Symbol 22 MovieClip
"figna"Symbol 134 MovieClip [1play4] Frame 1Symbol 49 MovieClip
"ground"Symbol 134 MovieClip [1play4] Frame 1Symbol 51 MovieClip
"kollona2"Symbol 134 MovieClip [1play4] Frame 1Symbol 70 MovieClip
"kollona1"Symbol 134 MovieClip [1play4] Frame 1Symbol 70 MovieClip
"skersis2"Symbol 134 MovieClip [1play4] Frame 1Symbol 70 MovieClip
"kollona"Symbol 134 MovieClip [1play4] Frame 1Symbol 70 MovieClip
"figna2"Symbol 134 MovieClip [1play4] Frame 1Symbol 49 MovieClip
"kollona3"Symbol 134 MovieClip [1play4] Frame 1Symbol 70 MovieClip
"skersis3"Symbol 134 MovieClip [1play4] Frame 1Symbol 70 MovieClip
"karodzins1"Symbol 134 MovieClip [1play4] Frame 1Symbol 34 MovieClip
"kajas2"Symbol 134 MovieClip [1play4] Frame 1Symbol 26 MovieClip
"zale"Symbol 134 MovieClip [1play4] Frame 1Symbol 58 MovieClip
"gut"Symbol 139 MovieClip Frame 1Symbol 136 Button
"fons1"Symbol 141 MovieClip [bosslev] Frame 1Symbol 19 MovieClip
"fons2"Symbol 141 MovieClip [bosslev] Frame 1Symbol 22 MovieClip
"karodzins1"Symbol 141 MovieClip [bosslev] Frame 1Symbol 34 MovieClip
"karodzins2"Symbol 141 MovieClip [bosslev] Frame 1Symbol 34 MovieClip
"kajas2"Symbol 141 MovieClip [bosslev] Frame 1Symbol 121 MovieClip
"figna"Symbol 141 MovieClip [bosslev] Frame 1Symbol 49 MovieClip
"ground"Symbol 141 MovieClip [bosslev] Frame 1Symbol 51 MovieClip
"skersis2"Symbol 141 MovieClip [bosslev] Frame 1Symbol 139 MovieClip
"skersis3"Symbol 141 MovieClip [bosslev] Frame 1Symbol 140 Button
"figna2"Symbol 141 MovieClip [bosslev] Frame 1Symbol 129 MovieClip [king]
"kollona"Symbol 141 MovieClip [bosslev] Frame 1Symbol 56 MovieClip
"kollona1"Symbol 141 MovieClip [bosslev] Frame 1Symbol 56 MovieClip
"kollona2"Symbol 141 MovieClip [bosslev] Frame 1Symbol 56 MovieClip
"kollona3"Symbol 141 MovieClip [bosslev] Frame 1Symbol 56 MovieClip
"zale"Symbol 141 MovieClip [bosslev] Frame 1Symbol 58 MovieClip
"head"Symbol 146 MovieClip Frame 1Symbol 36 MovieClip
"trunk"Symbol 146 MovieClip Frame 1Symbol 36 MovieClip
"legs"Symbol 146 MovieClip Frame 1Symbol 36 MovieClip
"fons1"Symbol 149 MovieClip [1play5] Frame 1Symbol 19 MovieClip
"fons2"Symbol 149 MovieClip [1play5] Frame 1Symbol 22 MovieClip
"karodzins1"Symbol 149 MovieClip [1play5] Frame 1Symbol 34 MovieClip
"karodzins2"Symbol 149 MovieClip [1play5] Frame 1Symbol 34 MovieClip
"kajas2"Symbol 149 MovieClip [1play5] Frame 1Symbol 121 MovieClip
"figna2"Symbol 149 MovieClip [1play5] Frame 1Symbol 146 MovieClip
"figna"Symbol 149 MovieClip [1play5] Frame 1Symbol 49 MovieClip
"ground"Symbol 149 MovieClip [1play5] Frame 1Symbol 51 MovieClip
"skersis3"Symbol 149 MovieClip [1play5] Frame 1Symbol 140 Button
"kollona1"Symbol 149 MovieClip [1play5] Frame 1Symbol 56 MovieClip
"kollona2"Symbol 149 MovieClip [1play5] Frame 1Symbol 56 MovieClip
"zale"Symbol 149 MovieClip [1play5] Frame 1Symbol 58 MovieClip
"head"Symbol 155 MovieClip Frame 1Symbol 36 MovieClip
"trunk"Symbol 155 MovieClip Frame 1Symbol 36 MovieClip
"legs"Symbol 155 MovieClip Frame 1Symbol 36 MovieClip
"fons1"Symbol 158 MovieClip [1play2] Frame 1Symbol 19 MovieClip
"fons2"Symbol 158 MovieClip [1play2] Frame 1Symbol 22 MovieClip
"karodzins1"Symbol 158 MovieClip [1play2] Frame 1Symbol 34 MovieClip
"karodzins2"Symbol 158 MovieClip [1play2] Frame 1Symbol 34 MovieClip
"kajas2"Symbol 158 MovieClip [1play2] Frame 1Symbol 121 MovieClip
"figna2"Symbol 158 MovieClip [1play2] Frame 1Symbol 155 MovieClip
"figna"Symbol 158 MovieClip [1play2] Frame 1Symbol 49 MovieClip
"ground"Symbol 158 MovieClip [1play2] Frame 1Symbol 51 MovieClip
"skersis3"Symbol 158 MovieClip [1play2] Frame 1Symbol 140 Button
"kollona"Symbol 158 MovieClip [1play2] Frame 1Symbol 56 MovieClip
"kollona1"Symbol 158 MovieClip [1play2] Frame 1Symbol 56 MovieClip
"kollona2"Symbol 158 MovieClip [1play2] Frame 1Symbol 56 MovieClip
"kollona3"Symbol 158 MovieClip [1play2] Frame 1Symbol 56 MovieClip
"zale"Symbol 158 MovieClip [1play2] Frame 1Symbol 58 MovieClip
"head"Symbol 167 MovieClip [goblins2] Frame 1Symbol 36 MovieClip
"trunk"Symbol 167 MovieClip [goblins2] Frame 1Symbol 36 MovieClip
"legs"Symbol 167 MovieClip [goblins2] Frame 1Symbol 36 MovieClip
"fons1"Symbol 170 MovieClip [1play7] Frame 1Symbol 19 MovieClip
"fons2"Symbol 170 MovieClip [1play7] Frame 1Symbol 22 MovieClip
"karodzins1"Symbol 170 MovieClip [1play7] Frame 1Symbol 34 MovieClip
"karodzins2"Symbol 170 MovieClip [1play7] Frame 1Symbol 34 MovieClip
"figna"Symbol 170 MovieClip [1play7] Frame 1Symbol 49 MovieClip
"ground"Symbol 170 MovieClip [1play7] Frame 1Symbol 51 MovieClip
"kajas2"Symbol 170 MovieClip [1play7] Frame 1Symbol 160 MovieClip
"figna2"Symbol 170 MovieClip [1play7] Frame 1Symbol 167 MovieClip [goblins2]
"kollona"Symbol 170 MovieClip [1play7] Frame 1Symbol 56 MovieClip
"kollona2"Symbol 170 MovieClip [1play7] Frame 1Symbol 56 MovieClip
"kollona3"Symbol 170 MovieClip [1play7] Frame 1Symbol 56 MovieClip
"kollona1"Symbol 170 MovieClip [1play7] Frame 1Symbol 56 MovieClip
"kollona6"Symbol 170 MovieClip [1play7] Frame 1Symbol 56 MovieClip
"kollona4"Symbol 170 MovieClip [1play7] Frame 1Symbol 56 MovieClip
"kollona5"Symbol 170 MovieClip [1play7] Frame 1Symbol 56 MovieClip
"zale"Symbol 170 MovieClip [1play7] Frame 1Symbol 58 MovieClip
"skersis1"Symbol 170 MovieClip [1play7] Frame 1Symbol 139 MovieClip
"skersis12"Symbol 170 MovieClip [1play7] Frame 1Symbol 139 MovieClip
"skersi3"Symbol 170 MovieClip [1play7] Frame 1Symbol 139 MovieClip
"skersis5"Symbol 170 MovieClip [1play7] Frame 1Symbol 139 MovieClip
"skersis4"Symbol 170 MovieClip [1play7] Frame 1Symbol 139 MovieClip
"skersis6"Symbol 170 MovieClip [1play7] Frame 1Symbol 139 MovieClip
"skersis7"Symbol 170 MovieClip [1play7] Frame 1Symbol 139 MovieClip
"skersis9"Symbol 170 MovieClip [1play7] Frame 1Symbol 139 MovieClip
"skersis8"Symbol 170 MovieClip [1play7] Frame 1Symbol 139 MovieClip
"skersis10"Symbol 170 MovieClip [1play7] Frame 1Symbol 139 MovieClip
"fons1"Symbol 173 MovieClip [1play3] Frame 1Symbol 19 MovieClip
"fons2"Symbol 173 MovieClip [1play3] Frame 1Symbol 22 MovieClip
"karodzins1"Symbol 173 MovieClip [1play3] Frame 1Symbol 34 MovieClip
"karodzins2"Symbol 173 MovieClip [1play3] Frame 1Symbol 34 MovieClip
"kajas2"Symbol 173 MovieClip [1play3] Frame 1Symbol 121 MovieClip
"figna2"Symbol 173 MovieClip [1play3] Frame 1Symbol 155 MovieClip
"figna"Symbol 173 MovieClip [1play3] Frame 1Symbol 49 MovieClip
"ground"Symbol 173 MovieClip [1play3] Frame 1Symbol 51 MovieClip
"kollona"Symbol 173 MovieClip [1play3] Frame 1Symbol 56 MovieClip
"kollona2"Symbol 173 MovieClip [1play3] Frame 1Symbol 56 MovieClip
"kollona3"Symbol 173 MovieClip [1play3] Frame 1Symbol 56 MovieClip
"kollona1"Symbol 173 MovieClip [1play3] Frame 1Symbol 56 MovieClip
"zale"Symbol 173 MovieClip [1play3] Frame 1Symbol 58 MovieClip
"skersis1"Symbol 173 MovieClip [1play3] Frame 1Symbol 139 MovieClip
"skersis12"Symbol 173 MovieClip [1play3] Frame 1Symbol 139 MovieClip
"skersi3"Symbol 173 MovieClip [1play3] Frame 1Symbol 139 MovieClip
"skersis5"Symbol 173 MovieClip [1play3] Frame 1Symbol 139 MovieClip
"skersis7"Symbol 173 MovieClip [1play3] Frame 1Symbol 139 MovieClip
"fons1"Symbol 175 MovieClip [camp] Frame 1Symbol 19 MovieClip
"fons2"Symbol 175 MovieClip [camp] Frame 1Symbol 22 MovieClip
"karodzins1"Symbol 175 MovieClip [camp] Frame 1Symbol 34 MovieClip
"figna"Symbol 175 MovieClip [camp] Frame 1Symbol 49 MovieClip
"ground"Symbol 175 MovieClip [camp] Frame 1Symbol 51 MovieClip
"figna2"Symbol 175 MovieClip [camp] Frame 1Symbol 155 MovieClip
"figna3"Symbol 175 MovieClip [camp] Frame 1Symbol 155 MovieClip
"kollona"Symbol 175 MovieClip [camp] Frame 1Symbol 56 MovieClip
"zale"Symbol 175 MovieClip [camp] Frame 1Symbol 58 MovieClip
"fons1"Symbol 178 MovieClip [1playa] Frame 1Symbol 19 MovieClip
"fons2"Symbol 178 MovieClip [1playa] Frame 1Symbol 22 MovieClip
"karodzins1"Symbol 178 MovieClip [1playa] Frame 1Symbol 34 MovieClip
"karodzins2"Symbol 178 MovieClip [1playa] Frame 1Symbol 34 MovieClip
"figna"Symbol 178 MovieClip [1playa] Frame 1Symbol 49 MovieClip
"ground"Symbol 178 MovieClip [1playa] Frame 1Symbol 51 MovieClip
"kajas2"Symbol 178 MovieClip [1playa] Frame 1Symbol 121 MovieClip
"figna2"Symbol 178 MovieClip [1playa] Frame 1Symbol 155 MovieClip
"kollona"Symbol 178 MovieClip [1playa] Frame 1Symbol 56 MovieClip
"zale"Symbol 178 MovieClip [1playa] Frame 1Symbol 58 MovieClip
"fons1"Symbol 181 MovieClip [1play4b] Frame 1Symbol 19 MovieClip
"fons2"Symbol 181 MovieClip [1play4b] Frame 1Symbol 22 MovieClip
"karodzins1"Symbol 181 MovieClip [1play4b] Frame 1Symbol 34 MovieClip
"karodzins2"Symbol 181 MovieClip [1play4b] Frame 1Symbol 34 MovieClip
"figna"Symbol 181 MovieClip [1play4b] Frame 1Symbol 49 MovieClip
"ground"Symbol 181 MovieClip [1play4b] Frame 1Symbol 51 MovieClip
"kajas2"Symbol 181 MovieClip [1play4b] Frame 1Symbol 121 MovieClip
"kollona"Symbol 181 MovieClip [1play4b] Frame 1Symbol 72 MovieClip
"figna2"Symbol 181 MovieClip [1play4b] Frame 1Symbol 146 MovieClip
"zale"Symbol 181 MovieClip [1play4b] Frame 1Symbol 58 MovieClip
"fons1"Symbol 184 MovieClip [1play6] Frame 1Symbol 19 MovieClip
"fons2"Symbol 184 MovieClip [1play6] Frame 1Symbol 22 MovieClip
"kajas2"Symbol 184 MovieClip [1play6] Frame 1Symbol 160 MovieClip
"figna2"Symbol 184 MovieClip [1play6] Frame 1Symbol 167 MovieClip [goblins2]
"karodzins1"Symbol 184 MovieClip [1play6] Frame 1Symbol 34 MovieClip
"karodzins2"Symbol 184 MovieClip [1play6] Frame 1Symbol 34 MovieClip
"figna"Symbol 184 MovieClip [1play6] Frame 1Symbol 49 MovieClip
"ground"Symbol 184 MovieClip [1play6] Frame 1Symbol 51 MovieClip
"kollona"Symbol 184 MovieClip [1play6] Frame 1Symbol 56 MovieClip
"zale"Symbol 184 MovieClip [1play6] Frame 1Symbol 58 MovieClip
"fons1"Symbol 185 MovieClip [1play] Frame 1Symbol 19 MovieClip
"fons2"Symbol 185 MovieClip [1play] Frame 1Symbol 22 MovieClip
"kajas2"Symbol 185 MovieClip [1play] Frame 1Symbol 26 MovieClip
"karodzins1"Symbol 185 MovieClip [1play] Frame 1Symbol 34 MovieClip
"karodzins2"Symbol 185 MovieClip [1play] Frame 1Symbol 34 MovieClip
"figna"Symbol 185 MovieClip [1play] Frame 1Symbol 49 MovieClip
"figna2"Symbol 185 MovieClip [1play] Frame 1Symbol 49 MovieClip
"ground"Symbol 185 MovieClip [1play] Frame 1Symbol 51 MovieClip
"kollona"Symbol 185 MovieClip [1play] Frame 1Symbol 56 MovieClip
"zale"Symbol 185 MovieClip [1play] Frame 1Symbol 58 MovieClip
"fons1"Symbol 186 MovieClip [2play] Frame 1Symbol 19 MovieClip
"fons2"Symbol 186 MovieClip [2play] Frame 1Symbol 22 MovieClip
"kajas2"Symbol 186 MovieClip [2play] Frame 1Symbol 26 MovieClip
"karodzins1"Symbol 186 MovieClip [2play] Frame 1Symbol 34 MovieClip
"karodzins2"Symbol 186 MovieClip [2play] Frame 1Symbol 34 MovieClip
"figna"Symbol 186 MovieClip [2play] Frame 1Symbol 49 MovieClip
"figna2"Symbol 186 MovieClip [2play] Frame 1Symbol 49 MovieClip
"ground"Symbol 186 MovieClip [2play] Frame 1Symbol 51 MovieClip
"zale"Symbol 186 MovieClip [2play] Frame 1Symbol 58 MovieClip
"head"Symbol 200 MovieClip [goblinsmirst] Frame 1Symbol 36 MovieClip
"trunk"Symbol 200 MovieClip [goblinsmirst] Frame 1Symbol 36 MovieClip
"legs"Symbol 200 MovieClip [goblinsmirst] Frame 1Symbol 36 MovieClip
"trunk"Symbol 200 MovieClip [goblinsmirst] Frame 5Symbol 36 MovieClip
"bar"Symbol 229 MovieClip Frame 1Symbol 226 MovieClip
"bar"Symbol 229 MovieClip Frame 1Symbol 226 MovieClip
"bar"Symbol 229 MovieClip Frame 1Symbol 226 MovieClip
"gauge"Symbol 237 MovieClip Frame 1Symbol 229 MovieClip
"intro"Symbol 239 MovieClip Frame 1Symbol 237 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "lokam.mp3"
ExportAssets (56)Timeline Frame 1Symbol 2 as "SITIENS.mp3"
ExportAssets (56)Timeline Frame 1Symbol 3 as "Arrow.mp3"
ExportAssets (56)Timeline Frame 1Symbol 4 as "sword.mp3"
ExportAssets (56)Timeline Frame 1Symbol 11 as "lode"
ExportAssets (56)Timeline Frame 1Symbol 16 as "arrow"
ExportAssets (56)Timeline Frame 1Symbol 61 as "puzzle3"
ExportAssets (56)Timeline Frame 1Symbol 77 as "puzzle6"
ExportAssets (56)Timeline Frame 1Symbol 80 as "puzzle5"
ExportAssets (56)Timeline Frame 1Symbol 81 as "puzzle4"
ExportAssets (56)Timeline Frame 1Symbol 87 as "puzzle2"
ExportAssets (56)Timeline Frame 1Symbol 107 as "fps"
ExportAssets (56)Timeline Frame 1Symbol 116 as "putns2"
ExportAssets (56)Timeline Frame 1Symbol 117 as "puzzle"
ExportAssets (56)Timeline Frame 1Symbol 129 as "king"
ExportAssets (56)Timeline Frame 1Symbol 132 as "1play8"
ExportAssets (56)Timeline Frame 1Symbol 134 as "1play4"
ExportAssets (56)Timeline Frame 1Symbol 141 as "bosslev"
ExportAssets (56)Timeline Frame 1Symbol 149 as "1play5"
ExportAssets (56)Timeline Frame 1Symbol 158 as "1play2"
ExportAssets (56)Timeline Frame 1Symbol 167 as "goblins2"
ExportAssets (56)Timeline Frame 1Symbol 170 as "1play7"
ExportAssets (56)Timeline Frame 1Symbol 173 as "1play3"
ExportAssets (56)Timeline Frame 1Symbol 175 as "camp"
ExportAssets (56)Timeline Frame 1Symbol 178 as "1playa"
ExportAssets (56)Timeline Frame 1Symbol 181 as "1play4b"
ExportAssets (56)Timeline Frame 1Symbol 184 as "1play6"
ExportAssets (56)Timeline Frame 1Symbol 185 as "1play"
ExportAssets (56)Timeline Frame 1Symbol 186 as "2play"
ExportAssets (56)Timeline Frame 1Symbol 187 as "putns3"
ExportAssets (56)Timeline Frame 1Symbol 200 as "goblinsmirst"
ExportAssets (56)Timeline Frame 1Symbol 204 as "goblinsmirst2"
ExportAssets (56)Timeline Frame 1Symbol 219 as "intro"
ExportAssets (56)Timeline Frame 1Symbol 222 as "outro"
ExportAssets (56)Timeline Frame 1Symbol 281 as "__Packages.merkis"

Labels

"a"Symbol 49 MovieClip Frame 1
"b"Symbol 49 MovieClip Frame 10
"damage"Symbol 49 MovieClip Frame 22
"a"Symbol 129 MovieClip [king] Frame 1
"b"Symbol 129 MovieClip [king] Frame 10
"damage"Symbol 129 MovieClip [king] Frame 22
"a"Symbol 146 MovieClip Frame 1
"b"Symbol 146 MovieClip Frame 10
"damage"Symbol 146 MovieClip Frame 22
"a"Symbol 155 MovieClip Frame 1
"b"Symbol 155 MovieClip Frame 10
"damage"Symbol 155 MovieClip Frame 22
"a"Symbol 167 MovieClip [goblins2] Frame 1
"b"Symbol 167 MovieClip [goblins2] Frame 10
"damage"Symbol 167 MovieClip [goblins2] Frame 22
"preloader"Symbol 239 MovieClip Frame 2

Dynamic Text Variables

_root.play2.angleSymbol 89 EditableText"xx"
_root.play2.powerSymbol 90 EditableText"xx"
_root.play2.playerSymbol 98 EditableText"x"
_root.play2.p2bultaSymbol 99 EditableText"XX"
_root.play2.p1bultaSymbol 100 EditableText"XX"
fpsSymbol 105 EditableText"<p align="left"></p>"
uglsSymbol 110 EditableText"xx"




http://swfchan.com/23/113867/info.shtml
Created: 11/3 -2019 06:50:33 Last modified: 11/3 -2019 06:50:33 Server time: 22/12 -2024 09:20:12