Skip to content

Commit 2b4b098

Browse files
Merge pull request prathimacode-hub#300 from Jordistyd/main
Adding a new alien invasion game
2 parents 8c6b0f3 + f1dc1a4 commit 2b4b098

26 files changed

+620
-0
lines changed

PyGamesScripts/Alien Invasion/.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PyGamesScripts/Alien Invasion/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PyGamesScripts/Alien Invasion/.idea/misc.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PyGamesScripts/Alien Invasion/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PyGamesScripts/Alien Invasion/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="PYTHON_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$" />
6+
<orderEntry type="inheritedJdk" />
7+
<orderEntry type="sourceFolder" forTests="false" />
8+
</component>
9+
</module>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#Alien Invasion
2+
This project was created for me to have a better understanding of the python language
3+
and it's libraries, and for you to enjoy!
4+
I wrote the game using the pygame library while downloading two BMP files from google.
5+
**Purpose**
6+
control the ship using the arrows on the kewboard and shoot down the aliens on screen
7+
using the space bar.
8+
The player has 3 lives.
9+
each player has a score count
10+
Once the player eliminates all aliens from the screen a new round will begin with
11+
faster aliens.
12+
If the player loses, game will restart.
13+
**Workflow**
14+
I used the Sprite class in order to maintain the bullet, ship and alien objects
15+
with use of the collision detection method of the sprite class.
16+
I used pygame in order to set up the game window and fonts with it's built in
17+
methods.
18+
**Compilation steps**
19+
In order to get the game running, run the alien_invasion.py file.
20+
21+
**Screenshot**
22+
![Alien Invaders](C:\Users\jordi\Alien Invaders.jpg)
23+
24+
**Author**
25+
Yarden Galon
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)