from Blocks.Block import Block # # # Main Code # # # pygame.init() window = pygame.display.set_mode((1520, 800)) pygame.display.set_caption("Pycraft") # Set up registry gameRegistry = Registry() gameRegistry.currentCamera = Camera(90, TMatrix(), gameRegistry) gameRegistry.currentController = MovementController(gameRegistry) gameRegistry.currentMainMenu = MainMenu(gameRegistry) gameRegistry.currentScene = Scene() gameRegistry.currentWindow = window gameRegistry.LastRun = datetime.datetime.now() gameRegistry.Run = CEnum.GameState.Active gameRegistry.GameScene = CEnum.GameScene.MainMenu # Debug generate blocks Block(TMatrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0), gameRegistry.currentScene) Block(TMatrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1), gameRegistry.currentScene) Block(TMatrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), gameRegistry.currentScene)