I'd like to cache the screen image so I don't have to generate it for each iteration.
All of my current screen drawing logic eventually draws to the screen image, and I'd rather not have to rewrite it.
Luaplayer doesn't like the 2nd line - bad argument #2 to `blit' (Image expected, got table).
I take it the error is because screen is a 'special' type of image (according to the docs). Does anyone know if screen has an attribute on it which is a conventional image?
The screen is a special image, it is...the screen. I wish I could call it as an image, but you cant.
Now, from what I remember from a while ago, when I did a foreach on screen, it came up with 'flip' and 'waitVblankStart', which were the screen. functions.
When I tried foreach(Image,print), I remember getting what you got for 'screen'.
Just so you know, there is no way (besides screenshot) to call the screen image. Check the source code.