No one has bitten, so I made things a bit easier for you all. I put it
on Github. Browse the source code, example game, or documentation in
the comfort of your web browser.
http://github.com/irskep/resourcevault

On Mar 21, 10:54 pm, Steve <[email protected]> wrote:
> I have written a module for pyglet that allows you to add resources to
> your game with as little hassle as possible.
>
> Here is a quick example: Say you are making a Pong clone and want to
> add ball.png to your project. Using pyglet's resource module, you
> would have to add a line to load the image. If you have a lot of
> images, adding these loading lines can become quite tedious. If you
> have animations, it can get even more tedious, since you have to
> specify image lists as part of the Animation constructor.
>
> Using my module, all you have to do is this:
> import resources
> #...code...
> resources.ball.blit(x, y)
>
> My resources module walks the specified directories and loads any
> content it finds into a variable in its global namespace with the same
> name as the file, sans extension and with spaces replaced by
> underscores. It also checks for a file called content_data.yaml, which
> provides an easy way to specify animations, anchor points, and a
> couple of other things.
>
> Grab the module and try the demo game 
> here:http://filer.case.edu/srj15/Resources.zip
> (Docs included, don't worry)
>
> I welcome suggestions for improving it. It could also use a good name.
> Calling it "Steve's resources module" is confusing.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to