A very crude sample apk attached for anybody interested. Android only at the moment as we don't have an iOS license yet, but it's entirely Lua so should be cross platform when we come to a proper release.
The sample allows panning the map by dragging with one finger, zooming in/out with pinch gestures, and centering on to specific tiles by tapping them.
To produce this sample is just a few simple lines:
-- Load plugin library local qiso = require "plugin.qisoengine" -- First, tell qisoengine where maps and sprite files are. qiso.setAssetsFolder("assets") -- Load a Lua formatted Tiled Map Editor tilemap into a Qiso map. qiso.loadTiledMap("sample-tilemap") -- Enable zooming when the screen is pinched qiso.enablePinchZoom() -- Enable camera panning when the screen is dragged qiso.enableCameraPan() -- Center on the tapped tile function tapTile(event) -- Get the tile located where the screen was tapped. If there's no tile here, getTile returns nil. local tile = qiso.getTile(event.x, event.y) if(tile ~= nil) then qiso.goTo(tile.x, tile.y) end end -- Main game loop function mainLoop() -- Render the map qiso.clearGraphics() qiso.renderMap() end -- Do something when the screen is tapped Runtime:addEventListener('tap', tapTile) -- Run the main game loop Runtime:addEventListener('enterFrame', mainLoop)