Browse Source

比牌动画

master
cristianoxin 5 months ago
parent
commit
69d8db16c4
  1. 1026
      assets/10001/prefab/TeenPattieBiPaiSuccGame.prefab
  2. 2
      assets/10001/res/game/spine/vs.meta
  3. 58
      assets/10001/res/game/spine/vs/vs.atlas
  4. 2
      assets/10001/res/game/spine/vs/vs.atlas.meta
  5. 2
      assets/10001/res/game/spine/vs/vs.json
  6. 2
      assets/10001/res/game/spine/vs/vs.json.meta
  7. BIN
      assets/10001/res/game/spine/vs/vs.png
  8. 8
      assets/10001/res/game/spine/vs/vs.png.meta
  9. 12
      assets/10001/res/game/spine/xuanzhuang.meta
  10. 41
      assets/10001/res/game/spine/xuanzhuang/xuanzhuang.atlas
  11. 12
      assets/10001/res/game/spine/xuanzhuang/xuanzhuang.atlas.meta
  12. 1
      assets/10001/res/game/spine/xuanzhuang/xuanzhuang.json
  13. 11
      assets/10001/res/game/spine/xuanzhuang/xuanzhuang.json.meta
  14. BIN
      assets/10001/res/game/spine/xuanzhuang/xuanzhuang.png
  15. 42
      assets/10001/res/game/spine/xuanzhuang/xuanzhuang.png.meta
  16. 33
      assets/10001/src/game/component/TeenPattieBiPaiSuccGamePanel.ts

1026
assets/10001/prefab/TeenPattieBiPaiSuccGame.prefab

File diff suppressed because it is too large

2
assets/10001/res/game/spine/vs.meta

@ -2,7 +2,7 @@
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "ae3db15a-c648-4492-b39d-3e706d5173ac",
"uuid": "c4020fb9-4ed1-46ec-b1cb-6cde69357f87",
"files": [],
"subMetas": {},
"userData": {

58
assets/10001/res/game/spine/vs/vs.atlas

@ -1,89 +1,47 @@
vs.png
size: 1161, 1031
size: 382, 266
format: RGBA8888
filter: Linear, Linear
repeat: none
dd_4
rotate: false
xy: 1058, 221
xy: 338, 84
size: 42, 42
orig: 50, 50
offset: 4, 4
index: -1
hhdz_S
rotate: false
xy: 886, 60
xy: 203, 2
size: 133, 124
orig: 135, 126
offset: 1, 1
index: -1
hhdz_V
rotate: false
xy: 748, 48
xy: 203, 128
size: 136, 136
orig: 138, 138
offset: 1, 1
index: -1
hhdz_ghei
rotate: false
xy: 2, 191
size: 661, 418
orig: 722, 470
offset: 24, 22
index: -1
hhdz_ghong
rotate: false
xy: 2, 611
size: 664, 418
orig: 722, 470
offset: 25, 22
index: -1
hhdz_guang01
rotate: true
xy: 857, 186
xy: 2, 105
size: 159, 199
orig: 183, 212
offset: 23, 12
index: -1
hhdz_heidi
rotate: true
xy: 1022, 365
size: 664, 137
orig: 675, 140
offset: 1, 2
index: -1
hhdz_heil
rotate: false
xy: 2, 2
size: 744, 187
orig: 744, 232
offset: 0, 22
index: -1
hhdz_hongdi
rotate: true
xy: 857, 347
size: 682, 163
orig: 694, 169
offset: 4, 2
index: -1
hhdz_hongl
rotate: true
xy: 668, 285
size: 744, 187
orig: 746, 234
offset: 1, 23
index: -1
quan
rotate: false
xy: 1058, 265
xy: 2, 5
size: 98, 98
orig: 100, 100
offset: 1, 1
index: -1
xingxing5
rotate: false
xy: 665, 195
rotate: true
xy: 102, 14
size: 89, 88
orig: 100, 104
offset: 1, 11

2
assets/10001/res/game/spine/vs/vs.atlas.meta

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "*",
"imported": true,
"uuid": "b685ebb8-3006-4304-b4a0-4effaf965fd0",
"uuid": "c9feebc6-41d8-4720-a49d-cd8e979f6a30",
"files": [
".atlas",
".json"

2
assets/10001/res/game/spine/vs/vs.json

File diff suppressed because one or more lines are too long

2
assets/10001/res/game/spine/vs/vs.json.meta

@ -2,7 +2,7 @@
"ver": "1.2.6",
"importer": "spine-data",
"imported": true,
"uuid": "cf308ba7-794e-4516-b857-8e3c3fd67df9",
"uuid": "59634e11-0441-42d3-92b1-d14f94df53d3",
"files": [
".json"
],

BIN
assets/10001/res/game/spine/vs/vs.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 78 KiB

8
assets/10001/res/game/spine/vs/vs.png.meta

@ -2,7 +2,7 @@
"ver": "1.0.25",
"importer": "image",
"imported": true,
"uuid": "f2e6eeb4-10e6-48fc-ae33-5dad4c285097",
"uuid": "2f91e32d-e137-43b8-93b8-85d24cf29bba",
"files": [
".json",
".png"
@ -10,7 +10,7 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f2e6eeb4-10e6-48fc-ae33-5dad4c285097@6c48a",
"uuid": "2f91e32d-e137-43b8-93b8-85d24cf29bba@6c48a",
"displayName": "vs",
"id": "6c48a",
"name": "texture",
@ -22,7 +22,7 @@
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "f2e6eeb4-10e6-48fc-ae33-5dad4c285097",
"imageUuidOrDatabaseUri": "2f91e32d-e137-43b8-93b8-85d24cf29bba",
"visible": true
},
"ver": "1.0.22",
@ -37,6 +37,6 @@
"type": "texture",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": true,
"redirect": "f2e6eeb4-10e6-48fc-ae33-5dad4c285097@6c48a"
"redirect": "2f91e32d-e137-43b8-93b8-85d24cf29bba@6c48a"
}
}

