Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ROBOTOO007 |
i have this code running:
EMPTY = “o”
so map should be equal to a bunc of lists all filled with “o”
but it’s the same as map_coord i don’t know why that is
func createMap() -> void:
for x in range(map_size.y):
map.append([])
for y in range(map_size.x):
map[x].append(EMPTY)
map_coord = map
var screen_Div_map_size = get_viewport().size / map_size
for x in range(map_size.y):
for y in range(map_size.x):
map_coord[x][y] = Vector2(screen_Div_map_size.x * y, screen_Div_map_size.y * x)