Skip to content

Commit

Permalink
changed laser speed and slowdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash Goyal committed Jun 3, 2023
1 parent 5c68bf8 commit d1a210c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,11 @@ def __init__(self, x, y):
self.directiony = random.choice([1, -1])

def update(self):
slowdown = random.randint(1, 2)
slowdown = random.randint(1, 3)
self.speedx += game_variables.lvl/8
self.speedy += game_variables.lvl/12

if self.speedx > 8 or self.speedy > 8:
if self.speedx > 10 or self.speedy > 10:
if slowdown == 1:
self.speedx = 3
self.speedy = 3
Expand Down

0 comments on commit d1a210c

Please sign in to comment.