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")
while True:               # main game loop


    screen.blit(background, [x,y])
        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
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:

New Users, Read This
  • Use code tags when posting code.
  • Include any errors with your post (in code tags).
  • Describe your problem; not your chosen solution.
  • Make examples the minimum length to demonstrate your issue.
User avatar
Posts: 1711
Joined: Thu Feb 07, 2013 11:33 pm
Location: Tucson, Arizona

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 5 guests