This commit is contained in:
COMPUTER\EDY 2026-07-08 16:20:05 +08:00
parent 11dd4717ee
commit d00e6fc7a5
17 changed files with 2516 additions and 2764 deletions

File diff suppressed because it is too large Load Diff

View File

@ -776,6 +776,13 @@ export default class JiaZai extends cc.Component {
// console.log("HomeScene广告预加载初始化失败");
// }
// });
//@ts-ignore
wx.getDeviceBenchmarkInfo({
success(res) {
console.log("_______________性能等级:", res.benchmarkLevel);
console.log("_______________机型等级", res.modelLevel);
}
})
}
// ============================================

View File

@ -3331,6 +3331,7 @@ export default class MapConroler extends cc.Component {
const wincoin = winCOIN.getComponent(SceneManager);
if (wincoin) {
wincoin.updateWinCoin();
wincoin.updateNextMode();
} else {
console.log("JiaZai 组件未找到");
}

View File

@ -58,6 +58,9 @@ export default class SceneManager extends cc.Component {
@property(cc.Node)
winCoin: cc.Node = null;
@property(cc.Node)
nextMode: cc.Node = null;
//赢了头像
@property(cc.Node)
icon: cc.Node = null;
@ -152,6 +155,41 @@ export default class SceneManager extends cc.Component {
}
}
//更新下一关获得金币
updateNextMode() {
let nextMode = -1;
this.nextMode.active = false;
this.nextMode.parent.getChildByName("nextLabel").active = false;
const currentLevel = cc.fx.GameConfig.GM_INFO.level + 1;
const newLevelConfig = cc.fx.GameConfig.NEW_LEVEL || [];
for (let i = 0; i < newLevelConfig.length; i++) {
const newLevel = Number(newLevelConfig[i].level);
if (newLevel > currentLevel) {
const diff = newLevel - currentLevel;
if (nextMode < 0 || diff < nextMode) {
nextMode = diff;
}
}
if (newLevel == currentLevel) {
nextMode = 0;
this.nextMode.active = false;
this.nextMode.parent.getChildByName("nextLabel").active = false;
}
}
if (nextMode > 0 && nextMode <= 10) {
this.nextMode.active = true;
this.nextMode.parent.getChildByName("nextLabel").active = true;
NumberToImage.numberToImageNodes(nextMode, 35, 8, "time_", this.nextMode, false);
} else {
this.nextMode.active = false;
this.nextMode.parent.getChildByName("nextLabel").active = false;
}
}
changeBg() {
let number = Math.floor(Math.random() * 8) + 1;
const path = 'bg/bg' + number;

BIN
assets/UI/UI/juli.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -1,6 +1,6 @@
{
"ver": "2.3.7",
"uuid": "4ddb4a19-f42b-4d8c-ad22-2982ab5ce2f5",
"uuid": "a9738c6e-6be2-4c48-bf8d-82ea126e3ebe",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
@ -8,15 +8,15 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 261,
"height": 64,
"width": 662,
"height": 49,
"platformSettings": {},
"subMetas": {
"jujue": {
"juli": {
"ver": "1.0.6",
"uuid": "dbdc0748-472f-4cb3-b8ae-c46437f02fcc",
"uuid": "c51edcb0-b1f1-46c0-b570-5f50e3265279",
"importer": "sprite-frame",
"rawTextureUuid": "4ddb4a19-f42b-4d8c-ad22-2982ab5ce2f5",
"rawTextureUuid": "a9738c6e-6be2-4c48-bf8d-82ea126e3ebe",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
@ -24,10 +24,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 261,
"height": 64,
"rawWidth": 261,
"rawHeight": 64,
"width": 662,
"height": 49,
"rawWidth": 662,
"rawHeight": 49,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "4392b41d-a9b2-4e35-a2c4-54e6c899acbf",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 393,
"height": 123,
"platformSettings": {},
"subMetas": {
"jujueBtn": {
"ver": "1.0.6",
"uuid": "4b385489-c31c-4609-82ae-ce400f6bda34",
"importer": "sprite-frame",
"rawTextureUuid": "4392b41d-a9b2-4e35-a2c4-54e6c899acbf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 393,
"height": 123,
"rawWidth": 393,
"rawHeight": 123,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -9,7 +9,7 @@
"genMipmaps": false,
"packable": true,
"width": 235,
"height": 213,
"height": 225,
"platformSettings": {},
"subMetas": {
"newIcon": {
@ -25,9 +25,9 @@
"trimX": 0,
"trimY": 0,
"width": 235,
"height": 213,
"height": 225,
"rawWidth": 235,
"rawHeight": 213,
"rawHeight": 225,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -8,8 +8,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 235,
"height": 79,
"width": 460,
"height": 109,
"platformSettings": {},
"subMetas": {
"next": {
@ -24,10 +24,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 542,
"height": 132,
"rawWidth": 542,
"rawHeight": 132,
"width": 460,
"height": 109,
"rawWidth": 460,
"rawHeight": 109,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -24,10 +24,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 637,
"height": 137,
"rawWidth": 637,
"rawHeight": 137,
"width": 669,
"height": 163,
"rawWidth": 669,
"rawHeight": 163,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "0b5e08fa-0747-47ff-ac17-5b512de7cc77",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 800,
"height": 150,
"platformSettings": {},
"subMetas": {
"xinLog": {
"ver": "1.0.6",
"uuid": "ecccc889-da4b-40ce-842d-3a2796b875d4",
"importer": "sprite-frame",
"rawTextureUuid": "0b5e08fa-0747-47ff-ac17-5b512de7cc77",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 800,
"height": 150,
"rawWidth": 800,
"rawHeight": 150,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}