Compare commits

...

3 Commits

Author SHA1 Message Date
YZ\249929363 03ed530e92 更新 2025-07-08 18:24:45 +08:00
YZ\249929363 c4a03c4554 删除220关卡 2025-07-08 18:16:17 +08:00
YZ\249929363 80fa040344 更新 2025-07-08 18:13:18 +08:00
8 changed files with 2647 additions and 3585 deletions

File diff suppressed because it is too large Load Diff

View File

@ -296,6 +296,14 @@ export default class SceneManager extends cc.Component {
propWindow.getChildByName("magic").active = false;
propWindow.getChildByName("buy_Btn").getComponent("btnControl").setTouch(true);
propWindow.getChildByName(name).active = true;
if(name == "hammer"){
propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = true;
propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = false;
}
else{
propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = false;
propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = true;
}
}
clickBtn() {

View File

@ -1250,6 +1250,7 @@ export namespace MiniGameSdk {
//#region 引力平台-
static yinli_Init(){
if (typeof wx !== 'undefined' && wx !== null) {
const configYinli = {
accessToken: "aGws0nluotbm6Jjiv9WMuzOAbXLydxwe", // 项目通行证,在:网站后台-->设置-->应用列表中找到Access Token列 复制(首次使用可能需要先新增应用)
clientId: cc.fx.GameConfig.GM_INFO.openid, // 用户唯一标识如产品为小游戏则必须填用户openid注意不是小游戏的APPID
@ -1285,5 +1286,6 @@ export namespace MiniGameSdk {
}
}
}
}

View File

@ -373,8 +373,8 @@ var GameTool = {
}
cc.fx.GameConfig.GM_INFO.coin += coin;
if(coin > 0){
let data = "获得" + (coin) + "金币";
MiniGameSdk.API.showToast(data);
// let data = "获得" + (coin) + "金币";
// MiniGameSdk.API.showToast(data);
}
else{
let data = "消耗" + (-coin) + "金币";
@ -637,8 +637,14 @@ var GameTool = {
buyProp(propid,callback: Function) {
//@ts-ignore
if (typeof wx!== 'undefined' && wx!== null) {
cc.fx.GameTool.changeCoin(-1500);
cc.fx.GameTool.setUserProp(propid,3,(data)=>{
let num = 3;
let cost = 1500;
if(propid == 2002){
cost = 1000;
num = 1;
}
cc.fx.GameTool.changeCoin(-cost);
cc.fx.GameTool.setUserProp(propid,num,(data)=>{
})
const data = {
id: (propid + ""),
@ -653,7 +659,7 @@ var GameTool = {
const buyData = {
item_id:_id,
item_num:3,
item_price:1500,
item_price:cost,
cost_type:"gold"
}
console.log("____________即将上传Shop_buy",buyData);

View File

@ -1,395 +0,0 @@
{
"LEVEL_INFO": [
{
"id": "242",
"map": [
9,
12
],
"time": 120,
"gap": [
{
"x": 3,
"y": 10,
"z": 0
},
{
"x": 4,
"y": 10,
"z": 0
},
{
"x": 5,
"y": 10,
"z": 0
},
{
"x": 3,
"y": 1,
"z": 0
},
{
"x": 4,
"y": 1,
"z": 0
},
{
"x": 5,
"y": 1,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": 420,
"y": -240,
"z": 0
},
"id": 210
},
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": 420,
"y": 0,
"z": 0
},
"id": 220
},
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": -300,
"y": -240,
"z": 0
},
"id": 230
},
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": -300,
"y": 0,
"z": 0
},
"id": 240
},
{
"block": 2,
"color": 9,
"type": 6,
"position": {
"x": -180,
"y": -120,
"z": 0
},
"boomTime": 20,
"id": 250
},
{
"block": 2,
"color": 2,
"type": 6,
"position": {
"x": 300,
"y": -120,
"z": 0
},
"boomTime": 15,
"id": 260
},
{
"block": 0,
"color": 10,
"type": 2,
"position": {
"x": 60,
"y": -360,
"z": 0
},
"id": 270
},
{
"block": 0,
"color": 8,
"type": 2,
"position": {
"x": 60,
"y": -480,
"z": 0
},
"id": 280
},
{
"block": 2,
"color": 10,
"type": 2,
"position": {
"x": 300,
"y": 360,
"z": 0
},
"id": 290
},
{
"block": 2,
"color": 1,
"type": 2,
"position": {
"x": 420,
"y": 360,
"z": 0
},
"id": 300
},
{
"block": 3,
"color": 8,
"type": 3,
"position": {
"x": 180,
"y": 0,
"z": 0
},
"lockTime": 4,
"id": 310
},
{
"block": 2,
"color": 8,
"type": 0,
"position": {
"x": 420,
"y": -600,
"z": 0
},
"id": 320
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 300,
"y": -600,
"z": 0
},
"id": 330
},
{
"block": 10,
"color": 5,
"type": 0,
"position": {
"x": 60,
"y": 120,
"z": 0
},
"id": 340
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": -300,
"y": 360,
"z": 0
},
"id": 350
},
{
"block": 2,
"color": 7,
"type": 0,
"position": {
"x": -180,
"y": 360,
"z": 0
},
"id": 360
},
{
"block": 13,
"color": 3,
"type": 7,
"position": {
"x": -60,
"y": 120,
"z": 0
},
"id": 380
},
{
"block": 5,
"color": 3,
"type": 9,
"position": {
"x": 60,
"y": -240,
"z": 0
},
"adhesiveTime": 2,
"id": 380
},
{
"block": 2,
"color": 3,
"type": 9,
"position": {
"x": 180,
"y": -240,
"z": 0
},
"adhesiveTime": 1,
"id": 390
},
{
"block": 1,
"color": 3,
"type": 9,
"position": {
"x": -60,
"y": -480,
"z": 0
},
"adhesiveTime": 2,
"id": 400
},
{
"block": 1,
"color": 3,
"type": 9,
"position": {
"x": -180,
"y": -600,
"z": 0
},
"adhesiveTime": 1,
"id": 410
}
]
],
"WALL_INFO": [
[
{
"id": 1,
"num": 11,
"color": 10,
"special": 0,
"length": 1
},
{
"id": 2,
"num": 13,
"color": 1,
"special": 0,
"length": 1
},
{
"id": 3,
"num": 6,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 4,
"num": 7,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 5,
"num": 34,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 6,
"num": 35,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 7,
"num": 29,
"color": 7,
"special": 0,
"length": 2
},
{
"id": 8,
"num": 30,
"color": 7,
"special": 0,
"length": 0
},
{
"id": 9,
"num": 1,
"color": 2,
"special": 0,
"length": 2
},
{
"id": 10,
"num": 2,
"color": 2,
"special": 0,
"length": 0
},
{
"id": 11,
"num": 10,
"color": 5,
"special": 0,
"length": 2
},
{
"id": 12,
"num": 12,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 13,
"num": 24,
"color": 9,
"special": 0,
"length": 0
},
{
"id": 14,
"num": 24,
"color": 9,
"special": 0,
"length": 2
},
{
"id": 15,
"num": 26,
"color": 9,
"special": 0,
"length": 0
}
]
]
}

View File

@ -1,6 +0,0 @@
{
"ver": "1.0.2",
"uuid": "d77cf848-1c11-4099-8adc-e5f3385376e7",
"importer": "json",
"subMetas": {}
}

View File

@ -33,14 +33,14 @@
"_active": true,
"_components": [
{
"__id__": 320
"__id__": 324
},
{
"__id__": 321
"__id__": 325
}
],
"_prefab": {
"__id__": 322
"__id__": 326
},
"_opacity": 255,
"_color": {
@ -428,7 +428,7 @@
"ctor": "Float64Array",
"array": [
0,
-141.52999999999997,
-290,
0,
0,
0,
@ -9836,7 +9836,7 @@
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": 351.53,
"_top": 500,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
@ -9876,23 +9876,26 @@
"__id__": 272
},
{
"__id__": 278
"__id__": 276
},
{
"__id__": 299
"__id__": 282
},
{
"__id__": 312
"__id__": 303
},
{
"__id__": 316
}
],
"_active": true,
"_components": [
{
"__id__": 318
"__id__": 322
}
],
"_prefab": {
"__id__": 319
"__id__": 323
},
"_opacity": 255,
"_color": {
@ -9984,7 +9987,7 @@
"ctor": "Float64Array",
"array": [
0,
126.72199999999998,
31.149999999999977,
0,
0,
0,
@ -10055,7 +10058,7 @@
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": -4.110000000000014,
"_top": 91.46199999999993,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
@ -10080,6 +10083,145 @@
"fileId": "91FPh7kZtC+51mI5KXRts7",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "shop_1",
"_objFlags": 0,
"_parent": {
"__id__": 267
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 273
},
{
"__id__": 274
}
],
"_prefab": {
"__id__": 275
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 436
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
461.72500000000025,
0,
0,
0,
0,
1,
1,
-1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 272
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "11bc6aa1-f82e-42c0-8581-7cc70ba6cde0"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 272
},
"_enabled": true,
"alignMode": 1,
"_target": {
"__id__": 1
},
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": -339.11300000000017,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1080,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c2W8O2LhdN2Yt3Y+q1zlF1",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "tx",
@ -10089,17 +10231,17 @@
},
"_children": [
{
"__id__": 273
"__id__": 277
}
],
"_active": true,
"_components": [
{
"__id__": 276
"__id__": 280
}
],
"_prefab": {
"__id__": 277
"__id__": 281
},
"_opacity": 255,
"_color": {
@ -10124,7 +10266,7 @@
"ctor": "Float64Array",
"array": [
-412.791,
111.536,
15.964,
0,
0,
0,
@ -10153,17 +10295,17 @@
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 272
"__id__": 276
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 274
"__id__": 278
}
],
"_prefab": {
"__id__": 275
"__id__": 279
},
"_opacity": 255,
"_color": {
@ -10217,7 +10359,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 273
"__id__": 277
},
"_enabled": true,
"_materials": [
@ -10260,7 +10402,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 272
"__id__": 276
},
"_enabled": true,
"_materials": [
@ -10309,32 +10451,32 @@
},
"_children": [
{
"__id__": 279
"__id__": 283
},
{
"__id__": 282
"__id__": 286
},
{
"__id__": 285
"__id__": 289
},
{
"__id__": 288
"__id__": 292
},
{
"__id__": 291
"__id__": 295
},
{
"__id__": 293
"__id__": 297
}
],
"_active": true,
"_components": [
{
"__id__": 296
"__id__": 300
}
],
"_prefab": {
"__id__": 298
"__id__": 302
},
"_opacity": 255,
"_color": {
@ -10359,7 +10501,7 @@
"ctor": "Float64Array",
"array": [
-81.953,
166.638,
71.066,
0,
0,
0,
@ -10388,17 +10530,17 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 278
"__id__": 282
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 280
"__id__": 284
}
],
"_prefab": {
"__id__": 281
"__id__": 285
},
"_opacity": 255,
"_color": {
@ -10452,7 +10594,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 279
"__id__": 283
},
"_enabled": true,
"_materials": [
@ -10497,17 +10639,17 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 278
"__id__": 282
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 283
"__id__": 287
}
],
"_prefab": {
"__id__": 284
"__id__": 288
},
"_opacity": 255,
"_color": {
@ -10561,7 +10703,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 282
"__id__": 286
},
"_enabled": true,
"_materials": [
@ -10606,17 +10748,17 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 278
"__id__": 282
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 286
"__id__": 290
}
],
"_prefab": {
"__id__": 287
"__id__": 291
},
"_opacity": 255,
"_color": {
@ -10670,7 +10812,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 285
"__id__": 289
},
"_enabled": true,
"_materials": [
@ -10715,17 +10857,17 @@
"_name": "man",
"_objFlags": 0,
"_parent": {
"__id__": 278
"__id__": 282
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 289
"__id__": 293
}
],
"_prefab": {
"__id__": 290
"__id__": 294
},
"_opacity": 255,
"_color": {
@ -10779,7 +10921,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 288
"__id__": 292
},
"_enabled": true,
"_materials": [
@ -10824,13 +10966,13 @@
"_name": "health",
"_objFlags": 0,
"_parent": {
"__id__": 278
"__id__": 282
},
"_children": [],
"_active": false,
"_components": [],
"_prefab": {
"__id__": 292
"__id__": 296
},
"_opacity": 255,
"_color": {
@ -10895,17 +11037,17 @@
"_name": "time",
"_objFlags": 0,
"_parent": {
"__id__": 278
"__id__": 282
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 294
"__id__": 298
}
],
"_prefab": {
"__id__": 295
"__id__": 299
},
"_opacity": 255,
"_color": {
@ -10959,7 +11101,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 293
"__id__": 297
},
"_enabled": true,
"_materials": [
@ -11003,7 +11145,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 278
"__id__": 282
},
"_enabled": false,
"_normalMaterial": null,
@ -11012,7 +11154,7 @@
"zoomScale": 1.1,
"clickEvents": [
{
"__id__": 297
"__id__": 301
}
],
"_N$interactable": true,
@ -11098,22 +11240,22 @@
},
"_children": [
{
"__id__": 300
"__id__": 304
},
{
"__id__": 303
"__id__": 307
},
{
"__id__": 306
"__id__": 310
},
{
"__id__": 309
"__id__": 313
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 311
"__id__": 315
},
"_opacity": 255,
"_color": {
@ -11137,8 +11279,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
335.588,
166.638,
304.668,
71.066,
0,
0,
0,
@ -11167,17 +11309,17 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 299
"__id__": 303
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 301
"__id__": 305
}
],
"_prefab": {
"__id__": 302
"__id__": 306
},
"_opacity": 255,
"_color": {
@ -11231,7 +11373,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 300
"__id__": 304
},
"_enabled": true,
"_materials": [
@ -11276,17 +11418,17 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 299
"__id__": 303
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 304
"__id__": 308
}
],
"_prefab": {
"__id__": 305
"__id__": 309
},
"_opacity": 255,
"_color": {
@ -11340,7 +11482,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 303
"__id__": 307
},
"_enabled": true,
"_materials": [
@ -11385,17 +11527,17 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 299
"__id__": 303
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 307
"__id__": 311
}
],
"_prefab": {
"__id__": 308
"__id__": 312
},
"_opacity": 255,
"_color": {
@ -11449,7 +11591,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 306
"__id__": 310
},
"_enabled": true,
"_materials": [
@ -11494,13 +11636,13 @@
"_name": "Coin",
"_objFlags": 0,
"_parent": {
"__id__": 299
"__id__": 303
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 310
"__id__": 314
},
"_opacity": 255,
"_color": {
@ -11582,17 +11724,17 @@
"_active": true,
"_components": [
{
"__id__": 313
"__id__": 317
},
{
"__id__": 314
"__id__": 318
},
{
"__id__": 315
"__id__": 319
}
],
"_prefab": {
"__id__": 317
"__id__": 321
},
"_opacity": 255,
"_color": {
@ -11617,7 +11759,7 @@
"ctor": "Float64Array",
"array": [
447.208,
-6.111999999999966,
-108.50999999999999,
0,
0,
0,
@ -11646,7 +11788,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 312
"__id__": 316
},
"_enabled": true,
"_materials": [
@ -11680,7 +11822,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 312
"__id__": 316
},
"_enabled": true,
"alignMode": 1,
@ -11690,7 +11832,7 @@
"_alignFlags": 1,
"_left": 0,
"_right": 24.363999999999976,
"_top": 295.724,
"_top": 398.12199999999996,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
@ -11709,7 +11851,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 312
"__id__": 316
},
"_enabled": true,
"_normalMaterial": null,
@ -11718,7 +11860,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 316
"__id__": 320
}
],
"_N$interactable": true,
@ -11774,7 +11916,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 312
"__id__": 316
},
"_id": ""
},
@ -11854,10 +11996,10 @@
"__id__": 18
},
"coin": {
"__id__": 309
"__id__": 313
},
"Stamina": {
"__id__": 278
"__id__": 282
},
"_id": ""
},

View File

@ -235,8 +235,8 @@ protected update(dt: number): void {
// Utils.GoKEFu();
if(systemType == "ios"){
// MiniGameSdk.API.showToast("IOS系统暂不支持支付");
Utils.GoKEFu();
MiniGameSdk.API.showToast("IOS系统暂不支持支付");
// Utils.GoKEFu();
}
else{
const data = {