renderMap() Function Reference

renderMap()

Renders the map as per the current camera position and zoom, visible tile layers, and so on. Used internally by the rendering engine and not really intended for direct use but is available for convenience. If used, you'd usually want to call clearGraphics() first.


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

	-- Enable camera panning when the screen is dragged
	qiso.enableCameraPan()

	-- Rather than calling qiso.activate(), you could do this...
	function mainLoop()
		-- Render the map
		qiso.movementQueue()
		qiso.clearGraphics()
		qiso.renderMap()
	end

	-- Run the main game loop
	Runtime:addEventListener('enterFrame', mainLoop)