Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Bug report: seems like the flashing background setting doesn't do anything in endurance mode. I was able to fix it by changing the following part of the code:

var GameModeEndurance = {
    mood: "average",
    maxRounds: 0,
    selectedRounds: 0,
    currentRound: 0,
    startGame: function() {
        var controlStroke = $('#choose select[name=strokeControl]').val();
        if (controlStroke) {
            FlashManager.setEnabled(true)
        } else {
            FlashManager.setEnabled(false)
        }

So that it instead reads:

var GameModeEndurance = {
    mood: "average",
    maxRounds: 0,
    selectedRounds: 0,
    currentRound: 0,
    startGame: function() {
        var controlStroke = $('#choose select[name=strokeControl]').val();
        if (controlStroke) {
            FlashManager.setEnabled(true);
            var flashMode = parseInt(controlStroke);  //new stuff starts here
            if (!isNaN(flashMode)) {
                FlashManager.setMode(flashMode)
            }
        } else {
            FlashManager.setEnabled(false)
        }

Also, the way that the duration is calculated is a bit different from how I thought it would be. It says it can randomly be 20% longer or 20% shorter, but the way that it's calculated—targetDuration = 30 * 60 * (Math.random() + 0.2)—seems like it could make it anywhere from 20% to 120% of the base duration. I think what you want is something like

var baseDuration = 30 * 60
var randomMultiplier = Math.random() * 0.4 + 0.8
var targetDuration = baseDuration * randomMultiplier

But that's just based off of a pretty cursory glance at the code.

I also made some local edits to the css so that there would be more room for the images and wound up quite liking the changes—not sure if that's something worth including a "proper" feature for, though. Most people probably have larger monitors than me, so room may not be as much of an issue for them.

Anyway, I like this little thing. It wound up being a lot more fun than I thought it would be, and it feels pretty complete. Thanks for sharing!

Hiya! I am impressed by how you took the time to look inside the JS and fiddle with things. very interesting.
Would you like to have a proper chat on Discord or Telegram? Contact details are on my FA page, link in-game on main menu!