getBlockRenderedAt method
Get which block should be rendered on position p
.
This is the opposite of getBlockRenderPosition.
Implementation
Block getBlockRenderedAt(Vector2 p) {
final tile = effectiveTileSize;
return getBlock(
p + Vector2(tile.x / 2, tile.y - effectiveTileHeight - tile.y / 4),
);
}