Add todo message
This commit is contained in:
parent
9346829551
commit
e7750c891c
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,7 @@ class HillSet
|
||||||
this.controlPoints[this.controlPoints.length - 2].y = this.size.y;
|
this.controlPoints[this.controlPoints.length - 2].y = this.size.y;
|
||||||
|
|
||||||
this.hillLine = new SmoothLine();
|
this.hillLine = new SmoothLine();
|
||||||
|
// TODO: Add a few points before this to make th smooth line join up upon reset correctly
|
||||||
var prevPoints = [];
|
var prevPoints = [];
|
||||||
for(let point of this.controlPoints)
|
for(let point of this.controlPoints)
|
||||||
prevPoints.push(point.clone().subtract(new Vector(this.size.x, 0)));
|
prevPoints.push(point.clone().subtract(new Vector(this.size.x, 0)));
|
||||||
|
@ -56,6 +56,7 @@ class HillSet
|
||||||
{
|
{
|
||||||
this.pos.x += this.speed * dt;
|
this.pos.x += this.speed * dt;
|
||||||
if(this.pos.x >= this.size.x)
|
if(this.pos.x >= this.size.x)
|
||||||
|
// console.log("Reset");
|
||||||
this.pos.x = 0;
|
this.pos.x = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue