cartesianToTile() Function Reference

cartesianToTile(decimal x, decimal y)

Converts a cartesian co-ordinate into a tile co-ordinate.


	local qiso = require "plugin.qisoengine"
	qiso.setAssetsFolder("assets")
	qiso.loadTiledMap("sample-tilemap")

	-- Get the cartesian of a tile
	local cartPlot = tileToCartesian(2, 1)

	-- Convert it back again
	print("Tile co-ordinate: " .. qiso.cartesianToTile(cartPlot.x, cartPlot.y))