Inspiration
I was inspired by the Papa Louie Flash games, where you have to make different foods in certain ways to satisfy your customers. I also was inspired by Crypt of the Necrodancer for the idea of making my game rhythm based. I thought it would be a fun idea to make this rhythm, since after a while, those Papa Louie games get boring and the music is repetitive and gets annoying
What it does
In this game, serve as many customers as possible before waking up and ending your dream. However, whatever you do is locked to the beat of the music. Try to serve as many people as possible!
How I built it
First, I had to make the UI and the beat marker reflect the beat of the music. I had a variable that contained the beats per second value of the song that was currently playing, and when the song started, a timer would go down between the seconds between each beat and move the elements a little bit. For the beat marker at the bottom of the screen, I would have it move between each beat and have it finish moving when the beat is played, and by the time the beat was played, the two rectangles (representing the beat) would have touched each other. Then for the part when you are grilling the meat for your burger, I used the same technique as above (waiting for the beat to start) and increased how well done the patty was after each beat. Then, to detect when the player is pressing a button down while there is a beat, when the two bars were touching each other in the beat marker, that was the only time the system would allow the player to add things to their burger, and if they did it any other time, nothing would happen. To detect how accurate your burger was compared to the original order, I created a list for the customers order, and what you made. Then I compared each element to the same element in the other list, and depending on many differences there was, your rating from that person would go down. Another thing I did was add randomized customers here. I created one sprite, and this sprite had many different types or shirts, hair, and faces. It would just randomly choose on of each and display them on top of each other, creating a customer.
Challenges I ran into
The biggest challenge in this entire game was trying to make it so the beat from the music would line up with the beat marker. This became a very difficult task, because of the music playing faster than the beat maker, and Scratch can only handle 30 FPS, so I had to create music that could be slow enough for Scratch's frame rate
Accomplishments that I'm proud of and What I learned
One thing I learned in this game was how to music under constraints. Usually when I make music for games, I just try to make it give it the tone of the game, but for this game. I had to use the same Beats per Seconds throughout the entire song. This was a difficult task but I able to accomplish it
What's next for Dining Disco
I want to try to add different game modes
Built With
- scratch

Log in or sign up for Devpost to join the conversation.