Skip to content

Commit

Permalink
Allow greater replay speed
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Dujava <[email protected]>
  • Loading branch information
jdujava committed Sep 23, 2024
1 parent e8c7022 commit 14f6f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generals/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def handle_events(self):
if event.type == pygame.KEYDOWN and self.from_replay:
# Speed up game right arrow is pressed
if event.key == pygame.K_RIGHT and not self.paused:
self.game_speed = max(1 / 16, self.game_speed / 2)
self.game_speed = max(1 / 128, self.game_speed / 2)
# Slow down game left arrow is pressed
if event.key == pygame.K_LEFT and not self.paused:
self.game_speed = min(32, self.game_speed * 2)
Expand Down

0 comments on commit 14f6f98

Please sign in to comment.