_sounds.music = new Audio(_musicList[Math.floor(Math.random() * _musicList.length)])
_sounds.music.volume = 0.2;
_sounds.music.play();
if (!_achievements.music) {
_achievements.music = true;
_toast = {
title: "Neat Grooves",
text: "Listen to some music."
};
}
} else {
_sounds.music.pause();
}
@@ -168,12 +240,25 @@ function draw_desk() {
text: "I've recently been setting up an external GPU for my laptop! The laptop runs Arch Linux - not Windows - and has a complicated window manager that makes things difficult. Sometimes when I run Zoom, the GPU decides it doesn't want to, and causes a kernel panic that locks out my entire PC!",
visible: true
};
if (_smokeLevel > 1 && !_achievements.smoke) {
_achievements.smoke = true;
_toast = {
title: "It's Smoke!",
text: "Make the GPU start overheating."
};
}
} else {
_scene = 'error';
_message = {
text: "Look what you did! The GPU had too many smoke effects to render and it crashed! Now I have to restart my laptop again...",
visible: true
};
_toast = {
title: "You broke it!",
text: "Render too many smoke effects and break the game."