Merge branch 'master' of s450026/Sztuczna_Inteligencja_2020 into master
This commit is contained in:
commit
61e45b78b7
@ -2,17 +2,17 @@ import sys
|
|||||||
import pygame
|
import pygame
|
||||||
|
|
||||||
pygame.init()
|
pygame.init()
|
||||||
screen = pygame.display.set_mode((960, 720))
|
screen = pygame.display.set_mode((700, 750))
|
||||||
done = False
|
done = False
|
||||||
block_size = 60
|
block_size = 50
|
||||||
WHITE = (255, 255, 255)
|
WHITE = (255, 255, 255)
|
||||||
BLUE = (0, 0, 255)
|
BLUE = (0, 0, 255)
|
||||||
screen.fill(WHITE)
|
screen.fill(WHITE)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
for y in range(400):
|
for y in range(15):
|
||||||
for x in range(300):
|
for x in range(14):
|
||||||
rect = pygame.Rect(x * block_size, y * block_size, block_size - 1, block_size - 1)
|
rect = pygame.Rect(x * block_size, y * block_size, block_size - 1, block_size - 1)
|
||||||
pygame.draw.rect(screen, BLUE, rect)
|
pygame.draw.rect(screen, BLUE, rect)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user