I challenged myself once again to make a complete game in less than a day, and this time I succeeded. Also, this is my first time using sounds in p5.js, and I think they turned out reasonably well.

Controls:

Mouse to click on boxes and thereby open them.

Credits:

This game uses the sound "RPG Plus Shrapnel" created by Mike Koenig.

Comments

Log in with itch.io to leave a comment.

(+1)

Took me a moment to figure out what was going on, since on my monitor the game was just big enough that I didn't happen to notice the clues at the bottom at first.

I think you might have a small "programmer's mental model" bug though. Took me failing a few times to realize that a clue like "The 1st digit is 5" actually means

digits[1] === "5"

and not actually "the first digit". think you forgot to map the index to "normal" person ranges in the clue string ;)

This might be some weird behaviour in p5.js that depends on what browser you’re using. I’ve only tested it in Firefox on Ubuntu, but I found from screenshots by other players that the game sometimes behaves differently than it does on my machine. The way I coded the clue generation was to use index+1 for the number in the clue:

    index = floor(random(5));
    digit = bomb_id[index];
    // bomb_id is the numeric part of the bomb's label
    return "The "+ordinal(index+1)+" digit is "+digit+".";

If what you describe is happening, you should see “0th” sometimes appear in the clues, which doesn’t happen on my machine. It’s also possible that you interpreted the letter at the beginning as being a “digit”, which I didn’t.

(+1)

Having played the game without looking at the instructions beforehand, I can confirm I parsed that to include the initial letter.

(+1)

Ah, yes. I was treating the letter as the first "digit", because the bomb IDs all just looked like hexadecimal numbers to me. I guess I was the one with the programmer mental model error 🤣

My highscore is 81.094