This commit is contained in:
liujiefei
2018-11-08 15:25:15 +08:00
parent 78db924934
commit ab1ed08920
197 changed files with 62955 additions and 1 deletions

Submodule cc_moba deleted from f24bee6f24

61
cc_moba/.gitignore vendored Normal file
View File

@@ -0,0 +1,61 @@
#/////////////////////////////////////////////////////////////////////////////
# Fireball Projects
#/////////////////////////////////////////////////////////////////////////////
library/
temp/
local/
build/
#/////////////////////////////////////////////////////////////////////////////
# Logs and databases
#/////////////////////////////////////////////////////////////////////////////
*.log
*.sql
*.sqlite
#/////////////////////////////////////////////////////////////////////////////
# files for debugger
#/////////////////////////////////////////////////////////////////////////////
*.sln
*.csproj
*.pidb
*.unityproj
*.suo
#/////////////////////////////////////////////////////////////////////////////
# OS generated files
#/////////////////////////////////////////////////////////////////////////////
.DS_Store
ehthumbs.db
Thumbs.db
#/////////////////////////////////////////////////////////////////////////////
# exvim files
#/////////////////////////////////////////////////////////////////////////////
*UnityVS.meta
*.err
*.err.meta
*.exvim
*.exvim.meta
*.vimentry
*.vimentry.meta
*.vimproject
*.vimproject.meta
.vimfiles.*/
.exvim.*/
quick_gen_project_*_autogen.bat
quick_gen_project_*_autogen.bat.meta
quick_gen_project_*_autogen.sh
quick_gen_project_*_autogen.sh.meta
.exvim.app
#/////////////////////////////////////////////////////////////////////////////
# webstorm files
#/////////////////////////////////////////////////////////////////////////////
.idea/

3
cc_moba/README.md Normal file
View File

@@ -0,0 +1,3 @@
cocoscreator 写moba demo
多人pvp
"# xiaoxiao"

5
cc_moba/assets/CODE.meta Normal file
View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "bbe590db-85e2-42dd-be90-d123209ed8e3",
"subMetas": {}
}

18
cc_moba/assets/CODE/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,18 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "启动扩展",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outDir": "${workspaceRoot}/out",
"preLaunchTask": "npm"
}
]
}

View File

@@ -0,0 +1,9 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "echo",
"isShellCommand": true,
"args": ["Hello World"],
"showOutput": "always"
}

View File

@@ -0,0 +1,23 @@
cc.Class {
extends: cc.Component
properties: {
# foo:
# default: null
# type: cc
# serializable: true # [optional], default is true
# visible: true # [optional], default is true
# displayName: 'Foo' # [optional], default is property name
# readonly: false # [optional], default is false
heronode:
default:null
type:cc.Node
}
idle:() ->
#this.heronode.getComponent("global")?.idle()
update: (dt) ->
# do your update here
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "bd628cbc-3e58-422b-8049-6333249a6236",
"subMetas": {}
}

View File

@@ -0,0 +1,22 @@
cc.Class {
extends: cc.Component
properties: {
# foo:
# default: null
# type: cc
# serializable: true # [optional], default is true
# visible: true # [optional], default is true
# displayName: 'Foo' # [optional], default is property name
# readonly: false # [optional], default is false
heronode:
default:null
type:cc.Node
}
idle:() ->
#this.heronode.getComponent("monster")?.idle()
update: (dt) ->
# do your update here
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "7f887797-0ffb-4750-bbef-662c9b231763",
"subMetas": {}
}

View File

@@ -0,0 +1,67 @@
cc.Class({
extends: cc.Component,
// test git
properties: {
},
// use this for initialization
onLoad: function () {
let self = this
this.swallowTouches = true
this.node.on('mouseleave', function(event){
var itemdesc = cc.find("hpdesc")
itemdesc.active = false
})
this.node.on('mousemove', function(event){
var itemdesc = cc.find("hpdesc")
itemdesc.x = 200
itemdesc.y = this.y + this.parent.y -30
itemdesc.active = true
if(this.name == "hit")
{
itemdesc.getChildByName("desc").getComponent("cc.Label").string = "攻击"
}
else if(this.name == "defsprite")
{
itemdesc.getChildByName("desc").getComponent("cc.Label").string = "护甲"
}
else
{
itemdesc.getChildByName("desc").getComponent("cc.Label").string = "生命"
}
})
// self.node.on(cc.Node.EventType.TOUCH_START, function(event){
// var x = event.getLocation().x - self.map.x
// var y = event.getLocation().y- self.map.y
// var json1 = {"type":"move", "x":x, "y":y}
// self.socket.getComponent("socket_l").sendmsg(JSON.stringify(json1))
// })
},
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// if(this.down == false) return
// var node = this.pressnode
// if(node == null) return
// },
});

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "9ba26ccc-0880-4b30-8086-e4512d383dab",
"subMetas": {}
}

View File

