BugFix: Marioclock drawPoly (used to draw pyramids) update to stop pyramids appearing to float above ground

pull/511/head
Paul Cockrell 2020-06-23 10:27:03 +01:00
parent a04b1298f8
commit c67d76612b
2 changed files with 3 additions and 2 deletions

View File

@ -9,4 +9,5 @@
0.09: Add GadgetBridge functionality. Mario shows message type in speach bubble, while message scrolls in info panel
0.10: Swiping left to enable night-mode now also reduces LCD brightness through 3 levels before returning to day-mode.
0.11: User settings persisted and read to file.
0.12: Add info banner message when phone (dis)connects. Display low-battery warning (<=10%)
0.12: Add info banner message when phone (dis)connects. Display low-battery warning (<=10%)
0.13: Fix drawPyramid function so pyramids are drawn in correct Y position

View File

@ -225,7 +225,7 @@ function drawFloor() {
}
function drawPyramid() {
const pPol = [pyramidSprite.x + 10, H - 6, pyramidSprite.x + 50, pyramidSprite.height, pyramidSprite.x + 90, H - 6]; // Pyramid poly
const pPol = [pyramidSprite.x + 10, H - 5, pyramidSprite.x + 50, pyramidSprite.height, pyramidSprite.x + 90, H - 5]; // Pyramid poly
const color = (nightMode) ? DARK : LIGHT;
g.setColor(color);