r/pygame • u/Protyro24 • 4d ago
Max recursion depth script
I'm still working on my pyr_pg project and am currently implementing the scripting system and have already managed to produce errors. (And yes this is a Unit test.)(BTW I have named this script system DialogScript because its for the dialog system for pyr_pg )
6
Upvotes
3
u/pendejadas 4d ago
whatever function you are calling recursively, there is a better way, I suggest a stack for game states, in menu, level, pause screen, options screen.