Compare commits
No commits in common. "9396a7d88407296e80b4a235f3c428ff136a31ce" and "e2c6086f1558aab72e5a7c1c4de9c14d0f05b767" have entirely different histories.
9396a7d884
...
e2c6086f15
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB |
@ -1,134 +0,0 @@
|
|||||||
{
|
|
||||||
"ver": "1.0.27",
|
|
||||||
"importer": "image",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "3bc48473-a47d-4954-a541-199b92e1922a",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".png"
|
|
||||||
],
|
|
||||||
"subMetas": {
|
|
||||||
"6c48a": {
|
|
||||||
"importer": "texture",
|
|
||||||
"uuid": "3bc48473-a47d-4954-a541-199b92e1922a@6c48a",
|
|
||||||
"displayName": "graySpinBtn",
|
|
||||||
"id": "6c48a",
|
|
||||||
"name": "texture",
|
|
||||||
"userData": {
|
|
||||||
"wrapModeS": "clamp-to-edge",
|
|
||||||
"wrapModeT": "clamp-to-edge",
|
|
||||||
"imageUuidOrDatabaseUri": "3bc48473-a47d-4954-a541-199b92e1922a",
|
|
||||||
"isUuid": true,
|
|
||||||
"visible": false,
|
|
||||||
"minfilter": "linear",
|
|
||||||
"magfilter": "linear",
|
|
||||||
"mipfilter": "none",
|
|
||||||
"anisotropy": 0
|
|
||||||
},
|
|
||||||
"ver": "1.0.22",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"f9941": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "3bc48473-a47d-4954-a541-199b92e1922a@f9941",
|
|
||||||
"displayName": "graySpinBtn",
|
|
||||||
"id": "f9941",
|
|
||||||
"name": "spriteFrame",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": false,
|
|
||||||
"offsetX": 0,
|
|
||||||
"offsetY": 0,
|
|
||||||
"trimX": 0,
|
|
||||||
"trimY": 0,
|
|
||||||
"width": 223,
|
|
||||||
"height": 223,
|
|
||||||
"rawWidth": 223,
|
|
||||||
"rawHeight": 223,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [
|
|
||||||
-111.5,
|
|
||||||
-111.5,
|
|
||||||
0,
|
|
||||||
111.5,
|
|
||||||
-111.5,
|
|
||||||
0,
|
|
||||||
-111.5,
|
|
||||||
111.5,
|
|
||||||
0,
|
|
||||||
111.5,
|
|
||||||
111.5,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"indexes": [
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
1,
|
|
||||||
3
|
|
||||||
],
|
|
||||||
"uv": [
|
|
||||||
0,
|
|
||||||
223,
|
|
||||||
223,
|
|
||||||
223,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
223,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"nuv": [
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"minPos": [
|
|
||||||
-111.5,
|
|
||||||
-111.5,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"maxPos": [
|
|
||||||
111.5,
|
|
||||||
111.5,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "3bc48473-a47d-4954-a541-199b92e1922a@6c48a",
|
|
||||||
"atlasUuid": ""
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"userData": {
|
|
||||||
"type": "sprite-frame",
|
|
||||||
"hasAlpha": true,
|
|
||||||
"fixAlphaTransparencyArtifacts": false,
|
|
||||||
"redirect": "3bc48473-a47d-4954-a541-199b92e1922a@6c48a"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -2,16 +2,16 @@ info face="Arial" size=10 bold=0 italic=0 charset="" unicode=0 stretchH=100 smoo
|
|||||||
common lineHeight=104 base=10 scaleW=1352 scaleH=104 pages=1 packed=0
|
common lineHeight=104 base=10 scaleW=1352 scaleH=104 pages=1 packed=0
|
||||||
page id=0 file="xz_nb.png"
|
page id=0 file="xz_nb.png"
|
||||||
chars count=13
|
chars count=13
|
||||||
char id=57 x=0 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="9"
|
char id=57 x=0 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="9"
|
||||||
char id=44 x=104 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter=","
|
char id=44 x=104 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter=","
|
||||||
char id=46 x=208 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="."
|
char id=46 x=208 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="."
|
||||||
char id=48 x=312 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="0"
|
char id=48 x=312 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="0"
|
||||||
char id=49 x=416 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="1"
|
char id=49 x=416 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="1"
|
||||||
char id=50 x=520 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="2"
|
char id=50 x=520 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="2"
|
||||||
char id=51 x=624 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="3"
|
char id=51 x=624 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="3"
|
||||||
char id=52 x=728 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="4"
|
char id=52 x=728 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="4"
|
||||||
char id=53 x=832 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="5"
|
char id=53 x=832 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="5"
|
||||||
char id=54 x=936 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="6"
|
char id=54 x=936 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="6"
|
||||||
char id=55 x=1040 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="7"
|
char id=55 x=1040 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="7"
|
||||||
char id=56 x=1144 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="8"
|
char id=56 x=1144 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="8"
|
||||||
char id=32 x=1248 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=68 page=0 chnl=0 page=0 letter="space"
|
char id=32 x=1248 y=0 width=104 height=104 xoffset=0 yoffset=0 xadvance=80 page=0 chnl=0 page=0 letter="space"
|
||||||
@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"44": {
|
"44": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"46": {
|
"46": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -44,7 +44,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"48": {
|
"48": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -55,7 +55,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"49": {
|
"49": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -66,7 +66,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"50": {
|
"50": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -77,7 +77,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"51": {
|
"51": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -88,7 +88,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"52": {
|
"52": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -99,7 +99,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"53": {
|
"53": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -110,7 +110,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"54": {
|
"54": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -121,7 +121,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"55": {
|
"55": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -132,7 +132,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"56": {
|
"56": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -143,7 +143,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
},
|
},
|
||||||
"57": {
|
"57": {
|
||||||
"rect": {
|
"rect": {
|
||||||
@ -154,7 +154,7 @@
|
|||||||
},
|
},
|
||||||
"xOffset": 0,
|
"xOffset": 0,
|
||||||
"yOffset": 0,
|
"yOffset": 0,
|
||||||
"xAdvance": 68
|
"xAdvance": 80
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"kerningDict": {}
|
"kerningDict": {}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -44,7 +44,6 @@ export class SlotBar extends Component {
|
|||||||
private menuBtn: Button = null;
|
private menuBtn: Button = null;
|
||||||
|
|
||||||
spinNode: Node = null;
|
spinNode: Node = null;
|
||||||
grayBtn: Node = null;
|
|
||||||
spinBtn: Button = null;
|
spinBtn: Button = null;
|
||||||
spinAni: SpinAni = null;
|
spinAni: SpinAni = null;
|
||||||
stopAutoBtn: Button = null;
|
stopAutoBtn: Button = null;
|
||||||
@ -88,7 +87,6 @@ export class SlotBar extends Component {
|
|||||||
this.winLabel = Labels.getChildByName('win').getComponent(Label);
|
this.winLabel = Labels.getChildByName('win').getComponent(Label);
|
||||||
|
|
||||||
this.spinNode = this.node.getChildByName('SpinNode');
|
this.spinNode = this.node.getChildByName('SpinNode');
|
||||||
this.grayBtn = this.spinNode.getChildByName('grayBtn');
|
|
||||||
this.spinAni = this.spinNode.getComponent(SpinAni);
|
this.spinAni = this.spinNode.getComponent(SpinAni);
|
||||||
this.spinBtn = this.spinNode.getChildByName('spinBtn').getComponent(Button);
|
this.spinBtn = this.spinNode.getChildByName('spinBtn').getComponent(Button);
|
||||||
this.stopAutoBtn = this.spinNode.getChildByName('BtnStopAuto').getComponent(Button);
|
this.stopAutoBtn = this.spinNode.getChildByName('BtnStopAuto').getComponent(Button);
|
||||||
@ -224,7 +222,7 @@ export class SlotBar extends Component {
|
|||||||
this.hasClickSpin = true;
|
this.hasClickSpin = true;
|
||||||
this.manualStopNode.active = true
|
this.manualStopNode.active = true
|
||||||
this.node.emit(SLOT_BAR_EVENT.ON_SPIN_CLICK);
|
this.node.emit(SLOT_BAR_EVENT.ON_SPIN_CLICK);
|
||||||
this.spinAni.startSpin(this.isFastSpin);
|
this.spinAni.startSpin();
|
||||||
|
|
||||||
this.setBtnEnable(this.subBtn, false);
|
this.setBtnEnable(this.subBtn, false);
|
||||||
this.setBtnEnable(this.addBtn, false);
|
this.setBtnEnable(this.addBtn, false);
|
||||||
@ -671,11 +669,6 @@ export class SlotBar extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setGraySpinBtn(show: boolean) {
|
|
||||||
this.spinBtn.node.active = !show
|
|
||||||
this.grayBtn.active = show
|
|
||||||
}
|
|
||||||
|
|
||||||
setNodeOpacity(node: Node, opacity: number) {
|
setNodeOpacity(node: Node, opacity: number) {
|
||||||
node.getComponent(UIOpacity).opacity = opacity;
|
node.getComponent(UIOpacity).opacity = opacity;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -466,7 +466,6 @@ export class SlotScene extends Component {
|
|||||||
if (this.checkHasEliminate()) {
|
if (this.checkHasEliminate()) {
|
||||||
this.slotGame.deleteIconNode();
|
this.slotGame.deleteIconNode();
|
||||||
this.playElemWinAnimation(true);
|
this.playElemWinAnimation(true);
|
||||||
this.slotBar.setGraySpinBtn(true)
|
|
||||||
} else {
|
} else {
|
||||||
if (this.gameState.isInFreeSpin) {
|
if (this.gameState.isInFreeSpin) {
|
||||||
if (this.gameState.isFirstFreeSpin) {
|
if (this.gameState.isFirstFreeSpin) {
|
||||||
@ -790,8 +789,6 @@ export class SlotScene extends Component {
|
|||||||
this.slotBar.setWin(this.spinData.AllScore);
|
this.slotBar.setWin(this.spinData.AllScore);
|
||||||
callback?.();
|
callback?.();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.slotBar.setGraySpinBtn(false)
|
|
||||||
}, delay)
|
}, delay)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -791,22 +791,22 @@ export class RollerManager extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// changeIconAndFrameType(panChanges: any[]) {
|
// changeIconAndFrameType(panChanges: any[]) {
|
||||||
// let rollerChangePositions: Map<number, any[]> = new Map();
|
// let rollerChangePositions: Map<number, any[]> = new Map();
|
||||||
// panChanges.forEach(change => {
|
// panChanges.forEach(change => {
|
||||||
// let lx = this.getLx(change.oldStartPos);
|
// let lx = this.getLx(change.oldStartPos);
|
||||||
// let ly = this.getLy(change.oldStartPos);
|
// let ly = this.getLy(change.oldStartPos);
|
||||||
// // 获取或创建该列的变化位置数组
|
// // 获取或创建该列的变化位置数组
|
||||||
// if (!rollerChangePositions.has(lx)) {
|
// if (!rollerChangePositions.has(lx)) {
|
||||||
// rollerChangePositions.set(lx, []);
|
// rollerChangePositions.set(lx, []);
|
||||||
// }
|
// }
|
||||||
// // 将oldStartPos改为ly并添加到对应列的数组中
|
// // 将oldStartPos改为ly并添加到对应列的数组中
|
||||||
// change.oldStartPos = ly;
|
// change.oldStartPos = ly;
|
||||||
// rollerChangePositions.get(lx).push(change);
|
// rollerChangePositions.get(lx).push(change);
|
||||||
// })
|
// })
|
||||||
|
|
||||||
// rollerChangePositions.forEach((changes, lx) => {
|
// rollerChangePositions.forEach((changes, lx) => {
|
||||||
// this.allRollers[lx].chanegeIconAndFrameType(changes);
|
// this.allRollers[lx].chanegeIconAndFrameType(changes);
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
@ -829,19 +829,13 @@ export class RollerManager extends Component {
|
|||||||
this._crossSymbols = data.CrossSymbols;
|
this._crossSymbols = data.CrossSymbols;
|
||||||
let processedCrossSymbols = this.processCrossSymbolsForRollers();
|
let processedCrossSymbols = this.processCrossSymbolsForRollers();
|
||||||
|
|
||||||
//从右到左掉落
|
|
||||||
this.allRollers.forEach((roller, index) => {
|
this.allRollers.forEach((roller, index) => {
|
||||||
let idx = this.allRollers.length - index - 1
|
let stopData = this._resultStopData[index];
|
||||||
let roll = this.allRollers[idx]
|
let rollerCrossSymbols = processedCrossSymbols[index];
|
||||||
|
roller.setCrossSymbols(rollerCrossSymbols);
|
||||||
this.scheduleOnce(() => {
|
this.scheduleOnce(() => {
|
||||||
let stopData = this._resultStopData[idx];
|
roller.iconFallDown(stopData, rollerCrossSymbols)
|
||||||
let rollerCrossSymbols = processedCrossSymbols[idx];
|
}, 0.03 * index)
|
||||||
roll.setCrossSymbols(rollerCrossSymbols);
|
|
||||||
this.scheduleOnce(() => {
|
|
||||||
roll.iconFallDown(stopData, rollerCrossSymbols)
|
|
||||||
}, 0.01 * index)
|
|
||||||
}, 0.06 * index)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// 在第一个图标开始掉落时播放音效
|
// 在第一个图标开始掉落时播放音效
|
||||||
|
|||||||
@ -16,10 +16,9 @@ export class SpinAni extends Component {
|
|||||||
this.rotateSpine.setAnimation(0, 'idle', true)
|
this.rotateSpine.setAnimation(0, 'idle', true)
|
||||||
}
|
}
|
||||||
|
|
||||||
public startSpin(isFastSpin: boolean) {
|
public startSpin() {
|
||||||
// this.rotateSpine.timeScale = isFastSpin ? 2 : 1
|
|
||||||
|
|
||||||
this.rotateSpine.setAnimation(0, 'Click', true)
|
this.rotateSpine.setAnimation(0, 'Click', true)
|
||||||
|
// this.rotateSpine.addAnimation(0, 'Unclicked', true)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user