[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] ?scroll a section of the background?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] ?scroll a section of the background?
- From: Justin Shaw <wyojustin@xxxxxxxxx>
- Date: Tue, 18 Oct 2005 20:51:51 -0400
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Tue, 18 Oct 2005 20:52:04 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=BQZkIJMtYoidhYikiKemOt1iUS7VlBEDDZ28TF0r5iF+TkbZUfBLDDYH9o7t7fapYqxBBoenFef6pyyWGPZLYFJnyqzB5RFmNow4BJVKtViwXg9nhW3qASCdz5nf14mat1x+5kEX6ZnAsm9PPTD1UvigLhsHWEVsiZdlVpNqBcY=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Pygame newbe here and I must be missing something. I need to
scroll a section of the screen at each update. I had hoped I
could achieve this with Rect.move(), but you already know that didn't
work. If you think you might be able to help, please read on.
I am undating a row of pixels each frame. I'd like to move the
history of such rows up a pixel in order to make room for the new
data. Something like this ...
while running:
new_row = getColoredLine()
move_history_up_one_line()
drawColeredLine(new_row)
pygame.display.flip()
Any ideas will be greatly appreciated.
PyGame Rocks!
Thanks,
--
Justin