# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
+high_score.txt
BACKGROUND = pygame.Surface((WIDTH, HEIGHT))
tile_cols = 4
tile_rows = 4
- background_tile = pygame.transform.scale(pygame.image.load("assets/background.png"),
- (WIDTH / tile_cols, HEIGHT / tile_rows)).convert()
+ background_tile = pygame.transform.scale(pygame.image.load("assets/background.png"),((WIDTH+12) / tile_cols, HEIGHT / tile_rows)).convert()
dark_background_tile = pygame.transform.scale(pygame.image.load("assets/dark_background.png"),
- (WIDTH / tile_cols, HEIGHT / tile_rows)).convert()
+ ((WIDTH+12) / tile_cols, HEIGHT / tile_rows)).convert()
for x in range(tile_cols):
for y in range(tile_rows):
if y == 0:
tile_cols = 4
tile_rows = 4
background_tile = pygame.transform.scale(pygame.image.load("assets/background.png"),
- (WIDTH / tile_cols, HEIGHT / tile_rows)).convert()
+ ((WIDTH+12) / tile_cols, (HEIGHT+12) / tile_rows)).convert()
for x in range(tile_cols):
for y in range(tile_rows):
background.blit(background_tile, (x * WIDTH / tile_cols, y * HEIGHT / tile_rows))
pygame.init()
WIDTH, HEIGHT = pygame.display.Info().current_w, pygame.display.Info().current_h
display = pygame.display.set_mode((WIDTH, HEIGHT), pygame.FULLSCREEN)
-window = Window.from_display_module()
+window = Window(size=(WIDTH,HEIGHT), fullscreen=True)
renderer = Renderer(window)
pygame.mouse.set_visible(False)