where to find seamless scrolling background images?

A forum for general discussion of the Python programming language.

where to find seamless scrolling background images?

Postby kostik » Thu Aug 29, 2013 10:25 am

hi...so iam trying to put scrolling background into my game(Iam making side scrolling game)...so I decided that my background would constatly moving 1 pixel per second left...if righ side of background would came to viewpoint of player the x coordinate of background would change to 0

Code: Select all
background = pygame.image.load("background.png")
BACKGROUND_LENGTH = 2000
WINDOW_LENGTH = 500
while True:               # main game loop


    screen.fill(WHITE)

    screen.blit(background, [x,y])
    if x == -BACKGROUND_LENGTH + WINDOW_LENGTH:
        x = 0
       
    x -=1

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?
Last edited by Yoriz on Thu Aug 29, 2013 11:58 am, edited 1 time in total.
Reason: Changed title and moved topic
kostik
 
Posts: 13
Joined: Tue Apr 16, 2013 10:26 am

Re: where to find seamless scrolling background images?

Postby Mekire » Thu Aug 29, 2013 12:56 pm

I don't know any resources off hand. I do think however it is a great opportunity for you to experiment with some sort of procedural generation :)

Go play Canabalt for some inspiration :mrgreen:

-Mek
User avatar
Mekire
 
Posts: 987
Joined: Thu Feb 07, 2013 11:33 pm
Location: Amakusa, Japan


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 3 guests