Commit 3faa109b authored by Tt's avatar Tt

提交

parent a871575a
{
"ver": "2.0.1",
"uuid": "5333a02b-152f-4b7a-a95d-ed4ebbf120b3",
"downloadMode": 0,
"duration": 0.470204,
"subMetas": {}
}
\ No newline at end of file
...@@ -18,9 +18,9 @@ export default class cloundmove extends cc.Component { ...@@ -18,9 +18,9 @@ export default class cloundmove extends cc.Component {
onLoad() { onLoad() {
if (this.toLeft) { if (this.toLeft) {
cc.tween(this.node).by(500 + Math.random() * 100, { x: -2000 }).start(); cc.tween(this.node).by(300 + Math.random() * 100, { x: -2000 }).start();
} else { } else {
cc.tween(this.node).by(500 + Math.random() * 100, { x: 2000 }).start(); cc.tween(this.node).by(300 + Math.random() * 100, { x: 2000 }).start();
} }
} }
} }
...@@ -15,21 +15,22 @@ export default class netscale extends cc.Component { ...@@ -15,21 +15,22 @@ export default class netscale extends cc.Component {
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
onLoad() { onLoad() {
let scale = 0.05;
if (this.firstUp) { if (this.firstUp) {
cc.tween(this.node).repeatForever( cc.tween(this.node).repeatForever(
cc.tween() cc.tween()
.to(10, { scale: 0.97 }) .to(10, { scale: 1 - scale })
.to(10, { scale: 1.00 }) .to(10, { scale: 1 })
.to(10, { scale: 1.03 }) .to(10, { scale: 1 + scale })
.to(10, { scale: 1.00 }) .to(10, { scale: 1 })
).start(); ).start();
} else { } else {
cc.tween(this.node).repeatForever( cc.tween(this.node).repeatForever(
cc.tween() cc.tween()
.to(10, { scale: 1.03 }) .to(10, { scale: 1 + scale })
.to(10, { scale: 1.00 }) .to(10, { scale: 1 })
.to(10, { scale: 0.97 }) .to(10, { scale: 1 - scale })
.to(10, { scale: 1.00 }) .to(10, { scale: 1.00 })
).start(); ).start();
} }
} }
......
This diff is collapsed.
...@@ -193,31 +193,38 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -193,31 +193,38 @@ export default class SceneComponent extends MyCocosSceneComponent {
let fishNode = pg.view.find(item, `fish/fish_${i}`) let fishNode = pg.view.find(item, `fish/fish_${i}`)
fishNode.active = i == count fishNode.active = i == count
} }
item.active = false;
//左往右 //左往右
if (Math.random() < 0.5) { if (Math.random() < 0.5) {
item.x = -(1920 / 2 + Math.random() * 200) item.x = -(1920 / 2 + Math.random() * 200)
item.y = -315 - Math.random() * 150; item.y = -315 - Math.random() * 150;
item.scaleX = -1; item.scaleX = -1;
text.scaleX = -1; text.scaleX = -1;
cc.tween(item).repeatForever(cc.tween().by(7 + Math.random() * 8, { x: 1920 + 400 }).call(() => { this.scheduleOnce(() => {
item.scaleX = -item.scaleX; item.active = true;
text.scaleX = -text.scaleX; cc.tween(item).repeatForever(cc.tween().by(21 + (data.id % 10), { x: 1920 + 400 }).call(() => {
}).by(7 + Math.random() * 8, { x: - 1920 - 400 }).call(() => { item.scaleX = -item.scaleX;
item.scaleX = -item.scaleX; text.scaleX = -text.scaleX;
text.scaleX = -text.scaleX; }).by(7 + Math.random() * 8, { x: - 1920 - 400 }).call(() => {
})).start(); item.scaleX = -item.scaleX;
text.scaleX = -text.scaleX;
})).start();
}, data.id % 10)
} else { } else {
item.x = 1920 / 2 + Math.random() * 200 item.x = 1920 / 2 + Math.random() * 200
item.y = -315 - Math.random() * 150; item.y = -315 - Math.random() * 150;
item.scaleX = 1; item.scaleX = 1;
text.scaleX = 1; text.scaleX = 1;
cc.tween(item).repeatForever(cc.tween().by(7 + Math.random() * 8, { x: -1920 - 400 }).call(() => { this.scheduleOnce(() => {
item.scaleX = -item.scaleX; item.active = true;
text.scaleX = -text.scaleX; cc.tween(item).repeatForever(cc.tween().by(21 + (data.id % 10), { x: -1920 - 400 }).call(() => {
}).by(7 + Math.random() * 8, { x: 1920 + 400 }).call(() => { item.scaleX = -item.scaleX;
item.scaleX = -item.scaleX; text.scaleX = -text.scaleX;
text.scaleX = -text.scaleX; }).by(7 + Math.random() * 8, { x: 1920 + 400 }).call(() => {
})).start(); item.scaleX = -item.scaleX;
text.scaleX = -text.scaleX;
})).start();
}, data.id % 10)
} }
item.on(cc.Node.EventType.TOUCH_START, this.onItemTouchStart, this); item.on(cc.Node.EventType.TOUCH_START, this.onItemTouchStart, this);
item.on(cc.Node.EventType.TOUCH_MOVE, this.onItemTouchMove, this); item.on(cc.Node.EventType.TOUCH_MOVE, this.onItemTouchMove, this);
...@@ -239,6 +246,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -239,6 +246,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let data: Option = target.data; let data: Option = target.data;
this.setTouchPos(e); this.setTouchPos(e);
this.touching = data; this.touching = data;
this.playLocalAudio("fish")
} }
onItemTouchMove(e) { onItemTouchMove(e) {
let target: cc.Node = e.target; let target: cc.Node = e.target;
...@@ -264,19 +272,24 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -264,19 +272,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
let currentRect = null; let currentRect = null;
if (rect.intersects(leftRect)) { if (rect.intersects(leftRect)) {
isRight = !!Game.getIns().boatLeft.isChild(data); isRight = !!Game.getIns().boatLeft.isChild(data);
Game.getIns().boatLeft.setRight(data); isRight && Game.getIns().boatLeft.setRight(data);
currentRect = leftRect; currentRect = leftRect;
} else if (rect.intersects(rightRect)) { } else if (rect.intersects(rightRect)) {
isRight = !!Game.getIns().boatRight.isChild(data); isRight = !!Game.getIns().boatRight.isChild(data);
Game.getIns().boatRight.setRight(data); isRight && Game.getIns().boatRight.setRight(data);
currentRect = rightRect; currentRect = rightRect;
} }
if (!currentRect) { if (!currentRect) {
this.touching = null; this.playLocalAudio('error')
this.playLocalAudio('error').then(() => { if (target.x > 0) {
target.runAction(cc.jumpBy(1, cc.v2(1300, -1000), 1000, 1))
} else {
target.runAction(cc.jumpBy(1, cc.v2(-1300, -1000), 1000, 1))
}
this.scheduleOnce(() => {
this.touching = null; this.touching = null;
this.updateItem(target, data); this.updateItem(target, data);
}) }, 1.5)
return; return;
} }
if (isRight) { if (isRight) {
...@@ -309,10 +322,16 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -309,10 +322,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
item.off(cc.Node.EventType.TOUCH_CANCEL, this.onItemTouchCancel, this); item.off(cc.Node.EventType.TOUCH_CANCEL, this.onItemTouchCancel, this);
pg.event.emit('mouse_05_add') pg.event.emit('mouse_05_add')
} else { } else {
this.playLocalAudio('error').then(() => { this.playLocalAudio('error')
if (target.x > 0) {
target.runAction(cc.jumpBy(1, cc.v2(1300, -1000), 1000, 1))
} else {
target.runAction(cc.jumpBy(1, cc.v2(-1300, -1000), 1000, 1))
}
this.scheduleOnce(() => {
this.touching = null; this.touching = null;
this.updateItem(target, data); this.updateItem(target, data);
}) }, 1.5)
} }
//判断是否结束了 //判断是否结束了
if (Game.getIns().boatLeft.isAllRight() && Game.getIns().boatRight.isAllRight()) { if (Game.getIns().boatLeft.isAllRight() && Game.getIns().boatRight.isAllRight()) {
......
{
"ver": "1.1.2",
"uuid": "87c961cf-8a25-4fa5-88ae-daf7791bdc45",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "d088e9e5-3c27-428e-a756-cbbe0c73995f",
"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": "49d12efd-7a30-40da-a2f4-04d502ea426d",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5656ade1-312c-4df3-9eaf-6e72650f53d8",
"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": "5851015c-6d6e-4165-b82e-aa25cfa5c037",
"rawTextureUuid": "5656ade1-312c-4df3-9eaf-6e72650f53d8",
"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
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