模板化后,优化了个BUG,调用先后顺序

This commit is contained in:
YZ\249929363 2024-06-18 10:20:23 +08:00
parent 5460b0de18
commit 5dd7d5f4c2
60 changed files with 5424 additions and 4807 deletions

File diff suppressed because it is too large Load Diff

View File

@ -236,7 +236,7 @@ export default class GameManager extends cc.Component {
this.time_Array.push((clickTime - this.timeStart)) this.time_Array.push((clickTime - this.timeStart))
this.timeStart = cc.fx.GameTool.getTime(); this.timeStart = cc.fx.GameTool.getTime();
if(data == this.clickNow){ if(data == this.clickNow){
cc.fx.AudioManager.Instance.playAudioButton(); cc.fx.AudioManager._instance.playAudioButton();
if(this.clickNow > 0){ if(this.clickNow > 0){
this.createLine(cc.v2(this.ball_Array[this.clickNow-1].x,this.ball_Array[this.clickNow-1].y), this.createLine(cc.v2(this.ball_Array[this.clickNow-1].x,this.ball_Array[this.clickNow-1].y),
cc.v2(this.ball_Array[this.clickNow].x,this.ball_Array[this.clickNow].y), cc.v2(this.ball_Array[this.clickNow].x,this.ball_Array[this.clickNow].y),
@ -259,7 +259,7 @@ export default class GameManager extends cc.Component {
else if(this.level >= 4) color = "yrb"; else if(this.level >= 4) color = "yrb";
let win = this.node.getChildByName("Win"); let win = this.node.getChildByName("Win");
win.active = true; win.setScale(0); win.active = true; win.setScale(0);
cc.fx.AudioManager.Instance.playWin(); cc.fx.AudioManager._instance.playWin();
this.round += 1; this.round += 1;
let sunArray = []; let sunArray = [];
if(this.moveArray.length > 0){ if(this.moveArray.length > 0){
@ -333,7 +333,7 @@ export default class GameManager extends cc.Component {
} }
//执行失败 //执行失败
setLoss(){ setLoss(){
cc.fx.AudioManager.Instance.playWarning(); cc.fx.AudioManager._instance.playWarning();
this.begin = false; this.begin = false;
this.overTime = cc.fx.GameTool.getTime(); this.overTime = cc.fx.GameTool.getTime();
if(this.startTime > 0 && this.overTime > 0){ if(this.startTime > 0 && this.overTime > 0){

View File

@ -203,7 +203,7 @@ export default class NewClass extends cc.Component {
clickSun(data){ clickSun(data){
if(this.begin == true){ if(this.begin == true){
if(data == this.clickNow){ if(data == this.clickNow){
cc.fx.AudioManager.Instance.playAudioButton(); cc.fx.AudioManager._instance.playAudioButton();
if(this.clickNow > 0){ if(this.clickNow > 0){
this.createLine(cc.v2(this.ball_Array[this.clickNow-1].x,this.ball_Array[this.clickNow-1].y), this.createLine(cc.v2(this.ball_Array[this.clickNow-1].x,this.ball_Array[this.clickNow-1].y),
cc.v2(this.ball_Array[this.clickNow].x,this.ball_Array[this.clickNow].y), cc.v2(this.ball_Array[this.clickNow].x,this.ball_Array[this.clickNow].y),
@ -227,7 +227,7 @@ export default class NewClass extends cc.Component {
//失败事件 //失败事件
loseLevel(){ loseLevel(){
this.begin = false; this.begin = false;
cc.fx.AudioManager.Instance.playWarning(); cc.fx.AudioManager._instance.playWarning();
this.destroyLine(); this.destroyLine();
let ball = this.ball_Array[0]; let ball = this.ball_Array[0];
for(let k=1; k< this.ball_Array.length; k++){ for(let k=1; k< this.ball_Array.length; k++){

View File

@ -5,9 +5,8 @@ const {ccclass, property, requireComponent} = cc._decorator;
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
start () { start () {
window.initMgr(); window.initMgr();
cc.fx.GameTool.Authentication();
cc.fx.GameConfig.init(); cc.fx.GameConfig.init();
cc.fx.AudioManager.Instance.init(); // cc.fx.AudioManager._instance.init();
} }
//开始游戏,跳转至引导页面 //开始游戏,跳转至引导页面

View File

@ -58,10 +58,12 @@ export class GameConfig {
cc.resources.load('Json/GM_INFO', (err: any, res: cc.JsonAsset) => { cc.resources.load('Json/GM_INFO', (err: any, res: cc.JsonAsset) => {
if (err) { if (err) {
this.GM_INFO_init(); this.GM_INFO_init();
this.Authentication();
return; return;
} }
let jsonData: object = res.json!; let jsonData: object = res.json!;
this.GM_INFO = jsonData["data"]; this.GM_INFO = jsonData["data"];
this.Authentication();
}) })
cc.resources.load('Json/CLICK_DATA', (err: any, res: cc.JsonAsset) => { cc.resources.load('Json/CLICK_DATA', (err: any, res: cc.JsonAsset) => {
if (err) { if (err) {
@ -324,5 +326,8 @@ export class GameConfig {
] ]
} }
static Authentication(){
cc.fx.GameTool.Authentication();
}
} }

View File

@ -1,6 +1,7 @@
import { GameConfig } from "../Config/GameConfig"; import { GameConfig } from "../Config/GameConfig";
import HttpUtil from "../Crypto/HttpUtil"; import HttpUtil from "../Crypto/HttpUtil";
import { AudioManager } from "../Music/AudioManager"; import AudioManager from "../Music/AudioManager";
import { Notifications } from "../Notification/Notification"; import { Notifications } from "../Notification/Notification";
import { StorageMessage } from "../Storage/Storage"; import { StorageMessage } from "../Storage/Storage";
import { GameTool } from "../Tool/GameTool"; import { GameTool } from "../Tool/GameTool";

View File

@ -1,10 +1,7 @@
const {ccclass, property} = cc._decorator;
@ccclass
export default class AudioManager extends cc.Component {
const { ccclass, property } = cc._decorator;
@ccclass('AudioManager')
export class AudioManager {
private static _instance : AudioManager = null;
//背景音乐 //背景音乐
@property(cc.AudioClip) @property(cc.AudioClip)
audioGameBgm0: cc.AudioClip = null; audioGameBgm0: cc.AudioClip = null;
@ -18,6 +15,8 @@ export class AudioManager {
@property(cc.AudioClip) @property(cc.AudioClip)
audioWin: cc.AudioClip = null; audioWin: cc.AudioClip = null;
//落方块上 //落方块上
@property(cc.AudioClip)
luodui: cc.AudioClip = null;
mAudioMap: {}; mAudioMap: {};
bgMusicVolume: number; bgMusicVolume: number;
@ -28,13 +27,12 @@ export class AudioManager {
reward: boolean; reward: boolean;
finish: boolean; finish: boolean;
rewardCount: number; rewardCount: number;
mMusicKey: any;
static playWarning() { mMusicKey: any;
throw new Error('Method not implemented.'); static _instance: any;
}
ctor () { ctor () {
this.mAudioMap = {}; this.mAudioMap = {};
/** /**
* *
@ -75,21 +73,21 @@ export class AudioManager {
// cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Music_Volume, this.mMusicSwitch); // cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Music_Volume, this.mMusicSwitch);
// cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Effect_Volume, this.mEffectSwitch); // cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Effect_Volume, this.mEffectSwitch);
} }
onLoad() {
static get Instance() if (AudioManager._instance == null) {
{ AudioManager._instance = this;
if (this._instance == null) cc.game.addPersistRootNode(this.node);
{ }
this._instance = new AudioManager(); else {
this.node.destroy();
return;
} }
return this._instance;
}
public init() {
this.reward = false; this.reward = false;
this.finish = false; this.finish = false;
this.rewardCount = 0; this.rewardCount = 0;
this.ctor(); this.ctor();
this.preload(); this.preload();
} }
preload () { preload () {
@ -99,6 +97,15 @@ export class AudioManager {
this.audioGameBgm0, this.audioGameBgm0,
]; ];
musics.forEach(function(path) { musics.forEach(function(path) {
// var musicPath = wxDownloader.REMOTE_SERVER_ROOT + path;
// if (musicPath != wxDownloader.REMOTE_SERVER_ROOT && musicPath.endsWith('.mp3')) {
// cc.loader.load(musicPath, function(err, remoteUrl) {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// });
// }
}) })
} }
@ -141,10 +148,30 @@ export class AudioManager {
} }
onHide () { onHide () {
cc.audioEngine.pauseAll(); cc.audioEngine.pauseAll();
// if (CC_JSB) {
// } else {
// for (var key in this.mAudioMap) {
// if (key === this.mMusicKey) {
// this.mAudioMap[key].pause();
// } else {
// this.mAudioMap[key].stop();
// }
// }
// }
} }
onShow () { onShow () {
cc.audioEngine.resumeAll(); cc.audioEngine.resumeAll();
// if (CC_JSB) {
// } else {
// if (!this.mMusicSwitch) return;
// var context = this.mAudioMap[this.mMusicKey];
// if (context) {
// context.play();
// }
// }
} }
playMusic (key, callback, loop) { playMusic (key, callback, loop) {
loop = typeof loop == 'undefined' || loop ? true : false; loop = typeof loop == 'undefined' || loop ? true : false;
@ -176,40 +203,50 @@ export class AudioManager {
} }
} }
// 炸弹、火箭爆炸音效 // 炸弹、火箭爆炸音效
playWin () { playJump () {
return this.play(this.audioWin, false,null,this.mEffectSwitch);
} }
//激光音效 //激光音效
playWarning() playLuo()
{ {
return this.play(this.audioWarning, false,null,this.mEffectSwitch); return this.play(this.luodui, false,null,this.mEffectSwitch);
}
//技能音效
playGround()
{
} }
/* //技能音效
* playPz()
*
*/
playGameStart()
{ {
} }
/* /*
* *
*/ *
playGameOver() */
{ playGameStart()
{
}
}
/*
*
*/
playGameOver()
{
}
/* /*
* *
*/ */
playGameResultFailed() playGameResultFailed()
{ {
} }
/* /*
* *
*/ */
playGameResultSuccess() playGameResultSuccess()
{ {
@ -217,13 +254,44 @@ export class AudioManager {
/** /**
* *
*/ */
playWarning()
{
return this.play(this.audioWarning, false,null,this.mEffectSwitch);
}
/*
*
*/
playBrick()
{
// return this.play(this.brickSound,false);
}
//方块破碎的声音
brickBoom(){
}
/** /**
* *
*/ */
playAudioButton () { playAudioButton () {
return this.play(this.audioButtonClick, false,null,this.mEffectSwitch); return this.play(this.audioButtonClick, false,null,this.mEffectSwitch);
} }
playWin()
{
return this.play(this.audioWin, false,null,this.mEffectSwitch);
}
playRandomMatch()
{
this.playMusic(this.audioGameBgm0,{},true);
}
playMatchFoundSound()
{
this.stopMusic();
// return this.play(this.matchFoundSound, false);
}
}; };
// export { AudioManager }; // export { AudioManager };

Binary file not shown.

View File

@ -0,0 +1 @@
{"paths":{},"types":[],"uuids":["a2MjXRFdtLlYQ5ouAFv/+R","14K23Xm1ROrrsGMBKG1Ql4","1fwAIEeM1Nn7i705Pdg5L5","23CIt+PSBBMJopNtpbffXh","29FYIk+N1GYaeWH/q1NxQO","29G9ngwKpNW56EfZdKv0SX","2dL3kvpAxJu6GJ7RdqJG5J","37ND3actNCqZoLzr1NBiTF","48Foz8zQZDfLObHQegvteG","4bnFp+xkVIpJrKXfOBzk71","4er1GLNexCYpKNTUl8Pygw","59MsqY7oZEy71JeUeyyS/Z","61cyPdEfRN047sDK9rO0W5","63m/tYswFOS7sCMuQGQ4kn","651MDCXIFPuZKQK1+nWOzk","71VhFCTINJM6/Ky3oX9nBT","77SCm7Ej5ItpMOaz4CSRUG","8eZObX1ehJkKU3GR/hPgya","93XHrCUNdAwJfBzyLGAOJ5","9cCAYtTPFLbqi6SjiBzH59","adrVhydQhMD7nhiXljhNId","b4P/PCArtIdIH38t6mlw8Y","d3OhOXdm5P4JNse7X8GMGe","d608qFRoFHwbXd0Dap056i","d8HsitJHxOYqo801xBk8ev","e7CzEDg/FMZpCTGJfBpdSu","e8Ueib+qJEhL6mXAHdnwbi","e97GVMl6JHh5Ml5qEDdSGa","eezChet5VG27PW9q3qdOpv","f0BIwQ8D5Ml7nTNQbh1YlS","f7ZJEQGfdJraVAIIAn8NFW","02delMVqdBD70a/HSD99FK","08/X0iIrpGHbKJqlQlA512","0cF7COgzlFRKaDnaVJrOOt","13EQ5PNYdOa4gRDKFsrIFJ","167IfY0HdDyZdtlLDeaDkg","27FeLB8OpGcaDrf9NiEDKz","28Gg0A8X1JHpYnbH9vZIzV","2aJVC/rshLnpvG+lkallqC","2cyTcZvcZP7rjmchhWREEu","3aIyOI2NxPeaHqgvY4W3zi","3fgys9roZKo5OdfZn0T4Fo","432ND8vGNFM4/Pxt+hVLkb","4cuYcoe7tPiIdp6gbSnrvF","4c7tzGCVNKE5yvOmzu4CXt","57X2D8NaxKHZ7D/uwxGBCK","59Sn0ZhhJHf7HX55ZqGeqE","5aBm0rBa9Gxr8lWEiz8nAb","5bsctimnBNw4onIGVsCfsU","5cO7kybDxGj4ipyMYdRYZB","5eUVg3ZQ5FhKCJ4qAl42w5","5f5dyqtRNNxaFmVzYns6FZ","61c+AvZ7lJH4DcNNAnJ//N","6cyjAC9cJDE6x1PK28Td4v","6eoolBkxxPvof0z1pzKU+w","70mY8jP3NKVonyvxI9/f6z","818w6dGPRH+rXb8KDTjDgq","8cv+mgkU9OTIB7sHOwnyZ8","8eo+QfsThNk7a0r8Ilro8q","95AC/gHlpJ64LEYVdSIIPB","95viAf/CZABIBJ7iCjDOU4","99vgruzGRMmJOIRLdPaQYs","9bvaMerUlDyary99mJa6xp","9cBsd3MbFMC56GS/sJnS6r","9e4xLWF9hCBq5CM6vIyvlp","a5+/rf9ZlPEIXTSsUOhw7T","adR/bBScVC/bM24V3TdrfL","adULT7sm1JR6vTV/oW1JIb","bcITWltAtAD4sUjinM7HdJ","c6VxSCRHRB+qS91aK866px","ceNMgtpZhCsKd8anXNKd7b","d1MjdySrJFJ70gUB/k+5cj","d7kiZgBYNPyIwqRjgGX7l0","ddnWn8vDxCOZaOnG9OVNnP","deq5vhWmZCFJ97k3T54cZ0","e82yVDavlBc6NpbK/tA6Dr","ecpdLyjvZBwrvm+cedCcQy","f1O5RoDlhGrI6+/w3NObrX"],"scenes":{"db://assets/Scene/GameScene.fire":10,"db://assets/Scene/GuideScene.fire":16,"db://assets/Scene/LoadScene.fire":19,"db://assets/Scene/OverScene.fire":9,"db://assets/Scene/RankScene.fire":6},"redirect":[31,0,32,1,33,1,35,1,36,1,38,1,39,1,42,1,47,1,48,1,52,1,53,1,55,1,57,1,58,1,59,1,60,1,61,1,63,1,64,1,65,1,67,1,68,1,69,1,70,1,72,1,74,1,76,0,77,1],"deps":["internal","resources"],"packs":{"01587c953":[3,4,17,19,0,25,75,27,29],"03e4478d5":[2,5,8,11,12,13,14,15,18,20,21,23,24,26,28,30],"05b7e0d6d":[1,9,45],"05f3c1ca4":[7,16,0,71,22],"0cd1ec7f1":[54,73],"0d7de01d8":[34,37,4,7,40,41,43,44,10,50,56,0,22,27,29],"0e0598680":[1,6,46,49,51,62,66]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["01587c953","f064d","03e4478d5","583f3","05b7e0d6d","b9828","05f3c1ca4","1b0a3","0cd1ec7f1","718bb","0d7de01d8","334d7","0e0598680","68263"],"native":[2,"42c23",3,"93a46",5,"6e8cb",8,"c8c0d",11,"d38b4",12,"6d707",13,"0828f",14,"618c7",15,"c06a9",17,"3ecad",18,"c0bdf",20,"2ac7c",21,"83fcc",23,"d55c2",24,"cdbc9",25,"58a8e",26,"90cf4",28,"40762",30,"27e3b"]}}

View File

@ -1 +0,0 @@
{"paths":{},"types":[],"uuids":["a2MjXRFdtLlYQ5ouAFv/+R","14K23Xm1ROrrsGMBKG1Ql4","1fwAIEeM1Nn7i705Pdg5L5","29FYIk+N1GYaeWH/q1NxQO","29G9ngwKpNW56EfZdKv0SX","2dL3kvpAxJu6GJ7RdqJG5J","37ND3actNCqZoLzr1NBiTF","48Foz8zQZDfLObHQegvteG","4bnFp+xkVIpJrKXfOBzk71","4er1GLNexCYpKNTUl8Pygw","59MsqY7oZEy71JeUeyyS/Z","61cyPdEfRN047sDK9rO0W5","63m/tYswFOS7sCMuQGQ4kn","651MDCXIFPuZKQK1+nWOzk","71VhFCTINJM6/Ky3oX9nBT","77SCm7Ej5ItpMOaz4CSRUG","93XHrCUNdAwJfBzyLGAOJ5","9cCAYtTPFLbqi6SjiBzH59","adrVhydQhMD7nhiXljhNId","b4P/PCArtIdIH38t6mlw8Y","d3OhOXdm5P4JNse7X8GMGe","d608qFRoFHwbXd0Dap056i","d8HsitJHxOYqo801xBk8ev","e8Ueib+qJEhL6mXAHdnwbi","e97GVMl6JHh5Ml5qEDdSGa","eezChet5VG27PW9q3qdOpv","f0BIwQ8D5Ml7nTNQbh1YlS","f7ZJEQGfdJraVAIIAn8NFW","02delMVqdBD70a/HSD99FK","08/X0iIrpGHbKJqlQlA512","0cF7COgzlFRKaDnaVJrOOt","13EQ5PNYdOa4gRDKFsrIFJ","167IfY0HdDyZdtlLDeaDkg","27FeLB8OpGcaDrf9NiEDKz","28Gg0A8X1JHpYnbH9vZIzV","2aJVC/rshLnpvG+lkallqC","2cyTcZvcZP7rjmchhWREEu","3aIyOI2NxPeaHqgvY4W3zi","3fgys9roZKo5OdfZn0T4Fo","432ND8vGNFM4/Pxt+hVLkb","4cuYcoe7tPiIdp6gbSnrvF","4c7tzGCVNKE5yvOmzu4CXt","57X2D8NaxKHZ7D/uwxGBCK","59Sn0ZhhJHf7HX55ZqGeqE","5aBm0rBa9Gxr8lWEiz8nAb","5bsctimnBNw4onIGVsCfsU","5cO7kybDxGj4ipyMYdRYZB","5eUVg3ZQ5FhKCJ4qAl42w5","5f5dyqtRNNxaFmVzYns6FZ","61c+AvZ7lJH4DcNNAnJ//N","6cyjAC9cJDE6x1PK28Td4v","6eoolBkxxPvof0z1pzKU+w","70mY8jP3NKVonyvxI9/f6z","818w6dGPRH+rXb8KDTjDgq","8cv+mgkU9OTIB7sHOwnyZ8","8eo+QfsThNk7a0r8Ilro8q","95AC/gHlpJ64LEYVdSIIPB","95viAf/CZABIBJ7iCjDOU4","99vgruzGRMmJOIRLdPaQYs","9bvaMerUlDyary99mJa6xp","9cBsd3MbFMC56GS/sJnS6r","9e4xLWF9hCBq5CM6vIyvlp","a5+/rf9ZlPEIXTSsUOhw7T","adR/bBScVC/bM24V3TdrfL","adULT7sm1JR6vTV/oW1JIb","bcITWltAtAD4sUjinM7HdJ","c6VxSCRHRB+qS91aK866px","ceNMgtpZhCsKd8anXNKd7b","d1MjdySrJFJ70gUB/k+5cj","d7kiZgBYNPyIwqRjgGX7l0","ddnWn8vDxCOZaOnG9OVNnP","deq5vhWmZCFJ97k3T54cZ0","e82yVDavlBc6NpbK/tA6Dr","ecpdLyjvZBwrvm+cedCcQy","f1O5RoDlhGrI6+/w3NObrX"],"scenes":{"db://assets/Scene/GameScene.fire":9,"db://assets/Scene/GuideScene.fire":15,"db://assets/Scene/LoadScene.fire":17,"db://assets/Scene/OverScene.fire":8,"db://assets/Scene/RankScene.fire":5},"redirect":[28,0,29,1,30,1,32,1,33,1,35,1,36,1,39,1,44,1,45,1,49,1,50,1,52,1,54,1,55,1,56,1,57,1,58,1,60,1,61,1,62,1,64,1,65,1,66,1,67,1,69,1,71,1,73,0,74,1],"deps":["internal","resources"],"packs":{"03e4478d5":[2,4,7,10,11,12,13,14,16,18,19,21,22,23,25,27],"05b7e0d6d":[1,8,42],"05f3c1ca4":[6,15,0,68,20],"08a310280":[3,17,0,72,24,26],"0cd1ec7f1":[51,70],"0d7de01d8":[31,34,3,6,37,38,40,41,9,47,53,0,20,24,26],"0e0598680":[1,5,43,46,48,59,63]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["03e4478d5","583f3","05b7e0d6d","b9828","05f3c1ca4","1b0a3","08a310280","529f3","0cd1ec7f1","718bb","0d7de01d8","334d7","0e0598680","68263"],"native":[2,"42c23",4,"6e8cb",7,"c8c0d",10,"d38b4",11,"6d707",12,"0828f",13,"618c7",14,"c06a9",16,"c0bdf",18,"2ac7c",19,"83fcc",21,"d55c2",22,"cdbc9",23,"90cf4",25,"40762",27,"27e3b"]}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -137,9 +137,9 @@
</div> </div>
<canvas id="GameCanvas" oncontextmenu="event.preventDefault()" tabindex="0"></canvas> <canvas id="GameCanvas" oncontextmenu="event.preventDefault()" tabindex="0"></canvas>
<script src="src/settings.eb3ab.js" charset="utf-8"></script> <script src="src/settings.52d49.js" charset="utf-8"></script>
<script src="main.a9f4c.js" charset="utf-8"></script> <script src="main.23980.js" charset="utf-8"></script>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>

View File

@ -117,7 +117,7 @@ window.boot = function () {
if (window.jsb) { if (window.jsb) {
var isRuntime = (typeof loadRuntime === 'function'); var isRuntime = (typeof loadRuntime === 'function');
if (isRuntime) { if (isRuntime) {
require('src/settings.eb3ab.js'); require('src/settings.52d49.js');
require('src/cocos2d-runtime.js'); require('src/cocos2d-runtime.js');
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) { if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
require('src/physics.js'); require('src/physics.js');
@ -125,7 +125,7 @@ if (window.jsb) {
require('jsb-adapter/engine/index.js'); require('jsb-adapter/engine/index.js');
} }
else { else {
require('src/settings.eb3ab.js'); require('src/settings.52d49.js');
require('src/cocos2d-jsb.js'); require('src/cocos2d-jsb.js');
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) { if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
require('src/physics.js'); require('src/physics.js');

View File

@ -1 +1 @@
window._CCSettings={platform:"web-mobile",groupList:["default"],collisionMatrix:[[true]],hasResourcesBundle:true,hasStartSceneBundle:false,remoteBundles:[],subpackages:[],launchScene:"db://assets/Scene/LoadScene.fire",orientation:"portrait",jsList:[],bundleVers:{internal:"52d36",resources:"c9e69",main:"bc51b"}}; window._CCSettings={platform:"web-mobile",groupList:["default"],collisionMatrix:[[true]],hasResourcesBundle:true,hasStartSceneBundle:false,remoteBundles:[],subpackages:[],launchScene:"db://assets/Scene/LoadScene.fire",orientation:"portrait",jsList:[],bundleVers:{internal:"52d36",resources:"c9e69",main:"3383c"}};

View File

@ -234,7 +234,7 @@ var NewClass = /** @class */ (function (_super) {
var _this = this; var _this = this;
if (this.begin == true) { if (this.begin == true) {
if (data == this.clickNow) { if (data == this.clickNow) {
cc.fx.AudioManager.Instance.playAudioButton(); cc.fx.AudioManager._instance.playAudioButton();
if (this.clickNow > 0) { if (this.clickNow > 0) {
this.createLine(cc.v2(this.ball_Array[this.clickNow - 1].x, this.ball_Array[this.clickNow - 1].y), cc.v2(this.ball_Array[this.clickNow].x, this.ball_Array[this.clickNow].y), 0.2); this.createLine(cc.v2(this.ball_Array[this.clickNow - 1].x, this.ball_Array[this.clickNow - 1].y), cc.v2(this.ball_Array[this.clickNow].x, this.ball_Array[this.clickNow].y), 0.2);
} }
@ -257,7 +257,7 @@ var NewClass = /** @class */ (function (_super) {
NewClass.prototype.loseLevel = function () { NewClass.prototype.loseLevel = function () {
var _this = this; var _this = this;
this.begin = false; this.begin = false;
cc.fx.AudioManager.Instance.playWarning(); cc.fx.AudioManager._instance.playWarning();
this.destroyLine(); this.destroyLine();
var ball = this.ball_Array[0]; var ball = this.ball_Array[0];
var _loop_2 = function (k) { var _loop_2 = function (k) {

File diff suppressed because one or more lines are too long

View File

@ -31,9 +31,8 @@ var NewClass = /** @class */ (function (_super) {
} }
NewClass.prototype.start = function () { NewClass.prototype.start = function () {
window.initMgr(); window.initMgr();
cc.fx.GameTool.Authentication();
cc.fx.GameConfig.init(); cc.fx.GameConfig.init();
cc.fx.AudioManager.Instance.init(); // cc.fx.AudioManager._instance.init();
}; };
//开始游戏,跳转至引导页面 //开始游戏,跳转至引导页面
NewClass.prototype.startGame = function () { NewClass.prototype.startGame = function () {

View File

@ -1 +1 @@
{"version":3,"sources":["assets\\Script\\Load.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACM,IAAA,KAAwC,EAAE,CAAC,UAAU,EAApD,OAAO,aAAA,EAAE,QAAQ,cAAA,EAAE,gBAAgB,sBAAiB,CAAC;AAG5D;IAAsC,4BAAY;IAAlD;;IAwBA,CAAC;IAvBG,wBAAK,GAAL;QACI,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC;QAChC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACxB,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACvC,CAAC;IAED,cAAc;IACd,4BAAS,GAAT;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACxC,CAAC;IACD,gBAAgB;IAChB,2BAAQ,GAAR,UAAS,KAAK,EAAC,IAAI;QACf,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QACjD,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IACD,OAAO;IACP,2BAAQ,GAAR;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAES,yBAAM,GAAhB,UAAiB,EAAU;IAC3B,CAAC;IAvBgB,QAAQ;QAD5B,OAAO;OACa,QAAQ,CAwB5B;IAAD,eAAC;CAxBD,AAwBC,CAxBqC,EAAE,CAAC,SAAS,GAwBjD;kBAxBoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["\r\nconst {ccclass, property, requireComponent} = cc._decorator;\r\n\r\n@ccclass\r\nexport default class NewClass extends cc.Component {\r\n start () {\r\n window.initMgr();\r\n cc.fx.GameTool.Authentication();\r\n cc.fx.GameConfig.init();\r\n cc.fx.AudioManager.Instance.init();\r\n }\r\n\r\n //开始游戏,跳转至引导页面\r\n startGame(){\r\n cc.director.loadScene(\"GuideScene\");\r\n }\r\n //备用,用来测试跳转 指定关卡\r\n clickBtn(event,data){\r\n cc.fx.GameConfig.GM_INFO.custom = parseInt(data);\r\n cc.director.loadScene(\"GameScene\");\r\n } \r\n //打开排行榜\r\n openRank(){\r\n cc.director.loadScene(\"RankScene\");\r\n }\r\n \r\n protected update(dt: number): void {\r\n }\r\n}\r\n"]} {"version":3,"sources":["assets\\Script\\Load.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACM,IAAA,KAAwC,EAAE,CAAC,UAAU,EAApD,OAAO,aAAA,EAAE,QAAQ,cAAA,EAAE,gBAAgB,sBAAiB,CAAC;AAG5D;IAAsC,4BAAY;IAAlD;;IAuBA,CAAC;IAtBG,wBAAK,GAAL;QACI,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACxB,uCAAuC;IAC3C,CAAC;IAED,cAAc;IACd,4BAAS,GAAT;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACxC,CAAC;IACD,gBAAgB;IAChB,2BAAQ,GAAR,UAAS,KAAK,EAAC,IAAI;QACf,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QACjD,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IACD,OAAO;IACP,2BAAQ,GAAR;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAES,yBAAM,GAAhB,UAAiB,EAAU;IAC3B,CAAC;IAtBgB,QAAQ;QAD5B,OAAO;OACa,QAAQ,CAuB5B;IAAD,eAAC;CAvBD,AAuBC,CAvBqC,EAAE,CAAC,SAAS,GAuBjD;kBAvBoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["\r\nconst {ccclass, property, requireComponent} = cc._decorator;\r\n\r\n@ccclass\r\nexport default class NewClass extends cc.Component {\r\n start () {\r\n window.initMgr();\r\n cc.fx.GameConfig.init();\r\n // cc.fx.AudioManager._instance.init();\r\n }\r\n\r\n //开始游戏,跳转至引导页面\r\n startGame(){\r\n cc.director.loadScene(\"GuideScene\");\r\n }\r\n //备用,用来测试跳转 指定关卡\r\n clickBtn(event,data){\r\n cc.fx.GameConfig.GM_INFO.custom = parseInt(data);\r\n cc.director.loadScene(\"GameScene\");\r\n } \r\n //打开排行榜\r\n openRank(){\r\n cc.director.loadScene(\"RankScene\");\r\n }\r\n \r\n protected update(dt: number): void {\r\n }\r\n}\r\n"]}

View File

@ -3,6 +3,19 @@ cc._RF.push(module, '58403/n16JCa5sZhNMjZzGo', 'AudioManager');
// Script/module/Music/AudioManager.ts // Script/module/Music/AudioManager.ts
"use strict"; "use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@ -10,23 +23,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
return c > 3 && r && Object.defineProperty(target, key, r), r; return c > 3 && r && Object.defineProperty(target, key, r), r;
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.AudioManager = void 0;
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property; var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var AudioManager = /** @class */ (function () { var AudioManager = /** @class */ (function (_super) {
__extends(AudioManager, _super);
function AudioManager() { function AudioManager() {
var _this = _super !== null && _super.apply(this, arguments) || this;
//背景音乐 //背景音乐
this.audioGameBgm0 = null; _this.audioGameBgm0 = null;
//跳跃 //跳跃
this.audioButtonClick = null; _this.audioButtonClick = null;
//落地上 //落地上
this.audioWarning = null; _this.audioWarning = null;
//碰撞 //碰撞
this.audioWin = null; _this.audioWin = null;
//落方块上
_this.luodui = null;
return _this;
} }
AudioManager_1 = AudioManager; AudioManager_1 = AudioManager;
AudioManager.playWarning = function () {
throw new Error('Method not implemented.');
};
AudioManager.prototype.ctor = function () { AudioManager.prototype.ctor = function () {
this.mAudioMap = {}; this.mAudioMap = {};
/** /**
@ -67,17 +81,15 @@ var AudioManager = /** @class */ (function () {
// cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Music_Volume, this.mMusicSwitch); // cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Music_Volume, this.mMusicSwitch);
// cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Effect_Volume, this.mEffectSwitch); // cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Effect_Volume, this.mEffectSwitch);
}; };
Object.defineProperty(AudioManager, "Instance", { AudioManager.prototype.onLoad = function () {
get: function () { if (AudioManager_1._instance == null) {
if (this._instance == null) { AudioManager_1._instance = this;
this._instance = new AudioManager_1(); cc.game.addPersistRootNode(this.node);
} }
return this._instance; else {
}, this.node.destroy();
enumerable: false, return;
configurable: true }
});
AudioManager.prototype.init = function () {
this.reward = false; this.reward = false;
this.finish = false; this.finish = false;
this.rewardCount = 0; this.rewardCount = 0;
@ -92,6 +104,15 @@ var AudioManager = /** @class */ (function () {
this.audioGameBgm0, this.audioGameBgm0,
]; ];
musics.forEach(function (path) { musics.forEach(function (path) {
// var musicPath = wxDownloader.REMOTE_SERVER_ROOT + path;
// if (musicPath != wxDownloader.REMOTE_SERVER_ROOT && musicPath.endsWith('.mp3')) {
// cc.loader.load(musicPath, function(err, remoteUrl) {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// });
// }
}); });
}; };
AudioManager.prototype.getAudioMusicSwitch = function () { AudioManager.prototype.getAudioMusicSwitch = function () {
@ -124,9 +145,27 @@ var AudioManager = /** @class */ (function () {
}; };
AudioManager.prototype.onHide = function () { AudioManager.prototype.onHide = function () {
cc.audioEngine.pauseAll(); cc.audioEngine.pauseAll();
// if (CC_JSB) {
// } else {
// for (var key in this.mAudioMap) {
// if (key === this.mMusicKey) {
// this.mAudioMap[key].pause();
// } else {
// this.mAudioMap[key].stop();
// }
// }
// }
}; };
AudioManager.prototype.onShow = function () { AudioManager.prototype.onShow = function () {
cc.audioEngine.resumeAll(); cc.audioEngine.resumeAll();
// if (CC_JSB) {
// } else {
// if (!this.mMusicSwitch) return;
// var context = this.mAudioMap[this.mMusicKey];
// if (context) {
// context.play();
// }
// }
}; };
AudioManager.prototype.playMusic = function (key, callback, loop) { AudioManager.prototype.playMusic = function (key, callback, loop) {
loop = typeof loop == 'undefined' || loop ? true : false; loop = typeof loop == 'undefined' || loop ? true : false;
@ -156,45 +195,71 @@ var AudioManager = /** @class */ (function () {
} }
}; };
// 炸弹、火箭爆炸音效 // 炸弹、火箭爆炸音效
AudioManager.prototype.playWin = function () { AudioManager.prototype.playJump = function () {
return this.play(this.audioWin, false, null, this.mEffectSwitch);
}; };
//激光音效 //激光音效
AudioManager.prototype.playWarning = function () { AudioManager.prototype.playLuo = function () {
return this.play(this.audioWarning, false, null, this.mEffectSwitch); return this.play(this.luodui, false, null, this.mEffectSwitch);
};
//技能音效
AudioManager.prototype.playGround = function () {
};
//技能音效
AudioManager.prototype.playPz = function () {
}; };
/* /*
* 游戏开始音效 * 游戏开始音效
* *
*/ */
AudioManager.prototype.playGameStart = function () { AudioManager.prototype.playGameStart = function () {
}; };
/* /*
* 失败的游戏结束 * 失败的游戏结束
*/ */
AudioManager.prototype.playGameOver = function () { AudioManager.prototype.playGameOver = function () {
}; };
/* /*
* 成功的游戏结束 * 成功的游戏结束
*/ */
AudioManager.prototype.playGameResultFailed = function () { AudioManager.prototype.playGameResultFailed = function () {
}; };
/* /*
* 成功的游戏结束 * 成功的游戏结束
*/ */
AudioManager.prototype.playGameResultSuccess = function () { AudioManager.prototype.playGameResultSuccess = function () {
}; };
/** /**
* 报警的音效 * 报警的音效
*/ */
AudioManager.prototype.playWarning = function () {
return this.play(this.audioWarning, false, null, this.mEffectSwitch);
};
/*
* 方块碰撞的声音
*/
AudioManager.prototype.playBrick = function () {
// return this.play(this.brickSound,false);
};
//方块破碎的声音
AudioManager.prototype.brickBoom = function () {
};
/** /**
* 按钮 * 按钮
*/ */
AudioManager.prototype.playAudioButton = function () { AudioManager.prototype.playAudioButton = function () {
return this.play(this.audioButtonClick, false, null, this.mEffectSwitch); return this.play(this.audioButtonClick, false, null, this.mEffectSwitch);
}; };
AudioManager.prototype.playWin = function () {
return this.play(this.audioWin, false, null, this.mEffectSwitch);
};
AudioManager.prototype.playRandomMatch = function () {
this.playMusic(this.audioGameBgm0, {}, true);
};
AudioManager.prototype.playMatchFoundSound = function () {
this.stopMusic();
// return this.play(this.matchFoundSound, false);
};
var AudioManager_1; var AudioManager_1;
AudioManager._instance = null;
__decorate([ __decorate([
property(cc.AudioClip) property(cc.AudioClip)
], AudioManager.prototype, "audioGameBgm0", void 0); ], AudioManager.prototype, "audioGameBgm0", void 0);
@ -207,12 +272,15 @@ var AudioManager = /** @class */ (function () {
__decorate([ __decorate([
property(cc.AudioClip) property(cc.AudioClip)
], AudioManager.prototype, "audioWin", void 0); ], AudioManager.prototype, "audioWin", void 0);
__decorate([
property(cc.AudioClip)
], AudioManager.prototype, "luodui", void 0);
AudioManager = AudioManager_1 = __decorate([ AudioManager = AudioManager_1 = __decorate([
ccclass('AudioManager') ccclass
], AudioManager); ], AudioManager);
return AudioManager; return AudioManager;
}()); }(cc.Component));
exports.AudioManager = AudioManager; exports.default = AudioManager;
; ;
// export { AudioManager }; // export { AudioManager };

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@ window.initMgr = function () {
cc.fx.GameConfig = GameConfig_1.GameConfig; cc.fx.GameConfig = GameConfig_1.GameConfig;
cc.fx.HttpUtil = HttpUtil_1.default; cc.fx.HttpUtil = HttpUtil_1.default;
cc.fx.GameTool = GameTool_1.GameTool; cc.fx.GameTool = GameTool_1.GameTool;
cc.fx.AudioManager = AudioManager_1.AudioManager; cc.fx.AudioManager = AudioManager_1.default;
cc.fx.Notifications = Notification_1.Notifications; cc.fx.Notifications = Notification_1.Notifications;
cc.fx.StorageMessage = Storage_1.StorageMessage; cc.fx.StorageMessage = Storage_1.StorageMessage;
cc.fx.ShareInfo = { cc.fx.ShareInfo = {

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -244,7 +244,7 @@ var GameManager = /** @class */ (function (_super) {
this.time_Array.push((clickTime - this.timeStart)); this.time_Array.push((clickTime - this.timeStart));
this.timeStart = cc.fx.GameTool.getTime(); this.timeStart = cc.fx.GameTool.getTime();
if (data == this.clickNow) { if (data == this.clickNow) {
cc.fx.AudioManager.Instance.playAudioButton(); cc.fx.AudioManager._instance.playAudioButton();
if (this.clickNow > 0) { if (this.clickNow > 0) {
this.createLine(cc.v2(this.ball_Array[this.clickNow - 1].x, this.ball_Array[this.clickNow - 1].y), cc.v2(this.ball_Array[this.clickNow].x, this.ball_Array[this.clickNow].y), 0.2); this.createLine(cc.v2(this.ball_Array[this.clickNow - 1].x, this.ball_Array[this.clickNow - 1].y), cc.v2(this.ball_Array[this.clickNow].x, this.ball_Array[this.clickNow].y), 0.2);
} }
@ -269,7 +269,7 @@ var GameManager = /** @class */ (function (_super) {
var win_1 = this.node.getChildByName("Win"); var win_1 = this.node.getChildByName("Win");
win_1.active = true; win_1.active = true;
win_1.setScale(0); win_1.setScale(0);
cc.fx.AudioManager.Instance.playWin(); cc.fx.AudioManager._instance.playWin();
this.round += 1; this.round += 1;
var sunArray = []; var sunArray = [];
if (this.moveArray.length > 0) { if (this.moveArray.length > 0) {
@ -343,7 +343,7 @@ var GameManager = /** @class */ (function (_super) {
}; };
//执行失败 //执行失败
GameManager.prototype.setLoss = function () { GameManager.prototype.setLoss = function () {
cc.fx.AudioManager.Instance.playWarning(); cc.fx.AudioManager._instance.playWarning();
this.begin = false; this.begin = false;
this.overTime = cc.fx.GameTool.getTime(); this.overTime = cc.fx.GameTool.getTime();
if (this.startTime > 0 && this.overTime > 0) { if (this.startTime > 0 && this.overTime > 0) {

File diff suppressed because one or more lines are too long

View File

@ -31,10 +31,12 @@ var GameConfig = /** @class */ (function () {
cc.resources.load('Json/GM_INFO', function (err, res) { cc.resources.load('Json/GM_INFO', function (err, res) {
if (err) { if (err) {
_this.GM_INFO_init(); _this.GM_INFO_init();
_this.Authentication();
return; return;
} }
var jsonData = res.json; var jsonData = res.json;
_this.GM_INFO = jsonData["data"]; _this.GM_INFO = jsonData["data"];
_this.Authentication();
}); });
cc.resources.load('Json/CLICK_DATA', function (err, res) { cc.resources.load('Json/CLICK_DATA', function (err, res) {
if (err) { if (err) {
@ -293,6 +295,9 @@ var GameConfig = /** @class */ (function () {
} }
]; ];
}; };
GameConfig.Authentication = function () {
cc.fx.GameTool.Authentication();
};
var GameConfig_1; var GameConfig_1;
//所有控制信息都通过GameAppStart内控制 //所有控制信息都通过GameAppStart内控制
GameConfig._instance = null; GameConfig._instance = null;

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -13,13 +13,13 @@
"type": "dock-h", "type": "dock-h",
"children": [ "children": [
{ {
"width": 207.28125, "width": 207.1666717529297,
"height": 571, "height": 571,
"type": "dock-v", "type": "dock-v",
"children": [ "children": [
{ {
"width": 207.28125, "width": 207.1666717529297,
"height": 308.13543701171875, "height": 307.9895935058594,
"type": "panel", "type": "panel",
"active": 0, "active": 0,
"children": [ "children": [
@ -27,8 +27,8 @@
] ]
}, },
{ {
"width": 207.28125, "width": 207.1666717529297,
"height": 259.8645935058594, "height": 260,
"type": "panel", "type": "panel",
"active": 0, "active": 0,
"children": [ "children": [
@ -38,7 +38,7 @@
] ]
}, },
{ {
"width": 759.3333740234375, "width": 759.59375,
"height": 571, "height": 571,
"type": "panel", "type": "panel",
"active": 0, "active": 0,
@ -47,7 +47,7 @@
] ]
}, },
{ {
"width": 307.375, "width": 307.2395935058594,
"height": 571, "height": 571,
"type": "panel", "type": "panel",
"active": 0, "active": 0,
@ -66,8 +66,7 @@
"cocos-services" "cocos-services"
] ]
}, },
" common-asset-worker-worker": {}, " common-asset-worker-worker": {}
"window-1718614000092": {}
}, },
"panels": { "panels": {
"builder": { "builder": {

View File

@ -7,10 +7,10 @@
"5e515837-650e-4584-a089-e2a025e36c39", "5e515837-650e-4584-a089-e2a025e36c39",
"13110e4f-3587-4e6b-8811-0ca16cac8149", "13110e4f-3587-4e6b-8811-0ca16cac8149",
"d1323772-4ab2-4527-bd20-501fe4fb9723", "d1323772-4ab2-4527-bd20-501fe4fb9723",
"4eaf518b-35ec-4262-928d-4d497c3f2830",
"4b9c5a7e-c645-48a4-9aca-5df381ce4ef5", "4b9c5a7e-c645-48a4-9aca-5df381ce4ef5",
"774829bb-123e-48b6-930e-6b3e02491506", "774829bb-123e-48b6-930e-6b3e02491506",
"2d2f792f-a40c-49bb-a189-ed176a246e49", "2d2f792f-a40c-49bb-a189-ed176a246e49",
"4eaf518b-35ec-4262-928d-4d497c3f2830",
"9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d" "9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d"
] ]
} }

View File

@ -173,7 +173,6 @@
"7aHA1K+7hE8YNbYjVirEih", "7aHA1K+7hE8YNbYjVirEih",
"78pYT7vxBK7YbD2aVkC4Kw", "78pYT7vxBK7YbD2aVkC4Kw",
"a5NTB6LZBO4a2Z6RkeebsY", "a5NTB6LZBO4a2Z6RkeebsY",
"a5esZu+45LA5mBpvttspPD",
"411Nmuus1J2b6okQS3uSCm", "411Nmuus1J2b6okQS3uSCm",
"c1+P7wcW9K3oQyAJA29gUv", "c1+P7wcW9K3oQyAJA29gUv",
"aaIQpgppxE1Lw8V2w48d1u", "aaIQpgppxE1Lw8V2w48d1u",
@ -210,6 +209,7 @@
"a2Zfykcl1GPqJhA7ixiKd3", "a2Zfykcl1GPqJhA7ixiKd3",
"7dABu6LfBPVrHU5tOjT7Yt", "7dABu6LfBPVrHU5tOjT7Yt",
"fe7qLOC0RM9qPt+IfQpa5W", "fe7qLOC0RM9qPt+IfQpa5W",
"8fIUbpCjhI5r01JqiMBRub" "8fIUbpCjhI5r01JqiMBRub",
"a5esZu+45LA5mBpvttspPD"
] ]
} }

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
{"version":"1.0.8","stats":{"C:/Work/Project/Sun_moves/temp/quick-scripts/src/__qc_index__.js":"2024-06-17T08:21:43.164Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js":"2024-06-17T08:21:43.119Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Load.js":"2024-06-17T08:21:43.108Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Tool/GameTool.js":"2024-06-17T08:21:43.107Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/RankManager.js":"2024-06-17T08:21:43.130Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameOver.js":"2024-06-17T08:21:43.120Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/DynamicAtlasManager.js":"2024-06-17T08:21:43.115Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Sun.js":"2024-06-17T08:21:43.111Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GuideManager.js":"2024-06-17T08:21:43.104Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameManager.js":"2024-06-17T08:21:43.121Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/HttpUtil.js":"2024-06-17T08:21:43.118Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/GameStart/GameAppStart.js":"2024-06-17T08:21:43.116Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/ItemRender.js":"2024-06-17T08:21:43.125Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Music/AudioManager.js":"2024-06-17T08:21:43.114Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Storage/Storage.js":"2024-06-17T08:21:43.103Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Config/GameConfig.js":"2024-06-17T08:21:43.122Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Notification/Notification.js":"2024-06-17T08:21:43.112Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/crypto-js.min.js":"2024-06-17T08:21:43.128Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/List.js":"2024-06-17T08:21:43.126Z"}} {"version":"1.0.8","stats":{"C:/Work/Project/Sun_moves/temp/quick-scripts/src/__qc_index__.js":"2024-06-17T11:05:59.565Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GuideManager.js":"2024-06-17T11:05:59.509Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js":"2024-06-17T11:05:59.526Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameOver.js":"2024-06-17T11:05:59.527Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Sun.js":"2024-06-17T11:05:59.516Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/RankManager.js":"2024-06-17T11:05:59.535Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/DynamicAtlasManager.js":"2024-06-17T11:05:59.520Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Notification/Notification.js":"2024-06-17T11:05:59.517Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Load.js":"2024-06-17T11:05:59.512Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameManager.js":"2024-06-17T11:05:59.527Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Config/GameConfig.js":"2024-06-17T11:05:59.530Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Storage/Storage.js":"2024-06-17T11:05:59.508Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/GameStart/GameAppStart.js":"2024-06-17T11:05:59.522Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Music/AudioManager.js":"2024-06-17T11:05:59.519Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/List.js":"2024-06-17T11:05:59.532Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/crypto-js.min.js":"2024-06-17T11:05:59.534Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Tool/GameTool.js":"2024-06-17T11:05:59.511Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/ItemRender.js":"2024-06-17T11:05:59.531Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/HttpUtil.js":"2024-06-17T11:05:59.524Z"}}

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
(function () { (function () {
var scripts = [{"deps":{"./assets/Script/GameOver":5,"./assets/Script/GuideManager":8,"./assets/Script/Load":2,"./assets/Script/RankManager":4,"./assets/Script/Sun":7,"./assets/Script/DynamicAtlasManager":6,"./assets/migration/use_v2.1-2.2.1_cc.Toggle_event":1,"./assets/Script/GameManager":9,"./assets/Script/module/Crypto/crypto-js.min":17,"./assets/Script/module/Crypto/HttpUtil":10,"./assets/Script/module/GameStart/GameAppStart":11,"./assets/Script/module/Music/AudioManager":13,"./assets/Script/module/Notification/Notification":16,"./assets/Script/module/RankList/List":18,"./assets/Script/module/RankList/ItemRender":12,"./assets/Script/module/Storage/Storage":14,"./assets/Script/module/Tool/GameTool":3,"./assets/Script/module/Config/GameConfig":15},"path":"preview-scripts/__qc_index__.js"},{"deps":{},"path":"preview-scripts/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js"},{"deps":{},"path":"preview-scripts/assets/Script/Load.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Tool/GameTool.js"},{"deps":{"./module/RankList/List":18},"path":"preview-scripts/assets/Script/RankManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameOver.js"},{"deps":{},"path":"preview-scripts/assets/Script/DynamicAtlasManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/Sun.js"},{"deps":{},"path":"preview-scripts/assets/Script/GuideManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameManager.js"},{"deps":{"./crypto-js.min.js":17},"path":"preview-scripts/assets/Script/module/Crypto/HttpUtil.js"},{"deps":{"../Config/GameConfig":15,"../Crypto/HttpUtil":10,"../Music/AudioManager":13,"../Notification/Notification":16,"../Storage/Storage":14,"../Tool/GameTool":3},"path":"preview-scripts/assets/Script/module/GameStart/GameAppStart.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/RankList/ItemRender.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Music/AudioManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Storage/Storage.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Config/GameConfig.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Notification/Notification.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Crypto/crypto-js.min.js"},{"deps":{"./ItemRender":12},"path":"preview-scripts/assets/Script/module/RankList/List.js"}]; var scripts = [{"deps":{"./assets/Script/GuideManager":1,"./assets/migration/use_v2.1-2.2.1_cc.Toggle_event":2,"./assets/Script/GameOver":3,"./assets/Script/Sun":4,"./assets/Script/RankManager":5,"./assets/Script/DynamicAtlasManager":6,"./assets/Script/module/Notification/Notification":7,"./assets/Script/Load":8,"./assets/Script/GameManager":9,"./assets/Script/module/Config/GameConfig":10,"./assets/Script/module/Storage/Storage":11,"./assets/Script/module/GameStart/GameAppStart":12,"./assets/Script/module/Music/AudioManager":13,"./assets/Script/module/RankList/List":14,"./assets/Script/module/Crypto/crypto-js.min":15,"./assets/Script/module/Tool/GameTool":16,"./assets/Script/module/RankList/ItemRender":17,"./assets/Script/module/Crypto/HttpUtil":18},"path":"preview-scripts/__qc_index__.js"},{"deps":{},"path":"preview-scripts/assets/Script/GuideManager.js"},{"deps":{},"path":"preview-scripts/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameOver.js"},{"deps":{},"path":"preview-scripts/assets/Script/Sun.js"},{"deps":{"./module/RankList/List":14},"path":"preview-scripts/assets/Script/RankManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/DynamicAtlasManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Notification/Notification.js"},{"deps":{},"path":"preview-scripts/assets/Script/Load.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Config/GameConfig.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Storage/Storage.js"},{"deps":{"../Config/GameConfig":10,"../Crypto/HttpUtil":18,"../Music/AudioManager":13,"../Notification/Notification":7,"../Storage/Storage":11,"../Tool/GameTool":16},"path":"preview-scripts/assets/Script/module/GameStart/GameAppStart.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Music/AudioManager.js"},{"deps":{"./ItemRender":17},"path":"preview-scripts/assets/Script/module/RankList/List.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Crypto/crypto-js.min.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Tool/GameTool.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/RankList/ItemRender.js"},{"deps":{"./crypto-js.min.js":15},"path":"preview-scripts/assets/Script/module/Crypto/HttpUtil.js"}];
var entries = ["preview-scripts/__qc_index__.js"]; var entries = ["preview-scripts/__qc_index__.js"];
var bundleScript = 'preview-scripts/__qc_bundle__.js'; var bundleScript = 'preview-scripts/__qc_bundle__.js';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -42,9 +42,8 @@ var NewClass = /** @class */ (function (_super) {
} }
NewClass.prototype.start = function () { NewClass.prototype.start = function () {
window.initMgr(); window.initMgr();
cc.fx.GameTool.Authentication();
cc.fx.GameConfig.init(); cc.fx.GameConfig.init();
cc.fx.AudioManager.Instance.init(); // cc.fx.AudioManager._instance.init();
}; };
//开始游戏,跳转至引导页面 //开始游戏,跳转至引导页面
NewClass.prototype.startGame = function () { NewClass.prototype.startGame =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e1xyXG4gICAgICAgIGNjLmRpcmVjdG9yLmxvYWRTY2VuZShcIkd1aWRlU2NlbmVcIik7XHJcbiAgICB9XHJcbiAgICAvL+Wkh+eUqO+8jOeUqOadpea1i+ivlei3s+i9rCDmjIflrprlhbPljaFcclxuICAgIGNsaWNrQnRuKGV2ZW50LGRhdGEpe1xyXG4gICAgICAgIGNjLmZ4LkdhbWVDb25maWcuR01fSU5GTy5jdXN0b20gPSBwYXJzZUludChkYXRhKTtcclxuICAgICAgICBjYy5kaXJlY3Rvci5sb2FkU2NlbmUoXCJHYW1lU2NlbmVcIik7XHJcbiAgICB9ICAgXHJcbiAgICAvL+aJk+W8gOaOkuihjOamnFxyXG4gICAgb3BlblJhbmsoKXtcclxuICAgICAgICBjYy5kaXJlY3Rvci5sb2FkU2NlbmUoXCJSYW5rU2NlbmVcIik7XHJcbiAgICB9XHJcbiAgICBcclxuICAgIHByb3RlY3RlZCB1cGRhdGUoZHQ6IG51bWJlcik6IHZvaWQge1xyXG4gICAgfVxyXG59XHJcbiJdfQ==

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -244,7 +244,7 @@ var GameManager = /** @class */ (function (_super) {
this.time_Array.push((clickTime - this.timeStart)); this.time_Array.push((clickTime - this.timeStart));
this.timeStart = cc.fx.GameTool.getTime(); this.timeStart = cc.fx.GameTool.getTime();
if (data == this.clickNow) { if (data == this.clickNow) {
cc.fx.AudioManager.Instance.playAudioButton(); cc.fx.AudioManager._instance.playAudioButton();
if (this.clickNow > 0) { if (this.clickNow > 0) {
this.createLine(cc.v2(this.ball_Array[this.clickNow - 1].x, this.ball_Array[this.clickNow - 1].y), cc.v2(this.ball_Array[this.clickNow].x, this.ball_Array[this.clickNow].y), 0.2); this.createLine(cc.v2(this.ball_Array[this.clickNow - 1].x, this.ball_Array[this.clickNow - 1].y), cc.v2(this.ball_Array[this.clickNow].x, this.ball_Array[this.clickNow].y), 0.2);
} }
@ -269,7 +269,7 @@ var GameManager = /** @class */ (function (_super) {
var win_1 = this.node.getChildByName("Win"); var win_1 = this.node.getChildByName("Win");
win_1.active = true; win_1.active = true;
win_1.setScale(0); win_1.setScale(0);
cc.fx.AudioManager.Instance.playWin(); cc.fx.AudioManager._instance.playWin();
this.round += 1; this.round += 1;
var sunArray = []; var sunArray = [];
if (this.moveArray.length > 0) { if (this.moveArray.length > 0) {
@ -343,7 +343,7 @@ var GameManager = /** @class */ (function (_super) {
}; };
//执行失败 //执行失败
GameManager.prototype.setLoss = function () { GameManager.prototype.setLoss = function () {
cc.fx.AudioManager.Instance.playWarning(); cc.fx.AudioManager._instance.playWarning();
this.begin = false; this.begin = false;
this.overTime = cc.fx.GameTool.getTime(); this.overTime = cc.fx.GameTool.getTime();
if (this.startTime > 0 && this.overTime > 0) { if (this.startTime > 0 && this.overTime > 0) {

File diff suppressed because one or more lines are too long

View File

@ -234,7 +234,7 @@ var NewClass = /** @class */ (function (_super) {
var _this = this; var _this = this;
if (this.begin == true) { if (this.begin == true) {
if (data == this.clickNow) { if (data == this.clickNow) {
cc.fx.AudioManager.Instance.playAudioButton(); cc.fx.AudioManager._instance.playAudioButton();
if (this.clickNow > 0) { if (this.clickNow > 0) {
this.createLine(cc.v2(this.ball_Array[this.clickNow - 1].x, this.ball_Array[this.clickNow - 1].y), cc.v2(this.ball_Array[this.clickNow].x, this.ball_Array[this.clickNow].y), 0.2); this.createLine(cc.v2(this.ball_Array[this.clickNow - 1].x, this.ball_Array[this.clickNow - 1].y), cc.v2(this.ball_Array[this.clickNow].x, this.ball_Array[this.clickNow].y), 0.2);
} }
@ -257,7 +257,7 @@ var NewClass = /** @class */ (function (_super) {
NewClass.prototype.loseLevel = function () { NewClass.prototype.loseLevel = function () {
var _this = this; var _this = this;
this.begin = false; this.begin = false;
cc.fx.AudioManager.Instance.playWarning(); cc.fx.AudioManager._instance.playWarning();
this.destroyLine(); this.destroyLine();
var ball = this.ball_Array[0]; var ball = this.ball_Array[0];
var _loop_2 = function (k) { var _loop_2 = function (k) {

File diff suppressed because one or more lines are too long

View File

@ -31,9 +31,8 @@ var NewClass = /** @class */ (function (_super) {
} }
NewClass.prototype.start = function () { NewClass.prototype.start = function () {
window.initMgr(); window.initMgr();
cc.fx.GameTool.Authentication();
cc.fx.GameConfig.init(); cc.fx.GameConfig.init();
cc.fx.AudioManager.Instance.init(); // cc.fx.AudioManager._instance.init();
}; };
//开始游戏,跳转至引导页面 //开始游戏,跳转至引导页面
NewClass.prototype.startGame = function () { NewClass.prototype.startGame = function () {

View File

@ -1 +1 @@
{"version":3,"sources":["assets\\Script\\Load.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACM,IAAA,KAAwC,EAAE,CAAC,UAAU,EAApD,OAAO,aAAA,EAAE,QAAQ,cAAA,EAAE,gBAAgB,sBAAiB,CAAC;AAG5D;IAAsC,4BAAY;IAAlD;;IAyBA,CAAC;IAvBG,wBAAK,GAAL;QACI,oCAAoC;QACpC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACxB,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,MAAM,CAAC,OAAO,EAAE,CAAC;IACrB,CAAC;IAED,cAAc;IACd,4BAAS,GAAT;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACxC,CAAC;IACD,gBAAgB;IAChB,2BAAQ,GAAR,UAAS,KAAK,EAAC,IAAI;QACf,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QACjD,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IACD,OAAO;IACP,2BAAQ,GAAR;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAES,yBAAM,GAAhB,UAAiB,EAAU;IAC3B,CAAC;IAxBgB,QAAQ;QAD5B,OAAO;OACa,QAAQ,CAyB5B;IAAD,eAAC;CAzBD,AAyBC,CAzBqC,EAAE,CAAC,SAAS,GAyBjD;kBAzBoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["\r\nconst {ccclass, property, requireComponent} = cc._decorator;\r\n\r\n@ccclass\r\nexport default class NewClass extends cc.Component {\r\n\r\n start () {\r\n // cc.fx.GameTool.Authentication();\r\n cc.fx.GameConfig.init();\r\n cc.fx.AudioManager.Instance.init();\r\n window.initMgr();\r\n }\r\n\r\n //开始游戏,跳转至引导页面\r\n startGame(){\r\n cc.director.loadScene(\"GuideScene\");\r\n }\r\n //备用,用来测试跳转 指定关卡\r\n clickBtn(event,data){\r\n cc.fx.GameConfig.GM_INFO.custom = parseInt(data);\r\n cc.director.loadScene(\"GameScene\");\r\n } \r\n //打开排行榜\r\n openRank(){\r\n cc.director.loadScene(\"RankScene\");\r\n }\r\n \r\n protected update(dt: number): void {\r\n }\r\n}\r\n"]} {"version":3,"sources":["assets\\Script\\Load.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACM,IAAA,KAAwC,EAAE,CAAC,UAAU,EAApD,OAAO,aAAA,EAAE,QAAQ,cAAA,EAAE,gBAAgB,sBAAiB,CAAC;AAG5D;IAAsC,4BAAY;IAAlD;;IAuBA,CAAC;IAtBG,wBAAK,GAAL;QACI,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACxB,uCAAuC;IAC3C,CAAC;IAED,cAAc;IACd,4BAAS,GAAT;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACxC,CAAC;IACD,gBAAgB;IAChB,2BAAQ,GAAR,UAAS,KAAK,EAAC,IAAI;QACf,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QACjD,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IACD,OAAO;IACP,2BAAQ,GAAR;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAES,yBAAM,GAAhB,UAAiB,EAAU;IAC3B,CAAC;IAtBgB,QAAQ;QAD5B,OAAO;OACa,QAAQ,CAuB5B;IAAD,eAAC;CAvBD,AAuBC,CAvBqC,EAAE,CAAC,SAAS,GAuBjD;kBAvBoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["\r\nconst {ccclass, property, requireComponent} = cc._decorator;\r\n\r\n@ccclass\r\nexport default class NewClass extends cc.Component {\r\n start () {\r\n window.initMgr();\r\n cc.fx.GameConfig.init();\r\n // cc.fx.AudioManager._instance.init();\r\n }\r\n\r\n //开始游戏,跳转至引导页面\r\n startGame(){\r\n cc.director.loadScene(\"GuideScene\");\r\n }\r\n //备用,用来测试跳转 指定关卡\r\n clickBtn(event,data){\r\n cc.fx.GameConfig.GM_INFO.custom = parseInt(data);\r\n cc.director.loadScene(\"GameScene\");\r\n } \r\n //打开排行榜\r\n openRank(){\r\n cc.director.loadScene(\"RankScene\");\r\n }\r\n \r\n protected update(dt: number): void {\r\n }\r\n}\r\n"]}

View File

@ -31,10 +31,12 @@ var GameConfig = /** @class */ (function () {
cc.resources.load('Json/GM_INFO', function (err, res) { cc.resources.load('Json/GM_INFO', function (err, res) {
if (err) { if (err) {
_this.GM_INFO_init(); _this.GM_INFO_init();
_this.Authentication();
return; return;
} }
var jsonData = res.json; var jsonData = res.json;
_this.GM_INFO = jsonData["data"]; _this.GM_INFO = jsonData["data"];
_this.Authentication();
}); });
cc.resources.load('Json/CLICK_DATA', function (err, res) { cc.resources.load('Json/CLICK_DATA', function (err, res) {
if (err) { if (err) {
@ -293,6 +295,9 @@ var GameConfig = /** @class */ (function () {
} }
]; ];
}; };
GameConfig.Authentication = function () {
cc.fx.GameTool.Authentication();
};
var GameConfig_1; var GameConfig_1;
//所有控制信息都通过GameAppStart内控制 //所有控制信息都通过GameAppStart内控制
GameConfig._instance = null; GameConfig._instance = null;

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@ window.initMgr = function () {
cc.fx.GameConfig = GameConfig_1.GameConfig; cc.fx.GameConfig = GameConfig_1.GameConfig;
cc.fx.HttpUtil = HttpUtil_1.default; cc.fx.HttpUtil = HttpUtil_1.default;
cc.fx.GameTool = GameTool_1.GameTool; cc.fx.GameTool = GameTool_1.GameTool;
cc.fx.AudioManager = AudioManager_1.AudioManager; cc.fx.AudioManager = AudioManager_1.default;
cc.fx.Notifications = Notification_1.Notifications; cc.fx.Notifications = Notification_1.Notifications;
cc.fx.StorageMessage = Storage_1.StorageMessage; cc.fx.StorageMessage = Storage_1.StorageMessage;
cc.fx.ShareInfo = { cc.fx.ShareInfo = {

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,19 @@ cc._RF.push(module, '58403/n16JCa5sZhNMjZzGo', 'AudioManager');
// Script/module/Music/AudioManager.ts // Script/module/Music/AudioManager.ts
"use strict"; "use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@ -10,23 +23,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
return c > 3 && r && Object.defineProperty(target, key, r), r; return c > 3 && r && Object.defineProperty(target, key, r), r;
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.AudioManager = void 0;
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property; var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var AudioManager = /** @class */ (function () { var AudioManager = /** @class */ (function (_super) {
__extends(AudioManager, _super);
function AudioManager() { function AudioManager() {
var _this = _super !== null && _super.apply(this, arguments) || this;
//背景音乐 //背景音乐
this.audioGameBgm0 = null; _this.audioGameBgm0 = null;
//跳跃 //跳跃
this.audioButtonClick = null; _this.audioButtonClick = null;
//落地上 //落地上
this.audioWarning = null; _this.audioWarning = null;
//碰撞 //碰撞
this.audioWin = null; _this.audioWin = null;
//落方块上
_this.luodui = null;
return _this;
} }
AudioManager_1 = AudioManager; AudioManager_1 = AudioManager;
AudioManager.playWarning = function () {
throw new Error('Method not implemented.');
};
AudioManager.prototype.ctor = function () { AudioManager.prototype.ctor = function () {
this.mAudioMap = {}; this.mAudioMap = {};
/** /**
@ -67,17 +81,15 @@ var AudioManager = /** @class */ (function () {
// cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Music_Volume, this.mMusicSwitch); // cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Music_Volume, this.mMusicSwitch);
// cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Effect_Volume, this.mEffectSwitch); // cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Effect_Volume, this.mEffectSwitch);
}; };
Object.defineProperty(AudioManager, "Instance", { AudioManager.prototype.onLoad = function () {
get: function () { if (AudioManager_1._instance == null) {
if (this._instance == null) { AudioManager_1._instance = this;
this._instance = new AudioManager_1(); cc.game.addPersistRootNode(this.node);
} }
return this._instance; else {
}, this.node.destroy();
enumerable: false, return;
configurable: true }
});
AudioManager.prototype.init = function () {
this.reward = false; this.reward = false;
this.finish = false; this.finish = false;
this.rewardCount = 0; this.rewardCount = 0;
@ -92,6 +104,15 @@ var AudioManager = /** @class */ (function () {
this.audioGameBgm0, this.audioGameBgm0,
]; ];
musics.forEach(function (path) { musics.forEach(function (path) {
// var musicPath = wxDownloader.REMOTE_SERVER_ROOT + path;
// if (musicPath != wxDownloader.REMOTE_SERVER_ROOT && musicPath.endsWith('.mp3')) {
// cc.loader.load(musicPath, function(err, remoteUrl) {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// });
// }
}); });
}; };
AudioManager.prototype.getAudioMusicSwitch = function () { AudioManager.prototype.getAudioMusicSwitch = function () {
@ -124,9 +145,27 @@ var AudioManager = /** @class */ (function () {
}; };
AudioManager.prototype.onHide = function () { AudioManager.prototype.onHide = function () {
cc.audioEngine.pauseAll(); cc.audioEngine.pauseAll();
// if (CC_JSB) {
// } else {
// for (var key in this.mAudioMap) {
// if (key === this.mMusicKey) {
// this.mAudioMap[key].pause();
// } else {
// this.mAudioMap[key].stop();
// }
// }
// }
}; };
AudioManager.prototype.onShow = function () { AudioManager.prototype.onShow = function () {
cc.audioEngine.resumeAll(); cc.audioEngine.resumeAll();
// if (CC_JSB) {
// } else {
// if (!this.mMusicSwitch) return;
// var context = this.mAudioMap[this.mMusicKey];
// if (context) {
// context.play();
// }
// }
}; };
AudioManager.prototype.playMusic = function (key, callback, loop) { AudioManager.prototype.playMusic = function (key, callback, loop) {
loop = typeof loop == 'undefined' || loop ? true : false; loop = typeof loop == 'undefined' || loop ? true : false;
@ -156,45 +195,71 @@ var AudioManager = /** @class */ (function () {
} }
}; };
// 炸弹、火箭爆炸音效 // 炸弹、火箭爆炸音效
AudioManager.prototype.playWin = function () { AudioManager.prototype.playJump = function () {
return this.play(this.audioWin, false, null, this.mEffectSwitch);
}; };
//激光音效 //激光音效
AudioManager.prototype.playWarning = function () { AudioManager.prototype.playLuo = function () {
return this.play(this.audioWarning, false, null, this.mEffectSwitch); return this.play(this.luodui, false, null, this.mEffectSwitch);
};
//技能音效
AudioManager.prototype.playGround = function () {
};
//技能音效
AudioManager.prototype.playPz = function () {
}; };
/* /*
* 游戏开始音效 * 游戏开始音效
* *
*/ */
AudioManager.prototype.playGameStart = function () { AudioManager.prototype.playGameStart = function () {
}; };
/* /*
* 失败的游戏结束 * 失败的游戏结束
*/ */
AudioManager.prototype.playGameOver = function () { AudioManager.prototype.playGameOver = function () {
}; };
/* /*
* 成功的游戏结束 * 成功的游戏结束
*/ */
AudioManager.prototype.playGameResultFailed = function () { AudioManager.prototype.playGameResultFailed = function () {
}; };
/* /*
* 成功的游戏结束 * 成功的游戏结束
*/ */
AudioManager.prototype.playGameResultSuccess = function () { AudioManager.prototype.playGameResultSuccess = function () {
}; };
/** /**
* 报警的音效 * 报警的音效
*/ */
AudioManager.prototype.playWarning = function () {
return this.play(this.audioWarning, false, null, this.mEffectSwitch);
};
/*
* 方块碰撞的声音
*/
AudioManager.prototype.playBrick = function () {
// return this.play(this.brickSound,false);
};
//方块破碎的声音
AudioManager.prototype.brickBoom = function () {
};
/** /**
* 按钮 * 按钮
*/ */
AudioManager.prototype.playAudioButton = function () { AudioManager.prototype.playAudioButton = function () {
return this.play(this.audioButtonClick, false, null, this.mEffectSwitch); return this.play(this.audioButtonClick, false, null, this.mEffectSwitch);
}; };
AudioManager.prototype.playWin = function () {
return this.play(this.audioWin, false, null, this.mEffectSwitch);
};
AudioManager.prototype.playRandomMatch = function () {
this.playMusic(this.audioGameBgm0, {}, true);
};
AudioManager.prototype.playMatchFoundSound = function () {
this.stopMusic();
// return this.play(this.matchFoundSound, false);
};
var AudioManager_1; var AudioManager_1;
AudioManager._instance = null;
__decorate([ __decorate([
property(cc.AudioClip) property(cc.AudioClip)
], AudioManager.prototype, "audioGameBgm0", void 0); ], AudioManager.prototype, "audioGameBgm0", void 0);
@ -207,12 +272,15 @@ var AudioManager = /** @class */ (function () {
__decorate([ __decorate([
property(cc.AudioClip) property(cc.AudioClip)
], AudioManager.prototype, "audioWin", void 0); ], AudioManager.prototype, "audioWin", void 0);
__decorate([
property(cc.AudioClip)
], AudioManager.prototype, "luodui", void 0);
AudioManager = AudioManager_1 = __decorate([ AudioManager = AudioManager_1 = __decorate([
ccclass('AudioManager') ccclass
], AudioManager); ], AudioManager);
return AudioManager; return AudioManager;
}()); }(cc.Component));
exports.AudioManager = AudioManager; exports.default = AudioManager;
; ;
// export { AudioManager }; // export { AudioManager };

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"pid":8236}