how to load an image to a grid using pygame, instead of just using a fill color?
- by yao jiang
I am trying to create a "map of a city" using pygame. I want to be able to put images of buildings in specific grid coords rather than just filling them in with a color.
This is how I am creating this map grid:
def clear():
for r in range(rows):
for c in range(rows):
if r%3 == 1 and c%3 == 1:
color = brown;…