I am working on a game using pygame. I would like to put different chunks of code in separate files instead of one long file for obvious reasons. The trouble is I am having to pass a lot of variable back fourth between files, and it seems cumbersome. Surely I am missing something?
submitted by /u/churchofclaus
[link] [comments]
r/learnpython I am working on a game using pygame. I would like to put different chunks of code in separate files instead of one long file for obvious reasons. The trouble is I am having to pass a lot of variable back fourth between files, and it seems cumbersome. Surely I am missing something? submitted by /u/churchofclaus [link] [comments]
I am working on a game using pygame. I would like to put different chunks of code in separate files instead of one long file for obvious reasons. The trouble is I am having to pass a lot of variable back fourth between files, and it seems cumbersome. Surely I am missing something?
submitted by /u/churchofclaus
[link] [comments]