Thread: Scrolling background??

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    17

    Scrolling background??

    Im using Visual C++ 2005 to program a 2D spaceship navigating across a scrolling background. The background is a simple picture, which I have copied and pasted a few times to extend it in paint.

    It worked fine when it was 7mb. But, now that it is 18mb the mountains are now just flat lines stretching across the screen.

    Is there a limit to the size of the picture that one can used?

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    Why do you use one large picture to be the background? I suggest you look into tiles for 2D scrolling background games. And yes different libraries/drivers have different limits on how big of a texture you can have.

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    17
    Hmmmmm...tiles then. I'll look into that. Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Scrolling background?
    By Deo in forum Game Programming
    Replies: 6
    Last Post: 06-09-2005, 05:40 PM
  2. Windows background color
    By Exile in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2005, 07:55 AM
  3. Detect Close of a background process
    By Schwarzhelm in forum C Programming
    Replies: 1
    Last Post: 11-05-2003, 01:46 AM
  4. Scrolling
    By PJYelton in forum Windows Programming
    Replies: 10
    Last Post: 03-24-2003, 10:04 AM
  5. Scrolling Background
    By Traveller in forum Windows Programming
    Replies: 1
    Last Post: 07-21-2002, 03:50 PM