23 lines
433 B
Python
23 lines
433 B
Python
import sys, random
|
|
from MapGenerator import GenerateMap
|
|
|
|
CELL_SIZE = 64
|
|
FPS = 60
|
|
DELAY = 50
|
|
|
|
try:
|
|
MAP_NAME = sys.argv[1]
|
|
except:
|
|
MAP_NAME = GenerateMap()
|
|
|
|
|
|
map = open( MAP_NAME, 'r' )
|
|
|
|
GRID_WIDTH, GRID_HEIGHT = [int(x) for x in map.readline().split()]
|
|
GC_X, GC_Y = [int(x) for x in map.readline().split()]
|
|
|
|
WINDOW_HEIGHT = GRID_HEIGHT * CELL_SIZE
|
|
WINDOW_WIDTH = GRID_WIDTH * CELL_SIZE
|
|
|
|
HOUSE_CAPACITY = random.randint(1, 11)
|