cat pet
- 6 Devlogs
- 9 Total hours
cat as a pet!!!!
cat as a pet!!!!
i have added a stats system that saves and loads the cats stats like:
you can FEED to increase hunger, make the cat SLEEP to increase energy levels, and either click on the cat OR play the endless runner game to increase mood! i struggled with the saving and load system because mood was the only thing properly saving and loading, but the issue was that i had simply forgotten to add energy and hunger to the save stats function and only added it to the load stats function. woops
it took me a bit, but i added in a minigame!
Endless Runner:
my biggest struggle was the collisions, i had forgotten how to properly use area2D and tried to do some more complicated math. i used claude which reminded me of said area2D and so i started messing with hitboxes. i am planning on adding a hurt animation for when you lose and stylizing the minigame and making it look way better!
i have added NEW features such as:
i struggled with placing the meow effect in the right spot in the code, since I didn’t know if I wanted the cat to meow when landing or being thrown. i also struggled with the particles since i wanted to make it look like the guide but i went with a falling anim instead of an explosion.
i have added a throwing mechanic and a menu that opens up when you right click onto the cat, giving you two actions as of now! i also added another idle anim where the cat will meow
i was struggling a lot with the throw mechanic, since i was confused on why the code didnt find delta. it was a simple scope issue, since i put the code into another section instead of the physics process function that took in delta as a parameter. i used claude to help me debug, which was because i just forgot to add a vector line.
this took way longer than necessary, but i made it so when its dragged, it falls onto the taskbar!
i used gemini to help me debug and figure out why my logic wasn’t working, which was because i placed the falling mechanism after the position, so itd call the position before the fall thing would ever occur.
with my handy dandy itch.io warioware grant, i bought the rest of the asset pack since i really liked it! it now can sit instead of just standing as an idle, and i plan to add more stuff like feeding + minigames!
this is my FIRST devlog for this project, which has been so fun so far! currently, this is what ive done:
throughout making this, i struggled with the idle animation a LOT because i could not remove the background of it, and i dont want a cat with a white background idling out of nowhere.
for now, i have no idle animation, but i am going to fix it soon once i figure out how to remove the bg without making it look ugly.
i also had an issue where my cat would not actually run, it’d just stay stuck. it took me too long to figure out that i just had the animations named differently, Walk_Right in code but Run in the actual animation itself.
overall, i think this is going great! also, creds to tuff carysaurus for making these sprites! if you want these, you can find the free version at: https://carysaurus.itch.io/black-cat-sprites