12
assets/10001/res/game/spine/xuanzhuang.meta

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "98033410-9bb7-41ee-bc55-5c331b95deb9",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

41
assets/10001/res/game/spine/xuanzhuang/xuanzhuang.atlas

@ -0,0 +1,41 @@
xuanzhuang.png
size: 256,256
format: RGBA8888
filter: Linear,Linear
repeat: none
dd_4
rotate: false
xy: 130, 88
size: 52, 52
orig: 52, 52
offset: 0, 0
index: -1
dd_5
rotate: false
xy: 184, 88
size: 52, 52
orig: 52, 52
offset: 0, 0
index: -1
guangxiao
rotate: false
xy: 130, 142
size: 92, 90
orig: 92, 90
offset: 0, 0
index: -1
qq2
rotate: false
xy: 2, 106
size: 126, 126
orig: 126, 126
offset: 0, 0
index: -1
quan
rotate: false
xy: 2, 2
size: 102, 102
orig: 102, 102
offset: 0, 0
index: -1

12
assets/10001/res/game/spine/xuanzhuang/xuanzhuang.atlas.meta

@ -0,0 +1,12 @@
{
"ver": "1.0.0",
"importer": "*",
"imported": true,
"uuid": "106af57f-7cb3-4f71-9881-97053b786d7b",
"files": [
".atlas",
".json"
],
"subMetas": {},
"userData": {}
}

1
assets/10001/res/game/spine/xuanzhuang/xuanzhuang.json

