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

[pygame] layers and/or tiles?



Please excuse the beginner type questions and I will gladly accept
redirection/pointers/link to documentation that will assist.

I would like to create an interface for a game that will run on a
limited size display 800x480 (ie Nokia tablet N800).  In order to be
able to have access to a lot of different information, I would like to
be able to put some information on a tile/layer/window that would slide
out from the side of the display.  Then when done viewing it, tap it
(ie, the tablet doesn't use a mouse) and it slide back to the left.
Actually, I would like to have several of these sliding windows come
from the left of the display and one or two from the right.  These
windows would come out about 1/4 of the display when "pulled out".  The
game is a card game, so the main display would show one players hand.
Then with a tap from the top of the screen, there would be another
sliding window that would come over the main players display and show
the other players hand.  There would be a graphic "knob" to tap to pull
out that appropriate window.

Obviously, I am not experienced with pygame, but the question, is there
something like this concept already built into pygame. Would this be
accomplished by a tile? Or, is there some other concept of a rectangular
area that can be defined that can have various graphical images and
fonts drawn on it, that can be animated to appear to slide out from the
side and over top the bottom screen (hence my thought of layers).

Any pointers would be welcome.
Gregg