Wrap background with pcx image
Posted: Mon Jun 27, 2011 3:27 am
Ok, so i now have a pcx image loaded and displaying... but only when its a power of 2.
The image/s i am using are 320x200. What i want to do is load this image and be able to scroll left and right, and see the same image wrap around.
Basically the idea is to use this background in a side scrolling game.
Eventually i plan on looking at scaling so the background image is bigger than its original size, but for now, just loading and wrapping it would be a start.
Can anyone help me with this, the tutorials i have looked at either dont work, or are for a text background, with a map.
The image/s i am using are 320x200. What i want to do is load this image and be able to scroll left and right, and see the same image wrap around.
Basically the idea is to use this background in a side scrolling game.
Eventually i plan on looking at scaling so the background image is bigger than its original size, but for now, just loading and wrapping it would be a start.
Can anyone help me with this, the tutorials i have looked at either dont work, or are for a text background, with a map.