What concerns me is that this works absolutely fine on the PC; both problems
do not occur on the PC. What I'm wondering is exactly
what varies between each platform that's causing my issue.
Also, as far as I know, I'm drawing correctly. Here's an example of some of my drawing code:
on.paint
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| function on.paint(gc) if title == 0 then drawHUD() drawLayer1() drawPlayer() drawLayer0() if pause == 1 then gc:setFont("sansserif","r",48) gc:setColorRGB(150,0,0) gc:drawString("Paused",159,106,"middle") end else drawTitle() end timer.start(0.1) end |
drawPlayer
1 2 3
| function drawPlayer() platform.gc():drawImage(playersprite,originx+((playerx-camerax)*16),originy+((playery-cameray)*16)) end |
Though some of the tiles fail to draw right on the calculator, everything else draws on both platforms.
Here's a screenshot of the crash I'm getting:
