From c6bdef1aff86c6399dcc9ec6fce4be23ef4aeed2 Mon Sep 17 00:00:00 2001 From: s450026 Date: Thu, 2 Apr 2020 20:37:21 +0200 Subject: [PATCH] Add catalog structure and grid of appropriate dimensions --- src/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.py b/src/main.py index 2745f13..afe0feb 100644 --- a/src/main.py +++ b/src/main.py @@ -2,17 +2,17 @@ import sys import pygame pygame.init() -screen = pygame.display.set_mode((960, 720)) +screen = pygame.display.set_mode((700, 750)) done = False -block_size = 60 +block_size = 50 WHITE = (255, 255, 255) BLUE = (0, 0, 255) screen.fill(WHITE) def main(): - for y in range(400): - for x in range(300): + for y in range(15): + for x in range(14): rect = pygame.Rect(x * block_size, y * block_size, block_size - 1, block_size - 1) pygame.draw.rect(screen, BLUE, rect)