Can someone please help me out here? Graphics.fillRect refuses to render out what I'm passing in. I have tried to convey my situation in the screenshot below:
self.x & self.y are both 0 for simplicity's sake. So the very first call to Graphics.fillRect should look like this:
Graphics.fillRect( 0, 48, 0, 48, Color.new(...) )
What is rendered, though, is a rectangle with the values 0,38,0,48 - as you can see from the raw touchscreen data at the top (yellow).
In the green annotations, you can see that the cellWidth is correct and the orange annotations show the starting points of all cells in the grid - all using correct values. What the hell is going on here?
I fear I am going to feel incredibly stupid again when I hear the solution, but this has been puzzling me to more than 2 days now.
self.x & self.y are both 0 for simplicity's sake. So the very first call to Graphics.fillRect should look like this:
Graphics.fillRect( 0, 48, 0, 48, Color.new(...) )
What is rendered, though, is a rectangle with the values 0,38,0,48 - as you can see from the raw touchscreen data at the top (yellow).
In the green annotations, you can see that the cellWidth is correct and the orange annotations show the starting points of all cells in the grid - all using correct values. What the hell is going on here?
I fear I am going to feel incredibly stupid again when I hear the solution, but this has been puzzling me to more than 2 days now.