def changeRoom(map_at, level): if len(map_at) >= 3: sala = openSala("../Salas/tutorial/" + str(map_at[0])) else: txt = "../Salas/" + level[map_at[1]][map_at[0]] sala = openSala(txt) tiles_breakable, background, tiles_draw, tiles_base = mapread(sala) size = getSize(sala) offsets = getOffset(sala, size, "sala") return sala, offsets, size, tiles_breakable, background, tiles_draw, tiles_base
def changeRoom(map_at, level): map_at = hall([0, 0, "get_pos_strt"], level) txt = "../Salas/" + level[map_at[1]][map_at[0]] sala = openSala(txt) tiles = mapread(sala) tile_breakable = pg.sprite.Group() size = getSize(sala) offsets = getOffset(sala, size, "sala") player1 = Corak() player1.update([0, 0, "get_at_S"]) player1.update([0, 0, "Map"]) temp3 = False
def changeRoom(map_at, level): #print("changeroom") txt = "../Salas/" + level[map_at[1]][map_at[0]] #print("txt", txt) sala = openSala(txt) #print("sala", sala) tiles, tiles_breakable, tiles_deco, background = mapread(sala) #print("tiles", tiles) size = getSize(sala) # print("size", size) offsets = getOffset(sala, size, "sala") return sala, offsets, size, tiles, tiles_breakable, tiles_deco, background
def changeRoom(map_at, level): #print("changeroom") txt = "../Salas/" + level[map_at[1]][map_at[0]] #print("txt", txt) sala = openSala(txt) #print("sala", sala) tiles, background = mapread(sala) #print("tiles", tiles) tile_breakable = pg.sprite.Group() size = getSize(sala) # print("size", size) offsets = getOffset(sala, size, "sala") for tile in tiles: if tile.type == 2: tile_breakable.add(tile) tiles.remove(tile) return sala, offsets, size, tiles, tile_breakable, background
if -1 == self.at[0]: print("levelleft") elif len(sala[0]) == self.at[0]: print("levelright") elif -1 == self.at[1]: print("levelup") elif len(sala[0]) == self.at[1]: print("leveldown") screen = pygame.display.set_mode((ScreenX, ScreenY)) txt = "../salas/LUD3wayX" sala = openSala(txt) tiles = mapread(sala) size = getSize(sala) offsets = getOffset(sala, size, "sala") goTo = [0, 0] player1 = Corak() print(tiles) left = False right = False b = 10 a = 0