Updated. /JL
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import pygame
|
import pygame
|
||||||
import pygameControls as PC
|
import pygameControls as PC
|
||||||
from globals import init
|
import globals
|
||||||
|
globals.init()
|
||||||
from globals import GRID_WIDTH, GRID_HEIGHT, TILE_SIZE, BRICKS
|
from globals import GRID_WIDTH, GRID_HEIGHT, TILE_SIZE, BRICKS
|
||||||
import enums
|
import enums
|
||||||
from bricks import Brick
|
from bricks import Brick
|
||||||
@@ -48,7 +49,7 @@ class Tetris:
|
|||||||
print(self.next.color)
|
print(self.next.color)
|
||||||
|
|
||||||
self.hud = Hud(self.screen_width, self.screen_height)
|
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.dropnext = DropNext(width = TILE_SIZE * 4, height = TILE_SIZE * 4)
|
||||||
|
|
||||||
self.clock = pygame.time.Clock()
|
self.clock = pygame.time.Clock()
|
||||||
@@ -192,5 +193,4 @@ class Tetris:
|
|||||||
self.running = False
|
self.running = False
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
globals.init()
|
|
||||||
game = Tetris()
|
game = Tetris()
|
Reference in New Issue
Block a user