def __init__(self): Map.__init__(self, 2400, 1200) ''' Locations and sizes of platforms (width, height, x y) ''' map = [[200, 30, 270, 220], [200, 30, 300, 420], [200, 30, 600, 110], [200, 30, 1000, 800], [200, 30, 1400, 900], [200, 30, 1850, 1000], [200, 30, 10, 1150], [200, 30, 600, 1100], [200, 30, 2100, 1100]] for platform in map: block = Platform(platform[0], platform[1], platform[2], platform[3]) self.platform_list.add(block)
def __init__(self, p, m, seed=time.time()): State.__init__(self, p, m) Map.__init__(self, seed)