Inspiration
I was inspired by the aspects of atari breakout and space invaders. I included some features from both games into the Energy Collector Challenge
What it does
Your goal in the game is to collect falling objects of grey one being CO2 which you are trying to destroy, and yellow ones being solar power which you are trying to collect. To achieve this, you control a player character that moves horizontally at the bottom of the screen using arrow keys. You also have the ability to shoot small projectiles by pressing the spacebar or return key. In order to collect the falling objects, you must shoot projectiles (Space = red which has to hit the CO2, and return=yellow which has to hit the solar energy. This adds an element of strategy to the game, as you must be quick to identify the color of the falling objects and react accordingly. However, if you hit the solar energy with the red projectile you will lose a life. This means that you need to make every shot count and be careful with your movements. You have a limited number of lives in the game, so it's important to make the most of each one.
How I built it
I built the game fully with python using the pygame library.
Challenges we ran into
This was the first time I was using pygame to make a game so there were many thing that I had to learn. I also was unable to start making this until there was 8 hours left in the hackothan (personal/not using as excuse) so I kind of had to rush and do it quickly.
Accomplishments that I am proud of
I am proud that I was able to get the objects to spawn in randomly and make sure they only get destroyed or collected when it collides with a projectile of the corresponding color.
What I learned
I learned a lot about the pygame libary. I was able to create the shapes that I wanted and make everything works with each other. I was able to learn more about collisons and how it can easily be implemented into my game.
What's next for Energy Collector Challenge
In the future I would have wanted to add a nicer UI and add some sound effects.
Log in or sign up for Devpost to join the conversation.