Representing and solving a maze given an image
What is the best way to represent and solve a maze given an image?
What is the best way to represent and solve a maze given an image?
I have a maze organized in a grid. Each cell of the grid stores the information about the walls to its right and bottom neighboring cell. The player is an object of a certain size whose bounding box is known. I want to move the player smoothly through the maze with the walls preventing them from going through.
Can someone please help me adding collision points to my sprites. I had a past code where I layered a bitmap over images but the same code does not integrate well for physically drawing lines rather than detecting where the black/grey is on an image import random import pygame pygame.init() WHITE = (255,255,255) GREY = … Read more