Python Forum

Full Version: Modules
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm re-writing my shmup code and breaking it down into modules. My question is, should I put each class into separate modules?
As of now I have a page module that has a start page and handles labels and text. I have a player module that creates the player and mobs. I also have a bullets class in the player module and thinking about giving it it's own module. I have a shield class that I'm also thinking about giving it its' own module. How many is too many? It's just for practice purposes.

I would appreciate any insight.

Thanks



I put the bullet and shield class in the same module.