- Code: Select all
background = pygame.image.load("background.png")
BACKGROUND_LENGTH = 2000
WINDOW_LENGTH = 500
while True: # main game loop
if x == -BACKGROUND_LENGTH + WINDOW_LENGTH:
x = 0
Of course, my code is different...this is just an example....Problem is not code but background itself...I cant find any of background, which would smoothly continue when x coordinate change to 0...do you know some web page where i could find this kind of backgrounds?