@@ -0,0 +1,111 @@
cc.Class({
extends: cc.Component,
properties: {
map: {
default:null,
type: cc.Node,
},
socket: {
default:null,
type: cc.Node,
},
equip: {
default:null,
type: cc.Node,
}
},
// use this for initialization
onLoad: function () {
let self = this
var equips = cc.find("equips")
self.node.on('mouseup', function(event){
console.log("event.getButton() is " + event.getButton())
if(event.getButton() == cc.Event.EventMouse.BUTTON_RIGHT){
var x = event.getLocation().x - self.map.x
var y = event.getLocation().y - self.map.y
var dot = self.map.getChildByName("pass_dot")
dot.stopAllActions()
dot.x = x
dot.y = y
var action1 = cc.fadeIn(0.1);
var action2 = cc.scaleTo(0.2, 1, 1);
var action3 = cc.scaleTo(0.2, 0.4, 0.4);
var action4 = cc.scaleTo(0.2, 0.7, 0.7);
var action5 = cc.fadeOut(1);
var seq1 = cc.sequence(action1, action2, action3, action4, action5);
dot.runAction(seq1)
var json1 = {"type":"move", "x":x, "y":y}
self.socket.getComponent("socket_l").sendmsg(JSON.stringify(json1))
cc.find("herodesc").active = false
}
})
self.node.on('mousemove', function(event){
if (self.equip != null)
{
self.equip.x = event.getLocation().x - equips.x
self.equip.y = event.getLocation().y - equips.y
}
})
var sypress = false
var listener = {
event: cc.EventListener.KEYBOARD,
onKeyPressed: function (keyCode, event) {
if(sypress == true) return
sypress = true
if(keyCode == 83)
{
var json1 = {"type":"move", "x":-1, "y":-1}
self.socket.getComponent("socket_l").sendmsg(JSON.stringify(json1))
}
else if(keyCode == 32)
{
var json1 = {"type":"move", "x":-2, "y":-2}
self.socket.getComponent("socket_l").sendmsg(JSON.stringify(json1))
}
},
onKeyReleased: function (keyCode, event) {
sypress = false
if(keyCode == 83)
{
}
else if(keyCode == 32)
{
var json1 = {"type":"move", "x":-2, "y":-3}
self.socket.getComponent("socket_l").sendmsg(JSON.stringify(json1))
}
}
}
// 绑定键盘事件
cc.eventManager.addListener(listener, this.node);
self.node.on(cc.Node.EventType.TOUCH_START, function(event){
// var x = event.getLocation().x - self.map.x
// var y = event.getLocation().y- self.map.y
// var json1 = {"type":"move", "x":x, "y":y}
// self.socket.getComponent("socket_l").sendmsg(JSON.stringify(json1))
})
},
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "b1420945-f5d1-4e84-be07-cf2d0a1ef60f",
"subMetas": {}
}

View File

@@ -0,0 +1,321 @@
cc.Class({
extends: cc.Component,
properties: {
map:{
default:null,
type:cc.Node,
},
itemlist: {
default:null,
type: cc.Node,
},
socket: {
default:null,
type: cc.Node,
},
uid:0,
gid:0,
maptype:"equip",
hp:0,
attr:0,
def:0,
min:0,
str:0,
xixue:0,
baoji:0,
shanbi:0,
yisu:0,
gongsu:0,
desc:"",
equipname:"",
lv:1
},
getequiphold: function (x, y) {
var equips = cc.find("equips")
var children = equips.getChildren()
var lengthbase = 75
var node = null
x = x - equips.x
y = y - equips.y
for(var k = 0; k < children.length; k ++)
{
var equiphold = children[k]
if(equiphold.getChildren().length >1) continue
var length = Math.sqrt((x-equiphold.x)*(x-equiphold.x) + (y-equiphold.y)*(y-equiphold.y))
console.log("length is " + length)
if (length < lengthbase)
{
node = equiphold
lengthbase = length
}
}
return node
},
setdesc: function (itemdesc) {
var name = itemdesc.getChildByName("namelabel")
var shuxing = itemdesc.getChildByName("shuxing")
var desc = itemdesc.getChildByName("desc")
name.getComponent("cc.Label").string = this.equipname + "(" + this.lv + ")"
desc.getComponent("cc.Label").string = this.desc+" "
var str = ""
// hp:0,
// attr:0,
// def:0,
// min:0,
// str:0,
// xixue:0,
// baoji:0,
// shanbi:0,
// yisu:0,
// gongsu:0,
// desc:"",
// equipname:"",
// lv:1
this.hp !== 0 ?str=str+"增加" +this.hp+"点生命\n":str=str
this.attr !== 0 ?str=str+"增加" +this.attr+"攻击\n":str=str
this.def !== 0 ?str=str+"增加" +this.def+"护甲\n":str=str
this.min !== 0 ?str=str+"增加" +this.min+"敏捷\n":str=str
this.str !== 0 ?str=str+"增加" +this.str+"力量\n":str=str
this.xixue !== 0 ?str=str+"增加" +this.xixue+"吸血\n":str=str
this.baoji !== 0 ?str=str+"增加" +this.baoji+"暴击\n":str=str
this.shanbi !== 0 ?str=str+"增加" +this.shanbi+"闪避\n":str=str
this.yisu !== 0 ?str=str+"增加" +this.yisu+"移动速度\n":str=str
this.gongsu !== 0 ?str=str+"增加" +this.gongsu+"攻击速度\n":str=str
shuxing.getComponent("cc.Label").string = str
desc.y = shuxing.y - shuxing.height
},
// use this for initialization
onLoad: function () {
let self = this
self.swallowTouches = true
this.equipname = ""
this.map = cc.find("map4")
this.socket = this.map.getChildByName("web")
var control = cc.find("Canvas").getComponent("control")
this.node.on('mouseup', function(event){
if(event.getButton() != cc.Event.EventMouse.BUTTON_RIGHT) return
if(this.down == false) return
this.down = false
control.equip = null
var map = cc.find("map4")
this.parent = map.getChildByName("itemlist")
var node = self.getequiphold(event.getLocation().x, event.getLocation().y)
if(node == null)
{
console.log("add to map")
var json1 = {"type":"equip", "x":event.getLocation().x- map.x, "y":event.getLocation().y- map.y, "action":"off", "id":self.gid}
self.socket.getComponent("socket_l").sendmsg(JSON.stringify(json1))
// var map = cc.find("map4")
// this.parent = map.getChildByName("itemlist")
// this.x = event.getLocation().x - map.x
// this.y = event.getLocation().y - map.y
// this.runAction(cc.scaleTo(0.1, 0.5,0.5))
// this.maptype = "item"
}
else
{
console.log("add to equip")
var json1 = {"id":self.gid, "type":"equip", "x":event.getLocation().x, "y":event.getLocation().y, "action":"on"}
console.log("json1 is " + json1)
self.socket.getComponent("socket_l").sendmsg(JSON.stringify(json1))
// this.parent = node
// this.x = 0
// this.y = 0
// this.runAction(cc.scaleTo(0.1, 1,1))
// this.maptype = "equip"
// var map = cc.find("map4")
// var uid = map.getComponent("map").get_main_hero_id()
// var node = map.getComponent("map").get_role_by_id(uid)
// node.getComponent("global").addequip(self.uid)
}
})
this.node.on('mouseleave', function(event){
if(this.down == true)
{
//this.down = false
// this.parent = null
var node = self.getequiphold(event.getLocation().x, event.getLocation().y)
var equips = cc.find("equips")
self.x = event.getLocation().x - equips.x
self.y = event.getLocation().y - equips.y
if(node == null)
{
// console.log("add to map")
// var map = cc.find("map4")
// this.parent = map.getChildByName("itemlist")
// this.x = event.getLocation().x - map.x
// this.y = event.getLocation().y - map.y
// this.runAction(cc.scaleTo(0.1, 0.5,0.5))
// this.maptype = "item"
}
else
{
// this.parent = node
// this.x = 0
// this.y = 0
// this.runAction(cc.scaleTo(0.1, 1,1))
// this.maptype = "equip"
}
}
else
{
var itemdesc = cc.find("itemdesc")
itemdesc.active = false
}
})
this.node.on('mousedown', function(event){
if(event.getButton() != cc.Event.EventMouse.BUTTON_RIGHT) return
console.log("maptype is " + this.maptype)
var equips = cc.find("equips")
this.parent = null
this.parent = equips
this.x = event.getLocation().x - equips.x
this.y = event.getLocation().y - equips.y
this.down = true
control.equip = this
this.runAction(cc.scaleTo(0.1, 0.8,0.8))
// if (this.maptype == "item")
// {
// this.down = true
// this.xd = event.getLocation().x - this.x
// this.xy = event.getLocation().y - this.y
// this.runAction(cc.scaleTo(0.1, 0.8,0.8))
// }
// else
// {
// this.down = true
// var lx = event.getLocation().x - this.parent.x - this.parent.parent.x
// var ly = event.getLocation().y - this.parent.y - this.parent.parent.y
// this.xd = lx
// this.yd = ly
// // var x = event.getLocation().x - self.map.x
// // var y = event.getLocation().y - self.map.y
// this.runAction(cc.scaleTo(0.1, 0.8,0.8))
// }
})
this.node.on('mousemove', function(event){
var equips = cc.find("equips")
if (this.down == true)
{
this.x = event.getLocation().x - equips.x
this.y = event.getLocation().y - equips.y
// if (this.maptype == "item")
// {
// var map = cc.find("map4")
// this.parent = map.getChildByName("itemlist")
// this.x = event.getLocation().x - map.x
// this.y = event.getLocation().y - map.y
// }
// else
// {
// var lx = event.getLocation().x
// var ly = event.getLocation().y
// this.x = lx - this.parent.x - this.parent.parent.x - this.xd
// this.y = ly - this.parent.y - this.parent.parent.y - this.yd
// }
}
else{
var itemdesc = cc.find("itemdesc")
self.setdesc(itemdesc)
itemdesc.x = this.x + this.parent.x + this.parent.parent.x + 75
//itemdesc.y = this.y + this.parent.y + this.parent.parent.y
itemdesc.active = true
}
})
// self.node.on(cc.Node.EventType.TOUCH_START, function(event){
// var x = event.getLocation().x - self.map.x
// var y = event.getLocation().y- self.map.y
// var json1 = {"type":"move", "x":x, "y":y}
// self.socket.getComponent("socket_l").sendmsg(JSON.stringify(json1))
// })
},
setattr: function (uid) {
uid = parseInt(uid)
var confmod = require("equipconf")
var equipconf = confmod[uid]
console.log(equipconf)
for (var prop in equipconf )
{
this[prop] = equipconf[prop]
}
// if (uid.indexOf("204") != -1)
// {
// this.min = 16,
// this.gongsu = 15,
// this.yisu = 10,
// this.equipname = "单刀"
// this.desc = "性价比:NO.1"
// }
// else if(uid.indexOf("143")!= -1)
// {
// this.yisu = 50,
// this.equipname = "耐克"
// this.desc = "酱油的神装"
// }
// else if(uid.indexOf("191")!= -1)
// {
// this.yisu = 55,
// this.attr = 24,
// this.equipname = "相位鞋"
// this.desc = "高手才懂"
// }
// else if(uid.indexOf("197")!= -1)
// {
// this.xixue = 17,
// this.equipname = "疯脸"
// this.desc = "发起了疯了队友也杀"
// }
},
// called every frame, uncomment this function to activate update callback
update: function (dt) {
if(this.equipname == "")
{
this.setattr(this.uid)
}
},
});

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "d5ceb6ea-55e2-44e7-b978-d95ec1c7a2b7",
"subMetas": {}
}

View File

@@ -0,0 +1,36 @@
var conf =
{
"204":
{
"min" : 16,
"gongsu":15,
"yisu":10,
"equipname":"单刀",
"desc":"性价比:NO.1"
},
"143":
{
"yisu":50,
"equipname":"耐克",
"desc":"酱油的神装"
},
"191":
{
"yisu" : 55,
"attr" : 24,
"equipname" : "相位鞋",
"desc" : "高手才懂"
},
"197":
{
"xixue" : 17,
"equipname" : "疯脸",
"desc" : "发起了疯了队友也杀"
},
};
module.exports = conf;

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "c15e92a9-7090-4cfa-8e49-d09d8447c4b7",
"subMetas": {}
}

View File

