activate() Function Reference

activate()

Activates the main Qiso loop. This is basically the same as creating your own game loop and manually invoking movementQueue(), clearGraphics(), and renderMap(). You should call this when ready for the world to render, and call deactivate() when you want to pause Qiso and render something else, like a menu screen.


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

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

	-- Enable the main Qiso loop to render/update our world
	qiso.activate()