Inspiration 💡

Super Mario and Pac-man are both highly influenced in this game. Because the hackathon's subject is food, So, I decided to make this game called Run or get cooked. Instead of Pac-Man or Mario, we get a charming lobster attempting to flee from the chef who intends to cook him. Let's see whether the lobster can make it.

What it does ❓

You as a lobster must flee before the chef's can catch you and cook you and eat. The lobster has to survive as long as he could. There are 2 chefs, white chef and orange chef, in this game. You have 3 health points to survive, if all lost then you are doomed to be cooked. There is also a high score tab where people can see their score.

KEYBOARD COMMANDS:

  • [<] = run to left
  • [>] = run to right
  • [^] = to jump
  • [Space bar] = to Pinch the chef's

HOW TO PLAY:

  • You have to press Space bar to start the game
  • To move the lobster, you have to use the arrow keys
  • By pressing the upward arrow [^] key, the lobster can jump
  • By pressing the Space bar, the lobster can pinch the chef and earn points
  • To kill the white chef, you can either jump on top of them or pinch them
  • To kill the Orange chef, you have to pinch them

How we built it 🔧🔨

I have use Python framework Pygame to code this game.

  • I created the game without utilizing Classes at first. This allowed me to rapidly practice basic animation ideas, get the game up and running, and see how crucial variables interacted.
  • Converting the code to classes, on the other hand, took a long time and required a lot of debugging.

Challenges we ran into 🏃‍♂️

There were many challenges which I have faced during making this project

  • selecting the collision with the lobster(player) with chefs was the biggest one and then reduce the health score of the lobster(player).
  • Like the random generation of chefs to catch the lobster
  • The score calculator when the lobster kills the chefs
  • Synchronization of the song in the game

Accomplishments that we're proud of 🏆

I am pleased with myself for completing this project within the deadline. It was quite a tough time to complete this project, but I am really happy with my end results and hope to keep on making games like this in the future.

What we learned 🧠

Overall, learning Pygame took a lot of work, but it was also a lot of fun and fulfilling. Learning about animation, fiddling with the code, creating the icons, finding a good music, and putting it all together was a lot of fun for me. I'm hoping that by sharing my idea, people may be inspired to learn Pygame. In addition, I had a lot of fun working on this, especially the part where I got to play the game!

What's next for Run or Get Cooked ⏭

In the future, I want to improve my game by adding more levels and will try to make it multiplayer so that more players can play it with their friend to compete with each other and have fun.

Built With

Share this project:

Updates