Skip to content

Commit

Permalink
patched full screen patch....
Browse files Browse the repository at this point in the history
  • Loading branch information
death-magnet authored Jul 13, 2022
1 parent f149010 commit 01215c0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gameoflife.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ def screen_setup():
if TILE < 1:
TILE = 1

SCREEN_WIDTH = SCREEN_WIDTH * 1.1
SCREEN_HEIGHT = SCREEN_HEIGHT * 1.1
SCREEN_WIDTH = SCREEN_WIDTH * 1.2
SCREEN_HEIGHT = SCREEN_HEIGHT * 1.2

SCREEN_WIDTH = int(SCREEN_WIDTH)
SCREEN_HEIGHT = int(SCREEN_HEIGHT)

W, H = SCREEN_WIDTH // TILE, SCREEN_HEIGHT // TILE

[pg.draw.line(SCREEN, COLOR_DIMGRAY, (x, 0), (x, SCREEN_HEIGHT))
for x in range(0, SCREEN_WIDTH, TILE)]
[pg.draw.line(SCREEN, COLOR_DIMGRAY, (0, y), (SCREEN_WIDTH, y))
Expand Down Expand Up @@ -164,6 +164,9 @@ def check_cell(current_gen, x, y):
fullscreen = not fullscreen
screen_setup()
paused = False
if event.key == pg.K_ESCAPE:
pg.quit()
exit()

if not paused:

Expand Down

0 comments on commit 01215c0

Please sign in to comment.