|Keywords||Wattage, Camera, Tile Engine|
A camera is used by the tile engine renderer to determine what is visible. In typical usage, the camera will be created by the ViewControl and not the developer.
An instance of the camera can be retrieved from the ViewControl.
-- tileEngineViewControl is an instance of ViewControl local camera = tileEngineViewControl.getCamera() -- set camera location in tile coordinates (not pixels) camera.setLocation(10.5, 10.5) -- pass camera to the tile engine's render function tileEngine.render(camera)