On Jun 1, 8:51 am, dodgyville <[EMAIL PROTECTED]> wrote:
> I'm interested in how people and saving their game states. Ideally I'd
> love to just pickle the entire "game" object. In pygame this doesn't
> work because of the image resources, but maybe it's different in
> pyglet?

It would seem to me to be quite wasteful to be pickling static
resources such as images as part of the game state, anyway. Perhaps a
clear division between the game's 'model' (ie. the things that change
in the game logic) and the game's 'view' (ie. the renderables, the
audio, and other interface concerns that are typically static) could
help you in using pickling for this task.

--
Ben Sizer

--~--~---------~--~----~------------~-------~--~----~
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