Skip to content

Commit

Permalink
Melhorias na velocidade do tiro da nave e na queda dos asteroides
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigets committed Oct 9, 2017
1 parent 148e528 commit f9ccccc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions asteroides.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def create_shot(spaceship):
# create shot on tip of the ship
'position': [(ship_rect[0] + 0.5 * ship_rect[2]) - 5,
ship_rect[1]],
'speed': 5,
'speed': 8,
}


Expand Down Expand Up @@ -80,7 +80,7 @@ def create_asteroid():
'surface': pygame.image.load(
os.path.join(RES_FOLDER, 'asteroid.png')).convert_alpha(),
'position': [randrange(892), -64],
'speed': randrange(1, 11)
'speed': randrange(3, 9)
}


Expand All @@ -99,7 +99,7 @@ def main():
background_images = [
os.path.join(RES_FOLDER, 'seamless_space.png'),
os.path.join(RES_FOLDER, 'bg_big.png'),
os.path.join(RES_FOLDER, 'space3.jpg'),
os.path.join(RES_FOLDER, 'space3.jpg'),
]
background_images_counter = 0
background = pygame.image.load(
Expand Down

0 comments on commit f9ccccc

Please sign in to comment.