Update: CC - SnailRunner - Before Render (94xi7aitax.js) 0 bytes modified
parent
d6e177201d
commit
89091faded
|
@ -39,7 +39,7 @@ var cloudInfo = this.clouds.reduce(
|
|||
cloud.position.x += diff;
|
||||
cloud.updateInstance('position');
|
||||
|
||||
if (cloud.position.x > 50) {
|
||||
if (cloud.position.x > 48) {
|
||||
result.dead.push(cloud);
|
||||
} else {
|
||||
result.alive.push(cloud);
|
||||
|
@ -69,10 +69,10 @@ this.sections.map(
|
|||
section.road.position.x += diff;
|
||||
section.right.position.x += diff;
|
||||
|
||||
if (section.left.position.x > 50) {
|
||||
section.left.position.x -= 200;
|
||||
section.road.position.x -= 200;
|
||||
section.right.position.x -= 200;
|
||||
if (section.left.position.x > 48) {
|
||||
section.left.position.x -= 204;
|
||||
section.road.position.x -= 204;
|
||||
section.right.position.x -= 204;
|
||||
}
|
||||
|
||||
section.left.updateInstance('position');
|
||||
|
|
Loading…
Reference in New Issue