home *** CD-ROM | disk | FTP | other *** search
- package Code.LOGIC
- {
- import Code.LIB.SOUND._wj196;
- import Code.LIB._bm350;
- import Code.LIB._iv163;
- import Code.LIB._ja537;
- import Code.LIB._lq68;
- import Code.LIB._uu24;
- import Code.LOGIC.OBJECTS.ACTORS.BLOB._be439;
- import Code.LOGIC.OBJECTS.ACTORS.BLOB._hg469;
- import Code.LOGIC.OBJECTS.ACTORS.BLOB._la458;
- import Code.LOGIC.OBJECTS.ACTORS.BLOB._pg56;
- import Code.LOGIC.OBJECTS.ACTORS.INTERFACES._mk516;
- import Code.LOGIC.OBJECTS.ACTORS.INTERFACES._xn130;
- import Code.LOGIC.OBJECTS.ACTORS.RECTS._bk73;
- import Code.LOGIC.OBJECTS.ACTORS.RECTS._dt98;
- import Code.LOGIC.OBJECTS.ACTORS.RECTS._gg531;
- import Code.LOGIC.OBJECTS.ACTORS.RECTS._le239;
- import Code.LOGIC.OBJECTS.ACTORS.RECTS._st436;
- import Code.LOGIC.OBJECTS.ACTORS.RECTS._tr528;
- import Code.LOGIC.OBJECTS.ACTORS._ap353;
- import Code.LOGIC.OBJECTS.ACTORS._kp67;
- import Code.LOGIC.OBJECTS.ACTORS._sg87;
- import Code.LOGIC.OBJECTS.ACTORS._tv77;
- import Code.LOGIC.OBJECTS.ACTORS._uy463;
- import Code.LOGIC.OBJECTS.GRAPHICS._cl163;
- import Code.LOGIC.OBJECTS.GRAPHICS._wv496;
- import Code.LOGIC.OBJECTS.OBJECTS._bd467;
- import Code.LOGIC.OBJECTS.OBJECTS._fj490;
- import Code.LOGIC.OBJECTS.OBJECTS._ix78;
- import Code.LOGIC.OBJECTS.OBJECTS._mt59;
- import Code.LOGIC.OBJECTS.OBJECTS._pc67;
- import Code.OPTIONS._dx111;
- import Code.org.cove.ape._be271;
- import Code.org.cove.ape._gf356;
- import Code.org.cove.ape._hj251;
- import Code.org.cove.ape._hu144;
- import Code.org.cove.ape._rv416;
- import Code.org.cove.ape._yo331;
- import flash.display.Sprite;
- import flash.events.Event;
- import flash.events.KeyboardEvent;
- import flash.filters.BlurFilter;
- import flash.geom.Point;
- import flash.geom.Rectangle;
-
- public class _cd449 extends _ja537
- {
-
- public static const screenWidth:int = 800;
-
- public static const screenHeight:int = 600;
-
- public static const G:Number = 3.5;
-
- public static const SECTOR_SIZE:int = int(600);
-
- public static const stWin:int = 6;
-
- public static var timerWater:int;
-
- public static const stScroll:int = 3;
-
- public static var BLOB:_be439;
-
- public static const stNormal:int = 1;
-
- public static const stDoor:int = 4;
-
- public static const stBlow:int = 2;
-
- public static const stHideField:int = 5;
-
- public static const stLoose:int = 7;
-
- public static const stShow:int = 0;
-
-
- private var checkPoints:Array;
-
- protected var rightWall:_tr528;
-
- private var doorFlag:Boolean = false;
-
- private var engine:_hj251;
-
- protected var leftWall:_tr528;
-
- private var state:int;
-
- protected var container:_pc67;
-
- private var activeGroups:Array;
-
- private var collectedBlobs:Array;
-
- private var defaultGroup:_yo331;
-
- private var saveBlobs:Boolean;
-
- private var blows:Array;
-
- public var paused:Boolean;
-
- private var currCheckPoint:int = 0;
-
- private var sectorsCount:int;
-
- private var timer:int;
-
- private var keyBuff:Object;
-
- private var endGame:Boolean = false;
-
- protected var maxID:int;
-
- private var _startInd:int = -1;
-
- protected var level:Object;
-
- protected var SHOW_CHECKPOINTS:Boolean = false;
-
- private var effect:_fj490;
-
- private var blob:_be439;
-
- private var topPanel:_mt59;
-
- private var explodes:Object;
-
- private var door:_bk73;
-
- private var mapWidth:int;
-
- protected var stopped:Boolean = true;
-
- protected var groups:Array;
-
- private var win:Boolean;
-
- private var textMsgs:Array;
-
- private var pushForce:_be271;
-
- public function _cd449(param1:Object)
- {
- SHOW_CHECKPOINTS = false;
- stopped = true;
- keyBuff = {
- "leftKey":false,
- "rightKey":false,
- "upKey":false,
- "downKey":false
- };
- activeGroups = [0,0,0];
- explodes = {};
- currCheckPoint = 0;
- _startInd = -1;
- doorFlag = false;
- endGame = false;
- super();
- maxID = 0;
- this.level = param1;
- this.mapWidth = this.level.mapWidth;
- this.sectorsCount = this.mapWidth / SECTOR_SIZE + 1;
- this.container = new _pc67(screenWidth,screenHeight,mapWidth);
- this.addChild(_uu24._sa70(new _dx111.GGameBg()));
- this.addChild(container);
- _bm350.prStage.frameRate = 35;
- this.engine = new _hj251();
- _hj251.INST = this.engine;
- this.engine.init(1 / 4);
- this.engine.container = container;
- this.engine._pj361(new _be271(0,G));
- this.blows = new Array();
- this.checkPoints = new Array();
- this.collectedBlobs = new Array();
- _nk262();
- this.scrollRect = new Rectangle(0,0,800 * _bm350._tc204,600 * _bm350._tc204);
- stopped = false;
- }
-
- public function _mc381(param1:int, param2:Point) : void
- {
- var _loc3_:String = null;
- var _loc4_:Object = null;
- var _loc5_:_ix78 = null;
- _loc3_ = String(textMsgs[param1]);
- _loc4_ = {
- "text":_loc3_,
- "width":150,
- "height":120,
- "textSize":18,
- "picture":new _dx111.GCloud() as Sprite
- };
- (_loc5_ = new _ix78(_loc4_))._gm53(param2.x,param2.y - _loc5_.height / _bm350._tc204 - 40);
- this.container.addChild(_loc5_);
- }
-
- private function _ln110(param1:Array, param2:Number, param3:Number) : _cl163
- {
- var _loc4_:_cl163 = null;
- (_loc4_ = new _cl163(param1))._gm53(param2,param3);
- this.blows.push(_loc4_);
- this.container.addChild(_loc4_);
- return _loc4_;
- }
-
- protected function _nk262() : void
- {
- var _loc1_:int = 0;
- var _loc2_:int = 0;
- var _loc3_:Array = null;
- var _loc4_:Object = null;
- var _loc5_:_mk516 = null;
- var _loc6_:String = null;
- saveBlobs = false;
- this.groups = new Array();
- _loc1_ = 0;
- while(_loc1_ < this.sectorsCount)
- {
- this.groups.push(new _yo331(true));
- _loc1_++;
- }
- this.defaultGroup = new _yo331(true);
- this.engine._yd219(defaultGroup);
- _loc1_ = 0;
- while(_loc1_ < this.groups.length - 1)
- {
- _yo331(groups[_loc1_])._fc291(defaultGroup);
- _yo331(groups[_loc1_])._fc291(groups[_loc1_ + 1]);
- _loc1_++;
- }
- _loc2_ = 0;
- _loc3_ = _xy153(this.level.objects);
- _loc1_ = 0;
- for(; _loc1_ < _loc3_.length; _loc1_++)
- {
- if((_loc5_ = _loc3_[_loc1_]) is _sg87 && _sg87(_loc5_).type == _sg87.TYPE_KEY)
- {
- _loc2_++;
- }
- else if(_loc5_ is _bk73)
- {
- door = _bk73(_loc5_);
- }
- else if(_loc5_ is _kp67 && !SHOW_CHECKPOINTS)
- {
- continue;
- }
- addItem(_loc5_);
- }
- if(level.defaultGroup)
- {
- _loc3_ = _xy153(this.level.defaultGroup);
- _loc1_ = 0;
- while(_loc1_ < _loc3_.length)
- {
- _loc5_ = _loc3_[_loc1_];
- defaultGroup._dq187(_hu144(_loc5_));
- _loc1_++;
- }
- }
- _loc4_ = {
- "State":0,
- "x":-50,
- "_ew250":true,
- "y":0,
- "rotation":0,
- "prClass":_tr528,
- "width":50,
- "_tp253":56,
- "action":"",
- "height":600,
- "active":false
- };
- leftWall = new _tr528(_loc4_);
- addItem(leftWall);
- _loc4_ = {
- "State":0,
- "x":level.mapWidth,
- "_ew250":true,
- "y":0,
- "rotation":0,
- "prClass":_tr528,
- "width":50,
- "_tp253":56,
- "action":"",
- "height":600,
- "active":false
- };
- rightWall = new _tr528(_loc4_);
- addItem(rightWall);
- container._qm444 = 0;
- container._wl52 = screenHeight;
- container.scrollY = level.scrollY;
- this.explodes = {
- "playerBlob":_cl163._jl109(new _dx111.GPlayerBlobComplete() as Sprite,15),
- "heart":_cl163._jl109(new _dx111.GHeart() as Sprite,15),
- "key":_cl163._jl109(new _dx111.GKey() as Sprite,15),
- "greenBlob":_uu24._sa70(new _dx111.GBlobGreen() as Sprite,0.3),
- "yellowBlob":_uu24._sa70(new _dx111.GBlobYellow() as Sprite,0.3)
- };
- this.textMsgs = new Array();
- _loc1_ = 0;
- while(_loc1_ < level.txtMsgs.length)
- {
- _loc6_ = String(level.txtMsgs[_loc1_]);
- this.textMsgs.push(_loc6_.slice(0,_loc6_.length - 1));
- _loc1_++;
- }
- this.topPanel = new _mt59(_loc2_);
- this.topPanel._uk503 = _bm350.lives > 0 ? _bm350.lives : 2;
- if(_bm350.lives == 0)
- {
- _bm350.lives = 2;
- }
- addChild(topPanel);
- paused = false;
- _cd449.timerWater = 0;
- this.State = stNormal;
- }
-
- private function _be25() : void
- {
- var _loc1_:Object = null;
- var _loc2_:int = 0;
- var _loc3_:_iv163 = null;
- _loc1_ = {
- "x":checkPoints[currCheckPoint]._ej28,
- "y":checkPoints[currCheckPoint]._th99,
- "radius":22,
- "color":_dx111.cAqua
- };
- this.blob = new _be439(_loc1_);
- this.blob._my161 = this._gt261;
- this.defaultGroup._dq187(blob);
- if(saveBlobs)
- {
- _loc2_ = 0;
- while(_loc2_ < collectedBlobs.length)
- {
- _loc3_ = _hg469(collectedBlobs[_loc2_]).color == _hg469.GREEN ? explodes.greenBlob : explodes.yellowBlob;
- _wv496(blob._ny250)._cj212(_loc3_._dx22());
- _loc2_++;
- }
- }
- _cd449.BLOB = blob;
- }
-
- private function _ee494() : void
- {
- var _loc1_:int = 0;
- var _loc2_:int = 0;
- var _loc3_:Number = NaN;
- var _loc4_:int = 0;
- var _loc5_:int = 0;
- var _loc6_:* = false;
- var _loc7_:Array = null;
- var _loc8_:int = 0;
- var _loc9_:_yo331 = null;
- var _loc10_:_yo331 = null;
- var _loc11_:Array = null;
- var _loc12_:Array = null;
- var _loc13_:_hu144 = null;
- var _loc14_:_la458 = null;
- var _loc15_:int = 0;
- var _loc16_:_yo331 = null;
- var _loc17_:_gf356 = null;
- _loc3_ = this.container._qm444;
- if((_loc5_ = (_loc4_ = _loc3_ / SECTOR_SIZE) - 1) < 0)
- {
- _loc5_ = 0;
- }
- if(_loc5_ + 3 >= groups.length)
- {
- _loc5_ = groups.length - 3;
- }
- if(_loc6_ = _loc5_ != _startInd)
- {
- _startInd = _loc5_;
- _loc7_ = [];
- _loc1_ = 0;
- while(_loc1_ < 3)
- {
- _loc7_.push(groups[_loc1_ + _loc5_]);
- _loc1_++;
- }
- _loc1_ = 0;
- while(_loc1_ < activeGroups.length)
- {
- if(!(activeGroups[_loc1_] is int))
- {
- if((_loc8_ = _loc7_.indexOf(activeGroups[_loc1_])) < 0)
- {
- this.engine._xb207(activeGroups[_loc1_]);
- activeGroups[_loc1_] = 0;
- }
- }
- _loc1_++;
- }
- _loc1_ = 0;
- while(_loc1_ < _loc7_.length)
- {
- if((_loc8_ = activeGroups.indexOf(_loc7_[_loc1_])) < 0)
- {
- _loc9_ = _loc7_[_loc1_];
- this.engine._yd219(_loc9_);
- _loc2_ = 0;
- while(_loc2_ < activeGroups.length)
- {
- if(activeGroups[_loc2_] is int)
- {
- activeGroups[_loc2_] = _loc9_;
- break;
- }
- _loc2_++;
- }
- }
- _loc1_++;
- }
- }
- _loc1_ = 0;
- while(_loc1_ < this.activeGroups.length)
- {
- _loc11_ = (_loc10_ = _yo331(this.activeGroups[_loc1_]))._id359;
- _loc2_ = 0;
- while(_loc2_ < _loc11_.length)
- {
- if((_loc13_ = _loc11_[_loc2_]) is _mk516 && _mk516(_loc13_)._do489)
- {
- removeItem(_mk516(_loc13_));
- _loc2_--;
- }
- else if(_loc13_ is _la458)
- {
- _loc14_ = _la458(_loc13_);
- _loc15_ = _gg527(_loc14_._ej28);
- _loc16_ = groups[_loc15_];
- if(_loc14_._th99 + _loc14_.radius > screenHeight)
- {
- _loc14_.State = _la458.stInvisible;
- }
- if(_loc16_ != _loc14_.group)
- {
- _loc14_.group._rw173(_loc14_);
- _yo331(groups[_loc15_])._dq187(_loc14_);
- if(_loc15_ == _loc1_)
- {
- _loc1_--;
- }
- _loc14_.group = _loc16_;
- }
- }
- _loc2_++;
- }
- _loc12_ = _loc10_._oj169;
- _loc2_ = 0;
- while(_loc2_ < _loc12_.length)
- {
- if((_loc17_ = _loc12_[_loc2_]) is _tv77)
- {
- _tv77(_loc17_).rotate();
- }
- _loc2_++;
- }
- _loc1_++;
- }
- }
-
- override public function onEnterFrame(param1:Event) : void
- {
- var _loc2_:int = 0;
- var _loc3_:_cl163 = null;
- var _loc4_:Array = null;
- if(stopped && !paused)
- {
- this.engine._wr15();
- return;
- }
- if(state == stNormal && _bm350.prStage.focus != this)
- {
- _bm350.prStage.focus = this;
- }
- if(paused)
- {
- return;
- }
- ++timerWater;
- this._ee494();
- this.engine._dm39();
- this.engine._wr15();
- _loc2_ = 0;
- while(_loc2_ < blows.length)
- {
- _loc3_ = blows[_loc2_];
- _loc3_.onEnterFrame();
- if(_loc3_._gd168)
- {
- blows.splice(_loc2_,1);
- _loc2_--;
- }
- _loc2_++;
- }
- switch(state)
- {
- case stNormal:
- container._qm444 = blob._ej28;
- container._wl52 = blob._th99;
- if(blob._th99 - blob.radius > screenHeight)
- {
- _ut545(true);
- }
- blob.leftPressed = keyBuff.leftKey == true;
- blob.rightPressed = keyBuff.rightKey == true;
- blob.upPressed = keyBuff.upKey == true;
- blob.downPressed = keyBuff.downKey == true;
- break;
- case stBlow:
- if(timer++ > 80)
- {
- State = endGame == true ? stHideField : stScroll;
- }
- break;
- case stScroll:
- if(container.State != _pc67.stScrollTo)
- {
- State = stNormal;
- }
- break;
- case stDoor:
- _loc4_ = [new BlurFilter()];
- blob._ny250.scaleX = blob._ny250.scaleY = blob._ny250.scaleY - 0.1;
- blob._ny250.filters = _loc4_;
- if(blob._ny250.scaleX < 0.1)
- {
- State = stHideField;
- blob._ny250.visible = false;
- blob.fixed = true;
- }
- break;
- case stHideField:
- effect.onEnterFrame();
- if(effect._cx499)
- {
- State = win == true ? stWin : stLoose;
- }
- }
- }
-
- public function _tb187(param1:int) : _mk516
- {
- var _loc2_:int = 0;
- var _loc3_:_yo331 = null;
- var _loc4_:Array = null;
- var _loc5_:int = 0;
- _loc2_ = 0;
- while(_loc2_ < this.groups.length)
- {
- _loc3_ = groups[_loc2_];
- _loc4_ = _loc3_._id359.concat(_loc3_._oj169);
- _loc5_ = 0;
- while(_loc5_ < _loc4_.length)
- {
- if(_mk516(_loc4_[_loc5_])._tp253 == param1)
- {
- return _mk516(_loc4_[_loc5_]);
- }
- _loc5_++;
- }
- _loc2_++;
- }
- return null;
- }
-
- private function set State(param1:int) : void
- {
- var _loc2_:Point = null;
- state = param1;
- switch(state)
- {
- case stNormal:
- this._be25();
- break;
- case stBlow:
- timer = 0;
- break;
- case stScroll:
- container._if60(_kp67(checkPoints[currCheckPoint])._ej28,screenHeight);
- break;
- case stDoor:
- _loc2_ = new Point(door._ej28 - blob._ej28,door._th99 - blob._th99);
- _loc2_.normalize(6);
- blob._rx33 = new _be271(_loc2_.x,_loc2_.y);
- blob._ts56 = false;
- break;
- case stHideField:
- parent.addChild(this);
- effect = new _fj490(this,_fj490.BRICKS,new Rectangle(0,0,800 * _bm350._tc204,600 * _bm350._tc204));
- addChild(effect);
- removeChild(container);
- }
- }
-
- private function _xy153(param1:Array) : Array
- {
- var _loc2_:Array = null;
- var _loc3_:int = 0;
- var _loc4_:Object = null;
- var _loc5_:Object = null;
- _loc2_ = new Array();
- _loc3_ = 0;
- while(_loc3_ < param1.length)
- {
- if((_loc4_ = param1[_loc3_]).prClass is Class)
- {
- _loc5_ = new _loc4_.prClass(_loc4_);
- _loc2_.push(_loc5_);
- if(_loc5_ is _kp67)
- {
- checkPoints.push(_loc5_);
- }
- }
- _loc3_++;
- }
- return _loc2_;
- }
-
- public function get _sn240() : int
- {
- return state;
- }
-
- protected function addItem(param1:_mk516) : void
- {
- var _loc2_:int = 0;
- var _loc3_:int = 0;
- var _loc4_:_yo331 = null;
- _loc2_ = param1._ej28;
- _loc3_ = _gg527(_loc2_);
- _loc4_ = groups[_loc3_];
- param1.group = _loc4_;
- if(param1 is _hu144)
- {
- _loc4_._dq187(_hu144(param1));
- }
- else if(param1 is _gf356)
- {
- _loc4_._qf444(_gf356(param1));
- }
- else if(param1 is _yo331)
- {
- engine._yd219(_yo331(param1));
- }
- if(param1._tp253 > maxID)
- {
- maxID = param1._tp253;
- }
- }
-
- private function _lg561(param1:_hg469) : void
- {
- var _loc2_:_iv163 = null;
- var _loc3_:_iv163 = null;
- _loc2_ = param1.color == _hg469.GREEN ? explodes.greenBlob : explodes.yellowBlob;
- _loc3_ = _loc2_._dx22();
- _wv496(blob._ny250)._cj212(_loc3_);
- this.collectedBlobs.push(param1);
- this.topPanel._nq84 = collectedBlobs.length;
- }
-
- private function _gg527(param1:Number) : int
- {
- return param1 / SECTOR_SIZE;
- }
-
- public function _gt261(param1:_hu144, param2:_hu144) : void
- {
- var _loc3_:_rv416 = null;
- var _loc4_:Number = NaN;
- var _loc5_:Number = NaN;
- var _loc6_:Number = NaN;
- var _loc7_:Number = NaN;
- var _loc8_:Number = NaN;
- var _loc9_:Number = NaN;
- var _loc10_:Number = NaN;
- var _loc11_:Boolean = false;
- var _loc12_:_sg87 = null;
- var _loc13_:Object = null;
- var _loc14_:_ix78 = null;
- if(param2.owner is _xn130 && _xn130(param2.owner).active)
- {
- if(param2.owner is _le239)
- {
- _wj196._va384("active");
- }
- _bd467._sf232(_xn130(param2.owner).action,_mk516(param2.owner),this);
- }
- if(param2.owner is _ap353)
- {
- blob.inWall = true;
- }
- if(param2 is _gg531 && !(param2 is _dt98) && !(param2 is _bk73) && blob.State != _la458.stSwim && !(param2 is _le239))
- {
- _loc3_ = _rv416(param2);
- if(param2 is _tr528 && !_tr528(_loc3_)._ew250)
- {
- blob._rotatable = true;
- blob.inWall = true;
- return;
- }
- _loc4_ = blob._ej28;
- _loc5_ = blob._th99;
- _loc6_ = _loc3_._ej28;
- _loc7_ = _loc3_._th99;
- _loc8_ = _loc3_.width;
- _loc9_ = _loc3_.height;
- _loc10_ = blob.radius;
- _loc11_ = false;
- if(_loc5_ < _loc7_ - _loc9_ / 2 && _loc4_ > _loc6_ - _loc8_ / 2 - _loc10_ * 2 && _loc4_ < _loc6_ + _loc8_ / 2 + _loc10_ * 2)
- {
- if(param2 is _st436)
- {
- _wj196._va384("jumper");
- }
- else
- {
- _wj196._va384("blobJump");
- }
- blob._vr432(param2 is _st436);
- }
- }
- else if(param2 is _hg469)
- {
- _la458(param2)._xa427();
- _lg561(_hg469(param2));
- _wj196._va384("collect");
- }
- if(param2 is _sg87)
- {
- _wj196._va384("bonus");
- _loc12_ = _sg87(param2);
- switch(_loc12_.type)
- {
- case _sg87.TYPE_HEART:
- _ln110(explodes.heart,_loc12_._ej28,_loc12_._th99);
- ++this.topPanel._uk503;
- _bm350.lives = this.topPanel._uk503;
- break;
- case _sg87.TYPE_KEY:
- _ln110(explodes.key,_loc12_._ej28,_loc12_._th99);
- ++this.topPanel._up52;
- if(this.topPanel._up52 == this.topPanel._wy409)
- {
- this.door.open();
- }
- }
- _loc12_._gd168 = true;
- }
- else if(param2 is _dt98 || param2.owner is _pg56 || param2.owner is _uy463)
- {
- _ut545();
- }
- else if(param2.owner && param2.owner is _tv77 && param2 == _tv77(param2.owner)._ft227)
- {
- _ut545();
- }
- if(state == stNormal && param2.owner is _bk73)
- {
- if(topPanel._up52 == topPanel._wy409)
- {
- win = true;
- endGame = true;
- State = stDoor;
- }
- else if(!doorFlag)
- {
- doorFlag = true;
- _loc13_ = {
- "text":"you missed\n some keys",
- "width":150,
- "height":120,
- "textSize":18,
- "picture":new _dx111.GCloud() as Sprite
- };
- (_loc14_ = new _ix78(_loc13_))._gm53(blob._ej28 - 70,blob._th99 - _loc14_.height / _bm350._tc204 - 40);
- this.container.addChild(_loc14_);
- }
- }
- }
-
- override public function _vx267(param1:KeyboardEvent) : void
- {
- switch(param1.keyCode)
- {
- case _lq68.KEY_LEFT:
- keyBuff.leftKey = false;
- break;
- case _lq68.KEY_RIGHT:
- keyBuff.rightKey = false;
- break;
- case _lq68.KEY_UP:
- keyBuff.upKey = false;
- break;
- case _lq68.KEY_DOWN:
- keyBuff.downKey = false;
- }
- }
-
- public function _ut545(param1:Boolean = false) : void
- {
- var _loc2_:_hg469 = null;
- saveBlobs = param1;
- _wj196._va384("blobBlow");
- blob.State = _la458.stInvisible;
- this.defaultGroup._rw173(blob);
- _ln110(explodes.playerBlob,blob._ej28,blob._th99);
- this.State = stBlow;
- --this.topPanel._uk503;
- _bm350.lives = this.topPanel._uk503;
- if(this.topPanel._uk503 == 0)
- {
- win = false;
- endGame = true;
- State = stBlow;
- return;
- }
- this.currCheckPoint = _yd54(blob);
- if(param1)
- {
- return;
- }
- while(collectedBlobs.length > 0)
- {
- _loc2_ = collectedBlobs[0];
- collectedBlobs.splice(0,1);
- _loc2_.position = new _be271(blob._ej28,blob._th99);
- _loc2_.State = _la458.stMove;
- _loc2_.fixed = false;
- _loc2_._rx33 = new _be271(Math.random() * 7 - Math.random() * 7,Math.random() * 7 - Math.random() * 7);
- addItem(_loc2_);
- }
- topPanel._nq84 = collectedBlobs.length;
- }
-
- public function get _kw428() : int
- {
- return collectedBlobs.length;
- }
-
- override public function _fx43(param1:KeyboardEvent) : void
- {
- switch(param1.keyCode)
- {
- case _lq68.KEY_LEFT:
- keyBuff.leftKey = true;
- break;
- case _lq68.KEY_RIGHT:
- keyBuff.rightKey = true;
- break;
- case _lq68.KEY_UP:
- keyBuff.upKey = true;
- break;
- case _lq68.KEY_DOWN:
- keyBuff.downKey = true;
- }
- }
-
- protected function removeItem(param1:_mk516) : void
- {
- var _loc2_:_yo331 = null;
- _loc2_ = param1.group;
- param1.group = null;
- if(param1 is _hu144)
- {
- _loc2_._rw173(_hu144(param1));
- }
- else
- {
- _loc2_._uo329(_gf356(param1));
- }
- }
-
- private function _yd54(param1:_be439) : int
- {
- var _loc2_:int = 0;
- var _loc3_:_kp67 = null;
- var _loc4_:int = 0;
- var _loc5_:_kp67 = null;
- _loc2_ = 0;
- _loc3_ = checkPoints[_loc2_];
- _loc4_ = 1;
- while(_loc4_ < checkPoints.length)
- {
- if((_loc5_ = checkPoints[_loc4_])._ej28 > _loc3_._ej28 && param1._ej28 > _loc5_._ej28)
- {
- _loc2_ = _loc4_;
- _loc3_ = _loc5_;
- }
- _loc4_++;
- }
- return _loc2_;
- }
-
- protected function _na430(param1:_mk516) : void
- {
- var _loc2_:int = 0;
- var _loc3_:_yo331 = null;
- _loc2_ = _gg527(param1._ej28);
- _loc3_ = groups[_loc2_];
- if(_loc3_ == param1.group)
- {
- return;
- }
- if(param1 is _hu144)
- {
- param1.group._rw173(_hu144(param1));
- _loc3_._dq187(_hu144(param1));
- }
- else if(param1 is _gf356)
- {
- param1.group._uo329(_gf356(param1));
- _loc3_._qf444(_gf356(param1));
- }
- param1.group = _loc3_;
- }
- }
- }
-