Speedrun cake builder banner

Speedrun cake builder

7 devlogs
10h 22m 42s

Bake a cake but its speedrun

This project uses AI

Github copilot for debugging, many questions on mongodb, readme

Demo Repository

Loading README...

smollcoin

Shipped this project!

A silly little web game where you speedrun baking a cake.

well, thats it folks!! My first time using mongoDB to store stuff… it feels more pythonic to be honest but i still prefer sql database… also animating was hard… i learnt to modularize my code a little better by exporting out public functions to use in other files… i finally touched python!! yipeee…

watch the vid below if unclear… i tried to make it more ux friendly but failed…

smollcoin

what i did

  • hooked the frontend with the api requests using fetch
  • added a nice start screen

i was busy this week… i wanted to add more features but i guess it is completed!! i learnt how to modulzrize my code a little? like start screen 1 file, baking animations one file, api requests in another etc… it felt interesting when i started doing this, especially the animations but it got a little bit boring at the end. im gonna go deploy this or something… bye! so here is how to bake your cake:

0
smollcoin

worked on


  • setting up the flask endpoints (POST for scores, GET for leaderboard)
  • added a few buttons

yay i finally touched more python!! i usually use a sql database but mongodb is nosql so I learnt the differences and how to use the pymongo library. i will now be trying to connect the front with the backend…

Attachment
0
smollcoin

worked on

  • timer feature: displaying, starting and stopping
  • simple stage 2 animations (oven and cake)

i tried using exports and modules to separate them into smaller files. i learnt how to better do animations and keyframes. however i still think my code is still kinda spaghetti. Also, im sleepy…

0
smollcoin

worked on


  • tooltip
  • new tin

i might be cooked guys locked in not locking in as i have a ton of assignments… sigh i better wrap it up. i learnt how to break my script down and use a module script. i also learn how to pass functions in a function…

0
smollcoin

what I did


  • put ingredients in the bowl
  • checking if everything in the bowl is correct
  • added whisk
  • mixing animation and movement

what i learnt

i learnt to use differentiation to help detect the direction of the whisk. also using a object to encapsulate stuff is pretty useful for writing clean code, but it kinda makes me want to rewrite everything entirely. i had a lot of fun doing this because its so funny… LOL

0
smollcoin

what i did


  • make ingredients draggable
  • positioning of elements
  • check collision

what i learnt

i learnt that i can use the – var to make life easier for me, instead of having to write 9 classes i can just do that. and i can write the styles inline too. yippee! honestly i am not sure what i am going to add for this game… should i add a storyline too?

Attachment
0
smollcoin

Hi I’m building a bake a cake but its speedrun game because I have no idea what to build, but I do have to lock in. I do have some ideas but I can’t make it because I’m not good enough yet. So after thinking for a while and expanding on the game idea I think this might be a fun game to make.
I plan to use mongoDB for database to keep track of scores and names, backend would be flask because I love python, frontend would be vanilla html, css, js because I’m not good at it yet. probably going to use render to host this

  • i set everything up, flask folder structure, ripped off a recipe online
Attachment
0