You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: