© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
11 replies
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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ C# + raylib + freebsd
C#CC# / help
2y ago
Help with optimisation
C#CC# / help
13mo ago
❔ raylib c# 2d collison
C#CC# / help
3y ago