Inspiration
I'm relatively new to programming and was thinking of making something simple. One of the first things a non-programmer thinks of when they think of coding are games. This made me remember a spaceship game I used to play when I was younger, inspiring me to make one myself.
What it does
This game helps alleviate boredom and allows two people to be competitive in a game of spaceships. There are two spaceships (yellow on the left and red on the right) that can shoot bullets that move straight towards the the opposite side. Your goal is to hit the enemy 10 times and win.
How we built it
I used the pygame module as it is very simple and beginner-friendly. I used a YouTube tutorial as a guide when making this game. As well as four pictures that I found online. This project was coded in Pycharm. I first built the window (background), then the spaceships and bullets that shoot out of the spaceships. After that I added a health/damage system and added powerups that stay until the game is over.
Challenges we ran into
The biggest challenge for me was adding the power up system. I had to figure out how to add powerups and which kind of powerups within the time I had. I went for simple powerups that could be implemented with a change of a single value and added power up orbs that spawn randomly in the map. This made the system simple and easy to do.
Accomplishments that we're proud of
The game in general was a big accomplishment for me as a beginner. I was especially proud of the power-up system as I spent most of my time figuring that out.
What we learned
I learned how to use the pygame module with its collision system, rectangles, events and more. This will broaden my knowledge and could lead into a better game in the future.
What's next for Spaceship battle
Improving the power-up system is needed. Firstly, once you collect a power up, the power-ups effects stays forever until the game ends. This needs to be fixed with a timer so that in theory, power-ups do not go to crazy numbers. Another problem was the power-ups that were available, most of the power-ups were simple and power-ups such as invincibility could be added with a timer. Making the GUI cleaner and smoother will make Spaceship battle succeed even more.
Log in or sign up for Devpost to join the conversation.