@@ -0,0 +1,424 @@
cc.Class {
extends: cc.Component
properties: {
# foo:
# default: null
# type: cc
# serializable: true # [optional], default is true
# visible: true # [optional], default is true
# displayName: 'Foo' # [optional], default is property name
# readonly: false # [optional], default is false
actiontype : "1"
actionstatus: null
direct : "1"
speed : 0.5
arf:0
hittarget :null
oldaction:null
uid:0
lasttime:0
namestr:""
hittick: 0
socket:
default:null,
type: cc.Node,
smallpoint:
default:null,
type: cc.Node,
map:
default:null,
type: cc.Node,
hurtlabel:
default:null,
type: cc.Node,
namelabel:
default:null,
type: cc.Node,
actornode:
default:null,
type: cc.Node,
hpbar:
default:null
type:cc.Node
attrba:
default:null
type:cc.Node
expbar:
default:null
type:cc.Node
lvlab:
default:null
type:cc.Node
cy1:
default:null
type:cc.Node
hp:606
hpmax:606
attackvalue:61
def:0
lookrange:300
str:24
min:9
exp:0
lv:1
scale : 0.7
equips:[]
}
addequip:(equip) ->
this.equips.push(equip)
this.resetattr()
this.setattr()
offequip:(equip) ->
for i in [0..this.equips.length - 1]
if this.equips[i].gid == equip
this.equips.splice(i, 1)
this.resetattr()
this.setattr()
return true
return false
addexp:(exp) ->
this.exp= this.exp + exp
upexp = 100 * (this.lv+1)
if this.exp >= upexp
this.lv = this.lv + 1
console.log("this.lv is " + this.lv)
this.lvlab.getComponent("cc.Label").string = ""+this.lv
expadd = this.exp - upexp
this.exp = 0
this.resetattr()
this.setattr()
this.addexp(expadd)
else
this.expbar.getComponent("cc.ProgressBar").progress = this.exp/upexp
addequipattr:(conf) ->
console.log(conf)
for k, v of conf
console.log(k + this[k])
if this[k] != undefined
this[k] = this[k] + v
resetattr:() ->
this.min = 0
conf = require("equipconf")
console.log(this.equips)
this.addequipattr conf[parseInt(k.uid)] for k in this.equips
lv = this.lv-1
#/* 0:力1:敏2:智3:攻4:防5:血6:蓝7:移8:主属9:力成10:敏成11:智成 */
#var this_hero = ["24","9","14","61-67","0.26","606","182","285","0","3","0.9","1.6"];
this.str = 24+lv*3
this.min = parseInt(9+lv*0.9) + this.min
this.attackvalue = 61 + lv*3
hpcut = this.hpmax - this.hp
this.hpmax = 150+this.str*19
this.hp = this.hpmax - hpcut
this.def = parseInt(this.min/7)
console.log("this.min is " + this.min + " this.def is " + this.def)
setattr:() ->
this.hpbar.getComponent("cc.ProgressBar").progress = this.hp/this.hpmax
if this.uid == this.map.getComponent("map").uid
this.attrba.getComponent("setattr").setattack(this.attackvalue)
this.attrba.getComponent("setattr").setdef(this.def)
this.attrba.getComponent("setattr").sethp(this.hp)
this.attrba.getComponent("setattr").setstrong(this.str)
this.attrba.getComponent("setattr").setminjie(this.min)
getkillexp:(lv) ->
if lv > 4
return 100*(lv-2)
if lv == 1
return 100
if lv == 2
return 120
if lv == 3
return 160
if lv == 4
return 220
attack:() ->
console.log("start attck")
if cc.isValid(this.hittarget) == false
this.idle()
return
if this.hittarget.getComponent("global")
iskill = this.hittarget.getComponent("global").attacked(this.attackvalue)
if iskill == true
lv = this.hittarget.getComponent("global").lv
expadd = this.getkillexp(lv)
this.addexp(expadd)
cc.find("rank").getComponent("rank").addscore(this.uid, this.name, lv)
console.log("set idle")
this.hittick = 0
this.idle()
else
iskill = this.hittarget.getComponent("monster").attacked(this.attackvalue)
if iskill == true
expadd = 70
this.addexp(expadd)
console.log("set idle")
this.hittick = 0
this.idle()
attacked: (attvalue) ->
defminus = this.def * (0.06 /(1+0.06 * this.def))
attvalue = attvalue + Math.floor(Math.seededRandom()*5) - 9
attvalue = Math.round(attvalue*(1-defminus))
this.hp = this.hp - attvalue
#this.hurtlabel.active = true
hurtlab = cc.instantiate(this.hurtlabel)
hurtlab.parent = this.node
hurtlab.Opacity = 255
hurtlab.setPosition(0, 50)
hurtlab.runAction(cc.fadeIn(0.01))
hurtlab.getComponent("cc.Label").string = "-"+attvalue
if this.uid == this.map.getComponent("map").uid
hurtlab.color = cc.color(255,0,0)
hurtlab.scaleX = 0.5
hurtlab.scaleY = 0.5
action1 = cc.moveTo(0.6, 0, 100);
action2 = cc.scaleTo(0.1, 1.3, 1.3);
action3 = cc.scaleTo(0.1, 1.0, 1.0);
action4 = cc.fadeOut(0.2);
action5 = cc.scaleTo(0.3, 0.5, 0.5)
removefun = ()->
hurtlab.destroy()
finished = cc.callFunc(removefun ,this, hurtlab);
seq1 = cc.sequence(action2, action3, action5);
seq2 = cc.sequence(action1, finished)
seq3 = cc.sequence(cc.delayTime(0.3), action4);
hurtlab.runAction(seq1)
hurtlab.runAction(seq2)
hurtlab.runAction(seq3)
if this.hp <= 0
return true
else
this.setattr()
return false
changedir: (x, y) ->
difx = x-this.node.x;
dify = y-this.node.y;
tan= dify/difx;
tan30 = 0.57735
tan60 = 1.73205
scale = this.scale
this.actornode.scaleY = scale
if difx>0 and dify >0
if tan < tan30
this.direct = "3"
this.actornode.scaleX = -scale
else if tan > tan60
this.direct = "5"
this.actornode.scaleX = -scale
else
this.direct = "4"
this.actornode.scaleX = -scale
else if difx>0 and dify <0
tan = -dify/difx
if tan < tan30
this.direct = "3"
this.actornode.scaleX = -scale
else if tan > tan60
this.direct = "1"
this.actornode.scaleX = -scale
else
this.direct = "2"
this.actornode.scaleX = -scale
else if difx<0 and dify>0
tan = -dify/difx;
if tan < tan30
this.direct = "3"
this.actornode.scaleX = scale;
else if tan >tan60
this.direct = "5"
this.actornode.scaleX = scale ;
else
this.direct = "4"
this.actornode.scaleX = scale;
else if difx<0 and dify <0
tan = dify/difx;
if tan < tan30
this.direct = "3"
this.actornode.scaleX = scale;
else if tan >tan60
this.direct = "1"
this.actornode.scaleX = scale ;
else
this.direct = "2"
this.actornode.scaleX = scale;
this.arf =Math.abs(Math.atan(dify/difx));
changeTarget: (x, y) ->
this.changedir(x, y)
this.targetx = x;
this.targety = y;
this.run()
doaction: () ->
action = "xiao"+this.actiontype+this.direct
if this.oldaction == action
#console.log("this. hittick is " + this.hittick + "this.actiontype is " + this.actiontype)
if this.actiontype == "2"
this.hittick=this.hittick+1
if this.hittick == 12
this.attack()
else if this.hittick >= 16
this.idle()
else
this.hittick=0
return
else if this.actiontype == "2" and this.hittick > 4
this.hittick = this.hittick + 1
if this.hittick == 12
this.attack()
else if this.hittick >= 16
this.idle()
return
this.hittick=0
this.actionstatus = this.actornode?.getComponent("cc.Animation").play(action)
this.actionstatus.speed = this.map.getComponent("map").animationspeed
this.oldaction = action
hit:() ->
this.changedir(this.hittarget.x, this.hittarget.y)
this.actiontype = "2"
this.doaction()
idle:() ->
this.buffer = null
this.cy1.active = false
this.actiontype = "1"
this.doaction()
#animState.repeatCount = Infinity
run:() ->
this.actiontype = "3"
this.doaction()
setdesc: () ->
itemdesc = cc.find("herodesc")
itemdesc.active = true
#itemdesc.x = 300
name = itemdesc.getChildByName("namelabel")
shuxing = itemdesc.getChildByName("shuxing")
desc = itemdesc.getChildByName("desc")
name.getComponent("cc.Label").string = this.namestr + "(" + this.lv + "lv)"
#desc.getComponent("cc.Label").string = this.desc+" "
str = ""
if this.hp != undefined then str=str+this.hp+"点生命\n"
if this.attr != undefined then str=str+this.attr+"攻击\n"
if this.def != undefined then str=str+this.def+"护甲\n"
if this.min != undefined then str=str+this.min+"敏捷\n"
if this.str != undefined then str=str+this.str+"力量\n"
if this.xixue != undefined then str=str+this.xixue+"吸血\n"
if this.baoji != undefined then str=str+this.baoji+"暴击\n"
if this.shanbi != undefined then str=str+this.shanbi+"闪避\n"
if this.yisu != undefined then str=str+this.yisu+"移动速度\n"
if this.gongsu != undefined then str=str+this.gongsu+"攻击速度\n"
shuxing.getComponent("cc.Label").string = str
#desc.y = shuxing.y - shuxing.height
initsmallpoint:() ->
oldparent = this.smallpoint.parent
this.smallpoint1 = cc.instantiate(this.smallpoint)
this.smallpoint1.parent = oldparent
this.smallpoint1.x = this.node.x / 20
this.smallpoint1.y = this.node.y / 20
if this.uid == this.map.getComponent("map").uid
else
this.smallpoint1.color = cc.color(255,0,0)
onLoad:() ->
require("random")
self = this
this.node.on('mousedown',
(event) ->
if event.getButton() == cc.Event.EventMouse.BUTTON_LEFT
self.setdesc()
)
this.actornode = this.node.getChildByName("actornode");
this.namelabel = this.node.getChildByName("heroname");
# this.hurtlabel = this.node.getChildByName("hurt");
this.lv=1
this.resetattr()
this.setattr()
setname:(name) ->
this.namestr = name
this.namelabel.getComponent("cc.Label").string = name
update_move: () ->
speed = this.speed*6
if this.buffer == "cs1"
if this.hp >10
this.hp=this.hp-1-parseInt(this.hp * 0.01)
this.setattr()
speed = speed * 3
if this.actiontype isnt "3"
return
if Math.abs(this.targetx - this.node.x) < 8 and Math.abs(this.targety - this.node.y)<8
this.idle()
return
if this.targetx > this.node.x
this.node.x = this.node.x + speed*Math.cos(this.arf);
else
this.node.x = this.node.x - speed*Math.cos(this.arf);
if this.targety > this.node.y
this.node.y = this.node.y + speed*Math.sin(this.arf);
else
this.node.y = this.node.y - speed*Math.sin(this.arf);
this.setname(this.namestr)
if this.smallpoint1
this.smallpoint1.x = this.node.x / 20 - 6
this.smallpoint1.y = this.node.y / 20 -4
else
this.initsmallpoint()
update: (dt) ->
this.actionstatus?.speed = this.map.getComponent("map").animationspeed * 1.5
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "b6a7daef-cfc7-40f4-a462-a1e56d16f5da",
"subMetas": {}
}

View File

