Namespaces again.

So I’ve started using different modules for my squares project here and what I’ve ran into is namespace problems again. In my name == main I’ve got just the init() function, but that creates all the game objects under that function’s namespace, rather than global, like it used to be when I had everything in my name == main instead of in a nice function.

Perhaps instead of a all-encompassing int() function I create functions that return objects and use those. I’m not sure.

Leave a Reply

Your email address will not be published.