diff --git a/tetris.py b/tetris.py index ee15702..e888d85 100644 --- a/tetris.py +++ b/tetris.py @@ -1,6 +1,7 @@ import pygame import pygameControls as PC -from globals import init +import globals +globals.init() from globals import GRID_WIDTH, GRID_HEIGHT, TILE_SIZE, BRICKS import enums from bricks import Brick @@ -48,7 +49,7 @@ class Tetris: print(self.next.color) self.hud = Hud(self.screen_width, self.screen_height) - self.dropzone = DropZone(TILE_SIZE, GRID_WIDTH, GRID_HEIGHT) + self.dropzone = DropZone(GRID_WIDTH, GRID_HEIGHT) self.dropnext = DropNext(width = TILE_SIZE * 4, height = TILE_SIZE * 4) self.clock = pygame.time.Clock() @@ -192,5 +193,4 @@ class Tetris: self.running = False if __name__ == "__main__": - globals.init() game = Tetris() \ No newline at end of file