From 8b7e36b0d30be2cd9e8d1034f69bf22a3e187cc9 Mon Sep 17 00:00:00 2001 From: LtBackup Date: Tue, 27 Feb 2018 16:54:34 -0600 Subject: [PATCH] health bar graphic for spacestation centered --- scripts/levels.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/levels.js b/scripts/levels.js index 6b8aea5..c3d5515 100644 --- a/scripts/levels.js +++ b/scripts/levels.js @@ -1382,12 +1382,12 @@ function drawGUI() gameArena.beginPath(); gameArena.lineWidth = 4; gameArena.strokeStyle = "#21E821"; - gameArena.arc(ss[i].x+(30+20+20)*(width/1220),ss[i].y-15*(width/1220)+100,90,0,2*Math.PI*(ss[i].fh/100)); + gameArena.arc(ss[i].x+(30+20+20+2)*(width/1220),ss[i].y-15*(width/1220)+100-1,90,0,2*Math.PI*(ss[i].fh/100)); gameArena.stroke(); if(ss[i].fh<99) { gameArena.beginPath(); gameArena.fillStyle = "#21E821"; - gameArena.arc(ss[i].x+(30+20+20)*(width/1220)+90, ss[i].y-15*(width/1220)+100, 2*(width/1220), 0, 2*Math.PI); + gameArena.arc(ss[i].x+(30+20+20+2)*(width/1220)+90, ss[i].y-15*(width/1220)+100-1, 2*(width/1220), 0, 2*Math.PI); gameArena.fill(); } }