protect resources (images) within a pygame-program

Max M maxm at mxm.dk
Thu Oct 21 21:32:50 CEST 2004


benjamin wrote:
> A pygame/python game resource question
> ######################################
> I wander whether there is any possibility to compile a bunch of
> resources for a program, like images and soundfiles into a package
> like, let´s say "game.dat", so they do´t fly around in the programs
> folder und can be edited by everyone.
> Hope somebody can help me.

The easiest approach would probably be to load them into a whooping big 
dictionar and save that as a pickle.

-- 

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science



More information about the Python-list mailing list