diff --git a/scripts/gameController.js b/scripts/gameController.js index 322f5a6..ab10903 100644 --- a/scripts/gameController.js +++ b/scripts/gameController.js @@ -165,9 +165,14 @@ function drawTank() { } else if (shapes[n].type === 5) { drawPoly(shapes[n].x, shapes[n].y, shapes[n].size, shapes[n].angle, "#92FF71", 3); + //Orange Pentagon + } else if (shapes[n].type === 6) { + drawPoly(shapes[n].x, shapes[n].y, shapes[n].size, shapes[n].angle, "#F79213", 5); + //Green Pentagon } else { drawPoly(shapes[n].x, shapes[n].y, shapes[n].size, shapes[n].angle, "#92FF71", 5); + } if (shapes[n].health < shapes[n].maxhealth) { diff --git a/scripts/globals.js b/scripts/globals.js index 5a8e154..b5dcd05 100644 --- a/scripts/globals.js +++ b/scripts/globals.js @@ -159,9 +159,16 @@ function Shape(x, y, random) { this.health = 6000; this.maxhealth = 6000; + //Orange Pentagon + } else if (random < 0.99997) { + stype = 6; + this.size = 36; + this.health = 24000; + this.maxhealth = 24000; + //Green Pentagon } else { - stype = 6; + stype = 7; this.size = 36; this.health = 24000; this.maxhealth = 24000;