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

Re: [pygame] Display follow



Thanks!

One could also move the world with a lever and a solid place to stand.

Ian Mallett wrote:
To do so in pygame, you just move the background surface. pseudo-code:


Surface = pygame.display.set_mode((800,600))
background = pygame.image.load("Background.png")

#in your draw
Surface.blit(background,(-player_pos[0],-player_pos[1]))