Can you pin a 2D array to a background surface in pygame instead of having it follow the window around

34 views Asked by At

is it possible to use a 2D array in order to create a maze block by block but pin each part to the back due to the fact the the background is 2400 x 2400 but the window is only 800 x 800, currently whenever I load the maze it is pinned to the window rather than the background and so follows the sprite around, Here is the GitHub link to the code so far: text

I looked into using graphs but it seemed to be a lot harder with few advantages another problem i have is that it reloads the maze every time slowing the program down but that should be an easy fix

0

There are 0 answers