Skip to content

SpaceHunter! 'You are the last battleship remaining and the enemy is closing in' - A Python Space Adventure Game

License

Notifications You must be signed in to change notification settings

jkeane889/SpaceHunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


👽 🔥 👽 🔥 👽 🔥 👽 🔥 👽 🔥 👽 🔥 👽 🔥 👽 🔥 👽

Table of Contents

Demo 🚀

SpaceHunter

Contributor(s) 🚀

Jonathan

About 🚀

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.

How to Play 🚀

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!

Technologies 🚀

Pygame Pygame Documentation

Setup and Requirements 🚀

  1. Ensure you have latest version of Python installed. From command line python -V
  2. 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
  3. From command line, inside of cloned repo folder on local machine, run python main.py

Future Features 🚀

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

Helpful Resources 🚀

Beginning Game Development With Python And Pygame From Novice to Professional Game Development in Python 3 With PyGame - 1 - Intro

THANK YOU! 🚀

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! 🙏 🙏 🙏

About

SpaceHunter! 'You are the last battleship remaining and the enemy is closing in' - A Python Space Adventure Game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages