Are there limits for how large an image you can realistically use on Blitzmax? I'm converting an existing game I wrote in BlitzPlus over to Max (primarily to create a Mac version) and my only problem so far is in my background drawing function...
I have a large background image (2560x1920), which depending on display resolution may be scaled up even larger. My game then just plots the whole image at some coordinates (which frequently lie offscreen) so that the player can scroll around it. Blitzplus copes with this without any problems and with no real hit to framerate.
Needless to say, Blitzmax is not happy about being asked to do this. The image appears "sometimes" and is horribly corrupted. I haven't been able to find any functions in Max to plot just a section of the image. Defining the viewport hasn't helped either.
There are various other ways I could go about this - splitting the image up into smaller ones until I find a size where this approach works. Since it's only an outer-space background I could take a different approach altogether. I'm just interested to see if it can be done with the single large image (i.e. I'm lazy)
|