Re: [pygame] Best way to access data

2006-07-11 Thread Lenard Lindstrom
On 11 Jul 2006 at 10:27, Brian Fisher wrote: > > I had a question as to which way would be better to access data after > > loading it into memory. > > > your cache looks fine > > On 7/11/06, Lenard Lindstrom <[EMAIL PROTECTED]> wrote: > > Leave out the unnecessary cache and assign directly to glo

Re: [pygame] Best way to access data

2006-07-11 Thread spotter .
Thanks for the replies. Each method does seem to have merit. I will probably wind up leaving my code as it is, i'm lazy. spot. On 7/11/06, Brian Fisher <[EMAIL PROTECTED]> wrote: > I had a question as to which way would be better to access data after > loading it into memory. > your cache looks

Re: [pygame] Best way to access data

2006-07-11 Thread Brian Fisher
I had a question as to which way would be better to access data after loading it into memory. your cache looks fine On 7/11/06, Lenard Lindstrom <[EMAIL PROTECTED]> wrote: Leave out the unnecessary cache and assign directly to global variables. I wouldn't do things that way. Having an image

Re: [pygame] Best way to access data

2006-07-11 Thread Lenard Lindstrom
On 11 Jul 2006 at 10:56, spotter . wrote: > Hi everybody, > > I had a question as to which way would be better to access data after > loading it into memory. > > The code looks like this now: > In the main loop file, I cache the images into dictionaries: > images_list = ["enemy.png

[pygame] Best way to access data

2006-07-11 Thread spotter .
Hi everybody, I had a question as to which way would be better to access data after loading it into memory. The code looks like this now: In the main loop file, I cache the images into dictionaries: images_list = ["enemy.png","player.png"] global cache cache = cache