v1.2.0:improved the noticeablity of the journal button flashing

This commit is contained in:
Evan Debenham 2022-03-21 17:12:21 -04:00
parent 01757b71e5
commit c6dd031c9a

View File

@ -268,6 +268,7 @@ public class MenuPane extends Component {
if (flashingPage != null){
journalIcon.am = (float)Math.abs(Math.cos( StatusPane.FLASH_RATE * (time += Game.elapsed) ));
keyIcon.am = journalIcon.am;
bg.brightness(0.5f + journalIcon.am);
if (time >= Math.PI/StatusPane.FLASH_RATE) {
time = 0;
}