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

Re: [pygame] Split screen question (newbie)



Hi all,

Thanks a lot for the help!
Ok, so what I am interested in doing is sort of artsy-fartsy little videogames (think Rob Humble's The Marriage), and this is one of them: top of the screen, player one will be doing one thing (collecting items, destroying items); bottom of the screen, player two will be doing other things (putting items together). And that is it, more or less :)
Now, the problem is that I am to game programming what military music is to music, so I don't want to go into tiling or scrolling backgrounds (but hey, I'd love to learn more about tiling at some moment!).
My intuition was very much towards Casey and Ian's comments - two subsurfaces where I can draw. Question is, I have no idea how to practically do that.
I do the screen the classic way, I think
screen = pygame.display.set_mode()
and then a background:
background = "">

Blitting and flipping follow :)

So how could I do this?

Thanks a bunch! (uff, and sorry for the longish email :)

Naranjito

On 11/21/07, Ian Mallett <geometrian@xxxxxxxxx> wrote:
Same in OpenGL.  You just choose which part of the window you're drawing into.