Reformatted
This commit is contained in:
parent
4edf909ef6
commit
718ffd69ff
4 changed files with 7 additions and 11 deletions
|
@ -14,7 +14,7 @@ class Alien(pygame.sprite.Sprite):
|
|||
self.value = 200
|
||||
else:
|
||||
self.value = 300
|
||||
|
||||
|
||||
def update(self, direction):
|
||||
self.rect.x += direction
|
||||
|
||||
|
@ -32,8 +32,6 @@ class UFO(pygame.sprite.Sprite):
|
|||
self.speed = 3
|
||||
|
||||
self.rect = self.image.get_rect(topleft=(x, int(screen_height * (80 / 600))))
|
||||
|
||||
|
||||
def update(self):
|
||||
pass
|
||||
|
||||
|
||||
self.rect.x += self.speed
|
||||
|
|
|
@ -36,11 +36,8 @@ class Game:
|
|||
|
||||
# alien lasers
|
||||
|
||||
|
||||
# alien
|
||||
|
||||
|
||||
|
||||
def display_lives(self):
|
||||
pass
|
||||
|
||||
|
@ -71,4 +68,4 @@ class CRT:
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
pass
|
||||
pass
|
||||
|
|
|
@ -37,7 +37,6 @@ class Player(pygame.sprite.Sprite):
|
|||
if self.laser_time + self.laser_cooldown <= current_time:
|
||||
self.ready = True
|
||||
|
||||
|
||||
def horizontal_bound(self):
|
||||
if self.rect.left <= 0:
|
||||
self.rect.left = 0
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
## Drone Invaders
|
||||
|
||||
A *very* basic Space Invaders/Galaga style game made using turtle (and pygame, but only for sound and music).
|
||||
|
||||
Atkinson's original is posted on canvas (I think), but this is a lot cleaner code. I can't really tell if it works though,
|
||||
Atkinson's original is posted on canvas (I think), but this is a lot cleaner code. I can't really tell if it works
|
||||
though,
|
||||
because it runs *very* slowly on the school computers.
|
Loading…
Reference in a new issue