Commit 9beace3b authored by 杨一航's avatar 杨一航

add. v.1.0

parent 4520561b
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "endBg",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 6
}
],
"_active": true,
"_components": [
{
"__id__": 18
},
{
"__id__": 19
}
],
"_prefab": {
"__id__": 20
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2560,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
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.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 4
}
],
"_prefab": {
"__id__": 5
},
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2560,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
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__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_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__": 2
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3640d4f7-1ea8-468f-a18b-26ab9bd18276"
},
"fileId": "f4mP4JexZBfJzuP51NycYQ",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "labelBg",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 7
},
{
"__id__": 11
}
],
"_active": true,
"_components": [
{
"__id__": 15
},
{
"__id__": 16
}
],
"_prefab": {
"__id__": 17
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2176,
"height": 485
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
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.Node",
"_name": "labelLoss",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
},
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1064,
"height": 451
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
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__": 7
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d188142c-57dc-4634-8de7-8e487f6ec2bc"
},
"_type": 0,
"_sizeMode": 1,
"_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__": 7
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 18,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3640d4f7-1ea8-468f-a18b-26ab9bd18276"
},
"fileId": "99dWGlFnNApqBsg5+dX+Yk",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "labelWin",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 14
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1070,
"height": 451
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
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__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a6b2490f-93b2-4033-9bab-2d21030a8733"
},
"_type": 0,
"_sizeMode": 1,
"_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__": 11
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 18,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3640d4f7-1ea8-468f-a18b-26ab9bd18276"
},
"fileId": "63LdfM6JVNJJiG6utqFgZF",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "bfd75cec-a666-460c-b3a2-28b3e782be4c"
},
"_type": 0,
"_sizeMode": 1,
"_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__": 6
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 18,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3640d4f7-1ea8-468f-a18b-26ab9bd18276"
},
"fileId": "9etBe2HD1Muqc6GwSELPgV",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3640d4f7-1ea8-468f-a18b-26ab9bd18276"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "3640d4f7-1ea8-468f-a18b-26ab9bd18276",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -16,10 +16,10 @@ export default class BoardCardItem extends cc.Component {
_word: string;
letter: string = '';
set cardData(data: { id: number, rjumpId: number, wJumpId?: number, url: string, word: "string" }) {
set cardData(data: { id: number, rJumpId: number, wJumpId?: number, url: string, word: "string" }) {
this._cardId = data.id;
this._rjumpId = data.rjumpId;
this._rjumpId = data.rJumpId;
this._wjumpId = data.wJumpId;
this._cardUrl = data.url;
this._word = data.word;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -13,7 +13,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
loadingLayerPrefab = null;
@property(cc.Node)
boardBtn = null
@property(cc.Node)
cat = null
@property(cc.Node)
cover = null
......@@ -30,6 +31,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
private _myLastPos: cc.Vec2;
private _otherLastPos: cc.Vec2;
private _loadingDone: boolean = false;
private _redOriginPos: any;
private _blueOriginPos: any;
addPreloadImage() {
......@@ -77,15 +80,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
do {
this.playerId = await this.networkHelper.init("op_16_2", 2);
if (this.playerId === null) {
console.log("onDestroy");
this.log("onDestroy");
this.networkHelper.onDestroy();
}
console.log("this.playerId = " + this.playerId);
this.log("this.playerId = " + this.playerId);
} while (this.playerId === null);
const room = this.networkHelper.room;
if (this.playerId == room.roomInfo.owner) {
console.log("房主");
this.log("房主");
this.isRoomOwner = true;
this.server = new GameServer(2, this.networkHelper);
this.server.jumpList = this.getJumpList();
......@@ -130,76 +133,76 @@ export default class SceneComponent extends MyCocosSceneComponent {
let cardDatas = [
{
id: 1, rJumpId: 2, wJumpId: null, word: "bat", url: "",
id: 0, rJumpId: null, wJumpId: null, word: "bat", url: "",
},
{
id: 2, rJumpId: 3, wJumpId: null, word: "man", url: "",
id: 1, rJumpId: 5, wJumpId: null, word: "man", url: "",
},
{
id: 3, rJumpId: 4, wJumpId: null, word: "pad", url: "",
id: 2, rJumpId: null, wJumpId: null, word: "pad", url: "",
},
{
id: 4, rJumpId: 5, wJumpId: null, word: "dam", url: "",
id: 3, rJumpId: null, wJumpId: null, word: "dam", url: "",
},
{
id: 5, rJumpId: 6, wJumpId: null, word: "map", url: "",
id: 4, rJumpId: null, wJumpId: null, word: "map", url: "",
},
{
id: 6, rJumpId: 7, wJumpId: null, word: "ant", url: "",
id: 5, rJumpId: null, wJumpId: null, word: "ant", url: "",
},
{
id: 7, rJumpId: 8, wJumpId: null, word: "can", url: "",
id: 6, rJumpId: null, wJumpId: null, word: "can", url: "",
},
{
id: 8, rJumpId: 9, wJumpId: null, word: "cam", url: "",
id: 7, rJumpId: 12, wJumpId: null, word: "cam", url: "",
},
{
id: 9, rJumpId: 10, wJumpId: null, word: "mat", url: "",
id: 8, rJumpId: null, wJumpId: null, word: "mat", url: "",
},
{
id: 10, rJumpId: 11, wJumpId: null, word: "cat", url: "",
id: 9, rJumpId: null, wJumpId: null, word: "cat", url: "",
},
{
id: 11, rJumpId: 12, wJumpId: null, word: "fan", url: "",
id: 10, rJumpId: null, wJumpId: null, word: "fan", url: "",
},
{
id: 12, rJumpId: 13, wJumpId: null, word: "tap", url: "",
id: 11, rJumpId: 20, wJumpId: null, word: "tap", url: "",
},
{
id: 13, rJumpId: 14, wJumpId: null, word: "cap", url: "",
id: 12, rJumpId: null, wJumpId: null, word: "cap", url: "",
},
{
id: 14, rJumpId: 15, wJumpId: null, word: "bag", url: "",
id: 13, rJumpId: null, wJumpId: null, word: "bag", url: "",
},
{
id: 15, rJumpId: 16, wJumpId: null, word: "yam", url: "",
id: 14, rJumpId: 18, wJumpId: null, word: "yam", url: "",
},
{
id: 16, rJumpId: 17, wJumpId: null, word: "yak", url: "",
id: 15, rJumpId: null, wJumpId: null, word: "yak", url: "",
},
{
id: 17, rJumpId: 18, wJumpId: null, word: "rat", url: "",
id: 16, rJumpId: null, wJumpId: null, word: "rat", url: "",
},
{
id: 18, rJumpId: 19, wJumpId: null, word: "rag", url: "",
id: 17, rJumpId: null, wJumpId: null, word: "rag", url: "",
},
{
id: 19, rJumpId: 20, wJumpId: null, word: "pan", url: "",
id: 18, rJumpId: null, wJumpId: null, word: "pan", url: "",
},
{
id: 20, rJumpId: 21, wJumpId: null, word: "dad", url: "",
id: 19, rJumpId: 23, wJumpId: null, word: "dad", url: "",
},
{
id: 21, rJumpId: 22, wJumpId: null, word: "jam", url: "",
id: 20, rJumpId: 22, wJumpId: null, word: "jam", url: "",
},
{
id: 22, rJumpId: 23, wJumpId: null, word: "ax", url: "",
id: 21, rJumpId: null, wJumpId: null, word: "ax", url: "",
},
{
id: 23, rJumpId: 24, wJumpId: null, word: "hat", url: "",
id: 22, rJumpId: null, wJumpId: null, word: "hat", url: "",
},
{
id: 24, rJumpId: null, wJumpId: null, word: "map", url: "",
id: 23, rJumpId: null, wJumpId: null, word: "map", url: "",
},
]
......@@ -210,6 +213,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
let com = this._cardList[i].addComponent(BoardCardItem);
com.cardData = data;
}
}
initView() {
this.initBg();
......@@ -233,6 +238,88 @@ export default class SceneComponent extends MyCocosSceneComponent {
initBg() {
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
this.cat.getComponent(dragonBones.ArmatureDisplay).addEventListener(dragonBones.EventObject.COMPLETE, () => {
console.log("ani complite");
this.catAni();
});
this.cat.getChildByName("btn").on("click", () => {
this.catAni();
})
}
catAni() {
let state = this._status.state
if (!this.isMySide) {
this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("normal", 0);
return
}
if (state == -1) {
this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("normal", 0);
} else if (state == 0) {
this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("begin", 0);
} else if (state == 1) {
}
else if (state == 2) {
}
}
async updateStatus(status = null) {
if (!this._loadingDone) return;
let state = this._status.state;
switch (state) {
case -1:
break;
case 0:
if (this.isMySide) {
this.normaltheDice();
await this.showYourTurn();
this.blinkTheDice();
} else {
this.greyDice();
}
this.rollPiece();
break;
case 1:
if (this.isMySide) {
} else {
this.greyDice();
}
this.stopRollPiece();
break;
case 2:
if (this.isMySide) {
} else {
this.greyDice();
}
break;
}
const blueFrame = cc.find("Canvas/road/blueHead/icon");
const redFrame = cc.find("Canvas/road/redHead/icon");
let blinkFrame: cc.Node, stopBlinkFrame: cc.Node;
if (this._status.current == "Red") {
blinkFrame = redFrame;
stopBlinkFrame = blueFrame;
} else {
blinkFrame = blueFrame;
stopBlinkFrame = redFrame;
}
blinkFrame.getComponent(cc.Button).interactable = true;
stopBlinkFrame.getComponent(cc.Button).interactable = false;
}
loadingLayer;
......@@ -290,6 +377,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (!this.isMySide || this._status.state != 0) {
return;
}
this.playLocalAudio("btn");
this.networkHelper.sendFrame({
type: "roll",
uuid: this.myData.uuid,
......@@ -319,6 +407,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
.start();
this.playLocalAudio("grow");
this._cardList.forEach((child: cc.Node, idx, list) => {
cc.tween(child)
.set({ scale: 1 })
......@@ -341,34 +430,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
const startIdx = this._status[this._status.current];
}
showStars(node) {
cc.tween(node)
.delay(0.07)
.call(() => {
const light = cc.instantiate(cc.find("nodes/light"));
light.parent = node.parent;
cc.tween(light)
.set({
x: node.x + RandomInt(200) - 100,
y: node.y + 50,
scale: 0,
})
.by(
1,
{
y: 200 + RandomInt(200) - 100,
scale: 0.7 + 0.3 * Math.random(),
},
{ easing: "cubicOut" }
)
.removeSelf()
.start();
})
.union()
.repeatForever()
.start();
}
async peaceJumpAndSpeak() {
let node = cc.find(`Canvas/road/root/piece${this._status.current}`);
let nowIdx = this._status[this._status.current];
......@@ -409,7 +470,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (!cc.sys.isBrowser && window["courseware"]?.startTest) {
console.log("模拟录音开始 单词:" + word);
this.log("录音开始 单词:" + word);
window["courseware"]?.startTest(word);
} else {
......@@ -437,25 +498,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (typeof res == "string") {
res = JSON.parse(res);
}
console.log("++++++++++++ _coursewareEnd +++++++++++++++");
this.log("++++++++++++ _coursewareEnd +++++++++++++++");
this.log("pronunciation=== " + res.result?.pronunciation);
this._coursewareEnd(res.result?.pronunciation || 0,)
console.log("pronunciation=== " + res.result?.pronunciation);
console.log("333=== " + res.result?.pronunciation);
});
} else {
await asyncDelay(3);
console.log("web 模拟录音评测 结果");
this.log("web 模拟录音评测 结果");
this._coursewareEnd(Math.random() > 0.5 ? 100 : 70)
}
}
async _coursewareEnd(score: number) {
if (score >= 80) {
console.log("====评测通过=====");
// if (this._status.Blue + this._status.step > 4 || this._status.Red + this._status.step > 4) {
// score = 50
// }
if (score >= 70) {
this.log("====评测通过=====");
this.networkHelper.sendFrame({
type: "right",
uuid: this.myData.uuid,
......@@ -463,8 +523,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else {
console.log("====评测不通过=====");
this.log("====评测不通过=====");
this.networkHelper.sendFrame({
type: "wrong",
uuid: this.myData.uuid,
......@@ -475,73 +534,41 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
roundEndCheck() {
this.networkHelper.sendFrame({
type: "stateUpdate",
uuid: this.myData.uuid,
});
}
roundEndCheck(ani?) {
async updateStatus(status = null) {
const blueHead = cc.find("Canvas/road/blueHead");
const redHead = cc.find("Canvas/road/redHead");
if (!this._loadingDone) return;
blueHead.getChildByName("tree").getComponent(cc.ProgressBar).progress = this._status.Blue / (this._cardList.length - 1);
redHead.getChildByName("tree").getComponent(cc.ProgressBar).progress = this._status.Red / (this._cardList.length - 1);
let state = this._status.state;
if (ani) {
switch (state) {
case -1:
break;
case 0:
if (this.isMySide) {
this.normaltheDice();
await this.showYourTurn();
this.blinkTheDice();
} else {
this.greyDice();
}
this.rollPiece();
break;
case 1:
if (this.isMySide) {
} else {
this.greyDice();
}
this.stopRollPiece();
break;
case 2:
if (this.isMySide) {
if (this.isMySide) {
this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("right", 1);
}
} else {
this.greyDice();
}
break;
if (this._status.current == "Red") {
redHead.getChildByName("spine").getComponent(dragonBones.ArmatureDisplay).playAnimation("normal", 1);
} else {
blueHead.getChildByName("spine").getComponent(dragonBones.ArmatureDisplay).playAnimation("normal", 1)
}
} else {
if (this.isMySide) {
this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("wrong", 1);
}
}
const blueFrame = cc.find("Canvas/road/blueHead/icon");
const redFrame = cc.find("Canvas/road/redHead/icon");
let blinkFrame: cc.Node, stopBlinkFrame: cc.Node;
if (this._status.current == "Red") {
blinkFrame = redFrame;
stopBlinkFrame = blueFrame;
} else {
blinkFrame = blueFrame;
stopBlinkFrame = redFrame;
}
blinkFrame.stopAllActions();
cc.tween(blinkFrame)
.set({ opacity: 100 })
.to(1.5, { opacity: 255 }, { easing: "cubicOut" })
.to(1.5, { opacity: 100 }, { easing: "cubicIn" })
.union()
.repeatForever()
.start();
stopBlinkFrame.stopAllActions();
// stopBlinkFrame.opacity = 0;
this.networkHelper.sendFrame({
type: "stateUpdate",
uuid: this.myData.uuid,
});
}
getCurrentPiece() {
if (this._status.current == "Red") {
return cc.find("Canvas/road/root/pieceRed");
......@@ -562,7 +589,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
showYourTurn() {
console.log("=====showYourTurn===========");
this.log("=====showYourTurn===========");
return new Promise((resolve, reject) => {
const yourTurn = cc.find("Canvas/yourturn");
yourTurn.active = true;
......@@ -579,14 +606,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
async pieceJump(node, from, to) {
let offset = 25;
if (this._status.current == "Red") {
offset = -25;
if (!this._redOriginPos) {
this._redOriginPos = node.position;
}
} else {
if (!this._blueOriginPos) {
this._blueOriginPos = node.position;
}
}
return new Promise((resolve) => {
if (from < to) {
let card = this._cardList[from + 1];
cc.tween(node).to(0.2, { position: card.position }).call(() => {
let card = this._cardList[Math.min(from + 1, this._cardList.length - 1)];
cc.tween(node).to(0.2, { x: card.position.x + offset, y: card.position.y }).call(() => {
this.playLocalAudio("piece");
resolve(this.pieceJump(node, from + 1, to));
}).start()
} else {
let word = this._cardList[from + 1].getComponent(BoardCardItem)._word
let word = this._cardList[Math.min(from + 1, this._cardList.length - 1)].getComponent(BoardCardItem)._word
resolve(word);
}
})
......@@ -594,12 +635,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
async fixStep() {
if (this._status.jump) {
this.log("===fix====jump====");
let node = cc.find(`Canvas/road/root/piece${this._status.current}`);
let pos = this._cardList[this._status.jump].position;
let nowStep = this._status[this._status.current]
let offset = this._status.current == "Red" ? -25 : 25;
let pos = this._cardList[nowStep].position;
await asyncTweenTo(
node,
0.7,
{ x: pos.x, y: pos.y },
{ x: pos.x + offset, y: pos.y },
{ easing: "cubicOut" }
);
node.stopAllActions();
......@@ -607,6 +651,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
async pieceGoBack() {
let offset = this._status.current == "Red" ? -25 : 25;
this.playLocalAudio("wrong");
let node = cc.find(`Canvas/road/root/piece${this._status.current}`);
......@@ -615,14 +660,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
pos = this._cardList[this._status.jump].position;
} else {
let Idx = this._status[this._status.current];
pos = this._cardList[Idx].position;
if (Idx >= 0) {
pos = this._cardList[Idx].position;
} else {
pos = offset > 0 ? this._blueOriginPos : this._redOriginPos;
pos.x -= offset;
}
console.log("now idx == " + Idx);
}
await asyncTweenTo(
node,
0.7,
{ x: pos.x, y: pos.y },
{ x: pos.x + offset, y: pos.y },
{ easing: "cubicOut" }
);
node.stopAllActions();
......@@ -655,15 +704,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (this.server) {
this.server.onPlayerJoin({ data: { joinPlayerId: event.playerId } });
}
cc.log("playerJoin" + JSON.stringify(event));
this.log("playerJoin" + JSON.stringify(event, null, 2));
});
this.networkHelper.on("playerLeave", (event) => {
cc.log("playerLeave" + JSON.stringify(event));
cc.find("Canvas/bg/PlayerOffLineLayer").active = true;
cc.find("Canvas/PlayerOffLineLayer").active = true;
this.networkHelper.leaveRoom();
});
this.networkHelper.on("playerOffLine", (event) => {
cc.find("Canvas/bg/PlayerOffLineLayer").active = true;
cc.find("Canvas/PlayerOffLineLayer").active = true;
this.networkHelper.leaveRoom();
this.log("playerOffLine" + JSON.stringify(event));
});
......@@ -677,8 +726,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
console.log("event type " + item.data.type);
console.log("event data" + JSON.stringify(item.data.status));
if (item.data.type == "SERVER_allPlayerInfo") {
console.log(
"SERVER_allPlayerInfo: " + JSON.stringify(item.data.playerData)
this.log(
"SERVER_allPlayerInfo: " + JSON.stringify(item.data.playerData, null, 2)
);
item.data.playerData.forEach((player) => {
if (!this.allPlayerList) {
......@@ -717,10 +766,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else {
this.greyDice();
}
await this.rollTheDice(this._status.step);
console.log("rollTheDice done");
let rollNum = this._status.step - 1 + 3 + (Math.random() > 0.5 ? 0 : 3);
await this.rollTheDice(rollNum);
this.log("rollTheDice done");
await this.peaceJumpAndSpeak();
console.log("peaceJumpAndSpeak done");
this.log("peaceJumpAndSpeak done");
this.roundEndCheck();
}
else if (item.data.type == "SERVER_playerRight") {
......@@ -728,10 +778,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playLocalAudio("right");
this._status = JSON.parse(JSON.stringify(item.data.status));
await this.fixStep();
this.roundEndCheck();
this.roundEndCheck(true);
} else if (item.data.type == "SERVER_playerWrong") {
await this.pieceGoBack();
this._status = JSON.parse(JSON.stringify(item.data.status));
if (this._status.jump) {
await this.fixStep();
} else {
await this.pieceGoBack();
}
this.roundEndCheck();
} else if (item.data.type == "SERVER_playerWin") {
this._status = JSON.parse(JSON.stringify(item.data.status));
......@@ -754,20 +809,22 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
showWin() {
cc.find("Canvas/endBg").active = true;
const bg = cc.find("Canvas/endBg/bg");
cc.tween(bg).to(1, { opacity: 100 }).start();
const loss = cc.find("Canvas/endBg/labelBg/labelLoss");
loss.active = false;
this.playLocalAudio("胜利");
let endRoot = cc.find("Canvas/endRoot")
endRoot.active = true;
endRoot.opacity = 0;
cc.tween(endRoot).to(1, { opacity: 255 }).start();
const win = cc.find("Canvas/endRoot/win");
win.active = true;
this.playLocalAudio("win");
}
showLoss() {
cc.find("Canvas/endBg").active = true;
const bg = cc.find("Canvas/endBg/bg");
cc.tween(bg).to(1, { opacity: 100 }).start();
const win = cc.find("Canvas/endBg/labelBg/labelWin");
win.active = false;
this.playLocalAudio("失败");
let endRoot = cc.find("Canvas/endRoot")
endRoot.active = true;
endRoot.opacity = 0;
cc.tween(endRoot).to(1, { opacity: 255 }).start();
const loss = cc.find("Canvas/endRoot/loss");
loss.active = true;
this.playLocalAudio("loss");
}
loadPlayerHeadImage() {
......
cc.Class({
extends: cc.Component,
properties: {
},
start() {
const BtnExit = cc.find('BtnFrame/BtnExit', this.node);
this.buttonOnClick(BtnExit, () => {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
if (middleLayerComponent.onClickExitBtn) {
middleLayerComponent.onClickExitBtn();
}
} else {
cc.director.getScene().destroy();
cc.audioEngine.stopAll();
if (window.courseware) {
window.courseware.freeAllOcMethod();
}
var bundle = cc.assetManager.bundles.find((obj) => {
return obj.getSceneInfo('debug_shell');
});
if (bundle) {
cc.director.loadScene("debug_shell", null, null, (err, scene) => { });
} else {
cc.director.loadScene("OXFORDCORE", null, null, (err, scene) => { });
}
}
});
const BtnPlayAgain = cc.find('BtnFrame/BtnPlayAgain', this.node);
this.buttonOnClick(BtnPlayAgain, () => {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
if (middleLayerComponent) {
middleLayerComponent.reloadBundle();
}
} else {
const sceneName = cc.director.getScene().name;
cc.director.getScene().destroy();
cc.audioEngine.stopAll();
if (window.courseware) {
window.courseware.freeAllOcMethod();
}
cc.director.loadScene(sceneName, null, null, (err, scene) => { });
}
});
},
buttonOnClick(button, callback, scale = 1.0) {
button.on('click', () => {
if (button['cantClick']) {
return;
}
button['cantClick'] = true;
cc.tween(button)
.to(0.1, { scale: scale * 1.1 })
.to(0.1, { scale: scale })
.call(() => {
button['cantClick'] = false;
callback && callback();
})
.start();
});
}
});
{
"ver": "1.0.8",
"uuid": "72d2fadf-ee6a-43f2-b21a-5a1087fde153",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -86,11 +86,11 @@ export class GameServer {
gameStatus = {
state: 0,// -1:未开始 0 准备阶段 1 roll 2 判定
Red: 0,
Blue: 0,
Red: -1,
Blue: -1,
step: 0,
current: "Blue",
jump: 0,
jump: false,
};
startGame() {
this.networkHelper.sendFrame({
......@@ -157,7 +157,12 @@ export class GameServer {
let nowStep = this.gameStatus[this.gameStatus.current];
let index = Math.floor(Math.random() * this.randomList.length)
let step = this.randomList[index];
step = Math.min(step, this._totalStep - nowStep);
// if (nowStep < 5) {
// step = 3;
// } else {
// step = 1;
// }
step = Math.min(step, this._totalStep - 1 - nowStep);
console.log("random step ===" + step);
this.gameStatus.step = step;
......@@ -172,12 +177,18 @@ export class GameServer {
}
}
else if (data.type == "right") {
let nowStep = this.gameStatus[this.gameStatus.current];
const jump = this.jumpList.find(jump => parseInt(jump.from) == parseInt(data.idx));
let nowStep: number = this.gameStatus[this.gameStatus.current];
console.log("nowStep === " + nowStep);
const jump = this.jumpList.find(jump => parseInt(jump.from) == nowStep + this.gameStatus.step);
this.gameStatus[this.gameStatus.current] = jump ? parseInt(jump.to) : nowStep + this.gameStatus.step;
if (this.gameStatus[this.gameStatus.current] < this._totalStep) {
if (jump) {
console.log("jump=============" + jump);
}
if (this.gameStatus[this.gameStatus.current] < this._totalStep - 1) {
this.gameStatus.step = null;
this.gameStatus.state = 2;
this.gameStatus.jump = !!jump;
this.networkHelper.sendFrame({
type: "SERVER_playerRight",
status: this.gameStatus,
......@@ -194,8 +205,14 @@ export class GameServer {
} else if (data.type == "wrong") {
console.log("data = " + JSON.stringify(data));
let nowStep: number = this.gameStatus[this.gameStatus.current];
console.log("nowStep === " + nowStep);
const jump = this.jumpList.find(jump => parseInt(jump.to) == nowStep + this.gameStatus.step);
this.gameStatus[this.gameStatus.current] = jump ? parseInt(jump.from) : nowStep;
this.gameStatus.step = null;
this.gameStatus.state = 2;
this.gameStatus.jump = !!jump;
this.networkHelper.sendFrame({
type: "SERVER_playerWrong",
status: this.gameStatus,
......
......@@ -12,76 +12,76 @@ export const defaultData = {
cardDatas: [
{
id: 1, rJumpId: null, wJumpId: null, word: "bat", url: "",
id: 0, rJumpId: null, wJumpId: null, word: "bat", url: "",
},
{
id: 2, rJumpId: 6, wJumpId: null, word: "man", url: "",
id: 1, rJumpId: 5, wJumpId: null, word: "man", url: "",
},
{
id: 3, rJumpId: null, wJumpId: null, word: "pad", url: "",
id: 2, rJumpId: null, wJumpId: null, word: "pad", url: "",
},
{
id: 4, rJumpId: null, wJumpId: null, word: "dam", url: "",
id: 3, rJumpId: null, wJumpId: null, word: "dam", url: "",
},
{
id: 5, rJumpId: null, wJumpId: null, word: "map", url: "",
id: 4, rJumpId: null, wJumpId: null, word: "map", url: "",
},
{
id: 6, rJumpId: null, wJumpId: null, word: "ant", url: "",
id: 5, rJumpId: null, wJumpId: null, word: "ant", url: "",
},
{
id: 7, rJumpId: null, wJumpId: null, word: "can", url: "",
id: 6, rJumpId: null, wJumpId: null, word: "can", url: "",
},
{
id: 8, rJumpId: 13, wJumpId: null, word: "cam", url: "",
id: 7, rJumpId: 12, wJumpId: null, word: "cam", url: "",
},
{
id: 9, rJumpId: null, wJumpId: null, word: "mat", url: "",
id: 8, rJumpId: null, wJumpId: null, word: "mat", url: "",
},
{
id: 10, rJumpId: null, wJumpId: null, word: "cat", url: "",
id: 9, rJumpId: null, wJumpId: null, word: "cat", url: "",
},
{
id: 11, rJumpId: null, wJumpId: null, word: "fan", url: "",
id: 10, rJumpId: null, wJumpId: null, word: "fan", url: "",
},
{
id: 12, rJumpId: 21, wJumpId: null, word: "tap", url: "",
id: 11, rJumpId: 19, wJumpId: null, word: "tap", url: "",
},
{
id: 13, rJumpId: null, wJumpId: null, word: "cap", url: "",
id: 12, rJumpId: null, wJumpId: null, word: "cap", url: "",
},
{
id: 14, rJumpId: null, wJumpId: null, word: "bag", url: "",
id: 13, rJumpId: null, wJumpId: null, word: "bag", url: "",
},
{
id: 15, rJumpId: 19, wJumpId: null, word: "yam", url: "",
id: 14, rJumpId: 18, wJumpId: null, word: "yam", url: "",
},
{
id: 16, rJumpId: null, wJumpId: null, word: "yak", url: "",
id: 15, rJumpId: null, wJumpId: null, word: "yak", url: "",
},
{
id: 17, rJumpId: null, wJumpId: null, word: "rat", url: "",
id: 16, rJumpId: null, wJumpId: null, word: "rat", url: "",
},
{
id: 18, rJumpId: null, wJumpId: null, word: "rag", url: "",
id: 17, rJumpId: null, wJumpId: null, word: "rag", url: "",
},
{
id: 19, rJumpId: null, wJumpId: null, word: "pan", url: "",
id: 18, rJumpId: null, wJumpId: null, word: "pan", url: "",
},
{
id: 20, rJumpId: 24, wJumpId: null, word: "dad", url: "",
id: 19, rJumpId: 23, wJumpId: null, word: "dad", url: "",
},
{
id: 21, rJumpId: null, wJumpId: null, word: "jam", url: "",
id: 20, rJumpId: 22, wJumpId: null, word: "jam", url: "",
},
{
id: 22, rJumpId: null, wJumpId: null, word: "ax", url: "",
id: 21, rJumpId: null, wJumpId: null, word: "ax", url: "",
},
{
id: 23, rJumpId: null, wJumpId: null, word: "hat", url: "",
id: 22, rJumpId: null, wJumpId: null, word: "hat", url: "",
},
{
id: 24, rJumpId: null, wJumpId: null, word: "map", url: "",
id: 23, rJumpId: null, wJumpId: null, word: "map", url: "",
},
]
......
{
"ver": "2.3.5",
"uuid": "cad89ca0-36b3-4714-94d2-d9ef3df6b4ba",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 158,
"height": 60,
"platformSettings": {},
"subMetas": {
"BtnExit": {
"ver": "1.0.4",
"uuid": "2b5dd43a-655a-4ac5-8116-f646a0e03ef9",
"rawTextureUuid": "cad89ca0-36b3-4714-94d2-d9ef3df6b4ba",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 158,
"height": 60,
"rawWidth": 158,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "43b4e521-9123-4fb9-8d0f-3fe09b4bc3bd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 684,
"height": 244,
"platformSettings": {},
"subMetas": {
"BtnFrame": {
"ver": "1.0.4",
"uuid": "8cd35174-8a10-4be2-ae94-bb979d92c001",
"rawTextureUuid": "43b4e521-9123-4fb9-8d0f-3fe09b4bc3bd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 684,
"height": 244,
"rawWidth": 684,
"rawHeight": 244,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a78958f5-493f-480c-ab6b-5b144fe67fe8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 158,
"height": 60,
"platformSettings": {},
"subMetas": {
"BtnPlayAgain": {
"ver": "1.0.4",
"uuid": "627f41fc-5bc7-4455-bde4-d8192ec8c1cb",
"rawTextureUuid": "a78958f5-493f-480c-ab6b-5b144fe67fe8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 158,
"height": 60,
"rawWidth": 158,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "75a7e8fc-f054-4b5f-815a-5b1252befbcc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2176,
"height": 485,
"platformSettings": {},
"subMetas": {
"endbg": {
"ver": "1.0.4",
"uuid": "bfd75cec-a666-460c-b3a2-28b3e782be4c",
"rawTextureUuid": "75a7e8fc-f054-4b5f-815a-5b1252befbcc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2176,
"height": 485,
"rawWidth": 2176,
"rawHeight": 485,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "913b6562-93ac-4b3b-9f6e-06235ca3d194",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1064,
"height": 451,
"platformSettings": {},
"subMetas": {
"labelLoss": {
"ver": "1.0.4",
"uuid": "d188142c-57dc-4634-8de7-8e487f6ec2bc",
"rawTextureUuid": "913b6562-93ac-4b3b-9f6e-06235ca3d194",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1064,
"height": 451,
"rawWidth": 1064,
"rawHeight": 451,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8632104b-7c73-4d3e-b5e0-7e8982cb24ed",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1070,
"height": 451,
"platformSettings": {},
"subMetas": {
"labelWin": {
"ver": "1.0.4",
"uuid": "a6b2490f-93b2-4033-9bab-2d21030a8733",
"rawTextureUuid": "8632104b-7c73-4d3e-b5e0-7e8982cb24ed",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1070,
"height": 451,
"rawWidth": 1070,
"rawHeight": 451,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment