Alien Invasion is a straight-forward shooter game where the player controls a rocket ship with the goal of attacking fleets of aliens that get faster as the game goes on. Made using Pygame, a cross-platform open-source Python library designed for writing video games.
Dependencies:
- Python 3
- Pygame (refer to the Pygame documentation on how to install)
Steps to Run:
- Download the project
- Run the alien_invasion.py file (example command:
python alien_invasion.py
)
Start the game by pressing the green play button. Use the left and right arrows to navigate the player ship. Shoot beams using the space bar and Q to exit the game. The game will end when all player lives are done.
![aigame2](https://private-user-images.githubusercontent.com/25419186/307473799-169a2955-8659-4a8c-a037-05fe25ba3a4f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4NDU0ODEsIm5iZiI6MTcyNTg0NTE4MSwicGF0aCI6Ii8yNTQxOTE4Ni8zMDc0NzM3OTktMTY5YTI5NTUtODY1OS00YThjLWEwMzctMDVmZTI1YmEzYTRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA5VDAxMjYyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzNDk2ODA5OGM4NzljMzczNjljZjlkMTFiYjI1YzFiYTg1ZmY1OGU4ZWE5YzVkMGE4OWFkMTFlMTVmOTI3YzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.p7Rnp4BqCK-R10WYQSmizYYh-JCCczlT_vq_0w6prF8)
![aigame1](https://private-user-images.githubusercontent.com/25419186/307473810-3d317a2a-bbba-42ec-9429-ef696a344e30.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4NDU0ODEsIm5iZiI6MTcyNTg0NTE4MSwicGF0aCI6Ii8yNTQxOTE4Ni8zMDc0NzM4MTAtM2QzMTdhMmEtYmJiYS00MmVjLTk0MjktZWY2OTZhMzQ0ZTMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA5VDAxMjYyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE2M2RlNzk5MjJhMjVkYmI5Nzc3YjNkODEyOWYzZjcyNjRhODdhMmFmMjk2YWVhZjZlY2NhYWM4OTJjZTZlMGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.oipQ7J6vYYshqgkCFemdrbvY-lugkudiv1lsgG1x8_4)
The Python Crash Course, 3rd Edition textbook written by Eric Matthes was referred to when developing this game, specifically the Section II - Projects chapters.
Matthes, E. (2023). Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming. No Starch Press.
MIT License