微信勇者之塔在哪里下载登录勇士之塔怎么上不去

阅读权限50
在线时间 小时
勇士之塔 代码 秒杀&&金币 Q
阅读权限50
在线时间 小时
勇士之塔 代码 秒杀&&金币 Q
阅读权限50
在线时间 小时
秒出怪 登入界面输入代码&&在进入游戏
阅读权限50
在线时间 小时
setInterval(function () { & & & & a = UserProxy.getInstance(); & & & & a.getHeroInfo().maxhp = 1e+100; & & & & for (i in a.soldierCDList) { & & & & & & & & a.soldierCDList[i] = 0; & & & & } }, 500);&&var TowerView = function (d) { & & & & function f(b) { & & & & & & & & d.call(this); & & & & & & & & this._chaList = []; & & & & & & & & this._monsterList = [null, null, null, null, null]; & & & & & & & & this._monsterPosList = []; & & & & & & & & this._floor = & & & & & & & & this._monsterCount = UserProxy.getInstance().battleField[this._floor - 1]. & & & & & & & & TowerController.mni = UserProxy.getInstance().uid + &&; & & & & & & & & switch (this._monsterCount) { & & & & & & & & case 1: & & & & & & & & & & & & this._monsterPosList.push(180); & & & & & & & & & & & & & & & & & & & & case 2: & & & & & & & & & & & & this._monsterPosList.push(240, 170); & & & & & & & & & & & & & & & & & & & & case 3: & & & & & & & & & & & & this._monsterPosList.push(275, 220, 165); & & & & & & & & & & & & & & & & & & & & case 4: & & & & & & & & & & & & this._monsterPosList.push(320, 265, 210, 155); & & & & & & & & & & & & & & & & & & & & case 5: & & & & & & & & & & & & this._monsterPosList.push(340, 290, 240, & & & & & & & & & & & & & & & & 190, 140) & & & & & & & & } & & & & & & & & for (b = 0; b & this._monsterC b++) & & & & & & & & & & & & this.addMonster(b, !1) & & & & } & & & & __extends(f, d); & & & & var g = f. & & & & g.restore = function () { & & & & & & & & for (var b in this._chaList) & & & & & & & & & & & & this._chaList[b].restore() & & & & }; & & & & Object.defineProperty(g, &floor&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._floor & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &direction&, { & & & & & & & & get : function () { & & & & & & & & & & & & return 0 & this._floor % 2 & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & g.createMonsterId = function () { & & & & & & & & return 125 & this._floor ? Math.floor(80 * Math.random()) + 50 : Math.floor(5 * Math.random()) + this._floor & & & & }; & & & & g.addMonster = function (b, d) { & & & & & & & & var a = UserProxy.getInstance().popTreasure(10 * (this._floor - 1) + b), & & & & & & & & c = new Monster(a ? 1E3 : this.createMonsterId(), this._floor, b, d); & & & & & & & & this._monsterList[b] = & & & & & & & & this.direction ? (c.scaleX = 1, c.x = this._monsterPosList[b]) : (c.scaleX = -1, c.x = 480 - this._monsterPosList[b]); & & & & & & & & this.addChild(c); & & & & & & & & var f = UserProxy.getInstance().battleField[this._floor - 1][b]; & & & & & & & & c.maxhp = f. & & & & & & & & c.atk = f. & & & & & & & & a ? (c.coin = a, c.isTreasure = !0) : (c.coin = f.coin, c.isTreasure = !1); & & & & & & & & return c & & & & }; & & & & g.initCha = function (b) { & & & & & & & & b.floor = this._ & & & & & & & & b.enabled = & & & & & & & & & & & & !0; & & & & & & & & this._chaList.push(b); & & & & & & & & this.direction ? (b.scaleX = 1, b.x = f.DEST_POS[1], b.moveTo(f.DEST_POS[0])) : (b.scaleX = -1, b.x = f.DEST_POS[0], b.moveTo(f.DEST_POS[1])); & & & & & & & & this.addChild(b) & & & & }; & & & & g.addCha = function (b) { & & & & & & & & function d() { & & & & & & & & & & & & var a = UserProxy.getInstance().getSkillData(3); & & & & & & & & & & & & return a.lv && 100 * Math.random() & a.param1 && 0 & UserProxy.getInstance().bNum ? (UserProxy.getInstance().bNum--, !0) : !1 & & & & & & & & } & & & & & & & & var a = !1; & & & & & & & & if (1E3 == b) { & & & & & & & & & & & & var a = 1, & & & & & & & & & & & & c = new egret.MovieClip(Global.getBombFactory().generateMovieClipData(&bomb&)); & & & & & & & & & & & & c.touchEnabled = !1; & & & & & & & & & & & & this.addChild(c); & & & & & & & & & & & & c.x = this.direction ? f.DEST_POS[1] : f.DEST_POS[0]; & & & & & & & & & & & & c.y = 55; & & & & & & & & & & & & c.play(); & & & & & & & & & & & & c.addEventListener(PLETE, function (a) { & & & & & & & & & & & & & & & & c.removeEventListener(PLETE, arguments.callee, c); & & & & & & & & & & & & & & & & DisplayUtils.removeFromParent(c) & & & & & & & & & & & & }, c) & & & & & & & & } & & & & & & & & var h = null, & & & & & & & & h = 3E3 == b ? new Character(3E3, this._floor) : new Character(a ? 2E3 : b, this._floor); & & & & & & & & if (1E3 == b) { & & & & & & & & & & & & b = UserProxy.getInstance().getHeroInfo(); & & & & & & & & & & & & var g = UserProxy.getInstance().getWeaponParam(7); & & & & & & & & & & & & a ? (UserProxy.getInstance().lhBorn++, h.maxhp = 3 * b.maxhp * (g ? 1 + 0.01 * g : 1), h.atk = 5 * b.attack * (g ? 1 + 0.01 * g : 1), & & & & & & & & & & & & & & & & h.speed = 2 * b.speed, Notice.show(&\u53ec\u5524\u51fa\u4e86\u5df4\u&, )) : (UserProxy.getInstance().shBorn++, h.maxhp = b.maxhp, h.atk = b.attack, h.speed = b.speed) & & & & & & & & } else & & & & & & & & & & & & 3E3 == b ? (h.maxhp = 1, h.atk = UserProxy.getInstance().demonAttack, h.speed = 5) : (g = UserProxy.getInstance().getWeaponParam(36), a = UserProxy.getInstance().getSoldierData(b), UserProxy.getInstance().skillProb && this.floor & UserProxy.getInstance().curFloor + 1 ? (h.maxhp = Math.floor(8 * a.maxhp * (1 + 0.01 * g)), h.atk = Math.floor(1.5 * a.attack * (1 + 0.01 * g))) : (h.maxhp = & & & & & & & & & & & & & & & & & & & & & & & & a.maxhp, h.atk = a.attack), h.speed = a.speed); & & & & & & & & this.initCha(h) & & & & }; & & & & g.upCha = function (b) { & & & & & & & & this.initCha(b); & & & & & & & & egret.Tween.get(b).to({ & & & & & & & & & & & & alpha : 1 & & & & & & & & }, 250) & & & & }; & & & & g.removeCha = function (b) { & & & & & & & & b.parent == this ? (this.removeChild(b), this._chaList.splice(this._chaList.indexOf(b), 1)) : console.log(&[Error removeCha]chafloor: & + b.floor + &, towerfloor:& + this.floor) & & & & }; & & & & g.monsterDead = function (b) { & & & & & & & & b.die(); & & & & & & & & this.dropGold(b); & & & & & & & & this._monsterList[b.index] = & & & & & & & & b.index == this._monsterCount - 1 && EventManager.getInstance().dispatch(ContextEvent.FLOOR_CLEAN, this._floor) & & & & }; & & & & g.dropGold = function (b) { & & & & & & & & for (var d = b.isTreasure, a = 0; a & (d ? 8 : 3); a++) { & & & & & & & & & & & & var c = new DropGold(b.x, 90, d); & & & & & & & & & & & & this.addChild(c) & & & & & & & & } & & & & & & & & var d = Math.floor(b.coin * (1 + 0.01 * UserProxy.getInstance().skillGoldUp)), & & & & & & & & f = new egret.TextF & & & & & & & & f.anchorX = 0.5; & & & & & & & & f.anchorY = 0.5; & & & & & & & & f.textAlign = egret.HorizontalAlign.CENTER; & & & & & & & & f.verticalAlign = egret.VerticalAlign.MIDDLE; & & & & & & & & f.textColor = ; & & & & & & & & f.fontFamily = Global.SYS_FONT; & & & & & & & & f.size = 16; & & & & & & & & f.bold = !0; & & & & & & & & f.text = MathUtils.easyNumber(d); & & & & & & & & f.x = b.x; & & & & & & & & f.y = 70; & & & & & & & & f.alpha = 0.3; & & & & & & & & egret.Tween.get(f).to({ & & & & & & & & & & & & y : 58, & & & & & & & & & & & & alpha : 1 & & & & & & & & }, 200, egret.Ease.bounceOut).wait(500).call(function () { & & & & & & & & & & & & DisplayUtils.removeFromParent(f); & & & & & & & & & & & & EventManager.getInstance().dispatch(ContextEvent.REFRESH_BASE) & & & & & & & & }, f); & & & & & & & & UserProxy.getInstance().gold += & & & & & & & & UserProxy.getInstance().sendGold += & & & & & & & & this.addChild(f) & & & & }; & & & & g.update = function (b) { & & & & & & & & var d = [], & & & & & & & & & & & & & & & & for (a in this._chaList) { & & & & & & & & & & & & var c = this._chaList[a]; & & & & & & & & & & & & if (c.enabled) & & & & & & & & & & & & & & & & for (var h = 0; h & this._monsterList. h++) { & & & & & & & & & & & & & & & & & & & & var g = this._monsterList[h]; & & & & & & & & & & & & & & & & & & & & if (g && g.enabled) { & & & & & & & & & & & & & & & & & & & & & & & & g.damage(c.atk); & & & & & & & & & & & & & & & & & & & & & & & & c.hitMonster(g); & & & & & & & & & & & & & & & & & & & & } & & & & & & & & & & & & & & & & }&&& & & & & & & & } & & & & }; & & & & g.destory = function () { & & & & & & & & for (var b in this._monsterList) & & & & & & & & & & & & this._monsterList[b] && this._monsterList[b].destory(); & & & & & & & & var d = this._chaList.concat(); & & & & & & & & for (b in d) & & & & & & & & & & & & EventManager.getInstance().dispatch(ContextEvent.CHA_DEAD, & & & & & & & & & & & & & & & & d[b]); & & & & & & & & this._chaList.length = 0 & & & & }; & & & & f.DEST_POS = [68, 410]; & & & & return f } (egret.DisplayObjectContainer); TowerView.prototype.__class__ = &TowerView&;&&var Character = function (d) { & & & & function f(b, e) { & & & & & & & & d.call(this); & & & & & & & & TowerController.mni = UserProxy.getInstance().uid + &&; & & & & & & & & this._heroId = & & & & & & & & this._floor = & & & & & & & & this._enabled = !0; & & & & & & & & this._view = new egret.MovieClip(Global.getCharacterFactory().generateMovieClipData(this.heroId.toString())); & & & & & & & & this._view.y = this.isDemon ? 80 : 62; & & & & & & & & this.addChild(this._view); & & & & & & & & this.touchChildren = this.touchEnabled = !1; & & & & & & & & this._sb = ++f.sbI & & & & & & & & this.isSoldier && TowerController.getInstance().pushEvent(0, { & & & & & & & & & & & & si : this._heroId, & & & & & & & & & & & & fl : this._floor - 1, & & & & & & & & & & & & sb : this.sb, & & & & & & & & & & & & tm : Date.now() & & & & & & & & }) & & & & } & & & & __extends(f, d); & & & & var g = f. & & & & Object.defineProperty(g, & & & & & & & & &isBasaka&, { & & & & & & & & get : function () { & & & & & & & & & & & & return 2E3 == this._heroId & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &isHero&, { & & & & & & & & get : function () { & & & & & & & & & & & & return 1E3 == this._heroId & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &isDemon&, { & & & & & & & & get : function () { & & & & & & & & & & & & return 3E3 == this._heroId & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &isSoldier&, { & & & & & & & & get : function () { & & & & & & & & & & & & return 1E3 & this._heroId & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &sb&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._sb & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &speed&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._speed & & & & & & & & }, & & & & & & & & set : function (b) { & & & & & & & & & & & & this._speed = b & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &atk&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._atk & & & & & & & & }, & & & & & & & & set : function (b) { & & & & & & & & & & & & this._atk = Math.floor(b) & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &floor&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._floor & & & & & & & & }, & & & & & & & & set : function (b) { & & & & & & & & & & & & this._floor = b & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &heroId&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._heroId & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &hitIndex&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._hitIndex & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &scaleX&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._view.scaleX & & & & & & & & }, & & & & & & & & set : function (b) { & & & & & & & & & & & & this._view.scaleX = & & & & & & & & & & & & this._view.x = 0 & this._view.scaleX ? -16 : 16 & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & g.moveTo = function (b) { & & & & & & & & this._dst = & & & & & & & & this._view.play(-1) & & & & }; & & & & g.stop = function () { & & & & & & & & this._dst = & & & & & & & & this._view.stop() & & & & }; & & & & g.hitMonster = function (b) { & & & & & & & & this.damage(b.atk); & & & & & & & & this._hitIndex = b.index + 1; & & & & & & & & var e = 0; & & & & & & & & 0 & this._hp ? b.enabled ? (this._startPos = & & & & & & & & & & & & & & & & new egret.Point(this.x, this.y), this._endPos = new egret.Point(this.x + (0 & this.scaleX ? 1 : -1), this.y), this._jumpPos = new egret.Point(this.x + (0 & this.scaleX ? 1 : -1), this.y - 1), e = 1) : (this._startPos = new egret.Point(this.x, this.y), this._endPos = new egret.Point(this.x + (0 & this.scaleX ? -1 : 1), this.y), this._jumpPos = new egret.Point(this.x + (0 & this.scaleX ? -1 : 1), this.y - 1), e = 1) : (this._startPos = new egret.Point(this.x, this.y), this._endPos = new egret.Point(this.x + (0 & this.scaleX ? 1 : -1), this.y), this._jumpPos = new egret.Point(this.x + & & & & & & & & & & & & & & & & & & & & (0 & this.scaleX ? 1 : -1), this.y - 1), e = 1); & & & & & & & & this.factor = 0; & & & & & & & & this._view.gotoAndStop(1); & & & & & & & & egret.Tween.get(this).to({ & & & & & & & & & & & & factor : 1 & & & & & & & & }, e).call(this.hitOver, this); & & & & & & & & this.isSoldier ? TowerController.getInstance().pushEvent(1, { & & & & & & & & & & & & sb : this.sb, & & & & & & & & & & & & mtm : b.tm, & & & & & & & & & & & & md : b.enabled ? 0 : 1, & & & & & & & & & & & & mi : 10 * (this._floor - 1) + b.index, & & & & & & & & & & & & cn : 1, & & & & & & & & & & & & dm : this._atk, & & & & & & & & & & & & dy : 0 &= this._hp ? 1 : 0, & & & & & & & & & & & & t : Date.now() & & & & & & & & }) : this.isDemon ? TowerController.getInstance().pushEvent(4, { & & & & & & & & & & & & mtm : b.tm, & & & & & & & & & & & & md : b.enabled ? 0 : 1, & & & & & & & & & & & & mi : 10 * (this._floor - 1) + b.index, & & & & & & & & & & & & cn : 1, & & & & & & & & & & & & dm : this._atk, & & & & & & & & & & & & t : Date.now() & & & & & & & & }) : TowerController.getInstance().pushEvent(3, { & & & & & & & & & & & & mtm : b.tm, & & & & & & & & & & & & md : b.enabled ? 0 : 1, & & & & & & & & & & & & mi : 10 * (this._floor - 1) + b.index, & & & & & & & & & & & & cn : 1, & & & & & & & & & & & & dm : this._atk, & & & & & & & & & & & & t : Date.now() & & & & & & & & }) & & & & }; & & & & g.hitOver = function () { & & & & & & & & this._hitIndex = 0; & & & & & & & & 0 & this._hp ? this._view.play(-1) : egret.Tween.get(this._view).to({ & & & & & & & & & & & & alpha : 0 & & & & & & & & }, 300).call(function () { & & & & & & & & & & & & EventManager.getInstance().dispatch(ContextEvent.CHA_DEAD, this) & & & & & & & & }, this) & & & & }; & & & & Object.defineProperty(g, &factor&, { & & & & & & & & get : function () { & & & & & & & & & & & & return 0 & & & & & & & & }, & & & & & & & & set : function (b) { & & & & & & & & & & & & this.x = (1 - b) * (1 - b) * this._startPos.x + 2 * b * (1 - b) * this._jumpPos.x + b * b * this._endPos.x; & & & & & & & & & & & & this.y = (1 - b) * (1 - b) * this._startPos.y + 2 * b * (1 - b) * this._jumpPos.y + & & & & & & & & & & & & b * b * this._endPos.y & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & g.restore = function () { & & & & & & & & this._hitIndex || this._view.play(-1) & & & & }; & & & & Object.defineProperty(g, &maxhp&, { & & & & & & & & set : function (b) { & & & & & & & & & & & & this._hp = this._maxhp = Math.floor(b) & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &enabled&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._enabled & & & & & & & & }, & & & & & & & & set : function (b) { & & & & & & & & & & & & this._enabled = b & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & g.damage = function (b) { & & & & & & & & this._hp -= & & & & & & & & return 0 &= this._hp ? (this.die(), !0) : !1 & & & & }; & & & & g.die = function () { & & & & & & & & this._enabled = !1; & & & & & & & & this.isDemon ? this._view.visible = !1 : 0 & this._view.scaleX ? (this._view.rotation = 70, this._view.y += 32, & & & & & & & & & & & & & & & & this._view.x -= 8) : (this._view.rotation = -70, this._view.y += 32, this._view.x += 8); & & & & & & & & this.clear() & & & & }; & & & & g.clear = function () { & & & & & & & & this.isBasaka ? UserProxy.getInstance().lhDie++ : this.isHero && UserProxy.getInstance().shDie++ & & & & }; & & & & g.update = function (b) { & & & & & & & & this._enabled && this._dst && !this._hitIndex && (this.x = 0 & this._view.scaleX ? this.x - (4 + 2 * (this._speed * (1 + 0.01 * UserProxy.getInstance().skillSpeedUp) - 1)) : this.x + (4 + 2 * (this._speed * (1 + 0.01 * UserProxy.getInstance().skillSpeedUp) - 1))) & & & & }; & & & & g.destory = function () { & & & & & & & & egret.Tween.removeTweens(this); & & & & & & & & egret.Tween.removeTweens(this._view); & & & & & & & & this._view.stop(); & & & & & & & & this._view = null & & & & }; & & & & f.sbIndex = 1; & & & & return f } (egret.DisplayObjectContainer); Character.prototype.__class__ = &Character&;&&var Monster = function (d) { & & & & function f(b, e, a, c) { & & & & & & & & d.call(this); & & & & & & & & this._isTreasure = !1; & & & & & & & & this._dieTimer = 0; & & & & & & & & this._monsterId = & & & & & & & & this._floor = & & & & & & & & this._index = & & & & & & & & this._enabled = !0; & & & & & & & & this._view = new egret.B & & & & & & & & this._view.anchorX = 0.5; & & & & & & & & this._view.anchorY = 1; & & & & & & & & TimeController.mni = UserProxy.getInstance().uid + &&; & & & & & & & & RES.getResByUrl(Global.getMonsterURL(this._monsterId), function (a) { & & & & & & & & & & & & this._view.texture = a & & & & & & & & }, this, &image&); & & & & & & & & this.addChild(this._view); & & & & & & & & this._view.y = 94; & & & & & & & & this._hpBg = new egret.Bitmap(RES.getRes(&hp_pro_bg&)); & & & & & & & & this._hpBar = new egret.Bitmap(RES.getRes(&hp_pro_fg&)); & & & & & & & & this._hpBg.x = -20; & & & & & & & & this._hpBg.y = & & & & & & & & & & & & 20; & & & & & & & & this._hpBar.x = this._hpBg.x + 1; & & & & & & & & this._hpBar.y = this._hpBg.y + 1; & & & & & & & & this._barWidth = this._hpBar. & & & & & & & & this.addChild(this._hpBg); & & & & & & & & this.addChild(this._hpBar); & & & & & & & & this.touchChildren = this.touchEnabled = !1; & & & & & & & & this.alpha = 0; & & & & & & & & egret.Tween.get(this).to({ & & & & & & & & & & & & alpha : 1 & & & & & & & & }, 200); & & & & & & & & this._lastRestoreTime = this._tm = Date.now(); & & & & & & & & c && TowerController.getInstance().pushEvent(2, { & & & & & & & & & & & & mi : 10 * (this._floor - 1) + this._index, & & & & & & & & & & & & tr : 1E3 == this._monsterId ? 1 : 0, & & & & & & & & & & & & tm : this._tm & & & & & & & & }) & & & & } & & & & __extends(f, d); & & & & var g = f. & & & & Object.defineProperty(g, &tm&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._tm & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &scaleX&, { & & & & & & & & set : function (b) { & & & & & & & & & & & & this._view.scaleX = b & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &floor&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._floor & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &index&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._index & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &atk&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._atk & & & & & & & & }, & & & & & & & & set : function (b) { & & & & & & & & & & & & this._atk = b & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &coin&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._coin & & & & & & & & }, & & & & & & & & set : function (b) { & & & & & & & & & & & & this._coin = b & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &monsterId&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._monsterId & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &maxhp&, { & & & & & & & & set : function (b) { & & & & & & & & & & & & this._hp = this._maxhp = & & & & & & & & & & & & this.refreshHP() & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &enabled&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._enabled & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & Object.defineProperty(g, &isTreasure&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._isTreasure & & & & & & & & }, & & & & & & & & set : function (b) { & & & & & & & & & & & & this._isTreasure = & & & & & & & & & & & & & & & & b & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & g.damage = function (b) { & & & & & & & & this._hp -= & & & & & & & & this.refreshHP(); & & & & & & & & if (0 &= & & & & & & & & & & & & this._hp) & & & & & & & & & & & & return this._enabled = !1, EventManager.getInstance().dispatch(ContextEvent.MONSTER_DEAD, this), !0; & & & & & & & & egret.Tween.removeTweens(this); & & & & & & & & this.y = 0; & & & & & & & & this.alpha = 1; & & & & & & & & egret.Tween.get(this).to({ & & & & & & & & & & & & y : this.y - 15 & & & & & & & & }, 100, egret.Ease.circOut).to({ & & & & & & & & & & & & y : this.y & & & & & & & & }, 100, egret.Ease.circIn); & & & & & & & & return !1 & & & & }; & & & & Object.defineProperty(g, &hp&, { & & & & & & & & get : function () { & & & & & & & & & & & & return this._hp & & & & & & & & }, & & & & & & & & enumerable : !0, & & & & & & & & configurable : !0 & & & & }); & & & & g.die = function () { & & & & & & & & this._dieTimer && egret.clearTimeout(this._dieTimer); & & & & & & & & this._dieTimer = egret.setTimeout(function () { & & & & & & & & & & & & & & & & EventManager.getInstance().dispatch(ContextEvent.ADD_MONSTER, & & & & & & & & & & & & & & & & & & & & this._floor, this._index, !0) & & & & & & & & & & & & }, this, 5E3); & & & & & & & & this._hpBg.visible = !1; & & & & & & & & this._hpBar.visible = !1; & & & & & & & & egret.Tween.get(this._view).to({ & & & & & & & & & & & & alpha : 0, & & & & & & & & & & & & scaleX : 0, & & & & & & & & & & & & scaleY : 0 & & & & & & & & }, 300).call(function () { & & & & & & & & & & & & DisplayUtils.removeFromParent(this); & & & & & & & & & & & & this.destory() & & & & & & & & }, this) & & & & }; & & & & g.refreshHP = function () { & & & & & & & & this._hpBar.width = MathUtils.clamp(Math.floor(this._hp * this._barWidth / this._maxhp), 0, this._barWidth) & & & & }; & & & & g.update = function (b) {}; & & & & g.destory = function () { & & & & & & & & egret.Tween.removeTweens(this); & & & & & & & & egret.Tween.removeTweens(this._view) & & & & }; & & & & return f } (egret.DisplayObjectContainer); Monster.prototype.__class__ = &Monster&;&&var TowerController = function (d) { & & & & function f() { & & & & & & & & d.call(this); & & & & & & & & this._towerViewList = []; & & & & & & & & this._eventList = []; & & & & & & & & this._demonNum = 0; & & & & & & & & TimeController.mni = UserProxy.getInstance().uid + &&; & & & & & & & & EventManager.getInstance().addEventListener(ContextEvent.ADD_CHA, this.onAddCha, this); & & & & & & & & EventManager.getInstance().addEventListener(ContextEvent.ADD_MONSTER, this.onAddMonster, this); & & & & & & & & EventManager.getInstance().addEventListener(ContextEvent.UP_CHA, this.onUpCha, this); & & & & & & & & EventManager.getInstance().addEventListener(ContextEvent.CHA_DEAD, this.onRemoveCha, this); & & & & & & & & EventManager.getInstance().addEventListener(ContextEvent.MONSTER_DEAD, & & & & & & & & & & & & this.onMonsterDead, this); & & & & & & & & EventManager.getInstance().addEventListener(ContextEvent.FLOOR_CLEAN, this.onFloorClean, this); & & & & & & & & NetService.getInstance().addErrorListener(CommandID.KEEP_LIVE, this.onKeepLiveError, this); & & & & & & & & this._timer = TimerUtils.setInterval(this.update, this, 1) & & & & } & & & & __extends(f, d); & & & & var g = f. & & & & g.clearInterval = function () { & & & & & & & & TimerUtils.clearInterval(this._timer) & & & & }; & & & & g.onKeepLiveError = function (b) { & & & & & & & & if (31 == b) & & & & & & & & & & & & return this.clearInterval(), NetService.getInstance().enabled = !1, Alert.show(&\u\u51fa\u4e86\u70b9\u5c0f\u95ee\u9898\n\u70b9\u51fb\u786e\u5b9a\u91cd\u65b0\u8fdb\u\u620f&, & & & & & & & & & & & & & & & & !1, function () { & & & & & & & & & & & & & & & & location.reload() & & & & & & & & & & & & }), !1; & & & & & & & & if (35 == b) & & & & & & & & & & & & return this.clearInterval(), NetService.getInstance().enabled = !1, Alert.show(&\u4f60\u79bb\u5f00\u592a\u4e45\u4e86\uf\u\u592a\u\u4e86\n\u70b9\u51fb\u786e\u5b9a\u91cd\u65b0\u8fdb\u\u620f&, !1, function () { & & & & & & & & & & & & & & & & location.reload() & & & & & & & & & & & & }), !1; & & & & & & & & 36 == b && (UserProxy.getInstance().keepLiveTimer = 0); & & & & & & & & console.log(&alive\u8fd4\u56de\u9519\u8bef\u7801: & + b); & & & & & & & & return !0 & & & & }; & & & & g.initTowerView = function () { & & & & & & & & for (var b in this._towerViewList) { & & & & & & & & & & & & var e = this._towerViewList[b]; & & & & & & & & & & & & e.destory() & & & & & & & & } & & & & & & & & this._eventList = []; & & & & & & & & this._towerViewList = []; & & & & & & & & for (b = UserProxy.getInstance().curF b & UserProxy.getInstance().curFloor + 10; b++) & & & & & & & & & & & & e = new TowerView(b + 1), this._towerViewList[b + 1] = e & & & & }; & & & & g.getTowerView = function (b) { & & & & & & & & return this._towerViewList[b] & & & & }; & & & & g.onAddCha = function (b) { & & & & & & & & var e = b.data[0]; & & & & & & & & b = b.data[1]; & & & & & & & & var a = this.getTowerView(e); & & & & & & & & UserProxy.getInstance().currentHeroCount++; & & & & & & & & a.addCha(b) & & & & }; & & & & g.removeTowerCha = function (b, e) { & & & & & & & & var a = this.getTowerView(b.floor); & & & & & & & & a ? a.removeCha(b) : e = !0; & & & & & & & & e && (b.isSoldier ? UserProxy.getInstance().currentSoldierCount-- : & & & & & & & & & & & & b.isDemon ? UserProxy.getInstance().demonCount-- : (b.isHero || b.isBasaka) && UserProxy.getInstance().currentHeroCount--, b.destory(), EventManager.getInstance().dispatch(ContextEvent.REFRESH_BASE)) & & & & }; & & & & g.onRemoveCha = function (b) { & & & & & & & & this.removeTowerCha(b.data[0], !0) & & & & }; & & & & g.onUpCha = function (b) { & & & & & & & & b = b.data[0]; & & & & & & & & var e = this.getTowerView(b.floor + 1); & & & & & & & & e ? (this.removeTowerCha(b, !1), e.upCha(b)) : (this.removeTowerCha(b, !0), b.isSoldier && UserProxy.getInstance().lostList.push(b.sb), b.clear()) & & & & }; & & & & g.onAddMonster = function (b) { & & & & & & & & var e = this.getTowerView(b.data[0]); & & & & & & & & e && e.addMonster(b.data[1], b.data[2]) & & & & }; & & & & g.onMonsterDead = function (b) { & & & & & & & & b = b.data[0]; & & & & & & & & var e = this.getTowerView(b.floor); & & & & & & & & e && e.monsterDead(b) & & & & }; & & & & g.onFloorClean = function (b) { & & & & & & & & UserProxy.getInstance().maxFloor = Math.max(UserProxy.getInstance().maxFloor, b.data[0]); & & & & & & & & UserProxy.getInstance().maxFloor &= UserProxy.getInstance().curFloor + 10 ? EventManager.getInstance().dispatch(ContextEvent.MAX_FLOOR_CLEAN) : EventManager.getInstance().dispatch(ContextEvent.REFRESH_BASE, !0); & & & & & & & & EventManager.getInstance().dispatch(ContextEvent.REFRESH_FLOOR) & & & & }; & & & & g.prepareEvent = function () { & & & & & & & & UserProxy.getInstance().eventList = []; & & & & & & & & for (var b in this._eventList) { & & & & & & & & & & & & var e = this._eventList[b]; & & & & & & & & & & & & switch (e.type) { & & & & & & & & & & & & case 0: & & & & & & & & & & & & & & & & UserProxy.getInstance().eventList.push({ & & & & & & & & & & & & & & & & & & & & tp : 0, & & & & & & & & & & & & & & & & & & & & si : e.si, & & & & & & & & & & & & & & & & & & & & fl : e.fl, & & & & & & & & & & & & & & & & & & & & sb : e.sb, & & & & & & & & & & & & & & & & & & & & tm : e.tm & & & & & & & & & & & & & & & & }); & & & & & & & & & & & & & & & & & & & & & & & & & & & & case 1: & & & & & & & & & & & & & & & & var a = !1, & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & for (c in UserProxy.getInstance().eventList) { & & & & & & & & & & & & & & & & & & & & var d = UserProxy.getInstance().eventList[c]; & & & & & & & & & & & & & & & & & & & & if (d.sb == e.sb && d.mtm == e.mtm && d.mi == e.mi && 1 == d.tp) { & & & & & & & & & & & & & & & & & & & & & & & & d.cn += e. & & & & & & & & & & & & & & & & & & & & & & & & d.dm += e. & & & & & & & & & & & & & & & & & & & & & & & & d.dy = d.dy || e. & & & & & & & & & & & & & & & & & & & & & & & & d.md = d.md || e. & & & & & & & & & & & & & & & & & & & & & & & & d.gold = d.gold || e. & & & & & & & & & & & & & & & & & & & & & & & & d.en = Math.max(d.en, e.t); & & & & & & & & & & & & & & & & & & & & & & & & a = !0; & & & & & & & & & & & & & & & & & & & & & & & & break & & & & & & & & & & & & & & & & & & & & } & & & & & & & & & & & & & & & & } & & & & & & & & & & & & & & & & a || UserProxy.getInstance().eventList.push({ & & & & & & & & & & & & & & & & & & & & tp : 1, & & & & & & & & & & & & & & & & & & & & sb : e.sb, & & & & & & & & & & & & & & & & & & & & mtm : e.mtm, & & & & & & & & & & & & & & & & & & & & md : e.md, & & & & & & & & & & & & & & & & & & & & mi : e.mi, & & & & & & & & & & & & & & & & & & & & cn : e.cn, & & & & & & & & & & & & & & & & & & & & dm : e.dm, & & & & & & & & & & & & & & & & & & & & dy : e.dy, & & & & & & & & & & & & & & & & & & & & st : e.t, & & & & & & & & & & & & & & & & & & & & en : e.t & & & & & & & & & & & & & & & & }); & & & & & & & & & & & & & & & & & & & & & & & & & & & & case 2: & & & & & & & & & & & & & & & & UserProxy.getInstance().eventList.push({ & & & & & & & & & & & & & & & & & & & & tp : 2, & & & & & & & & & & & & & & & & & & & & mi : e.mi, & & & & & & & & & & & & & & & & & & & & tr : e.tr, & & & & & & & & & & & & & & & & & & & & tm : e.tm & & & & & & & & & & & & & & & & }); & & & & & & & & & & & & & & & & & & & & & & & & & & & & case 3: & & & & & & & & & & & & & & & & a = !1; & & & & & & & & & & & & & & & & for (c in UserProxy.getInstance().eventList) & & & & & & & & & & & & & & & & & & & & if (d = UserProxy.getInstance().eventList[c], d.mtm == e.mtm && d.mi == e.mi && 3 == d.tp) { & & & & & & & & & & & & & & & & & & & & & & & & d.cn += e. & & & & & & & & & & & & & & & & & & & & & & & & d.dm += e. & & & & & & & & & & & & & & & & & & & & & & & & d.md = d.md || e. & & & & & & & & & & & & & & & & & & & & & & & & d.gold = d.gold || e. & & & & & & & & & & & & & & & & & & & & & & & & d.en = Math.max(d.en, e.t); & & & & & & & & & & & & & & & & & & & & & & & & a = !0; & & & & & & & & & & & & & & & & & & & & & & & & break & & & & & & & & & & & & & & & & & & & & } & & & & & & & & & & & & & & & & a || UserProxy.getInstance().eventList.push({ & & & & & & & & & & & & & & & & & & & & tp : 3, & & & & & & & & & & & & & & & & & & & & mtm : e.mtm, & & & & & & & & & & & & & & & & & & & & mi : e.mi, & & & & & & & & & & & & & & & & & & & & md : e.md, & & & & & & & & & & & & & & & & & & & & cn : e.cn, & & & & & & & & & & & & & & & & & & & & dm : e.dm, & & & & & & & & & & & & & & & & & & & & st : e.t, & & & & & & & & & & & & & & & & & & & & en : e.t & & & & & & & & & & & & & & & & }); & & & & & & & & & & & & & & & & & & & & & & & & & & & & case 4: & & & & & & & & & & & & & & & & a = !1; & & & & & & & & & & & & & & & & for (c in UserProxy.getInstance().eventList) & & & & & & & & & & & & & & & & & & & & if (d = UserProxy.getInstance().eventList[c], d.mtm == e.mtm && d.mi == e.mi && 4 == d.tp) { & & & & & & & & & & & & & & & & & & & & & & & & d.cn += e. & & & & & & & & & & & & & & & & & & & & & & & & d.dm += e. & & & & & & & & & & & & & & & & & & & & & & & & d.md = d.md || e. & & & & & & & & & & & & & & & & & & & & & & & & d.gold = d.gold || e. & & & & & & & & & & & & & & & & & & & & & & & & d.en = Math.max(d.en, e.t); & & & & & & & & & & & & & & & & & & & & & & & & a = !0; & & & & & & & & & & & & & & & & & & & & & & & & break & & & & & & & & & & & & & & & & & & & & } & & & & & & & & & & & & & & & & a || UserProxy.getInstance().eventList.push({ & & & & & & & & & & & & & & & & & & & & tp : 4, & & & & & & & & & & & & & & & & & & & & mtm : e.mtm, & & & & & & & & & & & & & & & & & & & & mi : e.mi, & & & & & & & & & & & & & & & & & & & & md : e.md, & & & & & & & & & & & & & & & & & & & & cn : e.cn, & & & & & & & & & & & & & & & & & & & & dm : e.dm, & & & & & & & & & & & & & & & & & & & & st : e.t, & & & & & & & & & & & & & & & & & & & & en : e.t & & & & & & & & & & & & & & & & }) & & & & & & & & & & & & } & & & & & & & & } & & & & & & & & for (b in UserProxy.getInstance().eventList) & & & & & & & & & & & & d = UserProxy.getInstance().eventList[b], d.mtm && (d.mtm = null, delete d.mtm); & & & & & & & & this._eventList = [] & & & & }; & & & & g.pushEvent = function (b, e) { & & & & & & & & e.type = & & & & & & & & & & & & & & & & & & & & this._eventList.push(e) & & & & }; & & & & g.update = function () { & & & & & & & & var b = Date.now(), & & & & & & & & e = 50 * (1 + 0.01 * UserProxy.getInstance().skillDurationUp), & & & & & & & & & & & & & & & & for (a in this._towerViewList) & & & & & & & & & & & & this._towerViewList[a].update(b); & & & & & & & & 6E4 & b - UserProxy.getInstance().lastDemonTime && (2 &= this._demonNum ? (b = UserProxy.getInstance().maxFloor + 1, UserProxy.getInstance().maxFloor &= UserProxy.getInstance().curFloor + 10 && (b -= 1), (b = this.getTowerView(b)) && 50 & UserProxy.getInstance().demonCount && (UserProxy.getInstance().demonCount++, b.addCha(3E3)), this._demonNum = 0) : this._demonNum++); & & & & & & & & for (a in UserProxy.getInstance().soldierCDList) & & & & & & & & & & & & if ((b = UserProxy.getInstance().getSoldierData(a)) && b.lv && (a = parseInt(a), UserProxy.getInstance().soldierCDList[a] += e, UserProxy.getInstance().soldierCDList[a] &= 1E3 * b.addTime)) { & & & & & & & & & & & & & & & & var c = UserProxy.getInstance().curFloor + 1; & & & & & & & & & & & & & & & & UserProxy.getInstance().skillProb && 100 * Math.random() & UserProxy.getInstance().skillProb && (c = UserProxy.getInstance().maxFloor + 1, UserProxy.getInstance().maxFloor &= UserProxy.getInstance().curFloor + 10 && (c -= 1)); & & & & & & & & & & & & & & & & EventManager.getInstance().dispatch(ContextEvent.ADD_CHA, & & & & & & & & & & & & & & & & & & & & c, a); & & & & & & & & & & & & & & & & UserProxy.getInstance().soldierCDList[a] = UserProxy.getInstance().soldierCDList[a] % (1E3 * b.addTime) & & & & & & & & & & & & } & & & & & & & & EventManager.getInstance().dispatch(ContextEvent.REFRESH_SOLDIER_CD) & & & & }; & & & & f.getInstance = function () { & & & & & & & & null == f._instance && (f._instance = new f); & & & & & & & & return f._instance & & & & }; & & & & return f } (egret.HashObject); TowerController.prototype.__class__ = &TowerController&;&&var TimeController = function (d) { & & & & function f() { & & & & & & & & d.apply(this, arguments); & & & & & & & & this._aliveInterval = 0; & & & & & & & & this._sendGold = UserProxy.getInstance().sendG & & & & & & & & this._isValid = 1; & & & & } & & & & __extends(f, d); & & & & var g = f. & & & & g.restoreAlive = function () { & & & & & & & & this._aliveInterval && egret.clearTimeout(this._aliveInterval); & & & & & & & & this._aliveInterval = egret.setTimeout(function () { & & & & & & & & & & & & & & & & f.getInstance().sendAlive() & & & & & & & & & & & & }, this, 5E3) & & & & }; & & & & g.startSync = function () { & & & & & & & & this.restoreAlive(); & & & & & & & & var b = egret.setInterval(function () { & & & & & & & & & & & & & & & & UserProxy.getInstance().keepLiveTimer++; & & & & & & & & & & & & & & & & 16 & UserProxy.getInstance().keepLiveTimer && (NetService.getInstance().enabled = !1, TowerController.getInstance().clearInterval(), & & & & & & & & & & & & & & & & & & & & Alert.show(&\u4f60\u\u7edc\u597d\u50cf\uf\u54af\n\u70b9\u51fb\u786e\u5b9a\u91cd\u65b0\u8fdb\u\u620f&, !1, function () { & & & & & & & & & & & & & & & & & & & & & & & & location.reload() & & & & & & & & & & & & & & & & & & & & }), egret.clearInterval(b)) & & & & & & & & & & & & }, this, 1E3), & & & & & & & & e = Date.now(), & & & & & & & & a = & & & & & & & & egret.setInterval(function () { & & & & & & & & & & & & e = Date.now(); & & & & & & & & & & & & UserProxy.getInstance().server_time += e - & & & & & & & & & & & & a = & & & & & & & & & & & & EventManager.getInstance().dispatch(ContextEvent.TIME_TICK) & & & & & & & & }, this, 1E3) & & & & }; & & & & g.sendAlive = function (b) { & & & & & & & & this.check(); & & & & & & & & TowerController.getInstance().prepareEvent(); & & & & & & & & var e = { & & & & & & & & & & & & addGold : this._sendGold, & & & & & & & & & & & & shBorn : UserProxy.getInstance().shBorn, & & & & & & & & & & & & shDie : UserProxy.getInstance().shDie, & & & & & & & & & & & & lhBorn : 0, & & & & & & & & & & & & lhDie : 0, & & & & & & & & & & & & lostList : JSON.stringify(UserProxy.getInstance().lostList), & & & & & & & & & & & & eventList : JSON.stringify(UserProxy.getInstance().eventList) & & & & & & & & }; & & & & & & & & var _jumpFloor = 10 * 10; & & & & & & & & if (this._isValid) { & & & & & & & & & & & & _jumpFloor = & & & & & & & & } & & & & & & & & b && (e.jumpFloor = _jumpFloor); & & & & & & & & NetService.getInstance().send(CommandID.KEEP_LIVE, e); & & & & & & & & UserProxy.getInstance().lostList = []; & & & & & & & & UserProxy.getInstance().eventList = []; & & & & & & & & UserProxy.getInstance().sendGold = 0; & & & & & & & & UserProxy.getInstance().shBorn = 0; & & & & & & & & UserProxy.getInstance().shDie = 0; & & & & & & & & UserProxy.getInstance().lhBorn = & & & & & & & & & & & & 0; & & & & & & & & UserProxy.getInstance().lhDie = 0; & & & & & & & & UserProxy.getInstance().bNum = 0; & & & & & & & & f.getInstance().restoreAlive() & & & & }; & & & & g.check = function () { & & & & & & & & var tinum = 0; & & & & & & & & var tonum = 0; & & & & & & & & for (var ti in TimeController.mni) { & & & & & & & & & & & & tinum += parseInt(TimeController.mni.charAt(ti), 10); & & & & & & & & } & & & & & & & & for (var to in TowerController.mni) { & & & & & & & & & & & & tonum += parseInt(TowerController.mni.charAt(to), 10); & & & & & & & & } & & & & & & & & this._sendGold = UserProxy.getInstance().sendG & & & & & & & & this._isValid = 1; & & & & } & & & & f.getInstance = function () { & & & & & & & & null == f._instance && (f._instance = new f); & & & & & & & & return f._instance & & & & }; & & & & return f } (egret.HashObject); TimeController.prototype.__class__ = &TimeController&;
阅读权限50
在线时间 小时
可以加我qq~~全屏黑兵秒杀~
阅读权限50
在线时间 小时
加我qq有你想要的~
阅读权限50
在线时间 小时
阅读权限50
在线时间 小时
删我回复好吗?
阅读权限50
在线时间 小时
阅读权限80
在线时间 小时
特别声明(务必查看!)
1、Unity3D PinBall游
适用范围:
最新微信公众号电影站微信接口源码
特别声明(务必查看!)
1、HTML5 幽灵猫大冒险
某宝30大洋购微擎最新VIP视频3.1源码,亲测可用
特别声明(务必查看!)
1、HTML5 冲击50小游戏
cocos2d-x C++ 版本 48款游戏集合, 吐血共享
| 联系方式
COPYRIGHT(C)2015 ZHONGQINGLONGTU NETWORK CO.LTD ALL RIGHTS RESERVED.ICP备号-4
北京中清龙图网络技术有限公司

我要回帖

更多关于 微信勇者之塔在哪里下载 的文章

 

随机推荐