19 lines
360 B
Python
19 lines
360 B
Python
from grid import *
|
|
from config import *
|
|
|
|
|
|
def singlePlayer():
|
|
global pause
|
|
gameExit = False
|
|
a = Grid()
|
|
a.generate_map()
|
|
while not gameExit:
|
|
|
|
for event in pg.event.get():
|
|
if event.type == pg.QUIT:
|
|
pg.quit()
|
|
quit()
|
|
|
|
a.display_map()
|
|
pg.display.update()
|
|
clock.tick(60) |