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

Re: [pygame] layers and/or tiles?



Sounds like just the kind of thing I was looking for.  Many thanks.
Gregg

On Fri, 2008-02-01 at 12:35 -0800, Casey Duncan wrote:
> On Feb 1, 2008, at 11:37 AM, Gregg Jensen wrote:
> 
...
> 
> Short answer: Yes you can do it, but pygame won't help much beyond the  
> low-level drawing and event mechanism.
> 
> I have a game with sliding panels that contain controls. They have  
> tabs that show when then panel is hidden. Clicking on the tab slides  
> the panel up, clicking again slides it off. The tabs also have hotkeys  
> to activate them.
> 
> You can find the code in the panel.py module here:
> 
> http://eos-game.svn.sourceforge.net/viewvc/eos-game/
> 
> This depends on several other modules in the game, in particular,  
> event.py and widget.py.
> 
> The Panel base class in panel.py contains the code that handles the  
> sliding animation.
> 
> -Casey