Skip to content

Commit

Permalink
fixed full screen (more of a workaround really)
Browse files Browse the repository at this point in the history
  • Loading branch information
death-magnet authored Jul 13, 2022
1 parent f5eb41c commit f149010
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gameoflife.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,18 @@ def screen_setup():
if TILE < 1:
TILE = 1

SCREEN_WIDTH = SCREEN_WIDTH * 1.1
SCREEN_HEIGHT = SCREEN_HEIGHT * 1.1

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))
for y in range(0, SCREEN_HEIGHT, TILE)]



Expand Down

0 comments on commit f149010

Please sign in to comment.