Browse Source

darkhills: fix right corner of hill being cut off

master
James Lu 4 months ago
parent
commit
c77988b57e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      darkhills/index.html

+ 1
- 1
darkhills/index.html View File

@@ -96,7 +96,7 @@ function buildMountain() {
ctx.moveTo(0, height * START_OFFSET);

var j = height * START_OFFSET;
for (var i = 0; i < width; i+=STEP_SIZE) {
for (var i = 0; i < (width+STEP_SIZE); i+=STEP_SIZE) {
j += randInt(-SHAKE_MAX, SHAKE_MAX)
ctx.lineTo(i, j);
}

Loading…
Cancel
Save