This commit is contained in:
COMPUTER\EDY 2026-03-23 14:03:56 +08:00
parent cc14449931
commit 9e84c1af94
5 changed files with 350 additions and 3 deletions

View File

@ -620,6 +620,7 @@ export default class Block extends cc.Component {
this.node.getChildByName("change_color").active = false;
}
var temp = MapConroler._instance.Block_Color;
if (MapConroler && MapConroler._instance) {
let blockSpriteFrame = MapConroler._instance.Block_Color[number]._spriteFrames;
var spriteFrame = blockSpriteFrame[name];

View File

@ -0,0 +1,340 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "1354",
"map": [
9,
8
],
"time": 100,
"gap": [
{
"x": 4,
"y": 1,
"z": 0
},
{
"x": 5,
"y": 1,
"z": 0
},
{
"x": 6,
"y": 1,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 22,
"color": 4,
"type": 0,
"position": {
"x": 300,
"y": -120,
"z": 0
},
"id": 210
},
{
"block": 1,
"color": 6,
"type": 0,
"position": {
"x": 300,
"y": 240,
"z": 0
},
"id": 220
},
{
"block": 1,
"color": 1,
"type": 0,
"position": {
"x": -180,
"y": 240,
"z": 0
},
"id": 230
},
{
"block": 1,
"color": 2,
"type": 1,
"position": {
"x": 300,
"y": -240,
"z": 0
},
"stacking": 9,
"id": 240
},
{
"block": 2,
"color": 10,
"type": 1,
"position": {
"x": -180,
"y": -360,
"z": 0
},
"stacking": 4,
"id": 250
},
{
"block": 1,
"color": 7,
"type": 1,
"position": {
"x": 300,
"y": 120,
"z": 0
},
"stacking": 1,
"id": 260
},
{
"block": 2,
"color": 5,
"type": 1,
"position": {
"x": -60,
"y": 0,
"z": 0
},
"stacking": 4,
"floor": 1,
"floorTime": 2,
"floorMove": true,
"id": 270
},
{
"block": 2,
"color": 8,
"type": 16,
"position": {
"x": 420,
"y": -360,
"z": 0
},
"questionTime": 3,
"id": 280
},
{
"block": 0,
"color": 7,
"type": 16,
"position": {
"x": 420,
"y": 0,
"z": 0
},
"questionTime": 4,
"id": 290
},
{
"block": 0,
"color": 10,
"type": 16,
"position": {
"x": -300,
"y": 120,
"z": 0
},
"questionTime": 8,
"id": 300
},
{
"block": 0,
"color": 5,
"type": 4,
"position": {
"x": -60,
"y": 240,
"z": 0
},
"freezeTime": 6,
"id": 310
},
{
"block": 0,
"color": 6,
"type": 16,
"position": {
"x": 60,
"y": 120,
"z": 0
},
"questionTime": 10,
"id": 320
},
{
"block": 2,
"color": 3,
"type": 9,
"position": {
"x": -300,
"y": -240,
"z": 0
},
"adhesiveTime": 2,
"floor": 2,
"floorTime": 9,
"floorMove": true,
"id": 330
},
{
"block": 0,
"color": 10,
"type": 9,
"position": {
"x": -300,
"y": -360,
"z": 0
},
"adhesiveTime": 1,
"floor": 2,
"floorTime": 9,
"floorMove": true,
"id": 340
},
{
"block": 2,
"color": 9,
"type": 9,
"position": {
"x": 60,
"y": -240,
"z": 0
},
"adhesiveTime": 2,
"floor": 3,
"floorTime": 8,
"floorMove": true,
"id": 350
},
{
"block": 2,
"color": 9,
"type": 9,
"position": {
"x": -60,
"y": -360,
"z": 0
},
"adhesiveTime": 1,
"floor": 3,
"floorTime": 8,
"floorMove": true,
"id": 360
}
]
],
"WALL_INFO": [
[
{
"id": 1355,
"num": 3,
"color": 1,
"special": 9,
"length": 1,
"stickLength": 2,
"stickShow": true
},
{
"id": 1356,
"num": 21,
"color": 1,
"special": 9,
"length": 1,
"stickLength": 2,
"stickShow": true
},
{
"id": 1357,
"num": 11,
"color": 7,
"special": 0,
"length": 2,
"colorArray": "616"
},
{
"id": 1358,
"num": 14,
"color": 7,
"special": 0,
"length": 0,
"colorArray": "616"
},
{
"id": 1359,
"num": 24,
"color": 9,
"special": 0,
"length": 3,
"colorArray": "8882"
},
{
"id": 1360,
"num": 25,
"color": 9,
"special": 0,
"length": 0,
"colorArray": "8882"
},
{
"id": 1361,
"num": 26,
"color": 9,
"special": 0,
"length": 0,
"colorArray": "8882"
},
{
"id": 1362,
"num": 20,
"color": 10,
"special": 0,
"length": 1,
"colorArray": "9499"
},
{
"id": 1363,
"num": 4,
"color": 8,
"special": 0,
"length": 2,
"colorArray": "7333"
},
{
"id": 1364,
"num": 5,
"color": 8,
"special": 0,
"length": 0,
"colorArray": "7333"
},
{
"id": 1365,
"num": 8,
"color": 6,
"special": 0,
"length": 2,
"colorArray": "5050"
},
{
"id": 1366,
"num": 10,
"color": 6,
"special": 0,
"length": 0,
"colorArray": "5050"
}
]
]
}

View File

@ -0,0 +1,6 @@
{
"ver": "1.0.2",
"uuid": "03b61a46-d1ea-4447-b5dc-30b2d6ffdf80",
"importer": "json",
"subMetas": {}
}

View File

@ -5185,7 +5185,7 @@
"ctor": "Float64Array",
"array": [
-40,
0,
10,
0,
0,
0,

View File

@ -5185,7 +5185,7 @@
"ctor": "Float64Array",
"array": [
37.916,
0,
10,
0,
0,
0,
@ -5337,7 +5337,7 @@
"__uuid__": "fb792d6a-0401-4ff6-8a50-c7934b38fecb"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",