From e7750c891c82b61ca453062a8c3b9835fa1bb521 Mon Sep 17 00:00:00 2001 From: sbrl Date: Tue, 7 Jun 2016 14:22:38 +0100 Subject: [PATCH] Add todo message --- HillSet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HillSet.js b/HillSet.js index 974289e..ccdacfd 100644 --- a/HillSet.js +++ b/HillSet.js @@ -38,7 +38,7 @@ class HillSet this.controlPoints[this.controlPoints.length - 2].y = this.size.y; this.hillLine = new SmoothLine(); - + // TODO: Add a few points before this to make th smooth line join up upon reset correctly var prevPoints = []; for(let point of this.controlPoints) prevPoints.push(point.clone().subtract(new Vector(this.size.x, 0))); @@ -56,6 +56,7 @@ class HillSet { this.pos.x += this.speed * dt; if(this.pos.x >= this.size.x) + // console.log("Reset"); this.pos.x = 0; }