[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] "Made in PyGame"?



It might be useful if the 'master game' can modify events before they
are passed down into the micro game. Eg, a mouse click event would
need its coordinates offset so that the micro game can operate in its
own (0,0) based coordinate system.

I've written a snippet of code (which uses this library
http://download.berlios.de/lgt/eventnet.tar.tgz) to test the idea. It
has a event handler which takes an event, and modifies it. Secondary
event handlers receive the modified event.

Is this a good idea?

Code is attached.

Sw.

Attachment: ret.zip
Description: Zip archive