-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
esslssui
committed
Jul 8, 2018
1 parent
ed20c86
commit e2357fc
Showing
27 changed files
with
805 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Learn cc.Class: | ||
// - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html | ||
// - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html | ||
// Learn Attribute: | ||
// - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html | ||
// - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html | ||
// Learn life-cycle callbacks: | ||
// - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html | ||
// - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html | ||
|
||
cc.Class({ | ||
extends: cc.Component, | ||
|
||
properties: { | ||
// foo: { | ||
// // ATTRIBUTES: | ||
// default: null, // The default value will be used only when the component attaching | ||
// // to a node for the first time | ||
// type: cc.SpriteFrame, // optional, default is typeof default | ||
// serializable: true, // optional, default is true | ||
// }, | ||
// bar: { | ||
// get () { | ||
// return this._bar; | ||
// }, | ||
// set (value) { | ||
// this._bar = value; | ||
// } | ||
// }, | ||
arrClip: [cc.AudioClip] | ||
}, | ||
|
||
// LIFE-CYCLE CALLBACKS: | ||
|
||
onLoad () { | ||
wsat.audio = this; | ||
}, | ||
|
||
start () { | ||
|
||
}, | ||
|
||
play(index, loop, volume){ | ||
this.current = cc.audioEngine.play(this.arrClip[index], loop, volume); | ||
}, | ||
|
||
stop(){ | ||
cc.audioEngine.stop(this.current); | ||
}, | ||
|
||
// update (dt) {}, | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"ver": "1.0.5", | ||
"uuid": "8cfa7f26-3730-4386-83b7-adb7bcaa5343", | ||
"isPlugin": false, | ||
"loadPluginInWeb": true, | ||
"loadPluginInNative": true, | ||
"loadPluginInEditor": false, | ||
"subMetas": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"__type__": "cc.AnimationClip", | ||
"_name": "loop", | ||
"_objFlags": 0, | ||
"_rawFiles": null, | ||
"_duration": 0.83, | ||
"sample": 60, | ||
"speed": 0.2, | ||
"wrapMode": 2, | ||
"curveData": { | ||
"props": { | ||
"position": [ | ||
{ | ||
"frame": 0, | ||
"value": [ | ||
-490, | ||
138 | ||
] | ||
}, | ||
{ | ||
"frame": 0.16666666666666666, | ||
"value": [ | ||
-384, | ||
104 | ||
] | ||
}, | ||
{ | ||
"frame": 0.3333333333333333, | ||
"value": [ | ||
-297, | ||
43 | ||
] | ||
}, | ||
{ | ||
"frame": 0.5, | ||
"value": [ | ||
-210, | ||
-50 | ||
] | ||
}, | ||
{ | ||
"frame": 0.6666666666666666, | ||
"value": [ | ||
-66, | ||
-118 | ||
] | ||
}, | ||
{ | ||
"frame": 0.75, | ||
"value": [ | ||
44.068650000060444, | ||
-176.21408600003195 | ||
] | ||
}, | ||
{ | ||
"frame": 0.8333333333333334, | ||
"value": [ | ||
159, | ||
-237 | ||
] | ||
} | ||
], | ||
"scaleX": [ | ||
{ | ||
"frame": 0, | ||
"value": -0.5 | ||
} | ||
] | ||
}, | ||
"comps": { | ||
"cc.Sprite": {} | ||
} | ||
}, | ||
"events": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"ver": "1.0.0", | ||
"uuid": "f0322748-84f4-4b0c-a2fc-2a09245fd56a", | ||
"subMetas": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"__type__": "cc.AnimationClip", | ||
"_name": "loop_2", | ||
"_objFlags": 0, | ||
"_rawFiles": null, | ||
"_duration": 0.06666666666666667, | ||
"sample": 60, | ||
"speed": 0.2, | ||
"wrapMode": 2, | ||
"curveData": { | ||
"comps": { | ||
"cc.Sprite": { | ||
"spriteFrame": [ | ||
{ | ||
"frame": 0, | ||
"value": { | ||
"__uuid__": "3a1ed85b-1ec9-4235-b171-f301dee1b757" | ||
} | ||
}, | ||
{ | ||
"frame": 0.016666666666666666, | ||
"value": { | ||
"__uuid__": "c4a58ea1-696a-4d3b-bd62-c6358a321951" | ||
} | ||
}, | ||
{ | ||
"frame": 0.03333333333333333, | ||
"value": { | ||
"__uuid__": "2b21f22f-f539-4c4f-9848-c78d9b906f2d" | ||
} | ||
}, | ||
{ | ||
"frame": 0.05, | ||
"value": { | ||
"__uuid__": "de318781-924b-426c-ba1e-2b98091e885b" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"events": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"ver": "1.0.0", | ||
"uuid": "a1245423-1078-4b7d-82fb-3c39701634c2", | ||
"subMetas": {} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ver": "1.0.1", | ||
"uuid": "f519f0e7-561e-46e4-be3c-52106e1ff7f9", | ||
"downloadMode": 0, | ||
"subMetas": {} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ver": "1.0.1", | ||
"uuid": "a2e2db48-870c-4ac6-94f5-fc68f50c4aa4", | ||
"downloadMode": 0, | ||
"subMetas": {} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ver": "1.0.1", | ||
"uuid": "05acaf81-d2be-42bf-a2df-1e22fdba1818", | ||
"downloadMode": 0, | ||
"subMetas": {} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ver": "1.0.1", | ||
"uuid": "f52e4420-691b-4899-b431-6c5cac24c9b7", | ||
"downloadMode": 0, | ||
"subMetas": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.