|
|
|
|
@ -7,7 +7,7 @@ from PIL import Image
|
|
|
|
|
|
|
|
|
|
class GameWindow: |
|
|
|
|
def __init__(self, width, height, cell_size, title="Default", key_callback=None): |
|
|
|
|
os.environ["SDL_VIDEODRIVER"] = "x11" |
|
|
|
|
|
|
|
|
|
self.cell_size = cell_size |
|
|
|
|
self.width = width * cell_size |
|
|
|
|
self.height = height * cell_size |
|
|
|
|
|