MAgent icon indicating copy to clipboard operation
MAgent copied to clipboard

what's view_position

Open jackfong123 opened this issue 5 years ago • 0 comments

 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!

jackfong123 avatar Feb 28 '20 05:02 jackfong123