platipy / spyral

http://platipy.org
Other
49 stars 12 forks source link

Save Image/Scene to file #43

Open acbart opened 10 years ago

acbart commented 10 years ago

I (someday) plan to rewrite Broadway to work with the new Spyral API. That will require a way to export Images and the Scene to a file, using pygame.image.save[1]. Obviously, this is extremely low priority.

[1] http://www.pygame.org/docs/ref/image.html#pygame.image.save

danbarbarito commented 10 years ago

Any idea on how to go about doing this?

rdeaton commented 10 years ago

For images, we can probably add a method on them to let you save them to a file.

For saving out the scene, we can probably provide a hook in the form of an event that stuffs the scene into a dummy Image for you to call ->save() on? I'm not sure there's any other good place for us to provide acccess to the rendered scene.

acbart commented 10 years ago

For saving the scene, is it not as simple as passing pygame.display.get_surface() into pygame.image.save() ?