Skip to content

Commit

Permalink
Pace adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
1024Adam committed Mar 18, 2017
1 parent 0ea4117 commit 19edf66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions infinite_maze/Game.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ def updateScreen(self, player, lines):
pygame.draw.line(self.getScreen(), self.fgColor, line.getStart(), line.getEnd(), 1)

prevClock = self.clock.getSecs()

# Update Clock
self.clock.update()

currClock = self.clock.getSecs()

# Update Pace
if ((self.clock.getSecs() == 10 and self.clock.getSecs() != prevClock) or (self.clock.getFullTime() > 1000 and self.clock.getSecs() % 30 == 0 and self.clock.getSecs() != prevClock)):
if (self.clock.getFullTime() > 1000 and currClock % 30 == 0 and currClock != prevClock):
self.pace += 1

# Print Border
Expand Down

0 comments on commit 19edf66

Please sign in to comment.