@@ -0,0 +1,273 @@
cc.Class({
extends: cc.Component,
properties: {
map:{
default:null,
type:cc.Node,
},
itemlist: {
default:null,
type: cc.Node,
},
socket: {
default:null,
type: cc.Node,
},
uid:0,
maptype:"equip",
hp:0,
attr:0,
def:0,
min:0,
str:0,
xixue:0,
baoji:0,
shanbi:0,
yisu:0,
gongsu:0,
desc:"",
heroname:"",
lv:1
},
setdesc: function (itemdesc) {
var name = itemdesc.getChildByName("namelabel")
var shuxing = itemdesc.getChildByName("shuxing")
var desc = itemdesc.getChildByName("desc")
name.getComponent("cc.Label").string = this.heroname + "(" + this.lv + ")"
desc.getComponent("cc.Label").string = this.desc+" "
var str = ""
this.hp !== 0 ?str=str+"增加" +this.hp+"点生命\n":str=str
this.attr !== 0 ?str=str+"增加" +this.attr+"攻击\n":str=str
this.def !== 0 ?str=str+"增加" +this.def+"护甲\n":str=str
this.min !== 0 ?str=str+"增加" +this.min+"敏捷\n":str=str
this.str !== 0 ?str=str+"增加" +this.str+"力量\n":str=str
this.xixue !== 0 ?str=str+"增加" +this.xixue+"吸血\n":str=str
this.baoji !== 0 ?str=str+"增加" +this.baoji+"暴击\n":str=str
this.shanbi !== 0 ?str=str+"增加" +this.shanbi+"闪避\n":str=str
this.yisu !== 0 ?str=str+"增加" +this.yisu+"移动速度\n":str=str
this.gongsu !== 0 ?str=str+"增加" +this.gongsu+"攻击速度\n":str=str
shuxing.getComponent("cc.Label").string = str
desc.y = shuxing.y - shuxing.height
},
// use this for initialization
onLoad: function () {
let self = this
self.swallowTouches = true
this.equipname = ""
this.map = cc.find("map4")
this.socket = this.map.getChildByName("web")
this.node.on('mouseup', function(event){
if(event.getButton() != cc.Event.EventMouse.BUTTON_RIGHT) return
if(this.down == false) return
this.down = false
this.parent = null
var node = self.getequiphold(event.getLocation().x, event.getLocation().y)
if(node == null)
{
console.log("add to map")
var map = cc.find("map4")
this.parent = map.getChildByName("itemlist")
this.x = event.getLocation().x - map.x
this.y = event.getLocation().y - map.y
this.runAction(cc.scaleTo(0.1, 0.5,0.5))
this.maptype = "item"
}
else
{
console.log("add to equip")
this.parent = node
this.x = 0
this.y = 0
this.runAction(cc.scaleTo(0.1, 1,1))
this.maptype = "equip"
}
var map = cc.find("map4")
var uid = map.getComponent("map").get_main_hero_id()
var node = map.getComponent("map").get_role_by_id(uid)
node.getComponent("global").addequip(self.uid)
})
this.node.on('mouseleave', function(event){
if(this.down == true)
{
this.down = false
this.parent = null
var node = self.getequiphold(event.getLocation().x, event.getLocation().y)
if(node == null)
{
console.log("add to map")
var map = cc.find("map4")
this.parent = map.getChildByName("itemlist")
this.x = event.getLocation().x - map.x
this.y = event.getLocation().y - map.y
this.runAction(cc.scaleTo(0.1, 0.5,0.5))
this.maptype = "item"
}
else
{
this.parent = node
this.x = 0
this.y = 0
this.runAction(cc.scaleTo(0.1, 1,1))
this.maptype = "equip"
}
}
else
{
var itemdesc = cc.find("itemdesc")
itemdesc.active = false
}
})
this.node.on('mousedown', function(event){
if(event.getButton() != cc.Event.EventMouse.BUTTON_RIGHT) return
console.log("maptype is " + this.maptype)
var equips = cc.find("equips")
this.parent = null
this.parent = equips
this.x = event.getLocation().x - equips.x
this.y = event.getLocation().y - equips.y
this.down = true
this.runAction(cc.scaleTo(0.1, 0.8,0.8))
// if (this.maptype == "item")
// {
// this.down = true
// this.xd = event.getLocation().x - this.x
// this.xy = event.getLocation().y - this.y
// this.runAction(cc.scaleTo(0.1, 0.8,0.8))
// }
// else
// {
// this.down = true
// var lx = event.getLocation().x - this.parent.x - this.parent.parent.x
// var ly = event.getLocation().y - this.parent.y - this.parent.parent.y
// this.xd = lx
// this.yd = ly
// // var x = event.getLocation().x - self.map.x
// // var y = event.getLocation().y - self.map.y
// this.runAction(cc.scaleTo(0.1, 0.8,0.8))
// }
})
this.node.on('mousemove', function(event){
if (this.down == true)
{
var equips = cc.find("equips")
this.x = event.getLocation().x - equips.x
this.y = event.getLocation().y - equips.y
// if (this.maptype == "item")
// {
// var map = cc.find("map4")
// this.parent = map.getChildByName("itemlist")
// this.x = event.getLocation().x - map.x
// this.y = event.getLocation().y - map.y
// }
// else
// {
// var lx = event.getLocation().x
// var ly = event.getLocation().y
// this.x = lx - this.parent.x - this.parent.parent.x - this.xd
// this.y = ly - this.parent.y - this.parent.parent.y - this.yd
// }
}
else{
var itemdesc = cc.find("itemdesc")
self.setdesc(itemdesc)
itemdesc.x = this.x + this.parent.x + this.parent.parent.x + 75
//itemdesc.y = this.y + this.parent.y + this.parent.parent.y
itemdesc.active = true
}
})
// self.node.on(cc.Node.EventType.TOUCH_START, function(event){
// var x = event.getLocation().x - self.map.x
// var y = event.getLocation().y- self.map.y
// var json1 = {"type":"move", "x":x, "y":y}
// self.socket.getComponent("socket_l").sendmsg(JSON.stringify(json1))
// })
},
setattr: function (uid) {
uid = parseInt(uid)
var confmod = require("equipconf")
var equipconf = confmod[uid]
console.log(equipconf)
for (var prop in equipconf )
{
this[prop] = equipconf[prop]
}
// if (uid.indexOf("204") != -1)
// {
// this.min = 16,
// this.gongsu = 15,
// this.yisu = 10,
// this.equipname = "单刀"
// this.desc = "性价比:NO.1"
// }
// else if(uid.indexOf("143")!= -1)
// {
// this.yisu = 50,
// this.equipname = "耐克"
// this.desc = "酱油的神装"
// }
// else if(uid.indexOf("191")!= -1)
// {
// this.yisu = 55,
// this.attr = 24,
// this.equipname = "相位鞋"
// this.desc = "高手才懂"
// }
// else if(uid.indexOf("197")!= -1)
// {
// this.xixue = 17,
// this.equipname = "疯脸"
// this.desc = "发起了疯了队友也杀"
// }
},
// called every frame, uncomment this function to activate update callback
update: function (dt) {
if(this.equipname == "")
{
this.setattr(this.uid)
}
},
});

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "78696eb4-ac14-4982-b267-f888616b1ea6",
"subMetas": {}
}

View File

@@ -0,0 +1,48 @@
cc.Class({
extends: cc.Component,
properties: {
// foo: {
// default: null,
// url: cc.Texture2D, // optional, default is typeof default
// serializable: true, // optional, default is true
// visible: true, // optional, default is true
// displayName: 'Foo', // optional
// readonly: false, // optional, default is false
// },
// ...
socket: {
default:null,
type: cc.Node,
},
namelabel: {
default:null,
type: cc.Node,
},
},
// use this for initialization
onLoad: function () {
this.namelabel = this.node.getChildByName("name");
},
reset: function(){
var startbutton = this.node.getChildByName("start")
startbutton.active = true
startbutton.getChildByName("Label").getComponent("cc.Label").string = "信春哥"
this.node.getChildByName("loading").active = false
this.namelabel.active = false
},
load: function(){
var name = this.namelabel.getComponent("cc.EditBox").string
this.socket.getComponent("socket_l").sendmsg(JSON.stringify({"type":"login", "name":name}));
this.node.getChildByName("loading").active = true
this.node.getChildByName("start").active = false
}
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "84273373-cfd0-42c3-9f39-92f70d0d5370",
"subMetas": {}
}

464
cc_moba/assets/CODE/map.js Normal file
View File

@@ -0,0 +1,464 @@
cc.Class({
extends: cc.Component,
properties: {
// foo: {
// default: null,
// url: cc.Texture2D, // optional, default is typeof default
// serializable: true, // optional, default is true
// visible: true, // optional, default is true
// displayName: 'Foo', // optional
// readonly: false, // optional, default is false
// },
// ...
socket: {
default:null,
type: cc.Node,
},
loading: {
default:null,
type: cc.Node,
},
hero:{
default: null,
type: cc.Node
},
time:{
default: null,
type: cc.Node
},
heroself:{
default: null,
type: cc.Node
},
herolist:{
default:null,
type:cc.Node
},
monsterlist:{
default:null,
type:cc.Node
},
dt : 0,
curtick:0,
animationspeed:1,
ticklist : [],
maxtick : 0,
uid:0
},
// use this for initialization
onLoad: function () {
cc.find("login").active = true
},
// called every frame, uncomment this function to activate update callback
update: function (dt) {
var now = Date.now()
var tick = 50
if(this.dt == 0 )
{
this.dt = now
return
}
var timediff = now - this.dt
var tickcount = parseInt(timediff/tick)
tickcount = Math.min(tickcount, 1)
var costtime = tickcount*tick
var timeleft = timediff - costtime
this.dt = now - timeleft
if (tickcount < 1)
{
return
}
tickcount = Math.min(this.maxtick - this.curtick, 100)
if (cc.find("login").active == true)
{
var per = Math.round(this.curtick/this.maxtick * 100)
this.loading.getComponent("cc.Label").string ="loading... " + per + "%"
}
this.animationspeed = tickcount
if (tickcount > 10) console.log("tickcount is " + tickcount)
for (var i = this.curtick; i < this.curtick + tickcount; i++)
{
var tickinfo = this.ticklist[i]
if(tickinfo != undefined)
{
for(var j = 0; j < tickinfo.list.length; j++)
{
var tick = tickinfo.list[j]
if (tick.action == "move")
{
var children = this.herolist.getChildren()
for(var k = 0; k < children.length; k ++)
{
var hero = children[k].getComponent("global")
if(hero.uid == tick.uid)
{
hero.hittarget = null
if(tick.x == -1 && tick.y == -1)
{
hero.idle()
}
else if (tick.x == -2)
{
if(tick.y == -2)
{
if(hero.hp>10)
{
hero.buffer = "cs1"
hero.cy1.active = true
if(hero.actionstatus != null)
{
hero.actionstatus.pause()
}
}
}
else
{
hero.cy1.active = false
hero.buffer = null
if(hero.actionstatus != null)
{
hero.actionstatus.resume()
}
}
}
else{
hero.cy1.active = false
hero.buffer = null
if(hero.actionstatus != null)
{
hero.actionstatus.resume()
}
hero.changeTarget(tick.x,tick.y)
}
}
}
}
else if(tick.action == "login")
{
var children = this.herolist.getChildren()
var logined = false
for(var k = 0; k < children.length; k ++)
{
var hero = children[k].getComponent("global")
if(hero.uid == tick.uid)
{
logined = true;
}
}
if(logined == true)continue
console.log(tick.uid + " login" + tick.name)
var node = cc.instantiate(this.hero);
node.getComponent("global").uid = tick.uid
node.parent = this.herolist
node.setPosition(tick.x, tick.y)
node.getComponent("global").setname(tick.name)
cc.find("rank").getComponent("rank").addscore(tick.uid, tick.name, 0)
if (tick.uid == this.uid)
{
console.log(" login name" + tick.name)
this.node.runAction(cc.follow(node, cc.rect(0,0,3200,3200)));
cc.find("login").active = false
}
}else if(tick.action == "off")
{
var equipid = tick.name
var equiplist = this.node.getChildByName("itemlist").getChildren()
var equipnode
var equipjs = null
for(var r = 0; r <equiplist.length; r++)
{
equipnode = equiplist[r]
equipjs = equipnode.getComponent("equip")
if (equipjs.gid == equipid)
{
equipnode.x = tick.x
equipnode.y = tick.y
break
}
}
if(equipjs == null)
{
var heronode = this.get_role_by_id(tick.uid)
var canoff = heronode.getComponent("global").offequip(equipid)
console.log("canoff is " + canoff)
}
// equipnode.runAction(cc.scaleTo(0.1, 0.5,0.5))
// var node = equipjs.getequiphold(tick.x, tick.y)
// // equipnode.node.parent = null
// console.log("node is " + node)
// equipnode.parent = node
// console.log("node is " + equipnode)
// equipnode.x = 0
// equipnode.y = 0
// equipnode.runAction(cc.scaleTo(0.1, 1,1))
// equipjs.maptype = "equip"
// }
// else
// {
// equipnode.destroy()
// }
}
else if(tick.action == "on")
{
var equipid = tick.name
var equiplist = this.node.getChildByName("itemlist").getChildren()
for(var r = 0; r <equiplist.length; r++)
{
var equipnode = equiplist[r]
var equipjs = equipnode.getComponent("equip")
console.log("equipjs.gid is " + equipjs.gid + " equipid is " + equipid)
if (equipjs.gid == equipid)
{
var heronode = this.get_role_by_id(tick.uid)
heronode.getComponent("global").addequip(equipjs)
equipnode.parent = null
if(tick.uid == this.uid)
{
var node = equipjs.getequiphold(tick.x, tick.y)
console.log("node is " + node)
equipnode.parent = node
console.log("node is " + equipnode)
equipnode.x = 0
equipnode.y = 0
equipnode.runAction(cc.scaleTo(0.1, 1,1))
equipjs.maptype = "equip"
}
else
{
equipnode.destroy()
}
}
}
}
else if(tick.action == "stop")
{
this.reset()
}
}
}
this.update_dt()
}
this.curtick = this.curtick + tickcount
this.time.getComponent("cc.Label").string = ""+Math.round(10*60 - this.curtick/20)
},
reset: function(){
console.log("reset data")
for(var k = 0; k < this.herolist.childrenCount ; k ++)
{
this.herolist.children[k].getComponent("global").smallpoint1.destroy()
this.herolist.children[k].destroy()
}
this.ticklist = []
this.curtick = 0
this.maxtick = 0
this.uid = 0
cc.find("login").active = true
},
get_direct: function(node1, node2){
var x1 = node1.x
var x2 = node2.x
var y1 = node1.y
var y2 = node2.y
return Math.sqrt((x1 - x2)*(x1 - x2) + (y1-y2)*(y1-y2))
},
get_direct2: function(x, y, node2){
var x1 = x
var x2 = node2.x
var y1 = y
var y2 = node2.y
return Math.sqrt((x1 - x2)*(x1 - x2) + (y1-y2)*(y1-y2))
},
update_findtarget:function( global, nodes)
{
if(global.hittarget !== null || global.actiontype !== "1") return;
var minrange = global.lookrange
for (var j=0;j<nodes.length;j++)
{
if(nodes[j] === global.node || (cc.isValid(nodes[j]) == false))
{
continue;
}
var direct = this.get_direct2(global.node.x, global.node.y, nodes[j])
if( direct< minrange)
{
global.hittarget = nodes[j]
}
}
},
get_main_hero_id:function () {
return this.uid
},
get_role_by_id:function (uid) {
var nodes = this.herolist.getChildren();
for (var i=0;i<nodes.length;i++)
{
if (nodes[i].getComponent("global").uid == uid)
{
return nodes[i]
}
}
},
update_dt: function (){
if(this.herolist == null) return;
var nodes = this.herolist.getChildren();
var nodes2 = this.monsterlist.getChildren();
for (var i=0;i<nodes.length;i++)
{
if(cc.isValid(nodes[i]) == false) continue
var global = nodes[i].getComponent("global")
if(global.hp <= 0 )
{
if (nodes[i].getComponent("global").uid == this.uid)
{
this.node.stopAllActions()
cc.find("login").active = true
cc.find("login").getComponent("login").reset()
}
if(global.smallpoint1 !== undefined)
{
global.smallpoint1.destroy()
}
nodes[i].destroy()
}
else
{
global.update_move()
this.update_findtarget(global, nodes2.concat(nodes))
var target = global.hittarget
if(target !== null && (cc.isValid(target) == true))
{
var direct =this.get_direct(nodes[i], target)
if (direct < 70)
{
global.hit()
}
else
{
global.changeTarget(target.x, target.y)
}
}
else if (target == null)
{
}
else
{
global.idle()
global.hittarget= null
}
}
}
for (var i=0;i<nodes2.length;i++)
{
if(cc.isValid(nodes2[i]) == false) continue
var global = nodes2[i].getComponent("monster")
if(global.hp <= 0 )
{
nodes2[i].destroy()
continue
}
global.update_move()
this.update_findtarget( global, nodes)
var target = global.hittarget
var direct1 = this.get_direct2(global.initx, global.inity, nodes2[i])
if (direct1 > 500)
{
global.hittarget = null
global.changeTarget(global.initx, global.inity)
continue
}
if(target == null )
{
continue;
}
if(cc.isValid(target) == false)
{
global.idle()
global.hittarget = null
continue;
}
var direct =this.get_direct(nodes2[i], target)
if (direct < 70)
{
global.hit()
}
else
{
global.changeTarget(target.x, target.y)
}
}
},
});

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "94676851-4af2-4115-896c-92530e1fafc4",
"subMetas": {}
}

