👽 🔥 👽 🔥 👽 🔥 👽 🔥 👽 🔥 👽 🔥 👽 🔥 👽 🔥 👽
The idea for the game came after completing Zed Shaw's "Learn Python the Hard Way," where you build a space game. Somehow, I stumbled onto this challenge and thought, "wouldn't it be cool to create a space game that uses visuals and actual images to create a real, space-like simulation?"
What started as a simple exercise, turned into a personal development challenge as the this process tested my ability to understand vector graphics, advanced programming concepts, and game physics.
Your objective is to dodge as many alienships as possible and kill as many as you can (there is no going back!!!). Use the Up, Down, Left and Right arrow keys to steer the direction of the ship, and aim to dodge the aliens as they appear on the screen.
There is a state machine to control the "brain" of each alien, to mimic artificial intelligence. The aliens will chase after the player as you fly around the map. If you run into enemy ships you will begin to lose health.
You use the spacebar to shoot your laser and try to take out as many alien craft as possible. Your score is displayed in the upper-middle of the screen, and you can keep track of your highest score. Once your health is depleted the game will end but you can replay right after!
- Ensure you have latest version of Python installed. From command line
python -V - Clone this repo into your desired folder location; from command line, go to desired download folder, copy and run:
git clone https://github.com/jkeane889/SpaceHunter.git - From command line, inside of cloned repo folder on local machine, run
python main.py
These are a few of the following features that could be added in the future:
- Random generation of weapon upgrades
- Additional health meters for enemies
- Additional enemy spacecraft
- Shield generation or health replenishment for player
- Extra point levels for player
- Changing background to be more colorful or change depending on level in game
Beginning Game Development With Python And Pygame From Novice to Professional Game Development in Python 3 With PyGame - 1 - Intro
A big shout out to 'sentdex' (YouTuber) whose PyGame tutorials contributed to my understanding of the basics of Pygame and game graphics! A big thank you to Repl.It for hosting it's Game Jam this past 2019! 🙏 🙏 🙏


