Shenlong/library/imports/72/722a6df3-941d-4d60-834d-9bd...

1 line
43 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["assets/scripts/Game.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAM,IAAA,KAAsB,EAAE,CAAC,UAAU,EAAlC,OAAO,aAAA,EAAE,QAAQ,cAAiB,CAAC;AAC1C,WAAW;AAEX,+CAA+C;AAC/C,4BAA4B;AAC5B,cAAc;AAEd,gCAAgC;AAChC,qCAAqC;AACrC,IAAI;AACJ,IAAI,IAAI,GAAG,CAAC,CAAC;AACb,IAAI,KAAK,GAAG,CAAC,CAAC;AACd,IAAI,IAAI,GAAG,CAAC,CAAC;AACb,IAAI,OAAO,GAAE,CAAC,CAAC;AACf,IAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CAAC;IAC1B,IAAI,EAAE,WAAW;IACjB,UAAU,EAAE;QACX,EAAE,EAAE,CAAC;QACL,MAAM,EAAE,EAAE,CAAC,WAAW;KACtB;CACD,CAAC,CAAC;AAEH,IAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CAAC;IAC1B,IAAI,EAAE,WAAW;IACjB,UAAU,EAAE;QACX,EAAE,EAAE,CAAC;QACL,QAAQ,EAAE,EAAE,CAAC,WAAW;QACxB,MAAM,EAAE,EAAE,CAAC,WAAW;QACtB,KAAK,EAAE,EAAE,CAAC,WAAW;KACrB;CACD,CAAC,CAAC;AAGH;IAAkC,wBAAY;IAA9C;QAAA,qEAkpBC;QAhpBA,oBAAc,GAAY,IAAI,CAAC;QAG/B,YAAM,GAAY,IAAI,CAAC;QAGvB,gBAAU,GAAY,IAAI,CAAC;QAG3B,aAAO,GAAY,IAAI,CAAC;QAGxB,UAAI,GAAY,IAAI,CAAC;QAGrB,iBAAW,G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,CAAC,MAAM,CAAC;4CACS;IAG7B;QADC,QAAQ,CAAC,EAAE,CAAC,SAAS,CAAC;2CACQ;IAG/B;QADC,QAAQ,CAAC,EAAE,CAAC,SAAS,CAAC;4CACS;IAGhC;QADC,QAAQ,CAAC,EAAE,CAAC,SAAS,CAAC;4CACS;IAGhC;QADC,QAAQ,CAAC,EAAE,CAAC,SAAS,CAAC;+CACY;IAGnC;QADC,QAAQ,CAAC,EAAE,CAAC,SAAS,CAAC;2CACQ;IAG/B;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;4CACS;IAG5B;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;4CACS;IAG5B;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;6CACU;IAG9B;QADC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;wCACH;IAGnB;QADC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;wCACH;IAIhB;QADF,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;+CACe;IAGhC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;+CACY;IAGnC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;6CACU;IAG9B;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;4CACS;IAG7B;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;4CACS;IArET,IAAI;QADxB,OAAO;OACa,IAAI,CAkpBxB;IAAD,WAAC;CAlpBD,AAkpBC,CAlpBiC,EAAE,CAAC,SAAS,GAkpB7C;kBAlpBoB,IAAI","file":"","sourceRoot":"/","sourcesContent":["const {ccclass, property} = cc._decorator;\n// @ccclass\n\n// export class FruitItem extends cc.Component{\n// @property(cc.Integer)\n// id = 0;\n\n// @property(cc.SpriteFrame)\n// iconSF: cc.SpriteFrame = null;\n// }\nlet nwId = 1;\nlet nxtId = 1;\nlet upId = 1;\nlet storeId =0;\nconst FruitItem = cc.Class({\n\tname: 'FruitItem',\n\tproperties: {\n\t\tid: 0,\n\t\ticonSF: cc.SpriteFrame,\n\t},\n});\n\nconst JuiceItem = cc.Class({\n\tname: 'JuiceItem',\n\tproperties: {\n\t\tid: 0,\n\t\tparticle: cc.SpriteFrame, // 果粒\n\t\tcircle: cc.SpriteFrame, // 水珠\n\t\tslash: cc.SpriteFrame, // 果汁\n\t},\n});\n\n@ccclass\nexport default class Game extends cc.Component {\n\t@property(cc.Node)\n\tfruitContainer: cc.Node = null;\n\n\t@property(cc.Node)\n\tcanvas: cc.Node = null;\n\n\t@property(cc.Node)\n\tsuccessPop: cc.Node = null;\n\n\t@property(cc.Node)\n\tfailPop: cc.Node = null;\n\n\t@property(cc.Node)\n\tline: cc.Node = null;\n\n\t@property(cc.Prefab)\n\tfruitPrefab: cc.Prefab = null;\n\n\t@property(cc.Prefab)\n\tjuicePrefab: cc.Prefab = null;\n\n\t@property(cc.Sprite)\n\tnextSprite: cc.Sprite = null;\n\n\t@property(cc.AudioClip)\n\tboomAudio: cc.AudioClip = null;\n\n\t@property(cc.AudioClip)\n\tknockAudio: cc.AudioClip = null;\n\n\t@property(cc.AudioClip)\n\twaterAudio: cc.AudioClip = null;\n\n\t@property(cc.AudioClip)\n\tgameOverAudio: cc.AudioClip = null;\n\n\t@property(cc.AudioClip)\n\tgameAudio: cc.AudioClip = null;\n\n\t@property(cc.Label)\n\tscoreLabel: cc.Label = null;\n\n\t@property(cc.Label)\n\tcomboLabel: cc.Label = null;\n\n\t@property(cc.Prefab)\n\tsmokePrefab: cc.Prefab = null;\n\n\t@property([FruitItem])\n\tfruits: any[] = [];\n\n\t@property([JuiceItem])\n\tjuices: any[] = [];\n\n\n\t@property(cc.Button)\n storageButton: cc.Button = null;\n\n @property(cc.Button)\n takeOutButton: cc.Button = null;\n\n\t@property(cc.Button)\n\tmagicButton: cc.Button = null;\n\n\t@property(cc.Button)\n\tbanButton1: cc.Button = null;\n\n\t@property(cc.Button)\n\tbanButton2: cc.Button = null;\n\n\tnextFruit: cc.Node = null;\n\tscore: number = 0;\n\tisAnimtionPlaying: boolean = false;\n\tisCreating: boolean = false;\n\tcombo: number = 0;\n\tlineBlink = false;\n\tshowOver = false;\n\tnodenumber = 1;\n\tlastNextFruitPreviewNode: cc.Node = null;\n\tstorageContainer: cc.Node = null; // 储存容器节点\n\tstoredFruit: cc.Node = null; // 已储存的水果节点\n\t\n\tcreateOneFruit(num): cc.Node {\n\t\tthis.nodenumber++;\n\t\tlet fruit = cc.instantiate(this.fruitPrefab);\n\n\t\t// 获取到配置信息\n\t\tconst config = this.fruits[num];\n\t\t// 触线检测状态\n\t\tfruit['isCreate'] = false;\n\n\t\t// 获取到节点的Fruit组件并调用实例方法\n\t\tfruit.getComponent('Fruit').init({\n\t\t\tid: config.id,\n\t\t\ticonSF: config.iconSF,\n\t\t});\n\t\tfruit.getComponent(cc.RigidBody).type = cc.RigidBodyType.Dynamic;\n\t\tconst rigidBody = fruit.getComponent(cc.RigidBody);\n\t\trigidBody.type = cc.RigidBodyType.Dynamic;\n\n\t\tconst physicsCircleCollider = fruit.getComponent(cc.PhysicsCircleCollider);\n\t\tphysicsCircleCollider.radius = fruit.height / 2;\n\t\tphysicsCircleCollider.apply();\n\t\tphysicsCircleCollider.restitution=0.2;\n\t\tphysicsCircleCollider.friction=0.1;\n\t\tfruit.on('sameContact', ({self, other}) => {\n\t\t\tother.node.off('sameContact');\n\t\t\tthis.onSameFruitContact({self, other});\n\t\t});\n\n\t\treturn fruit;\n\t}\n\tshowCombo() {\n\t\tthis.combo++;\n\t\t// console.log(this.combo);\n\t\tif (this.combo < 2) return;\n\t\tthis.comboLabel.node.opacity = 255;\n\t\tthis.comboLabel.node.scale = 0;\n\t\tthis.comboLabel.string = 'X' + this.combo.toString();\n\t\tcc.tween(this.comboLabel.node)\n\t\t\t.to(0.2, {\n\t\t\t\tscale: 1.5,\n\t\t\t})\n\t\t\t.start();\n\t\t// this.scheduleOnce(()=>{\n\t\tcc.tween(this.comboLabel.node)\n\t\t\t.to(3, {\n\t\t\t\topacity: 0,\n\t\t\t})\n\t\t\t.call(() => {\n\t\t\t\tthis.combo = 0;\n\t\t\t})\n\t\t\t.start();\n\t\t// },1.5)\n\t}\n\tonSameFruitContact({self, other}) {\n\t\tother.node.off('sameContact');\n\t\tself.node.removeFromParent(false);\n\t\tother.node.removeFromParent(false);\n\t\t// 获取下面的node\n\t\tlet tempNode = self.node.y < other.node.y ? self.node : other.node;\n\t\tconst {x, y} = tempNode; // 获取合并的水果位置\n\t\tlet id = other.getComponent('Fruit').id;\n\t\tif (id==13){\n\t\t\tid=self.getComponent('Fruit').id;\n\t\t}\n\t\tthis.showCombo();\n\t\t// self.node.destroy();\n\t\t// other.node.destroy();\n\t\t// 爆炸特效\n\t\tthis.createFruitJuice(id - 1, cc.v2({x, y}), tempNode.width);\n\n\t\tthis.addScore(id);\n\t\t// 生成下一级水果\n\t\tconst nextId = id;\n\n\t\tconst newFruit = this.createOneFruit(nextId);\n\t\tnewFruit.setPosition(cc.v2(x, y));\n\t\tnewFruit.getComponent(cc.RigidBody).enabledContactListener = false;\n\t\tthis.scheduleOnce(() => {\n\t\t\tnewFruit.getComponent(cc.RigidBody).enabledContactListener = true;\n\t\t}, 0.5);\n\t\tthis.scheduleOnce(()=>{\n\t\t\tnewFruit['isCreate'] = true;\n\t\t},1)\n\t\tthis.fruitContainer.addChild(newFruit);\n\t\tif (nextId < 11) {\n\t\t\tnewFruit.scale = 0;\n\t\t\tcc.tween(newFruit)\n\t\t\t\t.to(\n\t\t\t\t\t0.5,\n\t\t\t\t\t{\n\t\t\t\t\t\tscale: 1,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\teasing: 'backOut',\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t\t.start();\n\t\t} else if (nextId == 11) {\n\t\t\tthis.onCombineWaterMelon();\n\t\t} else {\n\t\t\t// todo: 合成两个西瓜\n\t\t\tconsole.log('合成两个西瓜,还没做,感觉没人合到这块');\n\t\t}\n\t}\n\t// 合并时的动画效果\n\tasync createFruitJuice(id, pos, n) {\n\t\tif (this.isAnimtionPlaying) return;\n\n\t\tthis.isAnimtionPlaying = true;\n\t\t// 播放合并的声音\n\t\tcc.audioEngine.play(this.boomAudio, false, 1);\n\t\tcc.audioEngine.play(this.waterAudio, false, 1);\n\n\t\t// 展示动画\n\t\t//let juice = cc.instantiate(this.juicePrefab);\n\t\t//this.fruitContainer.addChild(juice);\n\t\tlet smoke = cc.instantiate(this.smokePrefab);\n\t\tthis.fruitContainer.addChild(smoke);\n\t\t// smoke.setParent(this.node);\n smoke.position = pos;\n smoke.scale = n/80; // 适当调整缩放值,使烟雾大小适应屏幕\n\n\n\t\t// const config = this.juices[id];\n\t\t// const instance = smoke.getComponent('Smoke');\n\t\t// instance.init(config);\n\t\t// instance.init(this.smokePrefab);\n\t\t// await instance.showSmoke(pos, n);\n\t\tthis.isAnimtionPlaying = false;\n\t}\n\t// 添加得分分数\n\taddScore(fruitId) {\n\t\tthis.score += fruitId * 2;\n\t\t// todo: 处理分数tween动画\n\t\tthis.scoreLabel.string = this.score.toString();\n\t}\n\tinitPhysics(): void {\n\t\t// 开启物理引擎\n\t\tconst instance = cc.director.getPhysicsManager();\n\t\tinstance.enabled = true;\n\t\t// instance.debugDrawFlags = 4\n\t\tinstance.gravity = cc.v2(0, -800);\n\n\t\t// 开启碰撞检测\n\t\tvar manager = cc.director.getCollisionManager();\n\t\tmanager.enabled = true;\n\t\t// manager.enabledDebugDraw = true;\n\n\t\t// 设置四周的碰撞区域\n\t\tlet width = this.canvas.width;\n\t\tlet height = this.canvas.height;\n\t\tconsole.log(width);\n\t\tconsole.log(height);\n\t\tlet node = new cc.Node();\n\n\t\tlet body = node.addComponent(cc.RigidBody);\n\t\tbody.type = cc.RigidBodyType.Static;\n\n\t\tconst _addBound = (node, x, y, width, height) => {\n\t\t\tlet collider = node.addComponent(cc.PhysicsBoxCollider);\n\t\t\tcollider.offset.x = x;\n\t\t\tcollider.offset.y = y;\n\t\t\tcollider.size.width = width;\n\t\t\tcollider.size.height = height;\n\t\t};\n\n\t\t_addBound(node, 0, -height / 2 + 190, width, 5);\n\t\t_addBound(node, 0, height / 2, width, 1);\n\t\t_addBound(node, -width / 2, 0, 1, height);\n\t\t_addBound(node, width / 2, 0, 1, height);\n\t\t\n\n\t\tnode.parent = this.canvas;\n\t}\n\n\tonLoad() {\n\t\t// const buttonNode = this.node.getChildByName(\"storebutton\");\n \t// buttonNode.on('click', this.onStoreFruit, this);\n\t\tthis.initPhysics();\n\t\tthis.createNextFruitPreview();\n\t\tthis.canvas.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);\n\t\tthis.canvas.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);\n\t\tthis.canvas.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);\n\t\tthis.successPop.active = false;\n\t\tthis.failPop.active = false;\n\t\t// 隐藏按钮2\n this.takeOutButton.node.active = false;\n\n\t\tthis.successPop.on(\n\t\t\tcc.Node.EventType.TOUCH_START,\n\t\t\t() => {\n\t\t\t\tthis.successPop.active = false;\n\t\t\t\tthis.successPop.children.forEach((child) => {\n\t\t\t\t\tif (child.name != 'bg') {\n\t\t\t\t\t\tchild.destroy();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t},\n\t\t\tthis\n\t\t);\n\t\tthis.failPop.on(\n\t\t\tcc.Node.EventType.TOUCH_START,\n\t\t\t() => {\n\t\t\t\t// 重來\n\t\t\t\tthis.failPop.active = false;\n\t\t\t\tthis.showOver = false;\n\t\t\t\tthis.fruitContainer.removeAllChildren();\n\t\t\t\tthis.nextSprite.spriteFrame = this.fruits[0].iconSF;\n\t\t\t\tthis.nextFruit = this.createOneFruit(0);\n\t\t\t\tthis.score = 0;\n\t\t\t\tthis.scoreLabel.string = '0';\n\t\t\t\tthis.nextSprite.node.opacity = 255;\n\t\t\t\tthis.line.opacity = 0; \n\t\t\t\tcc.audioEngine.stopAll();\n\t\t\t\tcc.audioEngine.play(this.gameAudio, true, 1);\n\t\t\t},\n\t\t);\n\t\tthis.nextFruit = this.createOneFruit(0);\n\t\tthis.nextSprite.spriteFrame = this.fruits[0].iconSF;\n\t\tthis.nextSprite.node.setPosition(\n\t\t\tcc.v2(this.canvas.width / 2, -20 - this.nextSprite.node.height / 2)\n\t\t);\n\t\tthis.comboLabel.node.opacity = 0;\n\t\tthis.line.opacity = 0;\n\t\t\n\t}\n\tcreateNextFruitPreview() {\n\t\t\n\t\t// 使用下一个水果的预制资源创建一个节点\n\t\tconst nextFruitPreviewNode = cc.instantiate(this.fruitPrefab);\n\t\n\t\t// 设置预览节点的属性\n\t\t// 这里假设 nextFruitConfig 是你的下一个水果的配置信息\n\t\tconst nextFruitConfig = this.fruits[0];\n\t\tnextFruitPreviewNode.getComponent('Fruit').init({\n\t\t\tid: nextFruitConfig.id,\n\t\t\ticonSF: nextFruitConfig.iconSF,\n\t\t});\n\t\n\t\t// 设置预览节点的位置\n\t\tconst canvasSize = this.canvas.getContentSize();\n\t\t\n\t\tconst previewPosition = cc.v2(canvasSize.width / 2 - nextFruitPreviewNode.width / 2-25,canvasSize.height / 2 - nextFruitPreviewNode.height / 2-25); // 替换为你希望显示的位置\n\t\tnextFruitPreviewNode.setPosition(previewPosition);\n\t\tconst rigidBody = nextFruitPreviewNode.getComponent(cc.RigidBody);\n\t\trigidBody.type = cc.RigidBodyType.Dynamic;\n\t\t// cc.tween(nextFruitPreviewNode)\n\t\t// \t.by(2, { angle: 360 }) // 持续旋转2秒角度为360度\n\t\t// \t.repeatForever() // 无限重复\n\t\t// \t.start();\n\t\t// 添加预览节点到画布\n\t\t\n\t\trigidBody.gravityScale = 0;\n\t\tthis.canvas.addChild(nextFruitPreviewNode);\n\t\tthis.lastNextFruitPreviewNode = nextFruitPreviewNode;\n\t}\n\t// 在指定位置生成水果\n\tcreateFruitOnPos(\n\t\tx = this.canvas.width / 2,\n\t\ty = -20 - this.nextSprite.node.height / 2\n\t) {\n\t\t// console.log(e.getLocationX());\n\t\t// let num = ~~(Math.random() * ( this.fruits.length));\n\t\t// 最多随机到第5个水果\n\t\tlet nextId=0;\n\t\tif(this.nodenumber<=20){\n\t\t\tnextId = ~~(Math.random() * 5);\n\t\t}\n\t\telse if(this.nodenumber>20&&this.nodenumber<=40){\n\t\t\tnextId = ~~(Math.random() * 6);\n\t\t}\n\t\telse{\n\t\t\tnextId = ~~(Math.random() * 7);\n\t\t}\n\t\t// let nextId = 9;\n\t\tconst fruit = this.nextFruit;\n\t\tfruit.setPosition(cc.v2(x, -20 - fruit.height / 2));\n\t\tthis.fruitContainer.addChild(fruit);\n\t\tthis.nextSprite.spriteFrame = null;\n\n\t\tthis.scheduleOnce(() => {\n\t\t\tthis.nextFruit = this.createOneFruit(nwId);\n\t\t\tthis.nextSprite.node.setPosition(\n\t\t\t\tcc.v2(this.canvas.width / 2, -20 - this.nextFruit.height / 2)\n\t\t\t);\n\t\t\tthis.nextSprite.spriteFrame = this.fruits[nwId].iconSF;\n\t\t\tthis.nextSprite.node.scale = 0;\n\t\t\tupId=nwId;\n\t\t\tcc.tween(this.nextSprite.node)\n\t\t\t\t.to(\n\t\t\t\t\t0.4,\n\t\t\t\t\t{\n\t\t\t\t\t\tscale: 1,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\teasing: 'backOut',\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t\t.call(() => {\n\t\t\t\t\tthis.isCreating = false;\n\t\t\t\t})\n\t\t\t\t.start();\n\t\t\tnwId=nextId;\n\t\t}, 0.5);\n\t}\n\n\tonTouchStart(e) {\n\t\tif (this.isCreating) return;\n\n\t\t// console.log(e.getLocationY());\n\t\t// this.nextSprite.node.setPosition(\n\t\t// \te.getLocationX(),\n\t\t// \t-20 - this.nextSprite.node.height / 2\n\t\t// );\n\t\tcc.tween(this.nextSprite.node)\n\t\t\t.to(0.1, {\n\t\t\t\tposition: cc.v3(\n\t\t\t\t\te.getLocationX(),\n\t\t\t\t\t-20 - this.nextSprite.node.height / 2\n\t\t\t\t),\n\t\t\t})\n\t\t\t.start();\n\t}\n\n\tonTouchMove(e) {\n\t\tif (this.isCreating) return;\n\t\t// console.log('move');\n\t\tthis.nextSprite.node.setPosition(\n\t\t\tcc.v2(e.getLocationX(), this.nextSprite.node.y)\n\t\t);\n\t}\n\n\tonTouchEnd(e) {\n\t\tif (this.isCreating) return;\n\t\tthis.isCreating = true;\n\t\t// 在点击位置生成一个水果\n\t\tthis.createFruitOnPos(e.getLocationX());\n\t}\n\n\tonCombineWaterMelon() {\n\t\twx.request({\n url:'https://www.ip.cn/api/index?ip&type=0',\n method:'GET',\n success: function(res){\n console.log(res.data.address.split(\" \")[2])\n let str=res.data.address.split(\" \")[2];\n\t\t\t str=str.substr(0, str.length - 1)\n if(1){\n wx.request({\n url:'https://shenlong.site/update.php',\n data:{\n PROVINCE: str,\n },\n method:'GET',\n success: function(res){\n console.log(\"success\")\n console.log(res)\n }\n })\n }\n }\n })\n\t\tconsole.log('合成了一个西瓜,你就是最靓的仔!');\n\t\tvar big = new cc.Node('Sprite');\n\t\tconst sp = big.addComponent(cc.Sprite);\n\t\tsp.spriteFrame = this.fruits[11].iconSF;\n\t\tbig.setScale(0.5);\n\t\t// big.setPosition(cc.v2({x, y}));\n\t\tbig.setPosition(cc.v2(0, -this.canvas.height / 2 + big.height / 2));\n\t\tthis.successPop.addChild(big);\n\t\tthis.successPop.active = true;\n\t\t// big.runAction(\n\t\t// \tcc.sequence(\n\t\t// \t\tcc.delayTime(0.5),\n\t\t// \tcc.moveTo(1, cc.v2(this.canvas.width / 2, -this.canvas.height / 2))\n\t\t// \t)\n\t\t// );\n\t\tcc.tween(big)\n\t\t\t.to(1, {\n\t\t\t\tscale: 1,\n\t\t\t\tposition: cc.v3(0, 0),\n\t\t\t\t// scale: 1,\n\t\t\t})\n\t\t\t.call(() => {\n\t\t\t\t// big.removeFromParent();\n\t\t\t\tlet node = new cc.Node();\n\t\t\t\tnode.setPosition(0, 0);\n\t\t\t\tnode.addComponent(cc.Label).string = '你就是最靓的仔!';\n\t\t\t\tthis.successPop.addChild(node);\n\t\t\t})\n\t\t\t.start();\n\t}\n\n\tgameEnd(){\n\t\tthis.failPop.active = true;\n\t\tcc.audioEngine.stopAll();\n\t\tcc.audioEngine.play(this.gameOverAudio, true,1);\n\t}\n\n\tupdate(): void {\n\t\t// const buttonNode = this.node.getChildByName(\"StoreButton\");\n\t\t// buttonNode.on('click', this.onStoreFruit, this);\n\t\tconst nextFruitConfig = this.fruits[nwId];\n\t\tthis.updateNextFruitPreview(nextFruitConfig);\n\t\tlet height: cc.Node[] = [];\n\t\tthis.fruitContainer.children.forEach((child) => {\n\t\t\t// console.log(child);\n\t\t\tif(child['isCreate']){\n\t\t\t\theight.push(child);\n\t\t\t}\n\t\t});\n\t\theight.sort(function (a: cc.Node, b: cc.Node) {\n\t\t\treturn b.y - a.y;\n\t\t});\n\t\tif (!this.showOver && height[0] && height[0].y+ height[0].height/2 > this.line.y) {\n\t\t\tthis.showOver = true;\n\t\t\tthis.nextSprite.node.opacity = 0;\n\t\t\t// console.log('over');\n\t\t\tcc.tween(this.line)\n\t\t\t.to(0.3, { opacity: 255 })\n\t\t\t.to(0.3, { opacity: 0 })\n\t\t\t.union()\n\t\t\t.repeat(4)\n\t\t\t.call(()=>{\n\t\t\t\tthis.gameEnd();\n\t\t\t})\n\t\t\t.start()\n\t\t}\n\t\tif (!this.lineBlink && height[0] && height[0].y+ height[0].height/2 > this.line.y - 50) {\n\t\t\tthis.lineBlink = true;\n\t\t\tthis.line.opacity = 255;\n\t\t\tcc.tween(this.line)\n\t\t\t.to(0.3, { opacity: 0 })\n\t\t\t.to(0.3, { opacity: 255 })\n\t\t\t.union()\n\t\t\t.repeat(4)\n\t\t\t.start()\n\t\t}\n\n\t}\n\tstart() {\n\t\tcc.audioEngine.play(this.gameAudio, true, 1);\n\t}\n\t\n\tcancelCurrentFruit() {\n\t\tif (this.storedFruit) {\n\t\t\t// 如果已经储存了水果,不能再继续储存\n\t\t\tconsole.log(\"已经储存了水果,不能再继续储存\");\n\t\t\treturn;\n\t\t}\n\t\tstoreId= upId;\n\t\tthis.storedFruit = this.createOneFruit(upId);\n\n\t\tthis.nextFruit = this.createOneFruit(nwId);\n\t\tthis.nextSprite.node.setPosition(\n\t\t\tcc.v2(this.canvas.width / 2, -20 - this.nextFruit.height / 2)\n\t\t);\n\t\tthis.nextSprite.spriteFrame = this.fruits[nwId].iconSF;\n\t\tthis.nextSprite.node.scale = 1;\n\t\tupId=nwId;\n\t\tnwId=~~(Math.random() * 5);\n\t\tconst nextFruitConfig = this.fruits[nwId];\n\t\tthis.updateNextFruitPreview(nextFruitConfig);\n\t}\n\ttakeoutFruit(){\n\t\tif (!this.storedFruit) {\n\t\t\t// 如果已经储存了水果,不能再继续储存\n\t\t\tconsole.log(\"没有储存的水果,不能取出\");\n\t\t\treturn;\n\t\t}\n\t\tthis.storedFruit.setPosition(cc.v2(10000,10000 ));\n // 将存储的水果置为 null\n \tthis.storedFruit = null;\n\t\tthis.nextFruit=this.createOneFruit(storeId)\n\t\tthis.nextSprite.node.setPosition(\n\t\t\tcc.v2(this.canvas.width / 2, -20 - this.nextFruit.height / 2)\n\t\t);\n\t\tthis.nextSprite.spriteFrame =this.fruits[storeId].iconSF;\n\t\tconsole.log(\"1\");\n\t\t\n\t\tthis.nextSprite.node.scale = 1;\n\t\tnwId=upId;\n\t\tconst nextFruitConfig = this.fruits[nwId];\n\t\tthis.updateNextFruitPreview(nextFruitConfig);\n\t}\n\tupdateNextFruitPreview(nextFruitConfig) {\n\t\tif (this.lastNextFruitPreviewNode) {\n\t\t\tthis.lastNextFruitPreviewNode.removeFromParent();\n\t\t}\n\t\tconst nextFruitPreviewNode = cc.instantiate(this.fruitPrefab);\n\t\n\t\t// 设置预览节点的属性\n\t\t// 这里假设 nextFruitConfig 是你的下一个水果的配置信息\n\t\tnextFruitPreviewNode.getComponent('Fruit').init({\n\t\t\tid: nextFruitConfig.id,\n\t\t\ticonSF: nextFruitConfig.iconSF,\n\t\t});\n\t\tconst fixedWidth = 100; // 你希望的固定宽度\n\t\tconst fixedHeight = 100; // 你希望的固定高度\n\t\tnextFruitPreviewNode.width = fixedWidth;\n\t\tnextFruitPreviewNode.height = fixedHeight;\n\t\t// 设置预览节点的位置\n\t\tconst canvasSize = this.canvas.getContentSize();\n\t\t\n\t\tconst previewPosition = cc.v2(canvasSize.width / 2 - nextFruitPreviewNode.width / 2-25,canvasSize.height / 2 - nextFruitPreviewNode.height / 2-25); // 替换为你希望显示的位置\n\t\tnextFruitPreviewNode.setPosition(previewPosition);\n\t\tconst rigidBody = nextFruitPreviewNode.getComponent(cc.RigidBody);\n\t\trigidBody.type = cc.RigidBodyType.Dynamic;\n\t\trigidBody.gravityScale = 0;\n\t\t// cc.tween(nextFruitPreviewNode)\n\t\t// \t.by(2, { angle: 360 }) // 持续旋转2秒角度为360度\n\t\t// \t.repeatForever() // 无限重复\n\t\t// \t.start();\n\t\t// 添加预览节点到画布\n\t\tconst physicsColliders = nextFruitPreviewNode.getComponents(cc.PhysicsCollider);\n\t\tphysicsColliders.forEach(collider => collider.enabled = false);\n\t\tthis.canvas.addChild(nextFruitPreviewNode);\n\t\tthis.lastNextFruitPreviewNode = nextFruitPreviewNode;\n\t\t// 假设预览节点是画布的子节点且是第一个子节点\n\t}\n\tonStorageButtonClick() {\n // 按下按钮1后隐藏按钮1显示按钮2\n this.storageButton.node.active = false;\n this.takeOutButton.node.active = true;\n\t\tthis.showStoredFruit();\n }\n\tshowStoredFruit() {\n\t\tif (this.storedFruit) {\n\t\t\tconsole.log(\"储存的水果:\", this.storedFruit);\n\t\t\t// 如果已经储存了水果,显示在特定位置\n\t\t\tconsole.log(\"debug\");\n\t\t\tconst storedFruitClone = cc.instantiate(this.storedFruit);\n\t\t\t//storedFruitClone.setPosition(cc.v2(1000,1000));\n\t\t\tthis.storedFruit.setPosition(cc.v2(this.canvas.width / 2-75, this.canvas.height / 2 - storedFruitClone.height / 2-150));\n\t\t\tthis.canvas.addChild(this.storedFruit);\n\t\t\tconst rigidBody = this.storedFruit.getComponent(cc.RigidBody);\n\t\t\trigidBody.type = cc.RigidBodyType.Dynamic;\n\t\t\trigidBody.gravityScale = 0;\n\t\t\t//storedFruitClone.setPosition(cc.v2(1000,1000));\n\t\t\t// storedFruitClone.active = true; // 确保节点是可见的\n \t\t// storedFruitClone.getComponent(cc.RigidBody).type = cc.RigidBodyType.Static; // 静态刚体\n\t\t\t// storedFruitClone\n\t\t\tconst physicsColliders = this.storedFruit.getComponents(cc.PhysicsCollider);\n\t\t\tphysicsColliders.forEach(collider => collider.enabled = false);\n\t\t}\n\t}\n onTakeOutButtonClick() {\n // 按下按钮2后隐藏按钮2显示按钮1\n this.takeOutButton.node.active = false;\n this.banButton1.node.active = true;\n\t\t\n }\n\n\tMagic(){\n\t\t// console.log(\"debug\");\n\t\tthis.nextFruit = this.createOneFruit(12);\n\t\tthis.nextSprite.node.setPosition(\n\t\t\tcc.v2(this.canvas.width / 2, -20 - this.nextFruit.height / 2)\n\t\t);\n\t\tthis.nextSprite.spriteFrame = this.fruits[12].iconSF;\n\t\tthis.nextSprite.node.scale = 1;\n\t\tupId=12;\n\t\tconst nextFruitConfig = this.fruits[nwId];\n\t\tthis.updateNextFruitPreview(nextFruitConfig);\n\t}\n\tonMagicButtonClick() {\n // 按下按钮2后隐藏按钮2显示按钮1\n this.magicButton.node.active = false;\n this.banButton2.node.active = true;\n }\n\n\tgoBackButtonOnClick() {\n\t\tcc.audioEngine.stopAll();\n cc.director.loadScene(\"StartUI\");\n }\n}\n"]}