View File

@@ -0,0 +1,260 @@
cc.Class {
extends: cc.Component
properties: {
# foo:
# default: null
# type: cc
# serializable: true # [optional], default is true
# visible: true # [optional], default is true
# displayName: 'Foo' # [optional], default is property name
# readonly: false # [optional], default is false
actiontype : "1"
actionstatus: null
direct : "1"
speed : 0.5
arf:0
hittarget :null
oldaction:null
uid:0
lasttime:0
namestr:""
hittick:0
initx:0
inity:0
hurtlabel:
default:null,
type: cc.Node,
socket:
default:null,
type: cc.Node,
map:
default:null,
type: cc.Node,
namelabel:
default:null,
type: cc.Node,
actornode:
default:null,
type: cc.Node,
hpbar:
default:null
type:cc.Node
attrba:
default:null
type:cc.Node
hp:606
hpmax:606
attackvalue:61
def:0
lookrange:300
str:24
min:9
ciptype:"doushi"
scale : 0.7
}
initattr:() ->
this.hpmax = 300
this.hp = 300
this.attackvalue = 20
this.def = 2
attack:() ->
if this.hittarget == null or cc.isValid(this.hittarget) == false
this.idle()
return
iskilled = this.hittarget.getComponent("global").attacked(this.attackvalue)
if iskilled == true
console.log("monster kill ")
this.hittarget = null
this.idle()
attacked: (attvalue) ->
defminus = this.def * (0.06 /(1+0.06 * this.def))
attvalue = attvalue + Math.floor(Math.seededRandom()*5) - 9
attvalue = Math.round(attvalue*(1-defminus));
this.hp = this.hp - attvalue
hurtlab = cc.instantiate(this.hurtlabel)
hurtlab.parent = this.node
hurtlab.Opacity = 255
hurtlab.setPosition(0, 50)
hurtlab.runAction(cc.fadeIn(0.01))
hurtlab.getComponent("cc.Label").string = "-"+attvalue
hurtlab.scaleX = 0.5
hurtlab.scaleY = 0.5
action1 = cc.moveTo(0.6, 0, 100);
action2 = cc.scaleTo(0.1, 1.3, 1.3);
action3 = cc.scaleTo(0.1, 1.0, 1.0);
action4 = cc.fadeOut(0.2);
action5 = cc.scaleTo(0.3, 0.5, 0.5)
removefun = ()->
hurtlab.destroy()
finished = cc.callFunc(removefun ,this, hurtlab);
seq1 = cc.sequence(action2, action3, action5);
seq2 = cc.sequence(action1, finished)
seq3 = cc.sequence(cc.delayTime(0.3), action4);
hurtlab.runAction(seq1)
hurtlab.runAction(seq2)
hurtlab.runAction(seq3)
if this.hp <= 0
return true
else
this.hpbar.getComponent("cc.ProgressBar").progress = this.hp/this.hpmax
return false
changedir: (x, y) ->
difx = x-this.node.x;
dify = y-this.node.y;
tan= dify/difx;
tan30 = 0.57735
tan60 = 1.73205
scale = this.scale
this.actornode.scaleY = scale
if difx>0 and dify >0
if tan < tan30
this.direct = "3"
this.actornode.scaleX = -scale
else if tan > tan60
this.direct = "5"
this.actornode.scaleX = scale
else
this.direct = "4"
this.actornode.scaleX = -scale
else if difx>0 and dify <0
tan = -dify/difx
if tan < tan30
this.direct = "3"
this.actornode.scaleX = -scale
else if tan > tan60
this.direct = "1"
this.actornode.scaleX = scale
else
this.direct = "2"
this.actornode.scaleX = -scale
else if difx<0 and dify>0
tan = -dify/difx;
if tan < tan30
this.direct = "3"
this.actornode.scaleX = scale;
else if tan >tan60
this.direct = "5"
this.actornode.scaleX = scale ;
else
this.direct = "4"
this.actornode.scaleX = scale;
else if difx<0 and dify <0
tan = dify/difx;
if tan < tan30
this.direct = "3"
this.actornode.scaleX = scale;
else if tan >tan60
this.direct = "1"
this.actornode.scaleX = scale ;
else
this.direct = "2"
this.actornode.scaleX = scale;
this.arf =Math.abs(Math.atan(dify/difx));
changeTarget: (x, y) ->
this.changedir(x, y)
this.targetx = x;
this.targety = y;
this.run()
doaction: () ->
action = this.ciptype+this.actiontype+this.direct
if this.oldaction == action
if this.actiontype == "2"
this.hittick = this.hittick + 1
if this.hittick == 12
this.attack()
else if this.hittick == 16
this.idle()
else
this.hittick=0
return
else if this.actiontype == "2" and this.hittick > 4
this.hittick = this.hittick + 1
if this.hittick == 12
this.attack()
else if this.hittick == 16
this.idle()
return
this.hittick=0
console.log("user " + this.namestr+" play animation " +action)
this.actionstatus = this.actornode?.getComponent("cc.Animation").play(action)
this.actionstatus?.speed = this.map.getComponent("map").animationspeed
this.oldaction = action
hit:() ->
this.changedir(this.hittarget.x, this.hittarget.y)
this.actiontype = "2"
this.doaction()
idle:() ->
this.actiontype = "1"
this.doaction()
run:() ->
this.actiontype = "3"
this.doaction()
onLoad:() ->
this.node.on('mousedown',
(event) ->
#animState = this.actor.getComponent(cc.Animation).play("xiao21")
# animState.repeatCount = 1;
)
this.actornode = this.node.getChildByName("actornode");
this.namelabel = this.node.getChildByName("heroname");
this.initx = this.node.x
this.inity = this.node.y
this.initattr()
setname:(name) ->
this.namestr = name
this.namelabel.getComponent("cc.Label").string = name
update_move: () ->
speed = this.speed*6
if this.actiontype isnt "3"
return
if Math.abs(this.targetx - this.node.x) < 3 and Math.abs(this.targety - this.node.y)<3
this.idle()
return
if this.targetx > this.node.x
this.node.x = this.node.x + speed*Math.cos(this.arf);
else
this.node.x = this.node.x - speed*Math.cos(this.arf);
if this.targety > this.node.y
this.node.y = this.node.y + speed*Math.sin(this.arf);
else
this.node.y = this.node.y - speed*Math.sin(this.arf);
this.setname(this.namestr)
update: (dt) ->
this.actionstatus?.speed = this.map.getComponent("map").animationspeed * 1.5
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "6549b035-12c7-4493-94ca-9905fc869789",
"subMetas": {}
}

