From 4fec6fccd900f012b23f32f289c81cfcb2423190 Mon Sep 17 00:00:00 2001 From: Packerfan-Gamer Date: Mon, 9 Jan 2017 12:05:02 -0600 Subject: [PATCH 1/6] Added the orange pentagon Will do more! --- scripts/gameController.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/gameController.js b/scripts/gameController.js index 322f5a6..e0494b2 100644 --- a/scripts/gameController.js +++ b/scripts/gameController.js @@ -168,6 +168,10 @@ function drawTank() { //Green Pentagon } else { drawPoly(shapes[n].x, shapes[n].y, shapes[n].size, shapes[n].angle, "#92FF71", 5); + + //Orange Pentagon + } else { + drawPoly(shapes[n].x, shapes[n].y, shapes[n].size, shapes[n].angle, "#F79213", 5); } if (shapes[n].health < shapes[n].maxhealth) { From d3c278dc2f95af7979a50b2f59cf84baafcc30b3 Mon Sep 17 00:00:00 2001 From: Packerfan-Gamer Date: Mon, 9 Jan 2017 12:12:58 -0600 Subject: [PATCH 2/6] Added the orange pentagon --- scripts/globals.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/globals.js b/scripts/globals.js index 5a8e154..e46166d 100644 --- a/scripts/globals.js +++ b/scripts/globals.js @@ -159,6 +159,13 @@ function Shape(x, y, random) { this.health = 6000; this.maxhealth = 6000; + //Orange Pentagon + } else if (random < 0.99996) { + stype = 6; + this.size = 36; + this.health = 24000; + this.maxhealth = 24000; + //Green Pentagon } else { stype = 6; From 7c81065c9787710b8687bc2a9557f98fefff8649 Mon Sep 17 00:00:00 2001 From: Packerfan-Gamer Date: Mon, 9 Jan 2017 17:52:06 -0600 Subject: [PATCH 3/6] did things with the orange pentagon --- scripts/globals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/globals.js b/scripts/globals.js index e46166d..e92aa14 100644 --- a/scripts/globals.js +++ b/scripts/globals.js @@ -168,7 +168,7 @@ function Shape(x, y, random) { //Green Pentagon } else { - stype = 6; + stype = 7; this.size = 36; this.health = 24000; this.maxhealth = 24000; From 2a21e55583576a874ce30c024693b7539e996af2 Mon Sep 17 00:00:00 2001 From: Packerfan-Gamer Date: Mon, 9 Jan 2017 17:52:20 -0600 Subject: [PATCH 4/6] Fixed the orange pentagon --- scripts/gameController.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/gameController.js b/scripts/gameController.js index e0494b2..ab10903 100644 --- a/scripts/gameController.js +++ b/scripts/gameController.js @@ -165,13 +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); - //Orange Pentagon - } else { - drawPoly(shapes[n].x, shapes[n].y, shapes[n].size, shapes[n].angle, "#F79213", 5); } if (shapes[n].health < shapes[n].maxhealth) { From dfbe76f01c11091988f9ccb6527ff756dd402785 Mon Sep 17 00:00:00 2001 From: Packerfan-Gamer Date: Thu, 12 Jan 2017 16:57:51 -0600 Subject: [PATCH 5/6] testing the orange pentagon. --- scripts/globals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/globals.js b/scripts/globals.js index e92aa14..0aecd58 100644 --- a/scripts/globals.js +++ b/scripts/globals.js @@ -160,7 +160,7 @@ function Shape(x, y, random) { this.maxhealth = 6000; //Orange Pentagon - } else if (random < 0.99996) { + } else if (random < 1000000) { stype = 6; this.size = 36; this.health = 24000; From 82300eb2a7bff8a547a728d51b2d580c1bcaa18e Mon Sep 17 00:00:00 2001 From: Packerfan-Gamer Date: Sat, 14 Jan 2017 21:18:30 -0600 Subject: [PATCH 6/6] fixed my numbers. --- scripts/globals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/globals.js b/scripts/globals.js index 0aecd58..b5dcd05 100644 --- a/scripts/globals.js +++ b/scripts/globals.js @@ -160,7 +160,7 @@ function Shape(x, y, random) { this.maxhealth = 6000; //Orange Pentagon - } else if (random < 1000000) { + } else if (random < 0.99997) { stype = 6; this.size = 36; this.health = 24000;