Inspiration
I wanted to make some type of game and the John Deere farming simulation motivated me to make this! I find it interesting and unique.
What it does
The USER controls a tractor with WSAD and harvests the hay bales. Each harvested hay bale adds to the score. If the user hits a cow though, they lose a heart! They have a total of 3 hearts and when they hit 0, they lose (or game ends). Have fun trying to get a high score!
How I built it
I used pygame within Python to build the game. I used VScode as my IDE. I used several different files to organize the game into a better format. The "main" file holds the game loop that ultimately allows the game to run.
Challenges we ran into
The collection system for the hay bales was difficult and I got lost at times. But, I eventually got it to work and it was great! I also had a glitch on the hay bale image for the user (it would disappear and then reappear). Ultimately, the collision detect was a little tricky at the start but I figured it out eventually. I also ran into a issue where I was trying to make the hay bales and cows appear in random locations while the game was running. I used randint to do this and was very excited when it worked!
Accomplishments that we're proud of
I was proud of the score and heart system on the top! The heart system was my favorite because I am not using numbers like the score. It is a visual that the user actually sees (and it changes in real time). I thought that was cool!
What we learned
I learned more about pygame. I used pygame for the first time on Friday and this project opened up more information to me about Python. I made a similar 2D project on Java before, so I had some kind of experience with object detection/collision.
What's next for Harvest the Hay Bales!
I may try to create a start/pause main menu for the user! I may try to add a high score feature so it let's the user know what their highest score ever is. I may try to add different crops instead of just a hay bale the user can select and change out. Maybe even different tractors, and animals to hit.
Log in or sign up for Devpost to join the conversation.