This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = 301, 301 | |
screen = pygame.display.set_mode(size) | |
clock = pygame.time.Clock() | |
running = True | |
x_pos = 0 | |
v = 20 # пикÑелей в Ñекунду | |
while running: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = 301, 301 | |
screen = pygame.display.set_mode(size) | |
clock = pygame.time.Clock() | |
running = True | |
x_pos = 0 | |
v = 20 # пикÑелей в Ñекунду | |
fps = 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = 301, 301 | |
screen = pygame.display.set_mode(size) | |
clock = pygame.time.Clock() | |
running = True | |
while running: | |
screen.fill((0, 0, 0)) | |
for event in pygame.event.get(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = 400, 300 | |
screen = pygame.display.set_mode(size) | |
clock = pygame.time.Clock() | |
running = True | |
# Создаем второй холÑÑ‚ | |
screen2 = pygame.Surface(screen.get_size()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import random | |
import pygame | |
def load_image(name, color_key=None): | |
fullname = os.path.join('data', name) | |
try: | |
image = pygame.image.load(fullname).convert() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import random | |
import pygame | |
size = width, height = 400, 300 | |
screen = pygame.display.set_mode(size) | |
def load_image(name, color_key=None): | |
fullname = os.path.join('data', name) | |
image = pygame.image.load(fullname).convert() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import random | |
import pygame | |
def load_image(name, color_key=None): | |
fullname = os.path.join('data', name) | |
try: | |
image = pygame.image.load(fullname).convert() | |
except pygame.error as message: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pygame | |
pygame.init() | |
size = width, height = 800, 400 | |
screen = pygame.display.set_mode(size) | |
def load_image(name, color_key=None): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import pygame | |
pygame.init() | |
pygame.key.set_repeat(200, 70) | |
FPS = 50 | |
WIDTH = 400 | |
HEIGHT = 300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
import sys | |
import solution | |
class TestAggregatorsBase: | |
@pytest.fixture | |
def base_class(self): | |
return None |