Hey there! Welcome to XenoInvasionX, a fun little 2D space shooter made with Python and Pygame. This project is actually inspired by my journey into programming, and I wanna share a bit of that story before diving into the game itself.
So, I love reading, and that’s exactly how I got into coding. I started with the book
"Python Crash Course" by Eric Matthes, and honestly, it was a game changer for me.
It gave me both theory and hands-on practice in Python, making concepts way easier to understand. The book covers everything from basic Python syntax to lists, OOP, and when to use what—all in a structured way.
The game XenoInvasionX is actually one of the projects in the book! I followed along, coded it, and learned so much about organizing code, working with objects, handling game logic, and more.
👉 If you’re starting with Python, I highly recommend this book! It’ll seriously help you get a strong foundation.
XenoInvasionX is a simple yet exciting space shooter where you control a spaceship and take down waves of alien invaders. The goal? Survive and score as high as possible!
This game is a classic "Space Invaders"-style shooter. Here’s what it includes:
- Multiple levels with increasing difficulty and a scoring system.
- Sound effects and background music using
pygame.mixer. - Object-Oriented Programming (OOP) principles to manage game objects like the ship, bullets, and aliens.
- A simple user interface, including a "PRESS ENTER" button to start the game and a "GAME OVER" screen when you lose.
- A high-score system that saves the best score in a text file.
I've also made some modifications to improve the game’s visuals:
- Redesigned the ship, aliens, and bullets to look better.
- Updated the background for a more immersive feel.
- Planning to add more sound effects soon to enhance the overall experience.
- Move → Arrow keys
- Shoot → Spacebar
- Destroy aliens and keep going!
Hope you like it! More importantly, have fun learning and keep making progress.