Vertical skill bars

This commit is contained in:
Mashy
2019-01-14 12:26:01 +10:00
parent 5776b1371f
commit 4c9b8300bc
2 changed files with 6 additions and 77 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ class StatBar extends Phaser.GameObjects.Graphics {
} else {
this.fillStyle(0x00ff00); // str8 up green
}
const statWidth = Math.floor(statBarWidth * statPercentage);
const statWidth = statBarWidth * statPercentage;
this.fillRect(statBarX + 2, statBarY + 2, statWidth, statBarHeight - 4);
}