link to P5 code
i decided to make another weird and terrible button game. this one is inspired by cats, broadly. not my cat, because my cat is a sweet girl who would never bite anyone. however, I have encountered many a cat who will bit you if pet too much.
so, I made a “game” where you can pet a cat as much as you’d like. however, there is always a wrong amount of times to pet the cat. you can never tell.
pretty innocent looking beast
we’ve got a functional counter going too:
BUT IF YOU PET THE CAT TOO MUCH
she gets mad.
i used a bunch of functions to streamline the logic here. my code is much cleaner than last week’s, and it definitely made me code this faster.