After realising that only a max 1024 pixels sprites could be handled by AppGameKit, I try to create a backdrop image from "strips" that are 1024 pix width sections of my background.
I create a background image from a section from the screen
The final background is still blank...
Whats wrong with this code?
function drawBackdrop()
select sprHuman.direction
case EAST:
if abs(xBuffer)+128 < (stripWidth - ScreenWidth)
if getImageExists(imgToScreen) then deleteImage(imgToScreen)
if getImageExists(imgBackdrop) then deleteImage(imgBackdrop)
imgBackDrop = loadImage(strip[currentStrip])
imgToScreen = copyImage(imgBackdrop,xBuffer,yBuffer,screenWidth,screenHeight)
setSpriteImage(backdrop,imgToScreen)
endif
endcase
endselect
endfunction
Cry "Havoc!" and let slip the dogs of war