import * as PIXI from './pixi'; import { Howl, Howler } from './howler.min'; var XORcipher = require('./XORcipher') import gamen from './gamen'; import NumberText from './NumberText'; import { TimelineLite, Sine, TweenMax, Back } from './TweenMax.min' import { pixelRatioX, pixelRatioY, windowWidth, windowHeight } from './fitConfig'; var GD, GamePadManager, DataManager; var GAME_IMG_PATH = 'https://pub.dwstatic.com/wxgame/bugsmatch/BugsMatch/'; var COMMON_IMG_PATH = 'https://pub.dwstatic.com/wxgame/bugsmatch/human/'; var RES_DIR_SOUND = GAME_IMG_PATH + 'sound/'; // source code version var CACHE_VER = 0.2; var IMG_VERSION = CACHE_VER; var SOUND_VERSION = CACHE_VER; !function (t) { function e(n) { if (i[n]) return i[n].exports; var o = i[n] = { exports: {}, id: n, loaded: !1 }; return t[n].call(o.exports, o, o.exports, e), o.loaded = !0, o.exports } var i = {}; return e.m = t, e.c = i, e.p = "", e(0) }([function (t, e, i) { i(4), i(9), i(5), i(6), i(8), i(7), i(10), i(11), i(12), i(13), i(14), i(1), i(2), i(3) } , function (t, e) { PIXI.Container.prototype.setTouchStartAction = function (t, e, i) { t.mousedown = t.touchstart = function (n) { n.stopPropagation(), GD.fullScreen(), GD.buttonAction(t), e && e.call(i, n) } .bind(i) } , PIXI.Container.prototype.setTouchStart = function (t, e, i) { t.mousedown = t.touchstart = function (t) { t.stopPropagation(), GD.fullScreen(), e && e.call(i, t) } .bind(i) } , PIXI.Container.prototype.setTouchEnd = function (t, e, i) { t.tap = function (t) { t.stopPropagation(), GD.fullScreen(), e && e.call(i, t) } .bind(i), GD.isMobile || (t.click = function (t) { t.stopPropagation(), e && e.call(i, t) } .bind(i)) } , PIXI.Container.prototype.setTouchMove = function (t, e, i) { t.mousemove = t.touchmove = function (t) { t.stopPropagation(), e && e.call(i, t) } .bind(i) } , PIXI.Container.prototype.addGamePadEvent = function () { this.removeGamePadEvent(), $(GamePadManager).on("padButton", this.onGamePadEvent.bind(this)), $(GamePadManager).on("padStickX", this.onGamePadStickXEvent.bind(this)), $(GamePadManager).on("padStickY", this.onGamePadStickYEvent.bind(this)) } , PIXI.Container.prototype.removeGamePadEvent = function () { $(GamePadManager).off() } , PIXI.Container.prototype.onGamePadEvent = function (t, e) { } , PIXI.Container.prototype.onGamePadStickXEvent = function (t, e) { } , PIXI.Container.prototype.onGamePadStickYEvent = function (t, e) { } , PIXI.Container.prototype.showLoading = function () { GD.loading = GD.LoadingView.getInstance(), GD.loading.init(), this.addChild(GD.loading) } , PIXI.Container.prototype.hideLoading = function () { this.removeChild(GD.loading) } } , function (t, e) { GD.CommonIntro = function (t, e) { PIXI.Container.call(this), this.helpBtn = null, this.soundpBtn = null, this.startBtn = null, this.callBackFunc = null, this.callBackTarget = null, this.bg = this.setSpriteTexture(this.bg, "texture", e), this.addChild(this.bg), // this.copyText = this.setSpriteTexture(this.copyText, "texture", "copybar_" + t), // this.copyText.anchor.set(.5), // this.copyText.x = GD.width / 2, // this.copyText.y = GD.height - 20, // this.addChild(this.copyText), this.gamePadGuide = null, this.soundPopup = new GD.OptionPopup, this.soundPopup.on("SOUND_POPUP_CLOSE_EVENT", this.closeSoundPopup.bind(this)), gamen.loadend() } , GD.CommonIntro.constructor = GD.CommonIntro, GD.CommonIntro.prototype = Object.create(PIXI.Container.prototype), GD.CommonIntro.prototype.init = function () { GamePadManager.init(), GamePadManager.isConnected && GD.isShowPadGuide && (this.gamePadGuide || (this.gamePadGuide = new GD.GamePadGuide), this.showGamePadGuide(), this.addGamePadEvent()), GD.isShowPadGuide = !1, this.setInteractive(!0) } , GD.CommonIntro.prototype.showGamePadGuide = function () { this.gamePadGuide.init(), this.addChild(this.gamePadGuide) } , GD.CommonIntro.prototype.hideGamePadGuide = function () { this.removeChild(this.gamePadGuide) } , GD.CommonIntro.prototype.initHelp = function (t, e, i) { this.helpBtn = this.setSpriteTexture(this.helpBtn, "texture", t), this.helpBtn.anchor.set(.5), this.helpBtn.x = e, this.helpBtn.y = i, this.helpBtn.scale.set(1), this.addChild(this.helpBtn), this.setTouchStartAction(this.helpBtn), this.setTouchEnd(this.helpBtn, this.showHelp, this) } , GD.CommonIntro.prototype.initSound = function (t, e, i) { this.soundpBtn = this.setSpriteTexture(this.soundpBtn, "texture", t), this.soundpBtn.anchor.set(.5), this.soundpBtn.x = e, this.soundpBtn.y = i, this.soundpBtn.scale.set(1), this.addChild(this.soundpBtn), this.setTouchStartAction(this.soundpBtn), this.setTouchEnd(this.soundpBtn, this.showSoundPopup, this) } , GD.CommonIntro.prototype.initStart = function (t, e, i, n, o) { this.startBtn = this.setSpriteTexture(this.startBtn, "texture", t), this.startBtn.anchor.set(.5), this.startBtn.x = e, this.startBtn.y = i, this.callBackFunc = n, this.callBackTarget = o, this.startBtn.scale.set(1), this.addChild(this.startBtn), this.setTouchStartAction(this.startBtn), this.setTouchEnd(this.startBtn, this.startDataComplete, this) // this.setTouchEnd(this.startBtn, this.sendStartData, this) } , GD.CommonIntro.prototype.onGamePadEvent = function (t, e) { switch (e) { case "button-1": this.hideGamePadGuide(), this.sendStartData(); break; case "button-2": this.hideGamePadGuide(), this.showHelp(); break; case "button-3": this.hideGamePadGuide(), this.showSoundPopup(); break; case "button-4": this.hideGamePadGuide() } } , GD.CommonIntro.prototype.showHelp = function () { this.setInteractive(!1), GD.tutorial.initPage(0, "help_start"), GD.tutorial.once("TUTORIAL_CLOSE_EVENT", this.hideHelp.bind(this)), this.addChild(GD.tutorial) } , GD.CommonIntro.prototype.hideHelp = function () { this.sendStartData() } , GD.CommonIntro.prototype.showSoundPopup = function () { this.setInteractive(!1), this.soundPopup.show(0), this.addChild(this.soundPopup) } , GD.CommonIntro.prototype.closeSoundPopup = function () { this.removeChild(this.soundPopup), this.setInteractive(!0) } , GD.CommonIntro.prototype.sendStartData = function () { this.showLoading() DataManager.start(this.startDataComplete, this) } , GD.CommonIntro.prototype.startDataComplete = function () { this.hideLoading() GD.tutorial && this.removeChild(GD.tutorial) this.callBackFunc.call(this.callBackTarget) } , GD.CommonIntro.prototype.setInteractive = function (t) { this.helpBtn.interactive = t, this.soundpBtn.interactive = t, this.startBtn.interactive = t, GamePadManager.isConnected && (t ? this.addGamePadEvent() : this.removeGamePadEvent()) } , GD.CommonIntro.getInstance = function (t, e) { return GD.commonIntro || (GD.commonIntro = new GD.CommonIntro(t, e)), GD.commonIntro } } , function (t, e) { GD.CommonOption = function (t) { PIXI.Container.call(this), this.scorePopup = new GD.ScorePopup, this.scorePopup.on("SCORE_POPUP_CLOSE_EVENT", this.closeScorePopup.bind(this)), this.optionPopup = new GD.OptionPopup, this.optionPopup.on("SOUND_POPUP_CLOSE_EVENT", this.closeOptionPopup.bind(this)), this.optionPopup.on("TUTORIAL_OPEN_EVENT", this.showTutorial.bind(this)), this.optBtn = this.setSpriteTexture(this.optBtn, "texture", "btn_option_" + t), this.optBtn.anchor.set(.5), this.optBtn.x = GD.width - 40, this.optBtn.y = 90, this.setTouchStartAction(this.optBtn), this.setTouchEnd(this.optBtn, function () { this.setInteractive(!1), this.emit("OPTION_OPEN_EVENT"), this.optionPopup.show(1), this.addChild(this.optionPopup) } .bind(this)), this.achievement = new GD.Achievement } , GD.CommonOption.constructor = GD.CommonOption, GD.CommonOption.prototype = Object.create(PIXI.Container.prototype), GD.CommonOption.prototype.init = function () { this.removeAll(), this.addChild(this.optBtn), this.addChild(this.achievement), this.setInteractive(!0) } , GD.CommonOption.prototype.setAchievement = function (t) { this.achievement.show(t) } , GD.CommonOption.prototype.setInteractive = function (t) { this.optBtn.interactive = t } , GD.CommonOption.prototype.closeOptionPopup = function () { this.removeChild(this.optionPopup), this.setInteractive(!0), this.emit("OPTION_CLOSE_EVENT") } , GD.CommonOption.prototype.showTutorial = function () { GD.tutorial.initPage(0, "help_close"), GD.tutorial.on("TUTORIAL_CLOSE_EVENT", this.hideHelp.bind(this)), this.addChild(GD.tutorial) } , GD.CommonOption.prototype.hideHelp = function () { this.removeChild(GD.tutorial), this.optionPopup.setInteractive(!0) } , GD.CommonOption.prototype.closeScorePopup = function () { this.gameRestart() } , GD.CommonOption.prototype.finish = function (t) { gamen.score_view_status ? (this.scorePopup.show(t), this.addChild(this.scorePopup)) : (GD.exitFullScreen(), DataManager.finish(t)) } , GD.CommonOption.prototype.gameRestart = function () { GD.renderer.view.style.display = "inline", this.emit("GAME_RESTART") } , GD.CommonOption.prototype.removeAll = function () { this.removeChildren() } , GD.CommonOption.getInstance = function (t) { return GD.commonOption || (GD.commonOption = new GD.CommonOption(t)), GD.commonOption } } , function (t, e) { GD = { loader: null, stats: null, width: 504, height: 861, leng: "cn", isMobile: !1, isDebug: !1, isShowLog: !1, isLogin: !1, unique: null, pk: null, sKey: null, oKey: null, startTime: null, medal: [], soundType: 1, isAllSound: !0, isBgmSound: !0, isEffectSound: !0, isShowPadGuide: !0, orientationType: null, orientationGuide: null, sound: {}, darkBg: null, stage: null, commonIntro: null, commonOption: null, tutorial: null, loading: null }, GD.init = function (t, e, i, n, o, backgroundColor) { var gWidth = windowWidth * pixelRatioX var gHeight = windowHeight * pixelRatioY GD.width = gWidth GD.height = gHeight GD.leng = gamen.game_language var app = GD.app = new PIXI.Application({ width: gWidth, height: gHeight, forceCanvas:true, backgroundColor: backgroundColor, clearBeforeRender: false, resolution: 2, view: canvas }) app.renderer.plugins.interaction.mapPositionToPoint = (point, x, y) => { point.x = x * pixelRatioX point.y = y * pixelRatioY } // requestAnimationFrame(this.update) this.renderer = app.renderer this.stage = app.stage // this.resize() this.setSpriteTexture() this.resourceLoad() } , GD.resourceLoad = function () { var t = COMMON_IMG_PATH + "image/json/"; GD.loader = PIXI.loader, GD.loader.add(t + "human_common.json"), GD.loader.add(t + "human_popup_" + this.leng + ".json") } , GD.showProgress = function () { GD.progress = new GD.Progress, GD.progress.show(), this.stage.addChild(GD.progress) } , GD.hideProgress = function () { GD.progress.hide(), this.stage.removeChild(GD.progress) } , GD.resize = function () { if (GD.renderer) { var t = GD.width / GD.height , e = window.innerWidth , i = window.innerHeight , n = e / i; if ($("#gamecontainer")[0]) { var o = document.getElementById("gamecontainer"); o.style.color = "#FF0000", n > t ? (e = i * t, o.style.width = e + "px", o.style.height = i + "px", GD.renderer.view.style.width = e + "px", GD.renderer.view.style.height = i + "px") : (i = e / t, o.style.width = e + "px", o.style.height = i + "px", GD.renderer.view.style.width = e + "px", GD.renderer.view.style.height = i + "px") } else n > t ? e = i * t : i = e / t, this.renderer.view.style.width = e + "px", this.renderer.view.style.height = i + "px" } gamen.score_view_status || this.setOrientationGuide() } , GD.render = function () { GD.renderer.render(GD.root) } , GD.update = function () { GD.isDebug && GD.stats.begin(), requestAnimationFrame(GD.update), GD.render(), GD.isDebug && GD.stats.end() } , GD.buttonAction = function (t, e, i) { e || (e = 1.2), i || (i = 1), t.scale.set(e), TweenMax.to(t.scale, .2, { x: i, y: i }) } , GD.setSpriteTexture = function () { PIXI.Container.prototype.setSpriteTexture = function (t, e, i) { return "sprite" == e ? t ? t.texture = GD.loader.resources[i].texture : t = new PIXI.Sprite(GD.loader.resources[i].texture) : t ? t.texture = PIXI.Texture.fromFrame(i + ".png") : t = new PIXI.Sprite.fromFrame(i + ".png"), t } } , GD.getDarkBg = function () { return GD.darkBg || (GD.darkBg = new PIXI.Graphics, GD.darkBg.beginFill(0, .8), GD.darkBg.drawRect(0, 0, GD.width, GD.height), GD.darkBg.endFill()), GD.darkBg } , GD.log = function (t) { GD.isShowLog ? (GD.logStr = t + "\n" + GD.logStr, GD.logText || (GD.logText = new PIXI.Text("", { font: "14px Arial", fill: "#F7EDCA", stroke: "#000", strokeThickness: 4, wordWrapWidth: GD.width - 60, wordWrap: !0 }), GD.logText.x = 30, GD.logText.y = 30), GD.logText.parent || GD.root.addChild(GD.logText), GD.logText.text = GD.logStr) : console.log(t) } , GD.fullScreen = function () { if (GD.isMobile) { var t = navigator.platform.match(/iPhone|iPod|iPad/); if (!t) { var e = GD.renderer.view; e.requestFullscreen ? e.requestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.mozRequestFullScreen() } } } , GD.exitFullScreen = function () { if (GD.isMobile) { var t = navigator.platform.match(/iPhone|iPod|iPad/); t || (document.exitFullscreen ? document.exitFullscreen() : document.msExitFullscreen ? document.msExitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitCancelFullScreen && document.webkitCancelFullScreen()) } } , GD.setOrientationGuide = function () { var t = document.getElementById("rank_layout"); if (t && "none" != t.style.display && com) return GD.renderer.view.style.display = "none", void GD.showOrientation(!1); var e = window.innerWidth / window.innerHeight , i = GD.width / GD.height; i > 1 ? GD.orientationType = "phone rotate_x" : GD.orientationType = "phone rotate_y", e > 1 && 1 > i || 1 > e && i > 1 ? GD.showOrientation(!0) : GD.showOrientation(!1) } , GD.showOrientation = function (t) { for (var e = ["Z300C", "TF701T", "TF700T", "TF103C", "TF101-1B251A", "TA2506 10BK", "SM-T805", "SM-T800", "SM-T677", "SM-T670", "SM-P900", "SMP-605", "SMP-600", "SMART-TV", "SmartTV", "SM-905", "SHW-M480W", "SHW-M380", "SHV-E230", "SGP771", "SGP311", "QM0101", "Q109", "MZ68", "MZ601", "MX1080", "MID 1065-8", "MID 1042-8", "ME102A", "LGV940", "LGV700N", "GT-P5110", "FZ-A1", "AT105", "A10-70", "10QS", "10ES"], i = e.length; i--;) if (navigator.userAgent.match(e[i])) return; var n, o, s, r, a, h; if (GD.isMobile) { var l = document.getElementsByClassName("xy_wrap").length; if (t) { if (n = GD.orientationGuide, null == n) { if (n = document.createElement("div"), n.style.backgroundColor = "#ff7e17", n.style.position = "absolute", n.style.left = 0, n.style.top = 0, n.style.right = 0, n.style.bottom = 0, n.style.margin = "auto", n.setAttribute("class", "xy_wrap"), GD.orientationGuide = n, o = document.createElement("div"), o.setAttribute("class", "xy_info"), s = document.createElement("div"), s.setAttribute("class", GD.orientationType), r = document.createElement("span"), r.setAttribute("class", "yes"), a = document.createElement("span"), a.setAttribute("class", "no"), n.appendChild(o), o.appendChild(s), o.appendChild(r), o.appendChild(a), h = document.createElement("p"), h.style.left = "0px", h.style.right = "0px", h.style.padding = "15px", h.style.lineHeight = "130%", h.style.color = "#FFFFFF", h.style.position = "absolute", "en" == GD.lang) h.style.fontSize = "18px", h.innerHTML = "Please rotate your device."; else { var u; switch (GD.lang) { case "jp": u = "お使いの 携?電話を 回?させて 下ください。"; break; case "en": u = "ROTATE YOUR PHONE"; break; case "cn": u = "如果?幕不能旋?,?打?自?旋?功能。"; break; default: u = window.innerWidth > 480 ? "화면 전환이 되지 않는다면, 자동회전 기능을 켜 주세요." : "화면 전환이 되지 않는다면,
자동회전 기능을 켜 주세요." } h.innerHTML = u } o.appendChild(h) } 0 == l && (document.body.appendChild(n), GD.orientationChange(!0), GD.renderer.view.style.visibility = "hidden") } else l > 0 && (document.body.removeChild(GD.orientationGuide), GD.orientationChange(!1), GD.renderer.view.style.visibility = "visible") } } , GD.orientationChange = function (t) { t ? GD.soundMute() : GD.isAllSound && GD.soundUnMute() } , GD.loadSound = function (t, e) { var index = 0, options = [], n = t.length; for (let o = 0, s = n; s--;) { let i = t[s]; options[s] = { key: i, value: { src: [RES_DIR_SOUND + i + ".mp3?ver=" + SOUND_VERSION, RES_DIR_SOUND + i + ".ogg?ver=" + SOUND_VERSION, RES_DIR_SOUND + i + ".wav?ver=" + SOUND_VERSION], onload: function () { o++; if (index < n) { index++; let option = options[index - 1] GD.sound[option.key] = new Howl(option.value) index == n && e(); } }, onloaderror: function (msg) { console.error("error:", msg); o++; if (index < n) { index++; let option = options[index - 1] GD.sound[option.key] = new Howl(option.value) index == n && e(); } } } } } while (index <= 4) { let option = options[index] GD.sound[option.key] = new Howl(option.value); index++; } } , GD.bgmPlay = function (t) { console.log("bgmplay:", t) var e = GD.sound.sound_bgm; e._loop = !0, t ? e._volume = t : e._volume = .3, GD.isBgmSound && e.play() } , GD.bgmStop = function () { GD.sound.sound_bgm.stop() } , GD.soundPlay = function (t, e, i) { var n = GD.sound[t]; e || (e = 1), e ? n._volume = e : n._volume = 1, i ? n._loop = i : n._loop = !1, GD.isEffectSound && n.play() } , GD.soundStop = function (t) { GD.isEffectSound && GD.sound[t].stop() } , GD.soundAllStop = function () { for (var t in GD.sound) GD.sound[t].stop() } , GD.soundMute = function () { Howler.mute(!0) } , GD.soundUnMute = function () { GD.isAllSound && Howler.mute(!1) } , window.onresize = function (t) { GD.resize() } } , function (t, e) { DataManager = {}, DataManager.unique = null, DataManager.pk = null, DataManager.Skey = null, DataManager.Okey = null, DataManager.callFunc = null, DataManager.target = null, DataManager.playInterval = null, DataManager.start = function (t, e) { DataManager.callFunc = t, DataManager.target = e, gamen.start(DataManager.startDataComplete) } , DataManager.startDataComplete = function (t, e, i, n, o) { if (GD.isLogin = t, GD.isLogin && (GD.sKey = gamen.spkey(n), GD.oKey = gamen.opkey(o), GD.unique = XORcipher().xorDecoder(e, GD.sKey), GD.pk = i, GD.startTime = Date.now(), GD.medal = [], null != gamen.achievement)) for (var s = gamen.achievement.length, r = 0; s > r; ++r) { var a = XORcipher().xorDecoder(gamen.achievement[r], GD.sKey) , h = []; h = a.split("_gamen_"), GD.medal[r] = [parseInt(h[0]), !1, parseInt(h[1]), h[2], h[3], parseInt(h[5]), h[4]] } DataManager.callFunc.call(DataManager.target), DataManager.playInterval = setInterval(DataManager.promisePlay, .1) } , DataManager.point = function (t, e) { if (GD.log(t + " : " + e), DataManager.otherPoint(t, e), GD.isLogin) { t = XORcipher().xorEncoder(t, GD.sKey), e = XORcipher().xorEncoder(e.toString(), GD.sKey); var i = Date.now() - GD.startTime , n = XORcipher().xorEncoder(i.toString(), GD.sKey); gamen.point(t, e, n) } } , DataManager.otherPoint = function (t, e) { if (GD.isLogin) { t = XORcipher().xorEncoder(t, GD.oKey), e = XORcipher().xorEncoder(e.toString(), GD.oKey); var i = Date.now() - GD.startTime , n = XORcipher().xorEncoder(i.toString(), GD.oKey); gamen.otherpoint(t, e, n) } } , DataManager.promisePlay = function () { var t = Date.now() - GD.startTime , e = XORcipher().xorEncoder(t.toString(), GD.oKey); gamen.promiseplay(e) } , DataManager.finish = function (t) { if (DataManager.playInterval && clearInterval(DataManager.playInterval), GD.isLogin) { if (GD.medal.length > 0) { var e = [] , i = GD.medal.length; gamen.new_achievement = []; for (var n = 0; i > n; ++n) e[n] = GD.medal[n][0] + "_gamen_" + GD.medal[n][2] + "_gamen_" + GD.medal[n][3] + "_gamen_" + GD.medal[n][4] + "_gamen_" + parseInt(GD.medal[n][5]), gamen.new_achievement[n] = XORcipher().xorEncoder(e[n], GD.sKey) } var o = XORcipher().xorEncoder(t.toString(), GD.sKey) , s = GD.commonOption.gameRestart.bind(GD.commonOption) , r = XORcipher().xorEncoder(GD.unique, GD.sKey) , a = XORcipher().xorEncoder(GD.startTime.toString(), GD.sKey) , h = Date.now() , l = XORcipher().xorEncoder(h.toString(), this.sKey); gamen.finish(GD.pk, o, s, r, a, l) } else gamen.finish(GD.pk, t, GD.commonOption.gameRestart.bind(GD.commonOption)) } , DataManager.addMedal = function (t, e) { if (GD.isLogin && GD.medal.length > 0) for (var i = null, n = 0; n < GD.medal.length; ++n) if (t == GD.medal[n][0]) { i = n, 0 == GD.medal[i][1] && (null == e && (e = 1), GD.medal[i][5] += e, GD.medal[i][2] <= GD.medal[i][5] && (GD.medal[i][1] = !0, GD.commonOption.setAchievement(i + 1))); break } } GD.DataManager = DataManager } , function (t, e) { GamePadManager = { isConnected: !1, init: function () { try { gamepadSupport.init() } catch (t) { console.log("gamepadSupport is not defined -- gamepad.js") } }, showNotSupported: function () { }, updateGamePads: function (t) { if (this.isConnected = !1, t) for (var e in t) { var i = t[e]; i && (this.isConnected = !0) } }, updateButton: function (t, e, i) { t.pressed && $(this).trigger("padButton", i) }, updateAxis: function (t, e, i, n, o) { "stick-1" == n && ("stick-1-axis-x" == i ? $(this).trigger("padStickX", t) : "stick-1-axis-y" == i && $(this).trigger("padStickY", t)) } } } , function (t, e) { GD.OptionPopup = function () { PIXI.Container.call(this), this.darkBg = GD.getDarkBg(), this.bg = null, this.type = null, this.allBtn = this.setSpriteTexture(this.allBtn, "texture", "option_on_0"), this.allBtn.anchor.set(.5), this.allBtn.x = 110, this.setTouchEnd(this.allBtn, function () { GD.isAllSound = !GD.isAllSound, this.setAllSoundBtn(), this.setBgmBtn(!1), this.setEffectBtn() }, this), this.bgmBtn = this.setSpriteTexture(this.bgmBtn, "texture", "option_on_0"), this.bgmBtn.anchor.set(.5), this.bgmBtn.x = this.allBtn.x, this.setTouchEnd(this.bgmBtn, function () { GD.isAllSound && (GD.isBgmSound = !GD.isBgmSound, this.setBgmBtn(!0)) }, this), this.effectBtn = this.setSpriteTexture(this.effectBtn, "texture", "option_on_0"), this.effectBtn.anchor.set(.5), this.effectBtn.x = this.allBtn.x, this.setTouchEnd(this.effectBtn, function () { GD.isAllSound && (GD.isEffectSound = !GD.isEffectSound, this.setEffectBtn()) }, this), this.closeBtn = this.setSpriteTexture(this.closeBtn, "texture", "option_close_btn"), this.closeBtn.anchor.set(.5), this.closeBtn.x = 200, this.setTouchStartAction(this.closeBtn, function () { this.emit("SOUND_POPUP_CLOSE_EVENT") }, this), this.tutorialBtn = this.setSpriteTexture(this.tutorialBtn, "texture", "option_help_btn"), this.tutorialBtn.anchor.set(.5), this.setTouchStartAction(this.tutorialBtn), this.setTouchEnd(this.tutorialBtn, function () { this.setInteractive(!1), this.emit("TUTORIAL_OPEN_EVENT") }, this) } , GD.OptionPopup.constructor = GD.OptionPopup, GD.OptionPopup.prototype = Object.create(PIXI.Container.prototype), GD.OptionPopup.prototype.show = function (t) { this.removeChild(), this.type = t; var e = "option_box_0"; 0 == this.type ? (1 == GD.soundType ? (this.closeBtn.y = -185, this.allBtn.y = -62) : (e = "option_box1_0", this.closeBtn.y = -92, this.allBtn.y = 25, this.allBtn.y = 30), this.bgmBtn.y = 70, this.effectBtn.y = 165) : (e = "option_box_1", 1 == GD.soundType ? (this.closeBtn.y = -247, this.allBtn.y = -124, this.tutorialBtn.y = 230) : (e = "option_box1_1", this.closeBtn.y = -148, this.allBtn.y = -27, this.tutorialBtn.y = 130), this.bgmBtn.y = 20, this.effectBtn.y = 115), this.addChild(this.darkBg), this.bg = this.setSpriteTexture(this.bg, "texture", e), this.bg.anchor.set(.5), this.bg.x = GD.width / 2, this.bg.y = GD.height / 2, this.addChild(this.bg), this.bg.addChild(this.closeBtn), this.bg.addChild(this.allBtn), 1 == GD.soundType && (this.bg.addChild(this.bgmBtn), this.bg.addChild(this.effectBtn)), 1 == this.type && this.bg.addChild(this.tutorialBtn), this.setAllSoundBtn(), this.setBgmBtn(!1), this.setEffectBtn(), this.bg.scale.set(.1), TweenMax.to(this.bg.scale, .15, { x: 1, y: 1, ease: Back.easeOut, onComplete: this.showComplete.bind(this) }) } , GD.OptionPopup.prototype.showComplete = function () { this.setInteractive(!0) } , GD.OptionPopup.prototype.hide = function () { this.removeChild() } , GD.OptionPopup.prototype.setAllSoundBtn = function () { GD.isAllSound ? (this.allBtn = this.setSpriteTexture(this.allBtn, "texture", "option_on_0"), GD.soundUnMute()) : (this.allBtn = this.setSpriteTexture(this.allBtn, "texture", "option_off_0"), GD.soundMute()) } , GD.OptionPopup.prototype.setBgmBtn = function (t) { GD.isAllSound ? (GD.isBgmSound ? this.bgmBtn = this.setSpriteTexture(this.bgmBtn, "texture", "option_on_0") : this.bgmBtn = this.setSpriteTexture(this.bgmBtn, "texture", "option_off_0"), t && 1 == this.type && (GD.isBgmSound ? GD.bgmPlay() : GD.bgmStop())) : GD.isBgmSound ? this.bgmBtn = this.setSpriteTexture(this.bgmBtn, "texture", "option_on_1") : this.bgmBtn = this.setSpriteTexture(this.bgmBtn, "texture", "option_off_1") } , GD.OptionPopup.prototype.setEffectBtn = function () { GD.isAllSound ? GD.isEffectSound ? this.effectBtn = this.setSpriteTexture(this.effectBtn, "texture", "option_on_0") : this.effectBtn = this.setSpriteTexture(this.effectBtn, "texture", "option_off_0") : GD.isEffectSound ? this.effectBtn = this.setSpriteTexture(this.effectBtn, "texture", "option_on_1") : this.effectBtn = this.setSpriteTexture(this.effectBtn, "texture", "option_off_1") } , GD.OptionPopup.prototype.setInteractive = function (t) { this.allBtn.interactive = t, this.bgmBtn.interactive = t, this.effectBtn.interactive = t, this.tutorialBtn.interactive = t, this.closeBtn.interactive = t } , GD.OptionPopup.prototype.removeChild = function () { this.removeChildren(), this.bg && this.bg.removeChildren(), this.setInteractive(!1) } } , function (t, e) { GD.ScorePopup = function () { PIXI.Container.call(this), this.darkBg = GD.getDarkBg(), this.bg = this.setSpriteTexture(this.allBtn, "texture", "gameOver_box"), this.bg.anchor.set(.5), this.bg.x = GD.width / 2, this.bg.y = GD.height / 2, this.closeBtn = this.setSpriteTexture(this.closeBtn, "texture", "option_close_btn"), this.closeBtn.anchor.set(.5), this.closeBtn.x = 267, this.closeBtn.y = -88, this.setTouchStartAction(this.closeBtn, function () { this.emit("SCORE_POPUP_CLOSE_EVENT") }, this), this.bg.addChild(this.closeBtn), this.pointTxt = new NumberText("gameOver_num_", "center", -12), this.pointTxt.y = 8, this.bg.addChild(this.pointTxt) } , GD.ScorePopup.constructor = GD.ScorePopup, GD.ScorePopup.prototype = Object.create(PIXI.Container.prototype), GD.ScorePopup.prototype.show = function (t) { this.removeChild(), this.pointTxt.setValue(t), this.addChild(this.darkBg), this.addChild(this.bg), this.bg.scale.set(.1), TweenMax.to(this.bg.scale, .15, { x: 1, y: 1, ease: Back.easeOut, onComplete: this.showComplete.bind(this) }) } , GD.ScorePopup.prototype.showComplete = function () { this.setInteractive(!0) } , GD.ScorePopup.prototype.setInteractive = function (t) { this.closeBtn.interactive = t } , GD.ScorePopup.prototype.removeChild = function () { this.setInteractive(!1), this.removeChildren() } } , function (t, e) { GD.Util = { zeroStr: function (t, e) { for (var i = t.toString(), n = e - i.length; n--;) i = "0" + i; return i }, randomNumber: function (t, e) { var i = 10 * e || 1; return Math.floor(Math.random() * t * i / i) }, hitTest: function (t, e) { return e.x >= t.x && e.x <= t.x + t.width && e.y >= t.y && e.y <= t.y + t.height }, uniqueArray: function (t) { for (var e = [], i = 0, n = t.length; n > i; i++) -1 === e.indexOf(t[i]) && "" !== t[i] && e.push(t[i]); return e }, comma: function (t) { return t = String(t), t.replace(/(\d)(?=(?:\d{3})+(?!\d))/g, "$1,") }, shuffle: function (t) { var e, i, n; for (n = t.length; n; n--) e = Math.floor(Math.random() * n), i = t[n - 1], t[n - 1] = t[e], t[e] = i }, grep: function (t, e) { return jQuery.grep(t, function (t) { return t != e }) }, getParam: function (t) { var e = window.location.search.match(new RegExp("(?:[?&]" + t + "=)([^&]+)")); return e ? e[1] : null }, mobileCheck: function () { return !!(navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i)) }, radiansToDegrees: function (t) { return t * Math.PI / 180 }, degreesToradians: function (t) { return 180 * t / Math.PI } } } , function (t, e) { GD.Achievement = function () { PIXI.Container.call(this), this.icons = [], this.idx = 0 } , GD.Achievement.constructor = GD.Achievement, GD.Achievement.prototype = Object.create(PIXI.Container.prototype), GD.Achievement.prototype.show = function (t, e) { var i = this.setSpriteTexture(null, "texture", "medal_box"); i.anchor.set(.5), i.scale.set(.3), i.idx = this.idx, i.x = GD.width + 50, e ? i.y = e : i.y = 140, this.icons.length > 0 && (i.y += 100 * this.icons.length), GD.log("game_medal_" + t); var n = this.setSpriteTexture(null, "sprite", "game_medal_" + t); n.anchor.set(.5), n.y = -30, i.addChild(n), this.addChild(i), this.icons.push(i), setTimeout(function () { TweenMax.to(i, .5, { x: GD.width - 50, ease: Back.easeOut, onComplete: this.iconHide.bind(this), onCompleteParams: [i] }) } .bind(this), 3), this.idx++ } , GD.Achievement.prototype.iconHide = function (t) { TweenMax.to(t, .5, { x: GD.width + 50, delay: 2, ease: Back.easeIn, onComplete: function () { for (var e, i = this.icons.length; i--;) if (e = this.icons[i], e.idx == t.idx) { this.icons.splice(i, 1), this.removeChild(e); break } } .bind(this) }) } , GD.Achievement.prototype.removeAll = function () { this.removeChildren() } } , function (t, e) { GD.GamePadGuide = function () { PIXI.Container.call(this), this.guide = this.setSpriteTexture(this.guide, "sprite", "gamePadGuide"), this.setTouchEnd(this.guide, function () { this.setInteractive(!1), this.removeChild(this.guide), this.emit("GAME_PAD_GUIDE_CLOSE_EVENT") } .bind(this)) } , GD.GamePadGuide.constructor = GD.GamePadGuide, GD.GamePadGuide.prototype = Object.create(PIXI.Container.prototype), GD.GamePadGuide.prototype.init = function () { this.removeChild(), this.addChild(this.guide), this.setInteractive(!0) } , GD.GamePadGuide.prototype.setInteractive = function (t) { this.guide.interactive = t } , GD.GamePadGuide.prototype.removeChild = function () { this.removeChildren() } } , function (t, e) { GD.LoadingView = function () { PIXI.Container.call(this), this.darkBg = GD.getDarkBg(), this.img = this.setSpriteTexture(null, "texture", "loadingCircle"), this.img.scale.set(.8), this.img.anchor.set(.5), this.img.x = GD.width / 2, this.img.y = GD.height / 2, this.addChild(this.img) } , GD.LoadingView.constructor = GD.LoadingView, GD.LoadingView.prototype = Object.create(PIXI.Container.prototype), GD.LoadingView.prototype.init = function () { this.removeAll(), this.addChild(this.darkBg), this.addChild(this.img) } , GD.LoadingView.prototype.removeAll = function () { this.removeChildren() } , GD.LoadingView.prototype.updateTransform = function () { PIXI.Container.prototype.updateTransform.call(this), this.img.rotation += .1 } , GD.LoadingView.getInstance = function () { return GD.loading || (GD.loading = new GD.LoadingView), GD.loading } } , function (t, e) { GD.Progress = function () { this.bg = null, this.logo = null, this.logoTxt = null, this.tween = null, PIXI.Container.call(this) } , GD.Progress.constructor = GD.Progress, GD.Progress.prototype = Object.create(PIXI.Container.prototype), GD.Progress.prototype.show = function () { if (this.bg || (this.bg = new PIXI.Graphics, this.bg.beginFill(16777215, 1), this.bg.drawRect(0, 0, GD.width, GD.height), this.bg.endFill()), this.addChild(this.bg), !this.logo) { var logo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABoCAYAAAAU9xXbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJb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UA7gZEen47jaOOwJa+98tMPHCrVz9qiYB+tMoqkpPCJB0FrLdsdOcYhctQGGUOil1jtWR+uMYdBGh44gsvYqK/+kHrR3RWa93oKqWIbBLXBrguGctD5tBwZtDOexOP0WkWazz+I8ZiiXiQohVm2AId3mq9DZ11xjMcUcVvlvpnyv1O105l8R6iV0FUnVCNinvkqeAFqCIoLXR87VKiK27aj8/cz5mwAzJKzZus4WNBGviDgWdUz5Ve7C/XJqxt0EMKSpIriLm41MizNDbEwVvUzDbt4rK3nT1QwYhqHjmNusQMt5H5E7iK6pJHdVO2BImLfCFuHn+7ZQXi+yMde5Xbg7vlU+VTtgrhdHqPdl7sVKREcJxnWS3MO+wNixYEolFY1gqhPdJ2EPQswS432Ux1BH7y8cBxogpj7qfQDsd5DDB2a48eLSV6gM8vIe4e0zv4HS/wUYAJEhl2U0gO8nAAAAAElFTkSuQmCC" this.logo = new PIXI.Sprite.fromImage(logo) } this.logo.x = GD.width / 2, this.logo.y = GD.height / 2, this.logo.anchor.set(.5), this.logo.scale.set(.1), this.logo.rotation = 20, this.addChild(this.logo), this.tween ? this.tween.kill() : this.tween = new TimelineLite, this.tween.to(this.logo, 1, { rotation: 0, ease: Sine.easeOut }), this.tween.call(this.showLocoText.bind(this)), TweenMax.to(this.logo.scale, 1, { x: 1, y: 1 }) } , GD.Progress.prototype.showLocoText = function () { if (!this.logoTxt) { var logoTxt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO8AAABgCAYAAAD1liW0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1N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HInR/Tn/Krist7APWkLKQ00n1s0dfAcrgNyI4869x7n8zZunAdKaaDGI0rHrLRlVLniVELLOIMO9miqC8pXcEVaY/Gsqdxj6wawP+bCWmz5LSAElgLeZagRbOXW9BayG68OIu8fNWr9cwFkN5mGiusuo9zF275pgWmR8lg4euku7AOYoHzTYWS3KL/UgA/mVDLz7O7nutWP9LOUPuB6O43MJlKsZsJPT2MmqTGsfHTh1qYv21B1ubIhU2eyeoIW6XjKXYB+Dx28WiLIGTWM730ce/92sArzB1ZX/KlxV1P1WDKevcjCuXMtZ3wHSd3ayGr5PFa1t8TMtxGKCqz7bqho8rAUxoNfsngePM/D2cZux43pLu4xXuB8q1QIewFfcyI3zJWKb8C3/WSP+yIym2eNiSbyCqyZFD5VVq0juzm/TDsXPGcwk9n3wG9nzWMJE3FFjDI8met4HylPMS/+Q64jT7Dv53ODe2HutBxR5K+KeRWEUyl35GEqRU8SIuaNX5ffDSOvinoF9LLVNcygfJ+xl2rODoZ1KDhkTm1AoepL5vL03wIMANN/MUNK60tEAAAAAElFTkSuQmCC" this.logoTxt = new PIXI.Sprite.fromImage(logoTxt), this.logoTxt.anchor.set(.5), this.logoTxt.scale.set(1), this.logoTxt.y = GD.height / 2 } this.logoTxt.x = GD.width / 2 + 65, this.logoTxt.alpha = 0, this.addChild(this.logoTxt), TweenMax.to(this.logo, .4, { x: GD.width / 2 - 95, ease: Sine.easeOut }), TweenMax.to(this.logoTxt, .4, { x: GD.width / 2 + 90, alpha: 1, ease: Sine.easeOut }), TweenMax.delayedCall(2, this.replay.bind(this)) } , GD.Progress.prototype.replay = function () { this.hide(), this.show() } , GD.Progress.prototype.hide = function () { TweenMax.killAll(), this.tween.clear(), this.removeChildren() } , GD.Progress.prototype.updateTransform = function () { PIXI.Container.prototype.updateTransform.call(this) } } , function (t, e) { GD.Tutorial = function () { PIXI.Container.call(this), this.type = 1, this.tutorialImg = null, this.nowPage = 0, this.totalPage = 0, this.contents = [], this.container = new PIXI.Container, this.img = this.setSpriteTexture(this.img, "texture", "temp"), this.prevBtn = this.setSpriteTexture(this.prevBtn, "texture", "temp"), this.prevBtn.anchor.set(.5), this.prevBtn.x = 30, this.prevBtn.y = GD.height / 2, this.setTouchStartAction(this.prevBtn, function () { this.nowPage > 0 && this.initPage(this.nowPage - 1) }, this), this.addChild(this.prevBtn), this.nextBtn = this.setSpriteTexture(this.nextBtn, "texture", "temp"), this.nextBtn.anchor.set(.5), this.nextBtn.x = GD.width - 30, this.nextBtn.y = GD.height / 2, this.setTouchStartAction(this.nextBtn, function () { this.nowPage + 1 < this.totalPage && this.initPage(this.nowPage + 1) }, this), this.addChild(this.nextBtn), this.closeBtn = this.setSpriteTexture(this.closeBtn, "texture", "temp"), this.closeBtn.anchor.set(.5), this.closeBtn.x = GD.width / 2, this.closeBtn.y = GD.height - 105, this.setTouchStartAction(this.closeBtn), this.setTouchEnd(this.closeBtn, function () { this.emit("TUTORIAL_CLOSE_EVENT") }, this), this.addChild(this.closeBtn) } , GD.Tutorial.constructor = GD.Tutorial, GD.Tutorial.prototype = Object.create(PIXI.Container.prototype), GD.Tutorial.prototype.init = function (t, e) { this.removeChild(), this.type = 1, this.tutorialImg = e, this.nowPage = 0, this.totalPage = t, this.addChild(this.img), this.addChild(this.closeBtn), this.initPageButton(), this.setTutorialImg(), this.setInteractive(!0), this.setButtons() } , GD.Tutorial.prototype.initContent = function (t, e) { this.removeChild(), this.type = 2, this.nowPage = 0, this.totalPage = t, this.contents = e, this.addChild(this.container), this.addChild(this.closeBtn), this.container.addChild(this.contents[0]), this.setContent(), this.initPageButton(), this.setInteractive(!0), this.setButtons() } , GD.Tutorial.prototype.initPage = function (t, e) { this.nowPage = t, e && (this.closeBtn = this.setSpriteTexture(this.closeBtn, "texture", e)), 1 == this.type ? this.setTutorialImg() : this.setContent(), this.setButtons() } , GD.Tutorial.prototype.initPageButton = function () { this.totalPage > 1 && (this.prevBtn = this.setSpriteTexture(this.prevBtn, "texture", "help_prev"), this.nextBtn = this.setSpriteTexture(this.nextBtn, "texture", "help_next"), this.prevBtn.scale.set(1), this.nextBtn.scale.set(1), this.addChild(this.prevBtn), this.addChild(this.nextBtn)) } , GD.Tutorial.prototype.setPrevButtonPos = function (t, e) { this.prevBtn.x = t, this.prevBtn.y = e } , GD.Tutorial.prototype.setNextButtonPos = function (t, e) { this.nextBtn.x = t, this.nextBtn.y = e } , GD.Tutorial.prototype.setCloseButtonPos = function (t, e) { this.closeBtn.x = t, this.closeBtn.y = e } , GD.Tutorial.prototype.setTutorialImg = function () { this.img = this.setSpriteTexture(this.img, "texture", this.tutorialImg + (this.nowPage + 1)) } , GD.Tutorial.prototype.setContent = function () { this.container.removeChildren(); var t = this.contents[this.nowPage]; t.init && t.init(), this.container.addChild(t) } , GD.Tutorial.prototype.setButtons = function () { this.totalPage > 0 && (0 == this.nowPage ? (this.prevBtn.alpha = .3, this.nextBtn.alpha = 1, this.prevBtn.interactive = !1, this.nextBtn.interactive = !0) : this.nowPage + 1 == this.totalPage ? (this.prevBtn.alpha = 1, this.nextBtn.alpha = .3, this.prevBtn.interactive = !0, this.nextBtn.interactive = !1) : (this.prevBtn.alpha = 1, this.nextBtn.alpha = 1, this.prevBtn.interactive = !0, this.nextBtn.interactive = !0)) } , GD.Tutorial.prototype.setInteractive = function (t) { this.prevBtn.interactive = t, this.nextBtn.interactive = t, this.closeBtn.interactive = t } , GD.Tutorial.prototype.removeChild = function () { this.setInteractive(!1), this.container.removeChildren(), this.removeChildren() } , GD.Tutorial.getInstance = function () { return GD.tutorial || (GD.tutorial = new GD.Tutorial), GD.tutorial } } ]); export default GD