MAgent
MAgent copied to clipboard
what's view_position
Hello~ I want to double the display scenes in a window, however, I cann't understand the meaning of view_position in pygame_render.py. And how the following code work?
draw_rect_matrix(grid_map, (127, 127, 127), (x * grid_size - view_position[0], y * grid_size - view_position[1]), grid_size, grid_size, resolution)
Could someone give me a brief explaination? Sincerely hope your reply!