Commit ad0aef1a authored by yu's avatar yu

完成

parent 50fda7d2
{
"ver": "2.0.1",
"uuid": "190c6a7c-c159-4f34-a457-4cb1cbeb3b8e",
"downloadMode": 0,
"duration": 1.724082,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "c563e329-5a6d-4c18-bd3e-a1ae2cd8a6d7",
"downloadMode": 0,
"duration": 3.108571,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "a4aa74ab-2af4-4082-ac97-6f5cf031bb4e",
"downloadMode": 0,
"duration": 0.679184,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "e043048a-8d2e-406c-9117-57c36a2ab386",
"downloadMode": 0,
"duration": 1.48898,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "6d332545-0ef2-4cce-91be-9a960abd1d38",
"downloadMode": 0,
"duration": 2.008,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "80411b2c-54cf-415b-aa15-9f2545ab6bbc",
"downloadMode": 0,
"duration": 2.194286,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "77c658bb-7334-4790-ad56-a8ff431c81e0",
"downloadMode": 0,
"duration": 0.216,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "ceb9db5e-d745-4bf0-92ce-fe9a7236c140",
"downloadMode": 0,
"duration": 2.403265,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "c8326a05-8247-45c1-9761-6c925e6711f9",
"downloadMode": 0,
"duration": 0.86205,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "f68b7732-cc62-4433-b82f-c40d297301ba",
"downloadMode": 0,
"duration": 3.056327,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "b49bf634-7bdb-402f-81a5-0d8a833bffea",
"subMetas": {}
}
\ No newline at end of file
{"name":"榨汁机动画2","height":512,"SubTexture":[{"name":"杯子里橙汁","x":259,"height":97,"y":344,"width":122},{"name":"流出橙汁","x":710,"height":87,"y":1,"width":16},{"name":"横管果汁","x":1,"height":22,"y":473,"width":727},{"name":"管里果汁9","x":398,"height":71,"y":87,"width":154},{"name":"管里果汁10","x":398,"height":84,"y":1,"width":154},{"name":"管里果汁1","x":952,"height":48,"y":51,"width":25},{"name":"管里果汁7","x":880,"height":57,"y":447,"width":140},{"name":"管里果汁12","x":554,"height":115,"y":344,"width":154},{"name":"管里果汁2","x":963,"height":48,"y":1,"width":43},{"name":"管里果汁5","x":128,"height":50,"y":412,"width":106},{"name":"管里果汁14","x":259,"height":135,"y":207,"width":154},{"name":"管里果汁4","x":886,"height":48,"y":1,"width":75},{"name":"管里果汁3","x":886,"height":48,"y":51,"width":64},{"name":"管里果汁13","x":398,"height":127,"y":344,"width":154},{"name":"管里果汁6","x":1,"height":54,"y":412,"width":125},{"name":"管里果汁11","x":730,"height":101,"y":344,"width":154},{"name":"管里果汁8","x":730,"height":62,"y":447,"width":148},{"name":"管里果汁15","x":242,"height":204,"y":1,"width":154},{"name":"桶里果汁最高","x":1,"height":171,"y":239,"width":256},{"name":"黄色按钮3","x":398,"height":29,"y":160,"width":27},{"name":"黄色按钮2","x":979,"height":29,"y":51,"width":27},{"name":"黄色按钮1","x":979,"height":29,"y":82,"width":27},{"name":"旋转橙子1","x":1,"height":236,"frameY":-8,"y":1,"frameHeight":248,"frameX":-4,"frameWidth":248,"width":239}],"imagePath":"榨汁机动画2_tex.png","width":1024}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "385bfbab-482a-4d65-b7e0-dab379236bf5",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8861c6cc-bfef-4e13-9de0-46dbabfcd48f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 512,
"platformSettings": {},
"subMetas": {
"榨汁机动画2_tex": {
"ver": "1.0.4",
"uuid": "4c42524e-a81f-43c0-907e-0a5846a3aee6",
"rawTextureUuid": "8861c6cc-bfef-4e13-9de0-46dbabfcd48f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1.5,
"offsetY": 1,
"trimX": 1,
"trimY": 1,
"width": 1019,
"height": 508,
"rawWidth": 1024,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "f1a54180-72bc-4e56-9996-dd41106962a9",
"subMetas": {}
}
\ No newline at end of file
{"width":2048,"imagePath":"结束动画2_tex.png","height":2048,"name":"结束动画2","SubTexture":[{"width":1117,"y":1,"height":1080,"name":"光","x":1},{"width":54,"y":575,"height":57,"name":"黄点点","x":1488},{"width":30,"y":523,"height":30,"name":"蓝圈圈","x":1754},{"width":75,"y":132,"height":79,"name":"点点","x":1465},{"width":42,"y":584,"height":42,"name":"黄圈圈","x":1818},{"width":6,"y":734,"height":6,"name":"花31","x":1989},{"width":15,"y":760,"height":15,"name":"花32","x":1961},{"width":16,"y":777,"height":14,"name":"花33","x":1961},{"width":11,"y":564,"height":8,"name":"花34","x":1855},{"width":8,"y":572,"height":4,"name":"花35","x":2027},{"width":8,"y":572,"height":4,"name":"花36","x":2037},{"width":10,"y":432,"height":7,"name":"花37","x":1421},{"width":7,"y":213,"height":5,"name":"花38","x":1480},{"width":5,"y":432,"height":8,"name":"花39","x":1433},{"width":7,"y":722,"height":8,"name":"花310","x":1919},{"width":13,"y":213,"height":5,"name":"花311","x":1465},{"width":8,"y":422,"height":14,"name":"花312","x":2004},{"width":5,"y":628,"height":10,"name":"花313","x":1854},{"width":6,"y":726,"height":6,"name":"花11","x":1989},{"width":6,"y":353,"height":19,"name":"花12","x":1217},{"width":7,"y":673,"height":19,"name":"花13","x":1990},{"width":10,"y":432,"height":7,"name":"花14","x":1409},{"width":9,"y":694,"height":5,"name":"花15","x":1990},{"width":10,"y":574,"height":8,"name":"花16","x":1855},{"width":14,"y":576,"height":6,"name":"花17","x":1754},{"width":19,"y":519,"height":19,"name":"圆点桔3","x":1386},{"width":19,"y":555,"height":19,"name":"圆点黄5","x":1754},{"width":19,"y":705,"height":19,"name":"圆点桔2","x":1976},{"width":12,"y":744,"height":12,"name":"圆点黄4","x":2007},{"width":12,"y":753,"height":12,"name":"圆点黄3","x":2021},{"width":12,"y":758,"height":12,"name":"圆点桔1","x":2007},{"width":16,"y":717,"height":16,"name":"圆点黄2","x":2023},{"width":16,"y":744,"height":16,"name":"圆点黄1","x":1989},{"width":16,"y":628,"height":16,"name":"圆点蓝1","x":1818},{"width":16,"y":735,"height":16,"name":"圆点蓝2","x":2023},{"width":16,"y":628,"height":16,"name":"圆点蓝3","x":1836},{"width":101,"y":1,"height":129,"name":"f","x":1441},{"width":49,"y":670,"height":131,"name":"i","x":1290},{"width":108,"y":243,"height":104,"name":"n","x":1227},{"width":49,"y":442,"height":131,"name":"i_0","x":1493},{"width":80,"y":330,"height":106,"name":"s","x":1796},{"width":107,"y":1,"height":129,"name":"h","x":1229},{"width":66,"y":516,"height":76,"name":"黄烟花5","x":1868},{"width":113,"y":132,"height":109,"name":"黄烟花15","x":1120},{"width":82,"y":464,"height":101,"name":"黄烟花9","x":1302},{"width":62,"y":646,"height":60,"name":"黄烟花2","x":1818},{"width":83,"y":465,"height":113,"name":"黄烟花11","x":1120},{"width":80,"y":670,"height":85,"name":"黄烟花7","x":1120},{"width":116,"y":1,"height":108,"name":"黄烟花16","x":1544},{"width":116,"y":111,"height":107,"name":"黄烟花17","x":1544},{"width":95,"y":330,"height":110,"name":"黄烟花12","x":1447},{"width":82,"y":330,"height":104,"name":"黄烟花10","x":1628},{"width":76,"y":756,"height":77,"name":"黄烟花6","x":1202},{"width":106,"y":220,"height":108,"name":"黄烟花14","x":1465},{"width":116,"y":111,"height":107,"name":"黄烟花18","x":1662},{"width":105,"y":243,"height":108,"name":"黄烟花13","x":1120},{"width":59,"y":835,"height":54,"name":"黄烟花1","x":1198},{"width":83,"y":666,"height":88,"name":"黄烟花8","x":1205},{"width":63,"y":516,"height":65,"name":"黄烟花4","x":1936},{"width":62,"y":523,"height":61,"name":"黄烟花3","x":1626},{"width":83,"y":349,"height":113,"name":"粉烟花11","x":1324},{"width":105,"y":220,"height":108,"name":"粉烟花13","x":1789},{"width":82,"y":330,"height":104,"name":"粉烟花10","x":1544},{"width":62,"y":584,"height":60,"name":"粉烟花2","x":1754},{"width":59,"y":803,"height":54,"name":"粉烟花1","x":1280},{"width":62,"y":523,"height":61,"name":"粉烟花3","x":1690},{"width":95,"y":353,"height":110,"name":"粉烟花12","x":1120},{"width":66,"y":438,"height":76,"name":"粉烟花5","x":1936},{"width":82,"y":567,"height":101,"name":"粉烟花9","x":1302},{"width":116,"y":110,"height":107,"name":"粉烟花17","x":1898},{"width":83,"y":576,"height":88,"name":"粉烟花8","x":1205},{"width":116,"y":111,"height":107,"name":"粉烟花18","x":1780},{"width":106,"y":220,"height":108,"name":"粉烟花14","x":1573},{"width":80,"y":436,"height":85,"name":"粉烟花7","x":1708},{"width":116,"y":1,"height":108,"name":"粉烟花16","x":1780},{"width":76,"y":757,"height":77,"name":"粉烟花6","x":1120},{"width":113,"y":132,"height":109,"name":"粉烟花15","x":1350},{"width":63,"y":583,"height":65,"name":"粉烟花4","x":1936},{"width":82,"y":330,"height":104,"name":"粉烟花10_1","x":1712},{"width":59,"y":859,"height":54,"name":"粉烟花1_1","x":1280},{"width":113,"y":132,"height":109,"name":"粉烟花15_1","x":1235},{"width":83,"y":580,"height":88,"name":"粉烟花8_1","x":1120},{"width":116,"y":1,"height":107,"name":"粉烟花17_1","x":1898},{"width":62,"y":544,"height":61,"name":"粉烟花3_1","x":1544},{"width":106,"y":220,"height":108,"name":"粉烟花14_1","x":1681},{"width":82,"y":442,"height":101,"name":"粉烟花9_1","x":1409},{"width":95,"y":349,"height":110,"name":"粉烟花12_1","x":1227},{"width":116,"y":1,"height":108,"name":"粉烟花16_1","x":1662},{"width":105,"y":328,"height":108,"name":"粉烟花13_1","x":1896},{"width":83,"y":461,"height":113,"name":"粉烟花11_1","x":1217},{"width":76,"y":438,"height":77,"name":"粉烟花6_1","x":1790},{"width":80,"y":436,"height":85,"name":"粉烟花7_1","x":1626},{"width":116,"y":219,"height":107,"name":"粉烟花18_1","x":1898},{"width":62,"y":646,"height":60,"name":"粉烟花2_1","x":1754},{"width":63,"y":517,"height":65,"name":"粉烟花4_1","x":1790},{"width":66,"y":438,"height":76,"name":"粉烟花5_1","x":1868},{"width":21,"y":578,"height":137,"name":"蓝条6","x":2024},{"width":14,"y":733,"height":53,"name":"蓝条2_1","x":1919},{"width":12,"y":544,"height":104,"name":"蓝条9","x":1608},{"width":8,"y":756,"height":21,"name":"蓝条1_1","x":1280},{"width":11,"y":717,"height":25,"name":"蓝条13","x":2010},{"width":11,"y":733,"height":30,"name":"蓝条12","x":1935},{"width":17,"y":650,"height":81,"name":"蓝条3_1","x":1929},{"width":21,"y":891,"height":102,"name":"蓝条4_1","x":1211},{"width":22,"y":594,"height":126,"name":"蓝条5","x":1905},{"width":11,"y":517,"height":45,"name":"蓝条11","x":1855},{"width":17,"y":670,"height":131,"name":"蓝条8","x":1365},{"width":12,"y":843,"height":53,"name":"蓝条10","x":1919},{"width":22,"y":147,"height":144,"name":"蓝条7","x":2016},{"width":12,"y":650,"height":53,"name":"蓝条10_1","x":1976},{"width":17,"y":964,"height":81,"name":"蓝条3_2","x":1166},{"width":11,"y":555,"height":25,"name":"蓝条13_1","x":1775},{"width":22,"y":836,"height":126,"name":"蓝条5_1","x":1168},{"width":17,"y":439,"height":131,"name":"蓝条8_1","x":2027},{"width":12,"y":722,"height":104,"name":"蓝条9_1","x":1905},{"width":11,"y":756,"height":30,"name":"蓝条12_1","x":1948},{"width":14,"y":788,"height":53,"name":"蓝条2_2","x":1919},{"width":22,"y":293,"height":144,"name":"蓝条7_1","x":2016},{"width":21,"y":439,"height":137,"name":"蓝条6_1","x":2004},{"width":21,"y":964,"height":102,"name":"蓝条4_2","x":1120},{"width":8,"y":779,"height":21,"name":"蓝条1_2","x":1280},{"width":11,"y":594,"height":45,"name":"蓝条11_1","x":1862},{"width":12,"y":650,"height":53,"name":"蓝条10_2","x":1962},{"width":11,"y":328,"height":45,"name":"蓝条11_2","x":2003},{"width":17,"y":349,"height":81,"name":"蓝条3_3","x":1428},{"width":17,"y":891,"height":131,"name":"蓝条8_2","x":1192},{"width":11,"y":717,"height":25,"name":"蓝条13_2","x":1997},{"width":22,"y":836,"height":126,"name":"蓝条5_2","x":1120},{"width":21,"y":578,"height":137,"name":"蓝条6_2","x":2001},{"width":8,"y":650,"height":21,"name":"蓝条1_3","x":1990},{"width":21,"y":891,"height":102,"name":"蓝条4_3","x":1234},{"width":22,"y":1,"height":144,"name":"蓝条7_2","x":2016},{"width":11,"y":765,"height":30,"name":"蓝条12_2","x":1935},{"width":14,"y":243,"height":53,"name":"蓝条2_3","x":1447},{"width":12,"y":330,"height":104,"name":"蓝条9_2","x":1878},{"width":21,"y":594,"height":137,"name":"蓝条6_3","x":1882},{"width":11,"y":375,"height":45,"name":"蓝条11_3","x":2003},{"width":21,"y":964,"height":102,"name":"蓝条4_4","x":1143},{"width":11,"y":726,"height":25,"name":"蓝条13_3","x":1976},{"width":8,"y":753,"height":21,"name":"蓝条1_4","x":1978},{"width":14,"y":464,"height":53,"name":"蓝条2_4","x":1386},{"width":17,"y":349,"height":81,"name":"蓝条3_4","x":1409},{"width":22,"y":836,"height":126,"name":"蓝条5_3","x":1144},{"width":22,"y":670,"height":144,"name":"蓝条7_3","x":1341},{"width":11,"y":298,"height":30,"name":"蓝条12_3","x":1447},{"width":12,"y":705,"height":53,"name":"蓝条10_3","x":1962},{"width":12,"y":650,"height":104,"name":"蓝条9_3","x":1948},{"width":17,"y":835,"height":131,"name":"蓝条8_3","x":1259},{"width":101,"y":1,"height":129,"name":"f2","x":1338},{"width":107,"y":1,"height":129,"name":"h2","x":1120},{"width":49,"y":545,"height":131,"name":"i2","x":1437},{"width":49,"y":545,"height":131,"name":"i2_0","x":1386},{"width":108,"y":243,"height":104,"name":"n2","x":1337},{"width":80,"y":436,"height":106,"name":"s2","x":1544}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "c3b4b17b-1c60-4814-aa75-79721d7d862f",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "fd42189e-ce37-4009-a21c-0f9fee3f5b84",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 2048,
"platformSettings": {},
"subMetas": {
"结束动画2_tex": {
"ver": "1.0.4",
"uuid": "afba1d20-7ad2-4d92-8c16-b3989ec7019e",
"rawTextureUuid": "fd42189e-ce37-4009-a21c-0f9fee3f5b84",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": 483,
"trimX": 1,
"trimY": 1,
"width": 2044,
"height": 1080,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "c551970e-b095-45f3-9f1d-25cde8b8deb1",
"uuid": "c0d609d6-316c-476b-bd0e-0a11779e3a65",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -8,7 +8,7 @@
const { ccclass, property } = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
export default class Box2d extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
......@@ -17,7 +17,7 @@ export default class NewClass extends cc.Component {
text: string = 'hello';
// LIFE-CYCLE CALLBACKS:
private layout_item: cc.Node;
onLoad() {
cc.director.getPhysicsManager().enabled = true;
......@@ -27,7 +27,8 @@ export default class NewClass extends cc.Component {
// cc.PhysicsManager.DrawBits.e_centerOfMassBit |
cc.PhysicsManager.DrawBits.e_jointBit |
cc.PhysicsManager.DrawBits.e_shapeBit;
cc.director.getPhysicsManager().gravity = cc.v2(0, -320);
// cc.director.getPhysicsManager().gravity = cc.v2(0, -320);
cc.director.getPhysicsManager().gravity = cc.v2(0, -640);
// 开启物理步长的设置
......@@ -40,21 +41,101 @@ export default class NewClass extends cc.Component {
// 每次更新物理系统处理位置的迭代次数,默认为 10
cc.PhysicsManager.POSITION_ITERATIONS = 8;
setTimeout(() => {
let item = this.node.getChildByName("item2")
let rigid = item.getComponent(cc.RigidBody)
rigid.linearVelocity = cc.v2(-100, 0)
}, 1500);
// rigid.applyLinearImpulse(cc.v2(1000, 10000), rigid.getWorldCenter(), true)
// setTimeout(() => {
// let item = this.node.getChildByName("item2")
// let rigid = item.getComponent(cc.RigidBody);
// rigid.applyForceToCenter(cc.v2(-80, 0), true);
// }, 3000);
// let rigid = item.getComponent(cc.RigidBody)
// rigid.linearVelocity = cc.v2(-100, 0)
// }, 1500);
this.layout_item = this.node.getChildByName('layout_item')
this.initOrange();
// setTimeout(() => {
// this.jumpOrange();
// }, 1000);
// setTimeout(() => {
// this.jumpOrange();
// }, 6000);
// setTimeout(() => {
// this.jumpOrange();
// }, 11000);
// setTimeout(() => {
// this.jumpOrange();
// }, 16000);
// setTimeout(() => {
// this.jumpOrange();
// }, 21000);
// setTimeout(() => {
// this.jumpRoll();
// }, 26000);
}
current: number;
initOrange() {
this.layout_item.removeAllChildren();
let item = this.node.getChildByName("item");
let p0 = cc.v2(-320, 305);
let pSpace = cc.v2(120, 0)
let ids = [101, 102, 103, 104, 105]
this.current = 0;
for (let i = 0; i < ids.length; i++) {
let node = cc.instantiate(item);
node.active = true;
node.data = ids[i];
this.layout_item.addChild(node);
node.x = p0.x + pSpace.x * i;
node.y = p0.y;
}
}
findItemByIds(ids): Array<cc.Node> {
return this.layout_item.children.filter(node => ids.some(id => id == node.data))
}
jumpOrange() {
this.current;
let baffle = this.node.getChildByName('baffle')
baffle.active = false;
let lid = this.node.getChildByName('lid')
lid.active = false;
// 根据current来找橘子及后续的内容
let ids = [101, 102, 103, 104, 105].concat();
let jumping: any = [ids[this.current++]];
let moveing: any = []
for (let i = this.current; i < ids.length; i++) {
moveing.push(ids[i]);
}
jumping = this.findItemByIds(jumping)
moveing = this.findItemByIds(moveing)
jumping.forEach(node => {
node.getComponent(cc.RigidBody).linearVelocity = cc.v2(-200, 0)
})
moveing.forEach(node => {
node.getComponent(cc.RigidBody).linearVelocity = cc.v2(-100, 0)
this.scheduleOnce(() => {
// node.getComponent(cc.RigidBody).linearVelocity = cc.v2(0, 0)
baffle.active = true;
}, 1.2)
})
}
jumpRoll() {
let lid = this.node.getChildByName('lid')
lid.active = true;
this.layout_item.children.forEach(node => {
node.getComponent(cc.RigidBody).linearVelocity = cc.v2(370, 500)
})
setTimeout(() => {
this.layout_item.children.forEach(node => {
node.getComponent(cc.RigidBody).linearVelocity = cc.v2(-370, 500)
})
}, 1000);
setTimeout(() => {
this.layout_item.children.forEach(node => {
node.getComponent(cc.RigidBody).linearVelocity = cc.v2(370, 500)
})
}, 2000);
setTimeout(() => {
this.layout_item.children.forEach(node => {
node.getComponent(cc.RigidBody).linearVelocity = cc.v2(-370, 500)
})
}, 3000);
}
start() {
}
......
import { asyncDelay, onHomeworkFinish } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
const { ccclass, property } = cc._decorator;
@ccclass
export default class SceneComponent extends MyCocosSceneComponent {
addPreloadImage() {
// TODO 根据自己的配置预加载图片资源
this._imageResList.push({ url: this.data.pic_url });
this._imageResList.push({ url: this.data.pic_url_2 });
}
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
this._audioResList.push({ url: this.data.audio_url });
}
addPreloadAnima() {
}
onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();
this.initView();
this.initListener();
}
_cantouch = null;
initData() {
// 所有全局变量 默认都是null
this._cantouch = true;
}
initView() {
// 使用物理引擎
}
update(dt) {
// let item = this.node.getChildByName("item");
// item.y -= 5;
}
initListener() {
}
playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false);
cc.audioEngine.setFinishCallback(id, () => {
resolve(id);
});
})
}
}
This diff is collapsed.
This diff is collapsed.
{
"ver": "1.0.8",
"uuid": "408a67f8-65fa-4cf1-8cf2-83e20e1a0fd5",
"uuid": "dcc9545d-598a-41e7-9344-e4759f13bace",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "28840a79-ffb1-4025-b5fe-cf46a96d93c0",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "layout_mouse",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [
{
"__id__": 13
}
],
"_prefab": {
"__id__": 14
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 1,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 6
},
{
"__id__": 9
}
],
"_active": false,
"_components": [],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "star_bg",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": {
"__id__": 5
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 59,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
},
"fileId": "1a6bNni9hAzZuAOicd4es+",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "star",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
}
],
"_prefab": {
"__id__": 8
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 59,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
},
"fileId": "0dcJdIc9BNfbQiPTRx9GVW",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "icon_bigstar",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": {
"__id__": 11
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 59,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
},
"fileId": "e8QBmuw8VOBYptnR5JD386",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
},
"fileId": "9eIg5jomZOV5E+Yzh+2uPU",
"sync": false
},
{
"__type__": "e9eaeH4ZsVKx4dSvhRwGuVF",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"bigStarClip": {
"__uuid__": "71b51036-3bca-4d2a-84e1-fedc216ba064"
},
"starCountClip": {
"__uuid__": "71b51036-3bca-4d2a-84e1-fedc216ba064"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "564dd930-80a8-4d89-bf96-f0f5be1e92cb",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import pg from "../tool/pg";
// import Game from "../../scene/Game";
const { ccclass, property } = cc._decorator;
@ccclass
export default class Ngt_star_10 extends cc.Component {
// LIFE-CYCLE CALLBACKS:
onLoad() {
pg.event.on("mouse_10_add", (isRight = true) => {
this.showBigStar(isRight);
});
pg.event.on("mouse_10_num", (max: number) => {
this.initStar(max);
});
pg.event.on("mouse_10_add_error", (isRight = true) => {
this.showErrorStar();
});
}
init(max) {
}
reviceMouse() {
}
start() {
}
//-----------------------STAR-----------------------------
bigStarArr: cc.Node[];
canvas: cc.Node;
curGroupIndex: number
@property(cc.Vec2)
position: cc.Vec2;
@property(cc.AudioClip)
bigStarClip: cc.AudioClip;
@property(cc.AudioClip)
starCountClip: cc.AudioClip;
//搭配res中的star_bg star等使用
initStar(max) {
this.curGroupIndex = 0;
this.canvas = cc.find('Canvas');
const gArr = [];
gArr.length = max;
if (gArr.length < 1) {
return;
}
this.cleanStar();
this.bigStarArr = [];
let baseX = this.position.x;
let baseY = this.position.y;
let disW = 80;// * this._mapScaleMin
// let disH = 80 * this._mapScaleMin;
let disScale = 1;
if (gArr.length > 5) {
// disH = (400 / gArr.length) * this._mapScaleMin;
// disScale = 5 / gArr.length;
}
for (let i = 0; i < gArr.length; i++) {
const starBg = this.getSprNode('star_bg');
this.canvas.addChild(starBg, 10);
// starBg.x = baseX;
// starBg.y = baseY - i * disH;
starBg.x = baseX - i * disW;
starBg.y = baseY
starBg.scale = disScale;
const starTop = this.getSprNode('star');
starBg.addChild(starTop);
starTop.active = false;
starBg.star = starTop;
const starBig = this.getSprNode('icon_bigstar');
starTop.addChild(starBig);
starBig.angle = -90;
starBg.starBig = starBig;
const star_wrong = this.getSprNode('star_wrong');
starTop.addChild(star_wrong);
star_wrong.active = false;
starBg.star_wrong = star_wrong;
this.bigStarArr.push(starBg);
}
console.log("bigStarArr: ", this.bigStarArr);
}
cleanStar() {
if (this.bigStarArr && this.bigStarArr.length > 0) {
for (let i = 0; i < this.bigStarArr.length; i++) {
this.bigStarArr[i].removeFromParent();
}
}
}
private showErrorStar() {
if (!this.bigStarArr || this.bigStarArr.length <= 0) {
// this.checkGameEnd();
return;
}
const bigStarBg = this.bigStarArr[this.curGroupIndex++];
if (!bigStarBg) return;
const star_wrong = bigStarBg.star_wrong;
star_wrong.active = true;
const starBig = bigStarBg.starBig;
// starBig.scale = 1;
starBig.active = false;
const star = bigStarBg.star;
star.active = true;
const canvas = cc.find('Canvas');
const startPos = this.exchangeNodePos(star.parent, canvas);
const middlePos = this.exchangeNodePos(star.parent, canvas);
star.x = 0;
star.y = 0;
star.scale = 1 / bigStarBg.scale;
pg.event.emit("mouse_10_num_game_end")
}
showBigStar(isRight) {
if (!this.bigStarArr || this.bigStarArr.length <= 0) {
// this.checkGameEnd();
return;
}
const bigStarBg = this.bigStarArr[this.curGroupIndex++];
if (!bigStarBg) return;
const starBig = bigStarBg.starBig;
starBig.scale = 1;
const star = bigStarBg.star;
star.active = true;
star.scaleX = 0.7 / bigStarBg.scale;
star.scaleY = 1 / bigStarBg.scale;
star.angle = 90;
const canvas = cc.find('Canvas');
const startPos = this.exchangeNodePos(star.parent, canvas);
const middlePos = this.exchangeNodePos(star.parent, canvas);
star.x = startPos.x;
star.y = startPos.y - starBig.height;
console.log('middlePos = ' + JSON.stringify(middlePos));
const time = 1;
cc.tween(star)
.to(0.3, { y: middlePos.y + 80 }, { easing: 'quadOut' })
.to(0.1, { y: middlePos.y + 40, scaleX: 1.2 / bigStarBg.scale, scaleY: 0.8 / bigStarBg.scale }, { easing: 'quadOut' })
.to(0.1, { y: middlePos.y, scaleX: 1 / bigStarBg.scale, scaleY: 1 / bigStarBg.scale }, { easing: 'quadOut' })
.delay(0.1)
.to(0.8, { angle: -720, scale: 1 })
.start();
cc.tween(star)
.delay(0.6)
.to(0.8, { x: 0 }, { easing: 'quadIn' })
.start();
cc.tween(star)
.delay(0.6)
.to(0.8, { y: 0 }, { easing: 'quadOut' })
.start();
cc.tween(starBig)
.delay(0.6)
.to(0.8, { scale: 0 }, { easing: 'quadOut' })
.call(() => {
pg.event.emit("mouse_10_num_game_end")
// this.playAudio(this.starCountClip);
})
.start();
this.playAudio(this.bigStarClip);
}
//-----------------------STAR-----------------------------
getSprNode(resName) {
const sf = pg.view.find(this, `img/${resName}`).getComponent(cc.Sprite).spriteFrame;
const node = new cc.Node();
node.addComponent(cc.Sprite).spriteFrame = sf;
return node;
}
exchangeNodePos(baseNode, targetNode) {
return baseNode.convertToNodeSpaceAR(targetNode._parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y)));
}
playAudio(audioClip, cb = null) {
if (audioClip) {
const audioId = cc.audioEngine.playEffect(audioClip, false);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
}
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "c6d2b333-2790-41e1-a04a-dea0262fa433",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "8c000827-2cad-4ff2-b486-2d8ade787b0d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
export enum FISH_OUT {
RUNNING,
TOUCH,
CATCH,
ESCAP,
OUT
}
export class Fish {
public isOut: number;
public node: cc.Node;
public isLeft: boolean;//在左侧 向右运动
constructor() {
this.isOut = 0;
this.isLeft = Math.random() < 0.5;
}
}
export class Option {
public type;
public txt;
public picUrl;
public audioUrl;
public right: boolean;
public data;
public page: number;
public count: number;
public time: number;
public touchRight: boolean;
public parent;
public pairKey;
constructor(data, id) {
this.page = id;
this.type = data.type;
// this.count = 0;
this.txt = data.text;
// this.time = data.duration;
this.picUrl = data.image;
this.audioUrl = data.audio;
this.right = data.right;
this.touchRight = false;
}
}
export class Item {
public page;
public audio;
public duration;
public optionList;
public bgItem;
public hotZoneItemArr;
public word;
public text: string;
public isClick: boolean;
constructor(data, page) {
this.audio = data.audio;
this.text = data.text;
this.word = data.word;
this.duration = data.time;
this.page = page;
// this.optionList = data.options.map((o, idx) => {
// return new Option(o, this.page);
// })
// this.optionList.sort(function () {
// return (0.5 - Math.random());
// });
this.isClick = false;
}
}
class Role {
public score: number;
public right: number;
public error: number;
public voices: Array<any>;
constructor() {
this.score = 0;
this.error = 0;
this.right = 0;
this.voices = [];
}
addScore(score: number = 1) {
this.score += score;
}
addError(score: number = 1) {
this.error += score;
}
addRight() {
this.right += 1;
}
addVoice(obj: any) {
this.voices.push(obj);
}
}
export class Player extends Role {
constructor() {
super();
}
reset() {
this.score = 0;
this.error = 0;
this.right = 0;
this.voices = [];
}
}
export class Robot extends Role {
constructor() {
super();
}
reset() {
this.score = 0;
this.error = 0;
this.right = 0;
this.voices = [];
}
}
export enum GAME_STATE {
WAIT,
RUNNING,
OVER
}
export default class Game {
private static ins: Game;
public static getIns(): Game {
if (!Game.ins) Game.ins = new Game();
return Game.ins;
}
private data: any;
private lists: Array<Item>
public player: Player;
public robot: Robot;
public state: GAME_STATE;
public total: number;
constructor() {
this.start = false;
this.lists = [];
this.player = new Player();
this.robot = new Robot();
this.state = GAME_STATE.WAIT;
}
get len() {
return this.lists.length;
}
public question: { text, audio };
public title: string;
public isCanClick: boolean;
public failCount;
public dispelCount;
public aniEnter;
public startAudio: string;
// public questionText: string;
public init(data) {
// this.question = { text: data.questionText, audio: data.questionTextAudio };
this.title = data.title;
this.startAudio = data.startAudio || "";
// this.questionText = data.questionText;
this.start = false;
this.lists = [];
this.data = data.questions;
this.aniEnter = data.imgAni;
}
public start: boolean;
public page: number;
reset() {
this.isCanClick = false;
this.failCount = 0;
this.dispelCount = 0;
this.player.reset();
this.robot.reset();
this.page = 1;
this.start = true;
this.lists = [];
for (let i = 0; i < this.data.length; i++) {
let data = this.data[i];
this.lists.push(new Item(data, i + 1));
}
this.state = GAME_STATE.WAIT;
this.total = this.lists.length;
}
public getCardInfo() {
let chips: Array<Option> = [];
this.lists.forEach((item) => {
item.optionList.forEach((op) => {
chips.push(op);
})
});
chips.sort(function () {
return (0.5 - Math.random());
});
return chips;
}
public getList() {
return this.lists;
}
// checkSuccess(arr: Option[]) {
// let data = this.getCurrentPage();
// let options = data.optionList.concat();
// options.sort((A, B) => A.id - B.id)
// for (let i = 0; i < options.length; i++) {
// if (arr[i] && arr[i].id != options[i].id) {
// return false;
// }
// }
// return true;
// }
// getDataByPage(page): Item {
// return this.lists.filter(li => li.page == page)[0]
// }
getCurrentPage(): Item {
let page = this.page;
return this.lists.filter(li => li.page == page)[0]
}
getTotalPageNum() {
return this.lists.length;
}
getCurrentPageNum() {
return this.page;
}
addPage() {
this.page += 1;
}
get getTotla() {
return this.lists.length;
// this.total = 0;
// this.lists.forEach((item) => {
// this.total += item.rNum;
// })
// return this.total;
}
get isOver() {
return this.page > this.lists.length;
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "52bbca66-7f98-4d59-83d2-e5fdd23b7de8",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.8",
"uuid": "5fd84819-61ef-41a9-82f6-b9db5dcfb6bd",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
export const defaultData = {
"pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png",
"pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png",
"text": "This is a test label.",
"audio_url": "http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3"
export const defaultData =
{
"imgAni": {
"ske": {
"url": "http://staging-teach.cdn.ireadabc.com/a7dc36aa85121807bb7e049642192cec.json",
"name": "niao_ske.json"
},
"tex": {
"url": "http://staging-teach.cdn.ireadabc.com/c635daaa86b4c5c39f4af88e826d3433.json",
"name": "niao_tex.json"
},
"png": {
"url": "http://staging-teach.cdn.ireadabc.com/75c87beb2b7d79033ace8978edc91a12.png",
"name": "niao_tex.png"
}
},
"tipSwitch": 1,
"startAudio": "http://staging-teach.cdn.ireadabc.com/36067f9e2415d59fa37c3795a3929087_l.mp3",
"audioName": "bear_3.mp3",
"title": "听音对话",
"questions": [
{
"type": "img",
"audio": "http://staging-teach.cdn.ireadabc.com/449e65975d358514cc3494f9f67bc012_l.mp3",
"text": "what are you kettle ?",
"image": "",
"time": 10,
"audioName": "cape.mp3",
"word": "oh no"
},
{
"type": "img",
"audio": "http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3",
"text": "what your name ?",
"image": "",
"time": 10,
"audioName": "bear_2.mp3",
"word": "join"
},
{
"type": "img",
"audio": "http://staging-teach.cdn.ireadabc.com/36067f9e2415d59fa37c3795a3929087_l.mp3",
"text": "what are you disdain?",
"image": "",
"time": 20,
"audioName": "bear_3.mp3",
"word": "why"
}
]
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "4c833bbb-dc27-42ff-a7e2-75c943c8065b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2751,
"height": 1080,
"platformSettings": {},
"subMetas": {
"img_zhazhiji": {
"ver": "1.0.4",
"uuid": "af7f3285-a8bb-42f0-8910-14054ebc3986",
"rawTextureUuid": "4c833bbb-dc27-42ff-a7e2-75c943c8065b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 248,
"offsetY": -113.5,
"trimX": 496,
"trimY": 227,
"width": 2255,
"height": 853,
"rawWidth": 2751,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "b4373756-ea59-4123-b3fc-bd9bad6a268d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a5ac1a4c-4d89-4f91-b8eb-7aa21b282f8d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 94,
"platformSettings": {},
"subMetas": {
"bg_top": {
"ver": "1.0.4",
"uuid": "6d7bc60b-e571-4c3d-91a4-278a2a7e70fe",
"rawTextureUuid": "a5ac1a4c-4d89-4f91-b8eb-7aa21b282f8d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 94,
"rawWidth": 1920,
"rawHeight": 94,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "13b24c23-f587-47a7-b9b7-56e3129ecc3d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 453,
"height": 92,
"platformSettings": {},
"subMetas": {
"btn_again": {
"ver": "1.0.4",
"uuid": "933e5186-2632-4ed2-a5aa-fa752d8c36a7",
"rawTextureUuid": "13b24c23-f587-47a7-b9b7-56e3129ecc3d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 453,
"height": 92,
"rawWidth": 453,
"rawHeight": 92,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9ccbe049-2752-427d-98d0-eebd6c347034",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 453,
"height": 92,
"platformSettings": {},
"subMetas": {
"btn_next": {
"ver": "1.0.4",
"uuid": "6c64e1c9-a02a-47d1-a688-9e0c23312bed",
"rawTextureUuid": "9ccbe049-2752-427d-98d0-eebd6c347034",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 453,
"height": 92,
"rawWidth": 453,
"rawHeight": 92,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "cd5674e1-efa0-4408-a248-8a4a9c34f112",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 54,
"height": 66,
"platformSettings": {},
"subMetas": {
"icon_right": {
"ver": "1.0.4",
"uuid": "418d1207-fc15-4e3e-b84e-ef0752749e3f",
"rawTextureUuid": "cd5674e1-efa0-4408-a248-8a4a9c34f112",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 54,
"height": 66,
"rawWidth": 54,
"rawHeight": 66,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ea57cbb5-040f-434e-a429-a6b0ef6c7cc9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 150,
"height": 150,
"platformSettings": {},
"subMetas": {
"icon_right2": {
"ver": "1.0.4",
"uuid": "eef20bb7-e198-4a4d-a999-149fb5f27c4a",
"rawTextureUuid": "ea57cbb5-040f-434e-a429-a6b0ef6c7cc9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 13,
"trimY": 0,
"width": 124,
"height": 150,
"rawWidth": 150,
"rawHeight": 150,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8fc0cc31-5cb1-4cf0-9000-06c019a78436",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 54,
"height": 66,
"platformSettings": {},
"subMetas": {
"icon_undone": {
"ver": "1.0.4",
"uuid": "c5d36316-eb9b-438f-9db6-bb882a5b12ab",
"rawTextureUuid": "8fc0cc31-5cb1-4cf0-9000-06c019a78436",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 54,
"height": 66,
"rawWidth": 54,
"rawHeight": 66,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "bce4df81-98f5-4a9d-8ac3-10ddc6ead98d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 54,
"height": 66,
"platformSettings": {},
"subMetas": {
"icon_wrong": {
"ver": "1.0.4",
"uuid": "00646a32-cd5e-4da4-8a2f-b60cc92e273a",
"rawTextureUuid": "bce4df81-98f5-4a9d-8ac3-10ddc6ead98d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 54,
"height": 66,
"rawWidth": 54,
"rawHeight": 66,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "fe0c0159-3aaa-4d11-887c-f5b853a131a2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 243,
"height": 72,
"platformSettings": {},
"subMetas": {
"tip_bg": {
"ver": "1.0.4",
"uuid": "2337e4c2-fd38-4f56-9faf-b736048edfa8",
"rawTextureUuid": "fe0c0159-3aaa-4d11-887c-f5b853a131a2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 243,
"height": 72,
"rawWidth": 243,
"rawHeight": 72,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
# Editor configuration, see https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment