Not right visualisation with in drawImage

Example above.

I set the drawImage(this, 0, 50). In sy i put 50, and this 5 times more then groundHeight in example. Why image is start with the so little black gap from the 0?

on this playground the same things

how i can math numbers 75 and 135, if the plane has size 20 and 10?
It’s blow my mind

var groundWidth = 20;
var groundHeight = 10;

textureGround.drawText("Grass", 75, 135, font, "green", null, true, true);

oh, i got it

1 Like