BricksAreTasty
Pacman-esque game in c# raylib. Help with optimisation/collision
Im making a game for my class project and i've stumbled onto a problem with my level design. Essentially the way i made my level is by creating and generating rectangles from a list[,] array(? i think its called that) for every wall in the level. Only problem is that this method ends up generating like 100 rectangles and fries the computer. Additionally, i have not found a method to add collision between these rectangles and my character (also a rectangle).
i can provide a github repository if needed for the code.
12 replies