Inspiration

My inspiration for making this was actually the release of the "Kenobi" Star wars series. As a big Star Wars fan, I wanted my next small project to focus on this passion of mine. I also wanted to gain more experience in making GUIs and work more extensively with the pygame module.

What it does

Star Wars Python is a simple top down 2D shooter game. You play as a storm trooper who moves around the map shooting at a random assortment of enemy droids, generals, and sith lords. This game is currently being worked on, and this being the first version doesn't have and doesn't have a health or

How we built it

I built Star Wars Python using the pygame module. The pyagme module is a library for python that allows the user to create small games like this. It was very useful for completing tasks such as initializing and updating the game screen. It is also very useful for integrating images as sprites to be used in the game.

Challenges we ran into

One challenge that I ran into was that the bullets would stop at the edge of the level and just stay there. To fix this issue, I. created a function to check the distance and remove the bullet once it hit the edge of the screen. Another error that I ran into was that I wouldn't get the bullet to effectively shoot out of the blaster. I realized that If I made a crosshair, and had the bullet and gunpoint towards that crosshair, which allowed them to line up perfectly.

Accomplishments that we're proud of

I am proud of how this game operates. It feels like a genuine 2D action game. Despite it not having some essential features such as a leveling or scoring system, and the absence of health or a way to lose, it was one of my favorite projects to create. I am submitting it this way because I believe with my current schedule, I won't be able to fully complete the game and add all of the features that I want to for a few months. I will keep updating it when I can and am excited to share these updates on my Githhub! (link below)

What we learned

I have learned a lot more about movement of sprites, as well as the initialization, removal, and reinitialization of sprites. I also studied game flow and how to update a screen. These skills will be put to great use in my future projects and I am excited to keep working, learning, and coding.

What's next for Star Wars Python

I have a number of updates and features that I am going to put into Star Wars Python in the coming weeks. These include:

  • A health system
  • A leveling / scoring system
  • A difficulty setting
  • A character / weapon selection
  • Different levels

My Github or Replit are below incase you'd like to keep up to date with this and other projects I am working on! Thank you!

My Github My Replit

TO PLAY THE GAME ON REPLIT:

There is text that runs before the game is playable. Since the pygame window is already initialized on the community page, you must click and THEN run the game in the Replit IDE!

You can also fork the REPL then run it in the Replit IDE!

Share this project:

Updates