View File

@@ -0,0 +1,95 @@
cc.Class({
extends: cc.Component,
properties: {
map: {
default:null,
type: cc.Node,
},
monster: {
default:null,
type: cc.Node,
}
},
maker:function(name, x, y){
var monster = cc.instantiate(this.monster);
monster.x = x
monster.y = y
monster.parent = this.map.getChildByName("monsterlist")
var actor = monster.getChildByName("actornode")
var animation = actor.getComponent("cc.Animation")
this.loadanimation(animation, name, monster)
},
loadanimation: function (animation, frameName, monster) {
let self = this
cc.loader.loadRes(frameName, cc.SpriteAtlas, function (err , atlas) {
console.log("err is " + err)
for(let i = 1; i < 4; i++){
for(var j = 0;j<5 ;j++)
{
var frames = [];
for( var k = 0; k<6;k++)
{
var fname = i+""+j+""+k+".png.pvr"
var f = atlas.getSpriteFrame(fname)
frames.push(f);
}
var clip = cc.AnimationClip.createWithSpriteFrames(frames, 6);
console.log( frameName+i+j + " animation length " + frames.length)
clip.wrapMode = 2
var ii = 1
if(i == 2)
{
ii = 3
}
else if (i==3)
{
ii = 2
}
animation.addClip(clip, frameName+ii+(j+1));
}
}
monster.getComponent("monster").scale = 1.2
monster.getComponent("monster").ciptype = frameName
monster.getComponent("monster").changedir(1,1)
monster.getComponent("monster").idle()
})
},
// use this for initialization
onLoad: function () {
let self = this
this.scheduleOnce(function() {
// 这里的 this 指向 component
var monster = ["gd", "nt", "rm", "sb", "sr", "yw", "yw"]
for(var i = 0; i< 50;i ++)
{
var name = monster[parseInt(1 + Math.seededRandom()*6)]
var x = 3000*Math.seededRandom()
var y = 3000*Math.seededRandom()
this.maker(name, parseInt(x), parseInt(y))
}
}, 2);
},
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "67378a4a-8004-4ecd-8233-245211b22013",
"subMetas": {}
}

View File

@@ -0,0 +1,19 @@
var random = {
load: function () {
Math.seed = 5;
Math.seededRandom = function(max, min) {
max = max || 1;
min = min || 0;
Math.seed = (Math.seed * 9301 + 49297) % 233280;
var rnd = Math.seed / 233280.0;
return min + rnd * (max - min);
};
}
};
random.load();
module.exports = random;

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "0e8c6c4e-6d5e-422d-b74e-929e75183f58",
"subMetas": {}
}

View File

@@ -0,0 +1,78 @@
cc.Class({
extends: cc.Component,
properties: {
ranklist:[],
rankui: {
default:null,
type: cc.Node,
},
rankuione: {
default:null,
type: cc.Node,
},
},
// use this for initialization
onLoad: function () {
this.ranklist = []
this.rankui = cc.find("rank")
this.rankuione = cc.find("rank_one")
},
refresh:function(){
this.rankui.removeAllChildren()
var y = 0
this.ranklist.sort(function(a,b){
return a.score<b.score;
});
var maxi = this.ranklist.length
if(maxi > 10) maxi = 10
for(var i = 0; i< this.ranklist.length; i++)
{
var node = cc.instantiate(this.rankuione)
node.parent = this.rankui
node.y = y
y-=31
var label = node.getChildByName("content")
label.getComponent("cc.Label").string = i+1+"th. "+this.ranklist[i].name+": " + this.ranklist[i].score + ""
}
},
addscore:function(id, name,scoreadd){
for(var i = 0; i< this.ranklist.length; i++)
{
if(this.ranklist[i].id == id){
this.ranklist[i].score += scoreadd;
this.refresh()
return
}
}
var rankone = {}
rankone.id = id
rankone.score = scoreadd
rankone.name = name
this.ranklist.push(rankone)
this.refresh()
},
// called every frame, uncomment this function to activate update callback
update: function (dt) {
},
});

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "5c789259-94e4-419d-bd89-412ee996c08e",
"subMetas": {}
}

View File

@@ -0,0 +1,60 @@
cc.Class({
extends: cc.Component,
properties: {
// foo: {
// default: null,
// url: cc.Texture2D, // optional, default is typeof default
// serializable: true, // optional, default is true
// visible: true, // optional, default is true
// displayName: 'Foo', // optional
// readonly: false, // optional, default is false
// },
// ...
attack:{
default:null,
type: cc.Node,
},
def:{
default:null,
type: cc.Node,
},
hp:{
default:null,
type: cc.Node,
},
strong:{
default:null,
type: cc.Node,
},
minjie:{
default:null,
type: cc.Node,
},
},
// use this for initialization
onLoad: function () {
},
setattack : function(p){
this.attack.getComponent("cc.Label").string = " " + p
},
setdef : function(p){
this.def.getComponent("cc.Label").string = " " + p
},
sethp : function(p){
this.hp.getComponent("cc.Label").string = " " + p
},
setstrong : function(p){
this.strong.getComponent("cc.Label").string = " " + p
},
setminjie : function(p){
this.minjie.getComponent("cc.Label").string = " " + p
},
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "21268493-9fc7-4b4b-a5ad-1c837f1a5130",
"subMetas": {}
}

View File

@@ -0,0 +1,64 @@
cc.Class({
extends: cc.Component,
properties: {
// foo: {
// default: null,
// url: cc.Texture2D, // optional, default is typeof default
// serializable: true, // optional, default is true
// visible: true, // optional, default is true
// displayName: 'Foo', // optional
// readonly: false, // optional, default is false
// },
// ...
ws:null,
uid:null,
ticks:null,
maxtick:0,
map: {
default:null,
type: cc.Node,
}
},
sendmsg: function(msg){
this.ws.send(msg);
},
// use this for initialization
onLoad: function () {
var map = this.node.getParent()
this.ws = new WebSocket("ws://123.59.42.239:8091/websocket");
this.ws.onopen = function (event) {
console.log("Send Text WS was opened.");
};
this.ws.onmessage = function (event) {
var reply = JSON.parse(event.data)
if(reply.type == "login_reply")
{
map.getComponent("map").uid = reply.uid
}
else if(reply.type == "tick")
{
map.getComponent("map").ticklist[reply.tick] = reply
map.getComponent("map").maxtick = reply.tick
}
};
this.ws.onerror = function (event) {
console.log("Send Text fired an error");
};
this.ws.onclose = function (event) {
console.log("WebSocket instance closed.");
};
},
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "123963b5-c334-403b-97cd-5b91218a0afc",
"subMetas": {}
}

5
cc_moba/assets/anim.meta Normal file
View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "c94a9665-ce54-4480-a1d5-0c4ef5e21ca5",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi11",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "7598e0bc-4b88-46f9-a305-8fbd03b25223"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "1ef792ef-598a-4692-b3ac-2cad015c9ecf"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "e2569edc-10b6-401c-bcdf-5e6f67aa0761"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "da6441dd-5344-4fd3-92f4-03e3336c0567"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "2fddedaf-762a-4770-8f79-a081f2993ddc"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "9adecf10-4184-4d00-bc11-e4554a141738"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "8cfab687-b79e-4af0-9220-4aa7dcd83393",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi12",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "d81b88bc-daef-4dd6-9d90-79a10e8681a9"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "8fc41c2c-8972-46ba-b10e-81b3317fb070"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "1860ba73-5790-4127-9392-a6cb976510f0"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "76d1d9e7-d54c-4dfa-bd40-8ee895696140"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "18c4b913-1f39-42f2-9a56-de692cea5107"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "954df6d7-6fdf-4827-8621-09a1e8e0f0db"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "52c60e0c-5d4a-415b-abf0-94dd135a7a94",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi13",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "132ca06c-a4f3-4965-a625-5858fe8b7a1b"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "47549470-1f0d-47fe-b2ca-2405d3a88603"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "5e4f8ba6-850e-4ec7-8e4b-9a96d422d861"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "f8a3c57a-f7ca-47ff-aaa6-df84277bb749"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "eb387305-e98d-414f-9cdb-f7943f99bbb2"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "615b802a-1030-4b1a-b0f2-f701fcfdfefe"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "b840d92b-4bd3-42ff-89c6-4a858be1027d",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi14",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "261f0534-2c38-42c4-b823-db4d068a2967"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "25e629d6-eae4-425b-b678-e99cdf329b25"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "59475110-7dc2-4ce6-aa9e-cc44421d68ab"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "dc487e01-7ec1-4865-883a-5a7c8f656c5d"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "b9da279e-57ed-40f8-9b96-b024423d6408"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "7bc31637-6394-4c87-a771-d569bded840c"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "a4bbfa4e-4ec7-4a14-8948-d7e20ba540f6",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi15",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "51258b59-1865-4147-9774-448c49c7a19c"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "7d8318c1-f869-4f8d-90ce-233374a75bce"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "17dcc38d-262e-4477-a2f5-1f7deeee0251"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "b11f1620-b261-4084-9ee8-2a1573020c93"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "0b33d289-ddde-4618-9663-5703f1238b84"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "2c72f33c-2301-41b1-8a1d-558cfe7401ad"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "7532cde0-bbcf-4e9a-a855-8ebdcb36b687",
"subMetas": {}
}

View File

@@ -0,0 +1,67 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi21",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 7,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "3c614a2c-a519-4d4f-b6b7-882083a1d9c9"
}
},
{
"frame": 0.14285714285714285,
"value": {
"__uuid__": "b494b4e1-fdc6-4714-95bd-2ade38aaf11e"
}
},
{
"frame": 0.2857142857142857,
"value": {
"__uuid__": "7d54f262-71a9-43fd-af2d-f50476e4a05b"
}
},
{
"frame": 0.42857142857142855,
"value": {
"__uuid__": "faea002f-8f7d-4f26-bb81-8152ba7cdfa1"
}
},
{
"frame": 0.5714285714285714,
"value": {
"__uuid__": "e1265caf-4ad4-4942-8f07-671b7da0dc9a"
}
},
{
"frame": 0.7142857142857143,
"value": {
"__uuid__": "76ba8adb-820a-476b-98a6-666ccd847ce4"
}
},
{
"frame": 0.8571428571428571,
"value": {
"__uuid__": "0ef53125-d64c-4b8d-ade2-7f381897c787"
}
}
]
}
}
},
"events": [
{
"frame": 1,
"func": "idle",
"params": []
}
]
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "f17b56ef-d0d9-42fc-b270-7395232c301e",
"subMetas": {}
}

View File

@@ -0,0 +1,67 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi22",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 7,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "2e7258e1-1069-4762-9d00-8db0bf8d0df3"
}
},
{
"frame": 0.14285714285714285,
"value": {
"__uuid__": "53591dfe-5d68-47ef-8704-4d2f947f9b8a"
}
},
{
"frame": 0.2857142857142857,
"value": {
"__uuid__": "7d5f818c-1d2d-4c0f-a931-70e367a07594"
}
},
{
"frame": 0.42857142857142855,
"value": {
"__uuid__": "1e71d847-9081-44ae-8b63-190360755679"
}
},
{
"frame": 0.5714285714285714,
"value": {
"__uuid__": "3ae064cc-d77f-4d05-ae17-ee6b694341a1"
}
},
{
"frame": 0.7142857142857143,
"value": {
"__uuid__": "540b032b-c71d-4d18-afcc-42a70688d29b"
}
},
{
"frame": 0.8571428571428571,
"value": {
"__uuid__": "6e50b7aa-ff3a-40b1-b9ac-88a8e25e4c98"
}
}
]
}
}
},
"events": [
{
"frame": 1,
"func": "idle",
"params": []
}
]
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "a58d4bef-cdd6-4ff1-b941-2cc19c8a2056",
"subMetas": {}
}

View File

@@ -0,0 +1,67 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi23",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 7,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "3bdaa68c-e045-4da9-ac67-111feb26ab25"
}
},
{
"frame": 0.14285714285714285,
"value": {
"__uuid__": "f3f036de-dd68-4fd9-9585-7678396888d1"
}
},
{
"frame": 0.2857142857142857,
"value": {
"__uuid__": "e719df71-4353-4c5f-8de8-e7f9a347779d"
}
},
{
"frame": 0.42857142857142855,
"value": {
"__uuid__": "d1ffb449-0dfe-4e59-8a05-92c865e62fa5"
}
},
{
"frame": 0.5714285714285714,
"value": {
"__uuid__": "0497e308-2507-48ac-87ff-8e57502d789d"
}
},
{
"frame": 0.7142857142857143,
"value": {
"__uuid__": "77ac5e2d-b32c-4e56-bde2-425f9c172a89"
}
},
{
"frame": 0.8571428571428571,
"value": {
"__uuid__": "829c3961-1b41-4d69-af75-f1e232f0741c"
}
}
]
}
}
},
"events": [
{
"frame": 1,
"func": "idle",
"params": []
}
]
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "4d8dc775-3aa3-4994-bba8-6ad6d3996655",
"subMetas": {}
}

View File

@@ -0,0 +1,67 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi24",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 7,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "b06c4592-bb82-4d11-a506-4ff02e9be848"
}
},
{
"frame": 0.14285714285714285,
"value": {
"__uuid__": "dfc11aea-6700-40d5-90ce-41ea8982cd59"
}
},
{
"frame": 0.2857142857142857,
"value": {
"__uuid__": "7f027aaa-66fe-47c8-8775-8a32e05f2745"
}
},
{
"frame": 0.42857142857142855,
"value": {
"__uuid__": "75194cef-bef8-4ea1-97a8-d0ba20f0a6a5"
}
},
{
"frame": 0.5714285714285714,
"value": {
"__uuid__": "82f93433-e832-40eb-9a4c-94631e071a74"
}
},
{
"frame": 0.7142857142857143,
"value": {
"__uuid__": "192bf7cf-69b9-45d2-8ded-2b2620acd900"
}
},
{
"frame": 0.8571428571428571,
"value": {
"__uuid__": "2ebdd29d-d3ee-4602-95fd-636cd01773bb"
}
}
]
}
}
},
"events": [
{
"frame": 1,
"func": "idle",
"params": []
}
]
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "d8724798-d194-476d-a975-8ac283cdf498",
"subMetas": {}
}

View File

@@ -0,0 +1,67 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi25",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 7,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "66522a80-c937-480f-b797-1a84a963398c"
}
},
{
"frame": 0.14285714285714285,
"value": {
"__uuid__": "3557be2c-fb06-4d8d-98a0-59ab0a9c4fec"
}
},
{
"frame": 0.2857142857142857,
"value": {
"__uuid__": "4e270a93-ffde-4b0b-85a5-d1a67ac6271e"
}
},
{
"frame": 0.42857142857142855,
"value": {
"__uuid__": "6892c7a4-f662-4e97-a367-08e9a0ffb643"
}
},
{
"frame": 0.5714285714285714,
"value": {
"__uuid__": "b6be8e59-b6b7-4979-b9ee-57a766492661"
}
},
{
"frame": 0.7142857142857143,
"value": {
"__uuid__": "66f4d0fe-70ea-4b52-a362-42b6e838e840"
}
},
{
"frame": 0.8571428571428571,
"value": {
"__uuid__": "043f423c-747c-40e3-b696-7d4ad9c61f26"
}
}
]
}
}
},
"events": [
{
"frame": 1,
"func": "idle",
"params": []
}
]
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "ce609dd7-6ee2-448e-b475-934af3571ed0",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi31",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "2f0f78eb-d2fd-468f-8e8d-0485b10fa7e7"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "2d2adba1-2dfc-4b58-baa3-c62ab73cf6f2"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "0d2bbc4a-c462-4146-909f-2474e6dd2868"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "a9ff2d80-9701-44d0-aa13-a21f97d67954"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "36c270a9-6b32-4122-a522-3321e6bd3b53"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "99424b1c-41f7-4fab-9405-ae4f813725bf"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "a4277d13-d005-4ced-ba2f-72472ea3c386",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi32",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "7319166c-355e-4a5b-97f2-ac1abea66048"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "ca490bac-8ca4-4f4a-8547-fc9c0f9e94fa"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "0d1ceb4f-358d-4481-8536-ceb7736212d0"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "d3b18a88-e7b5-4d91-b76b-26e4c6b4935e"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "04035a08-533c-44cd-81b6-7989f24531ec"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "34b088e6-26a4-40ea-a4c0-f5afe41aef73"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "b5cd5056-173b-4d37-97b4-d67290d40b25",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi33",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "63507811-97be-45e0-9c84-99653f777741"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "8b68753e-d0d3-4c75-8454-1469179807c0"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "977b6a20-8778-468b-9d94-7a4df4780b4b"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "4f21163d-692e-44fd-86b5-db2cc7309d14"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "4500202e-d071-4906-bd4f-4696e77a504b"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "23872bad-385c-45fa-ba6d-7f7df1aa33d5"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "73f3db3b-b8e9-454a-9061-4bb463c21e94",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi34",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "b1807cb5-8281-400f-91c1-043ac6f439b0"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "4490540e-90df-4441-a43b-d3201a3ef6ae"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "2387e116-5879-4332-88f5-80792f9d3702"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "33fb7695-8e6c-463f-b587-b9a70f014a1c"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "50bb9b89-21de-4dc1-b95b-645f9461de55"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "7e3901e9-a357-4fe2-8800-2cc68f26f038"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "aca52b1a-0767-4c57-a59f-ebcebddfa944",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "doushi35",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "34e75778-02e3-40bc-9572-6e08661226bf"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "c246cdd0-882e-4df5-affd-94b6ead5da3b"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "4b0dbd8a-e3a3-463f-8a9f-6133b92506c8"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "6ba74fe6-2bc4-483d-a0f5-5095b7e443d6"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "7195fe31-fd81-4688-be22-965ff89360a6"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "86da8762-5ec5-4275-b6f2-faab3d636c4e"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "ac0d2578-6207-4591-ad0f-62010b67c334",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao11",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "f819869e-e791-4a72-9a6f-abdb130d0943"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "46aaf8bc-3950-457b-ba62-e9b71ffad28c"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "a870d41a-ab2e-4a99-a6e4-c2e9718d8df0"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "88f64431-06e1-4420-ad3d-251fadcc57e3"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "0e4fe3f9-8b94-41b6-89a2-a1a3d023e5e6"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "2c55bd77-4c3a-4d75-8a62-654876d65c63"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "3823d7bb-25be-477a-ac94-e4b245848efb",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao12",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1.1666666666666667,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "df5674eb-b55a-457c-870c-377f9ac2b69e"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "38acf828-8b25-41fc-aca0-c83a04989fd5"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "c922a74c-9fbd-4c74-a9c3-28a10f585f7e"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "d9328cab-a389-48a1-ac4b-01ed35a43d1f"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "456931a7-2fb7-4a80-b831-6c3019e5a031"
}
},
{
"frame": 1,
"value": {
"__uuid__": "dab625de-b17f-44b7-8cc7-6dcddc725f7e"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "51b51309-a8c1-4f07-a5f2-1090f35b23f4",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao13",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "32489883-0044-42a6-9685-235158dc2dc4"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "d44f7551-e116-4de9-a73c-7dd9f36d0a0a"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "89f2d8ac-6ac2-4016-b665-177b6aa704b8"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "b764ce6a-6f6a-4b1a-9bad-9a71549ee95b"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "5b98955b-497d-4057-8f41-dc81f7652491"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "c21a8804-d325-4857-9a9a-ebaad828c3ff"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "a811f10d-6ed1-4dfc-b212-037f3014df13",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao14",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "ac6dfdfb-3591-47a4-8133-ee69a7d59513"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "a501d7bb-e187-4676-baca-c1dfaaca5fdd"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "efd7d9e3-e74c-4042-b9ed-27f4bc43bae3"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "cb50a6df-fd5d-48df-a2e0-35e666c896c4"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "bf8923cc-6481-4b3f-b387-de051639edf6"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "23ea92ae-f005-40db-a72e-afbb8596b55d"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "4540b9b8-f27c-4d1a-abc4-e2eff694fdc1",
"subMetas": {}
}

View File

@@ -0,0 +1,55 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao15",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "233f1138-ad6c-47d4-ba99-81ccaaa4875f"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "daa8b0af-e2ac-4898-91e8-cafef3f903d8"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "06b89ee8-36b4-4f74-8321-b7b76d32321f"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "8958cb08-7c9f-45f0-ae28-62c608286c4e"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "26842df2-471b-4f40-abfa-8f89c2c595e3"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "e2a387bd-342a-4133-aec9-2cf83afe00a2"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "e91b018f-7fd7-4276-9e24-47aeba8d7dce",
"subMetas": {}
}