@ -0,0 +1 @@
{"skeleton":{"hash":"/OjxWd13N4Ml9GCRoVHvH1ZZvKo","spine":"3.6.53","width":118,"height":113,"images":"./images/"},"bones":[{"name":"root"},{"name":"1","parent":"root"},{"name":"dd_4","parent":"1"},{"name":"dd_5","parent":"1"},{"name":"guangxiao","parent":"1"},{"name":"qq2","parent":"root"},{"name":"quan","parent":"root","color":"fff02aff"}],"slots":[{"name":"dd_5","bone":"dd_5"},{"name":"dd_4","bone":"dd_4"},{"name":"guangxiao","bone":"guangxiao","blend":"additive"},{"name":"qq2","bone":"qq2","blend":"additive"},{"name":"quan","bone":"quan","attachment":"quan","blend":"additive"}],"skins":{"default":{"dd_4":{"dd_4":{"width":52,"height":52}},"dd_5":{"dd_5":{"width":52,"height":52}},"guangxiao":{"guangxiao":{"width":92,"height":90}},"qq2":{"qq2":{"width":126,"height":126}},"quan":{"quan":{"width":102,"height":102}}}},"animations":{"light":{"slots":{"dd_4":{"attachment":[{"time":0,"name":"dd_4"}]},"dd_5":{"color":[{"time":0.0667,"color":"ffffffff"},{"time":0.1667,"color":"ffffff00"}],"attachment":[{"time":0,"name":"dd_5"}]},"guangxiao":{"attachment":[{"time":0,"name":"guangxiao"}]},"qq2":{"color":[{"time":0.1667,"color":"ffffffff"},{"time":1,"color":"ffffff49"}],"attachment":[{"time":0,"name":"qq2"}]},"quan":{"color":[{"time":0.1,"color":"ffffffff"},{"time":0.2,"color":"ffffffab"},{"time":0.4667,"color":"ffffffff"},{"time":0.7333,"color":"ffffffab"},{"time":1,"color":"ffffffff"}],"attachment":[{"time":0.1,"name":"quan"}]}},"bones":{"qq2":{"rotate":[{"time":0.1667,"angle":0},{"time":1,"angle":180}],"translate":[{"time":0,"x":3.28,"y":1.64}],"scale":[{"time":0,"x":1,"y":1},{"time":0.1333,"x":1.236,"y":1.236}]},"1":{"scale":[{"time":0,"x":1,"y":1},{"time":0.1667,"x":2.604,"y":2.604}]},"dd_5":{"scale":[{"time":0,"x":1,"y":1},{"time":0.1,"x":3.396,"y":3.396}]},"dd_4":{"scale":[{"time":0.1667,"x":1.905,"y":1.905}]},"quan":{"scale":[{"time":0.1,"x":1,"y":1},{"time":0.2,"x":1.527,"y":1.527},{"time":0.4667,"x":1.165,"y":1.165},{"time":0.7333,"x":1.527,"y":1.527},{"time":1,"x":1.165,"y":1.165}]},"guangxiao":{"rotate":[{"time":0.1667,"angle":0},{"time":1,"angle":180}]}}},"select":{"slots":{"quan":{"attachment":[{"time":0,"name":"quan"}]}},"bones":{"quan":{"scale":[{"time":0,"x":1.17,"y":1.17}]}}}}}

11
assets/10001/res/game/spine/xuanzhuang/xuanzhuang.json.meta

@ -0,0 +1,11 @@
{
"ver": "1.2.6",
"importer": "spine-data",
"imported": true,
"uuid": "ee559dd8-5931-4326-8968-ab221e0c8d6e",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

BIN
assets/10001/res/game/spine/xuanzhuang/xuanzhuang.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

42
assets/10001/res/game/spine/xuanzhuang/xuanzhuang.png.meta

@ -0,0 +1,42 @@
{
"ver": "1.0.25",
"importer": "image",
"imported": true,
"uuid": "21c7350f-98d2-4066-8d50-40573927a29b",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "21c7350f-98d2-4066-8d50-40573927a29b@6c48a",
"displayName": "xuanzhuang",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "21c7350f-98d2-4066-8d50-40573927a29b",
"visible": true
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": true,
"redirect": "21c7350f-98d2-4066-8d50-40573927a29b@6c48a"
}
}

33
assets/10001/src/game/component/TeenPattieBiPaiSuccGamePanel.ts

