Skip to content

Commit 1595e1d

Browse files
committed
Add spaceship picture
1 parent c7b3b02 commit 1595e1d

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,10 @@ docs/_build/
6060
# PyBuilder
6161
target/
6262

63-
63+
### Vim ###
64+
[._]*.s[a-w][a-z]
65+
[._]s[a-w][a-z]
66+
*.un~
67+
Session.vim
68+
.netrwhist
69+
*~

Day2/spaceinvaders.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,9 @@ def __init__(self, x, y):
5757
self.xpos = x
5858
self.ypos = y
5959

60+
61+
# Main event loop. Here we:
62+
# 1. Handle keyboard input for the player and move the player around
63+
# 2. Move the missiles around
64+
# 3. Move the aliens around
65+
# 4. Detect collisions and handle them

Day2/spaceship.png

4.14 KB
Loading

0 commit comments

Comments
 (0)