[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] scrolling maps



well, I don't have much experience on pygame, but here's some scrolling
engine sample that may help you out. I quickly added some class to handle
the map file loading so you can play around with it making your own tiles
and mapfiles to see how it works

if anyone knows better ways to handle scrolling, please let us know... I'm
kinda new to all this scrolling thing :P

----- Original Message -----
From: "Gabriele Farina" <mrfaro@libero.it>
To: <pygame-users@seul.org>
Sent: Saturday, October 19, 2002 6:41 AM
Subject: [pygame] scrolling maps


> How can I scroll my pygame screen??
> I got a TXT file where I saved a lot of char...any char represents a
> 25x25px image, that I blit on the screen...when The game starts, I see
> only 1/4 o the map...I want the my Hero stay al the centre of the map,
> and when ho moves, pygame has to del the images we don't see and has to
> draw the one we can see...
>
> Someone have something to send to me or have some link where I can see
> any example?
>
> tnx

scroller.zip