@ -1,4 +1,4 @@
import { _decorator, Animation, Button, Component, find, Label, Node, sp, Sprite, SpriteFrame } from 'cc';
import { _decorator, Animation, Button, Component, find, Label, Node, sp, Sprite, SpriteFrame, tween, Tween, UITransform, v3 } from 'cc';
import { TeenPattieCommData } from '../TeenPattieCommData';
import { TeenPattiePathTool } from '../../tool/TeenPattiePathTool';
import { TeenPattieCommTool } from '../../tool/TeenPattieCommTool';
@ -11,9 +11,9 @@ const { ccclass, property } = _decorator;
export class TeenPattieBiPaiSuccGamePanel extends Component {
private closeBtn:Button;
//biPai
private biPai: Node;
private content: UITransform;
//胜利方
private biPai_faqi: Node;
private faqi_win: Node;
private biPai_faqi_head: Sprite;
private biPai_faqi_frame: Sprite;
@ -28,6 +28,7 @@ export class TeenPattieBiPaiSuccGamePanel extends Component {
private cardAnim_2:Animation[]=[]
//失败方
private beifaqi_initiated:Node;
private beifaqi_win: Node;
private biPai_beifaqi_head: Sprite;
private biPai_beifaqi_frame: Sprite;
@ -50,20 +51,21 @@ export class TeenPattieBiPaiSuccGamePanel extends Component {
private tid:any
protected onLoad(): void {
this.closeBtn = find("content",this.node)?.getComponent(Button);
this.biPai = find("content/vs", this.node);
this.content = find("content", this.node)?.getComponent(UITransform);
this.vsSkele = find("content/vs", this.node)?.getComponent(sp.Skeleton);
const initiator = find("content/vs/v/Initiator",this.node)
const initiated = find("content/vs/s/Initiated",this.node)
this.beifaqi_initiated = find("content/vs/s/Initiated",this.node)
this.bipai_faqi_cards = find("card", initiator);
this.cardList_1 = [];
for (let i = 0; i < 3; i++) {
this.cardList_1.push(find(`cards/card${(i + 1)}`, this.bipai_faqi_cards)?.getComponent(Sprite))
this.cardAnim_1.push(find(`cards/card${(i + 1)}`, this.bipai_faqi_cards)?.getComponent(Animation))
}
this.faqi_win = find("headNode/mask", initiator);
this.biPai_faqi = find("headNode", initiator);
this.faqi_win = find("headNode/light", initiator);
this.biPai_faqi_head = find("headNode/head", initiator)?.getComponent(Sprite);
this.biPai_faqi_frame = find("headNode/frame", initiator)?.getComponent(Sprite);
this.biPai_faqi_naicName = find("headNode/name", initiator)?.getComponent(Label);
@ -72,14 +74,13 @@ export class TeenPattieBiPaiSuccGamePanel extends Component {
this.cardType_Node_1.active = false;
this.bipai_beifaqi_cards = find("card", initiated);
this.cardList_2 = [];
for (let i = 0; i < 3; i++) {
this.cardList_2.push(find(`cards/card${(i + 1)}`, this.bipai_beifaqi_cards)?.getComponent(Sprite))
this.cardAnim_2.push(find(`cards/card${(i + 1)}`, this.bipai_beifaqi_cards)?.getComponent(Animation))
}
this.beifaqi_win = find("headNode/mask", initiated)
this.beifaqi_win = find("headNode/light", initiated);
this.biPai_beifaqi_head = find("headNode/head", initiated)?.getComponent(Sprite);
this.biPai_beifaqi_frame = find("headNode/frame", initiated)?.getComponent(Sprite);
this.biPai_beifaqi_naicName = find("headNode/name", initiated)?.getComponent(Label);
@ -142,6 +143,7 @@ export class TeenPattieBiPaiSuccGamePanel extends Component {
// this.closeBtn?.node?.off(Node.EventType.TOUCH_END,this.onClickBtn,this);
Message.remove(TeenPattieEventType.Reconnect, this.closeUI, this);
if(this.twe) this.twe.stop();
this.onDesSkeleEvent();
}
@ -367,6 +369,21 @@ export class TeenPattieBiPaiSuccGamePanel extends Component {
private showWinPlayer(){
this.faqi_win.active = this.result.winSeatId == TeenPattieCommData.getInstance().playerData.SeatId;
this.beifaqi_win.active = this.result.winSeatId == TeenPattieCommData.getInstance().beiPlayerData.SeatId;
this.beifaqi_initiated.active = false;
this.vsSkele.enabled = false;
this.tweenEffect();
}
private twe:Tween<Node> = null;
private tweenEffect(){
const pos = v3(this.content.width / 2,this.content.height / 2,0)
let tw = tween(this.biPai_faqi).to(0.1,{worldPosition:pos,scale:v3(1.2,1.2,0)}).to(0.1,{worldPosition:pos,scale:v3(2.5,2.5,0)})
this.twe = tween(this.biPai_faqi).to(0.2,{worldPosition:pos,scale:v3(2.5,2.5,0)})
.repeat(2,tw)
.to(0.2,{worldPosition:pos,scale:v3(2,2,0)})
.call(()=>{
this.twe.stop();
}).start();
}

Loading…
Cancel
Save