platipy / spyral

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

Scene Transition Example #48

Open acbart opened 10 years ago

acbart commented 10 years ago

Make it clear that Sprites don't persist between Scenes. Explain how information is garbage collected when a scene is pushed off the stack.

icarito commented 10 years ago

how to go about to make a transition effect? check out http://www.renpy.org/doc/html/transitions.html for some cool examples!

acbart commented 9 years ago

That's an interesting question, and it might be extremely difficult. We should check the plugins available for Pygame to see if there's an off-the-shelf solution. I suppose at the minimum, we could take a snapshot of the current screen and modify that, but that would probably slow things down a lot more... Not sure it's a good idea.

The original description of this problem was actually talking about how students simply did not understand that they should NEVER move sprites between scenes. I'm thinking that we should add some assertion into the game to make sure that they can't do so.