Re: [pygame] roguelike question

2010-10-04 Thread Michael Schultz
> Well, the idea that you need to > > "put it in a class" > in order to > "access it in the files that needed it" > > is certainly not correct. You could do it that way, however like > Marius says, that's a very strange usage. > A more sensible usage could be: > 1. Scrap the class, move the two

Re: [pygame] roguelike question

2010-10-04 Thread Michael Schultz
> Have you read PEP 8? > > Your Common.Common class, which has two unrelated methods and no > instance state, and is instantiated everywhere for a single use and then > discarded, is not how we do things in Python land. What's wrong with a > simple global function? I only discovered PEP 8 rece

[pygame] roguelike question

2010-10-04 Thread Michael Schultz
Hi, new to the list, but not the language. I'm completely at home with Python :) Right now, I'm coding a roguelike game, and am having trouble getting the map to update changes. I've got movement and collision detection, but for whatever reason, the changes to the map are not being updated. Whe