Commit 05608e34 authored by Bui's avatar Bui

fix firefox bug

parent 65f83e58
# Taiko no Tatsujin Web # Taiko no Tatsujin Web
A web version of Taiko no Tatsujin A web version of Taiko no Tatsujin
Currently uploaded to Running instance: https://taiko.bui.pm
https://taiko.bui.pm
Still in developement Still in developement. Works best with Chrome.
Only works with Chrome.
...@@ -191,7 +191,8 @@ function View(controller, bg, title, diff){ ...@@ -191,7 +191,8 @@ function View(controller, bg, title, diff){
var barColour = document.getElementById('hp-bar-colour'); var barColour = document.getElementById('hp-bar-colour');
_ctx.drawImage(barBG, _HPBarX, _HPBarY, _HPBarW, _HPBarH); _ctx.drawImage(barBG, _HPBarX, _HPBarY, _HPBarW, _HPBarH);
_ctx.drawImage(barColour, 0, 0, _HPBarColWImage, 40, _HPbarColX, _HPbarColY, _HPBarColWCanvas, _HPBarColH); console.log(_HPBarColWImage);
_ctx.drawImage(barColour, 0, 0, Math.max(1, Math.floor(_HPBarColWImage)), 40, _HPbarColX, _HPbarColY, _HPBarColWCanvas, _HPBarColH);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment