JS Tamagotchi

School • JavaScript (p5.js) • 2025-10-31

JS Tamagotchi
Take care of a sea otter at the aquarium. Take care of it's stats, decide how it's feeling based off of looks, and.... gamble?

While some of the content of this game is questionable, the coding is quite good. You can enter a pretty realistic casino with blackjack, name your otter, and go to the shop.

I quite like the shop code, this is because it's made using dictionaries and a for loop. This makes it easy to add new items.

I also implemented a small simulation offline, meaning that if you come back after a while, your otter actually did stuff.

When you download the file, the code can be ran on a live server.