View File

@@ -0,0 +1,62 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao21",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 0,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "f5d9846f-2959-40b3-accf-e37a8effa48d"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "1130b27e-d22c-49c4-8937-557523d0fda0"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "f5843588-edad-4f8b-ba1f-1460b45dfdc8"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "4ce82255-445a-4239-b9a1-725bf354391a"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "1332abe3-7943-4b98-a340-6c428ed3403f"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "1156e667-613b-46a2-8317-c99e4eb979bf"
}
}
]
},
"global": {}
}
},
"events": [
{
"frame": 1,
"func": "idle",
"params": []
}
]
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "9b139300-141a-4776-b573-cd6cf6188dc5",
"subMetas": {}
}

View File

@@ -0,0 +1,61 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao22",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "f5d9846f-2959-40b3-accf-e37a8effa48d"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "1130b27e-d22c-49c4-8937-557523d0fda0"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "f5843588-edad-4f8b-ba1f-1460b45dfdc8"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "4ce82255-445a-4239-b9a1-725bf354391a"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "1332abe3-7943-4b98-a340-6c428ed3403f"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "1156e667-613b-46a2-8317-c99e4eb979bf"
}
}
]
}
}
},
"events": [
{
"frame": 1,
"func": "idle",
"params": []
}
]
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "2ac501fc-ef23-49fe-b8c7-f5e551b8599e",
"subMetas": {}
}

View File

@@ -0,0 +1,61 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao23",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "a1b7776b-2535-4909-a75b-9897f1d74550"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "c08d7924-1c78-4d33-94cd-de929f9a4257"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "df823eb8-cce0-45c8-8790-7bda3db71204"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "4d7f7110-fa87-4c14-83c1-aa658e0b9a10"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "b893c976-4948-43d6-9deb-b0f8c923c202"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "136eb1ea-c563-4a4a-9736-02014b591e4e"
}
}
]
}
}
},
"events": [
{
"frame": 1,
"func": "idle",
"params": []
}
]
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "43ee7663-a231-4dbd-be7e-d515c1ff23db",
"subMetas": {}
}

View File

@@ -0,0 +1,61 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao24",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "88d5b3d5-1e72-427a-ab69-88639f01ba21"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "780e8c39-f22e-4050-8f04-d06b95f3e0da"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "0daac86e-3843-4c05-ba3a-bcb598ebbf73"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "f7a10aff-0e3b-4a27-87d9-d232e1ce65bd"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "a262271d-4484-484a-a1f2-ea3225e48d0b"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "1637b01d-21a0-4392-80d4-52a8902db184"
}
}
]
}
}
},
"events": [
{
"frame": 1,
"func": "idle",
"params": []
}
]
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "9d9b1c47-77e7-4205-bec8-a47477c109fb",
"subMetas": {}
}

View File

@@ -0,0 +1,61 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao25",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 6,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "ee34642e-dcf2-41b9-93bb-dafca6000d61"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "06afa532-2df0-4312-ba58-5ff199ae906c"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "275b1a0f-036f-43ae-8bea-559c34468024"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "d15d25ac-429e-4723-9477-bb94c160faca"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "d6569e1c-85a4-4524-9ae5-5135f8f29a7f"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "50a5c246-6ae1-43ad-9995-3bf1af8f2767"
}
}
]
}
}
},
"events": [
{
"frame": 1,
"func": "idle",
"params": []
}
]
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "048817dc-acf5-435a-804a-01d275e4ab9f",
"subMetas": {}
}

View File

@@ -0,0 +1,61 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao31",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1.1666666666666667,
"sample": 6,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "0fd1ffd3-8031-4b43-8ecb-69283e8376f1"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "4636dd54-32c7-41c3-b87a-2cc7561aac35"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "8d596e64-8656-4b11-87b3-dfad0bd8ae94"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "37b73f02-341c-43c7-84f3-7ccb37245aeb"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "1e76c937-b751-4f1f-8481-cff21b857863"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "6d565e76-9d98-44f4-83ad-d6965db6244b"
}
},
{
"frame": 1,
"value": {
"__uuid__": "e0697db6-760b-4cca-9603-d48f764c4af8"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "66892253-49af-48f5-9310-ca65276010c8",
"subMetas": {}
}

View File

@@ -0,0 +1,67 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao32",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 8,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "9f2cf849-c20e-4c86-bb35-0c52ff20f85f"
}
},
{
"frame": 0.125,
"value": {
"__uuid__": "d20784fd-8676-4689-9dda-8c045b06ede3"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "78891935-5f0e-4e04-b261-05a36ad92c87"
}
},
{
"frame": 0.375,
"value": {
"__uuid__": "a8a5f369-70d9-462a-82c2-aee7bf180449"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "3527244f-69bf-46ae-8e89-931d36f6ce1d"
}
},
{
"frame": 0.625,
"value": {
"__uuid__": "90651f3e-1bd4-4188-867e-258b046d1e21"
}
},
{
"frame": 0.75,
"value": {
"__uuid__": "98d38311-35d6-4ef8-8b17-43904d615207"
}
},
{
"frame": 0.875,
"value": {
"__uuid__": "380eb3d6-a7f6-44ea-9b53-1d29cd739a45"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "2ad010d6-522b-49f3-91eb-f33ccf094d1a",
"subMetas": {}
}

View File

@@ -0,0 +1,67 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao33",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 8,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "229ce72c-9cd8-4f14-85f6-e8e30e397624"
}
},
{
"frame": 0.125,
"value": {
"__uuid__": "ee90cb89-dafe-4134-a7ed-bdbe4a996dae"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "f611b513-51ae-429d-9f57-07e02b42ec85"
}
},
{
"frame": 0.375,
"value": {
"__uuid__": "4ab2fa84-bc55-4a64-93dd-7c8208d82085"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "355eb227-f9af-4f79-879e-1577d6a1136d"
}
},
{
"frame": 0.625,
"value": {
"__uuid__": "841ac5f8-d084-4250-a927-738e4a36923a"
}
},
{
"frame": 0.75,
"value": {
"__uuid__": "795fde66-6f0c-40b3-8a00-6b805f2efef3"
}
},
{
"frame": 0.875,
"value": {
"__uuid__": "8d201533-82a2-4a45-b717-16a72f984691"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "faed4592-bc04-418c-9126-687c27535ac7",
"subMetas": {}
}

View File

@@ -0,0 +1,67 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao34",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 8,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "b760982f-9e3c-496f-bcfc-eecb4c1160f4"
}
},
{
"frame": 0.125,
"value": {
"__uuid__": "5ccba57a-b32c-4ddf-b102-5ebecafdf0bc"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "b0b1596b-7f51-4717-89f2-45b79dcd23f6"
}
},
{
"frame": 0.375,
"value": {
"__uuid__": "3a4f2ead-8a05-4c10-950c-d1ea5024e153"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "0291cc87-661e-4cca-9c93-0df1b92057e9"
}
},
{
"frame": 0.625,
"value": {
"__uuid__": "5ef862cd-ed94-4356-add9-d22805544059"
}
},
{
"frame": 0.75,
"value": {
"__uuid__": "2b2752d5-d3b4-407a-ad03-84b9422a1a0a"
}
},
{
"frame": 0.875,
"value": {
"__uuid__": "2c233548-84ef-4415-80e7-4801406ffead"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "0a05e14b-3209-4e84-a87d-19f03ed9c920",
"subMetas": {}
}

View File

@@ -0,0 +1,67 @@
{
"__type__": "cc.AnimationClip",
"_name": "xiao35",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1,
"sample": 8,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "489db2c7-20fb-4a09-934d-d7f7ec04da60"
}
},
{
"frame": 0.125,
"value": {
"__uuid__": "c0973a5d-f4cf-4d75-8e3e-97d68ac9acf9"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "ff210acc-971c-4c98-91c3-b1fb4a3fd7fc"
}
},
{
"frame": 0.375,
"value": {
"__uuid__": "c5305cea-0efc-4592-878c-624e1ee523fa"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "aaa32f73-35fe-4c1a-8ede-3f0ddd61b2a0"
}
},
{
"frame": 0.625,
"value": {
"__uuid__": "4d892ef1-4850-4233-a4c0-e0f8e67a18f8"
}
},
{
"frame": 0.75,
"value": {
"__uuid__": "be4cae01-ba06-4d6d-bf5e-93f3ac92a84e"
}
},
{
"frame": 0.875,
"value": {
"__uuid__": "05658697-9ca5-44e0-ab48-f741de8e4b1b"
}
}
]
}
}
},
"events": []
}

View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "321bc8d0-c5f0-45b9-b425-69d410fb168e",
"subMetas": {}
}

5
cc_moba/assets/img.meta Normal file
View File

@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "471969d5-8429-4c68-a104-902aa1288426",
"subMetas": {}
}

Some files were not shown because too many files have changed in this diff Show More