Skip to content

Commit 1f616b5

Browse files
authored
Merge pull request #184 from realpython/asteroids-pygame-project
Move code from tutorial-drafts to materials
2 parents e3643d4 + c885104 commit 1f616b5

File tree

86 files changed

+1728
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1728
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Build an Asteroids Game With Python and Pygame
2+
3+
The code in this folder supplements the tutorial [Build an Asteroids Game With Python and Pygame](https://realpython.com/asteroids-game-python/).
4+
5+
There are eleven subfolders: one for each of the ten steps in the project and one with the final source code of the full game.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
venv
2+
*.pem
3+
*.pem
4+
*.pyc
5+
__pycache__
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Space Rocks
2+
3+
A simple space game made with Python and Pygame
4+
5+
## Installation
6+
7+
Requires Python 3.
8+
9+
```
10+
pip install -r requirements.txt
11+
python space_rocks
12+
```
Binary file not shown.
13.1 KB
Loading
248 Bytes
Loading
428 KB
Loading
2.39 KB
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pygame==2.0.0
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from game import SpaceRocks
2+
3+
4+
if __name__ == "__main__":
5+
space_rocks = SpaceRocks()
6+
space_rocks.main_loop()

0 commit comments

Comments
 (0)