修复动画文件
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 68 KiB |
BIN
assets/resources/game/hero/archer/a3/a3-0.png
Normal file
|
After Width: | Height: | Size: 91 KiB |
42
assets/resources/game/hero/archer/a3/a3-0.png.meta
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.26",
|
||||||
|
"importer": "image",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "dd7b6fc9-ffb9-496d-829a-6365f9ec3f3b",
|
||||||
|
"files": [
|
||||||
|
".json",
|
||||||
|
".png"
|
||||||
|
],
|
||||||
|
"subMetas": {
|
||||||
|
"6c48a": {
|
||||||
|
"importer": "texture",
|
||||||
|
"uuid": "dd7b6fc9-ffb9-496d-829a-6365f9ec3f3b@6c48a",
|
||||||
|
"displayName": "a3-0",
|
||||||
|
"id": "6c48a",
|
||||||
|
"name": "texture",
|
||||||
|
"userData": {
|
||||||
|
"wrapModeS": "repeat",
|
||||||
|
"wrapModeT": "repeat",
|
||||||
|
"minfilter": "linear",
|
||||||
|
"magfilter": "linear",
|
||||||
|
"mipfilter": "none",
|
||||||
|
"anisotropy": 0,
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "dd7b6fc9-ffb9-496d-829a-6365f9ec3f3b",
|
||||||
|
"visible": false
|
||||||
|
},
|
||||||
|
"ver": "1.0.22",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"userData": {
|
||||||
|
"hasAlpha": true,
|
||||||
|
"type": "texture",
|
||||||
|
"fixAlphaTransparencyArtifacts": false,
|
||||||
|
"redirect": "dd7b6fc9-ffb9-496d-829a-6365f9ec3f3b@6c48a"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 67 KiB |
@@ -76,51 +76,51 @@
|
|||||||
],
|
],
|
||||||
"_values": [
|
"_values": [
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@5d58e",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@0b063",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@55628",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@f98b1",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@ffb7f",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@4ece0",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@4b666",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@e3f09",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@4dcb3",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@b7085",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@51cbc",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@a0cbd",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@11bc6",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@4925e",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@b2558",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@fe16c",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@d6d4a",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@968f5",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@1b51c",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@eba27",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@d437a",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@0ec63",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@cd5d5",
|
"__uuid__": "f45f8571-9328-4085-b3e8-946b13e74042@ec089",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
"embeddedPlayerGroups": []
|
"embeddedPlayerGroups": []
|
||||||
},
|
},
|
||||||
"_native": "",
|
"_native": "",
|
||||||
"sample": 60,
|
"sample": 24,
|
||||||
"speed": 1,
|
"speed": 1,
|
||||||
"wrapMode": 2,
|
"wrapMode": 2,
|
||||||
"enableTrsBlending": false,
|
"enableTrsBlending": false,
|
||||||
"_duration": 0.3,
|
"_duration": 0.75,
|
||||||
"_hash": 500763545,
|
"_hash": 500763545,
|
||||||
"_tracks": [
|
"_tracks": [
|
||||||
{
|
{
|
||||||
@@ -62,23 +62,23 @@
|
|||||||
"__type__": "cc.ObjectCurve",
|
"__type__": "cc.ObjectCurve",
|
||||||
"_times": [
|
"_times": [
|
||||||
0,
|
0,
|
||||||
0.016666666666666666,
|
0.041666666666666664,
|
||||||
0.03333333333333333,
|
|
||||||
0.05,
|
|
||||||
0.06666666666666667,
|
|
||||||
0.08333333333333333,
|
0.08333333333333333,
|
||||||
0.1,
|
0.125,
|
||||||
0.11666666666666667,
|
|
||||||
0.13333333333333333,
|
|
||||||
0.15,
|
|
||||||
0.16666666666666666,
|
0.16666666666666666,
|
||||||
0.18333333333333332,
|
0.20833333333333334,
|
||||||
0.2,
|
|
||||||
0.21666666666666667,
|
|
||||||
0.23333333333333334,
|
|
||||||
0.25,
|
0.25,
|
||||||
0.26666666666666666,
|
0.2916666666666667,
|
||||||
0.2833333333333333
|
0.3333333333333333,
|
||||||
|
0.375,
|
||||||
|
0.4166666666666667,
|
||||||
|
0.4583333333333333,
|
||||||
|
0.5,
|
||||||
|
0.5416666666666666,
|
||||||
|
0.5833333333333334,
|
||||||
|
0.625,
|
||||||
|
0.6666666666666666,
|
||||||
|
0.7083333333333334
|
||||||
],
|
],
|
||||||
"_values": [
|
"_values": [
|
||||||
{
|
{
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 90 KiB |
@@ -2,7 +2,7 @@
|
|||||||
"ver": "1.0.26",
|
"ver": "1.0.26",
|
||||||
"importer": "image",
|
"importer": "image",
|
||||||
"imported": true,
|
"imported": true,
|
||||||
"uuid": "7296757a-9c70-4b39-a439-a490a4348af3",
|
"uuid": "3358da4d-8c6a-4940-9b7c-e444f487a0d7",
|
||||||
"files": [
|
"files": [
|
||||||
".json",
|
".json",
|
||||||
".png"
|
".png"
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
"subMetas": {
|
"subMetas": {
|
||||||
"6c48a": {
|
"6c48a": {
|
||||||
"importer": "texture",
|
"importer": "texture",
|
||||||
"uuid": "7296757a-9c70-4b39-a439-a490a4348af3@6c48a",
|
"uuid": "3358da4d-8c6a-4940-9b7c-e444f487a0d7@6c48a",
|
||||||
"displayName": "k3",
|
"displayName": "k3",
|
||||||
"id": "6c48a",
|
"id": "6c48a",
|
||||||
"name": "texture",
|
"name": "texture",
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"mipfilter": "none",
|
"mipfilter": "none",
|
||||||
"anisotropy": 0,
|
"anisotropy": 0,
|
||||||
"isUuid": true,
|
"isUuid": true,
|
||||||
"imageUuidOrDatabaseUri": "7296757a-9c70-4b39-a439-a490a4348af3",
|
"imageUuidOrDatabaseUri": "3358da4d-8c6a-4940-9b7c-e444f487a0d7",
|
||||||
"visible": false
|
"visible": false
|
||||||
},
|
},
|
||||||
"ver": "1.0.22",
|
"ver": "1.0.22",
|
||||||
@@ -37,6 +37,6 @@
|
|||||||
"hasAlpha": true,
|
"hasAlpha": true,
|
||||||
"type": "texture",
|
"type": "texture",
|
||||||
"fixAlphaTransparencyArtifacts": false,
|
"fixAlphaTransparencyArtifacts": false,
|
||||||
"redirect": "7296757a-9c70-4b39-a439-a490a4348af3@6c48a"
|
"redirect": "3358da4d-8c6a-4940-9b7c-e444f487a0d7@6c48a"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 70 KiB |
@@ -4,19 +4,21 @@
|
|||||||
|
|
||||||
export const CardList={
|
export const CardList={
|
||||||
1:[
|
1:[
|
||||||
{uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1},
|
|
||||||
|
{uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1},{uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},
|
||||||
|
|
||||||
// {uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},{uuid:9010,type:1},{uuid:9011,type:1},{uuid:9012,type:1},
|
// {uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},{uuid:9010,type:1},{uuid:9011,type:1},{uuid:9012,type:1},
|
||||||
],
|
],
|
||||||
2:[
|
2:[
|
||||||
{uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1},
|
{uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1},{uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},
|
||||||
// {uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},{uuid:9010,type:1},{uuid:9011,type:1},{uuid:9012,type:1},
|
// {uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},{uuid:9010,type:1},{uuid:9011,type:1},{uuid:9012,type:1},
|
||||||
],
|
],
|
||||||
3:[
|
3:[
|
||||||
{uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1},
|
{uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1},{uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},
|
||||||
// {uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},{uuid:9010,type:1},{uuid:9011,type:1},{uuid:9012,type:1},
|
// {uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},{uuid:9010,type:1},{uuid:9011,type:1},{uuid:9012,type:1},
|
||||||
],
|
],
|
||||||
4:[
|
4:[
|
||||||
{uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1},
|
{uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1},{uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},
|
||||||
],
|
],
|
||||||
5:[
|
5:[
|
||||||
{uuid:1001,type:2},{uuid:1002,type:2},{uuid:4011,type:2},{uuid:4012,type:2},
|
{uuid:1001,type:2},{uuid:1002,type:2},{uuid:4011,type:2},{uuid:4012,type:2},
|
||||||
|
|||||||
@@ -7,16 +7,16 @@ export const HeroSet={
|
|||||||
9003:{uuid: 9003,path: "k3",type: 1,level: 1,name: "战士3",atk: 4,hp: 24,atk_dis:40,atk_cd: 2,power: 50,speed: 30,
|
9003:{uuid: 9003,path: "k3",type: 1,level: 1,name: "战士3",atk: 4,hp: 24,atk_dis:40,atk_cd: 2,power: 50,speed: 30,
|
||||||
skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻击型",mon: "蚂蚁"},
|
skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻击型",mon: "蚂蚁"},
|
||||||
9004:{uuid: 9004,path: "m1",type: 1,level: 1,name: "魔法师1",atk: 4,hp: 24,atk_dis:400,atk_cd: 2,power: 50,speed: 30,
|
9004:{uuid: 9004,path: "m1",type: 1,level: 1,name: "魔法师1",atk: 4,hp: 24,atk_dis:400,atk_cd: 2,power: 50,speed: 30,
|
||||||
skill: "base",max_skill: "base2",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻击型",mon: "蚂蚁"},
|
skill: "base2",max_skill: "base2",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻击型",mon: "蚂蚁"},
|
||||||
9005:{uuid: 9005,path: "m2",type: 3,level: 1,name: "魔法师2",atk: 3,hp: 18,atk_dis:400,atk_cd: 1,power: 50,speed: 30,
|
9005:{uuid: 9005,path: "m2",type: 3,level: 1,name: "魔法师2",atk: 3,hp: 18,atk_dis:400,atk_cd: 1,power: 50,speed: 30,
|
||||||
skill: "base",max_skill: "base2",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻速型",mon: "鼠"},
|
skill: "base2",max_skill: "base2",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻速型",mon: "鼠"},
|
||||||
9006:{uuid: 9006,path: "m3",type: 3,level: 1,name: "魔法师3",atk: 3,hp: 18,atk_dis:400,atk_cd: 2,power: 50,speed: 30,
|
9006:{uuid: 9006,path: "m3",type: 3,level: 1,name: "魔法师3",atk: 3,hp: 18,atk_dis:400,atk_cd: 2,power: 50,speed: 30,
|
||||||
skill: "base",max_skill: "base2",skill_uuid: 9001,max_skill_uuid: 1001,word: "守护",info: "自身护盾", atktype: "攻速型",mon: "猫"},
|
skill: "base2",max_skill: "base2",skill_uuid: 9001,max_skill_uuid: 1001,word: "守护",info: "自身护盾", atktype: "攻速型",mon: "猫"},
|
||||||
9007:{uuid: 9007,path: "arc1",type: 3,level: 1,name: "弓箭手1",atk: 3,hp: 18,atk_dis:500,atk_cd: 1,power: 50,speed: 30,
|
9007:{uuid: 9007,path: "arc1",type: 3,level: 1,name: "弓箭手1",atk: 3,hp: 18,atk_dis:500,atk_cd: 1,power: 50,speed: 30,
|
||||||
skill: "base",max_skill: "base3",skill_uuid: 9001,max_skill_uuid: 1001,word: "狂暴",info: "全体攻击", atktype: "攻速型",mon: "松鼠"},
|
skill: "base3",max_skill: "base3",skill_uuid: 9001,max_skill_uuid: 1001,word: "狂暴",info: "全体攻击", atktype: "攻速型",mon: "松鼠"},
|
||||||
9008:{uuid: 9008,path: "arc2",type: 3,level: 2,name: "弓箭手2",atk: 4,hp: 27,atk_dis:500,atk_cd: 1,power: 50,speed: 30,
|
9008:{uuid: 9008,path: "arc2",type: 3,level: 2,name: "弓箭手2",atk: 4,hp: 27,atk_dis:500,atk_cd: 1,power: 50,speed: 30,
|
||||||
skill: "base",max_skill: "base3",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻速型",mon: "机械蜜蜂"},
|
skill: "base3",max_skill: "base3",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻速型",mon: "机械蜜蜂"},
|
||||||
9009:{uuid: 9009,path: "arc3",type: 1,level: 2,name: "弓箭手3",atk: 6,hp: 36,atk_dis:500,atk_cd: 2,power: 50,speed: 30,
|
9009:{uuid: 9009,path: "arc3",type: 1,level: 2,name: "弓箭手3",atk: 6,hp: 36,atk_dis:500,atk_cd: 2,power: 50,speed: 30,
|
||||||
skill: "base",max_skill: "base3",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻击型",mon: "鹰"},
|
skill: "base3",max_skill: "base3",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻击型",mon: "鹰"},
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@ export class HeroSpine extends Component {
|
|||||||
atk_clip: AnimationClip = null!;
|
atk_clip: AnimationClip = null!;
|
||||||
max_clip: AnimationClip = null!;
|
max_clip: AnimationClip = null!;
|
||||||
move_clip: AnimationClip = null!;
|
move_clip: AnimationClip = null!;
|
||||||
default_clip:string = "idle";
|
default_clip:string = "move";
|
||||||
|
|
||||||
onLoad() {
|
onLoad() {
|
||||||
// 角色控制组件
|
// 角色控制组件
|
||||||
@@ -34,7 +34,9 @@ export class HeroSpine extends Component {
|
|||||||
let animation = this.animator.getComponent(Animation);
|
let animation = this.animator.getComponent(Animation);
|
||||||
animation.on(Animation.EventType.FINISHED, this.onAnimationEvent, this)
|
animation.on(Animation.EventType.FINISHED, this.onAnimationEvent, this)
|
||||||
}
|
}
|
||||||
|
protected start(): void {
|
||||||
|
this.move();
|
||||||
|
}
|
||||||
/** 初始化动画 */
|
/** 初始化动画 */
|
||||||
protected initAnimator() {
|
protected initAnimator() {
|
||||||
this.animator=this.node.getChildByName("anm").getComponent(Animation);
|
this.animator=this.node.getChildByName("anm").getComponent(Animation);
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ export class HeroViewComp extends CCComp {
|
|||||||
// this.BoxRang = this.node.getChildByName("range_box");
|
// this.BoxRang = this.node.getChildByName("range_box");
|
||||||
} /** 视图层逻辑代码分离演示 */
|
} /** 视图层逻辑代码分离演示 */
|
||||||
start () {
|
start () {
|
||||||
this.as.idle()
|
this.as.move()
|
||||||
this.sprite = this.node.getChildByName("anm").getComponent(Sprite);
|
this.sprite = this.node.getChildByName("anm").getComponent(Sprite);
|
||||||
// this.node.getChildByName("top").setScale(this.scale,1);
|
// this.node.getChildByName("top").setScale(this.scale,1);
|
||||||
// this.node.getChildByName("atk").setScale(this.scale,1);
|
// this.node.getChildByName("atk").setScale(this.scale,1);
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export class MonSpine extends Component {
|
|||||||
atk_clip: AnimationClip = null!;
|
atk_clip: AnimationClip = null!;
|
||||||
max_clip: AnimationClip = null!;
|
max_clip: AnimationClip = null!;
|
||||||
move_clip: AnimationClip = null!;
|
move_clip: AnimationClip = null!;
|
||||||
default_clip:string = "idle";
|
default_clip:string = "move";
|
||||||
|
|
||||||
onLoad() {
|
onLoad() {
|
||||||
// 角色控制组件
|
// 角色控制组件
|
||||||
|
|||||||