File hp/tmx/TMXMapView.lua

Functions

M:createCamera () To generate a 2D camera.
M:createDisplayLayer (layer) Display to generate a tile layer.
M:createDisplayLayerRenderer (displayLayer, tileset) To generate the object on which to draw the layer.
M:createDisplayLayers () Display to generate a tile layer.
M:createDisplayObject (object) To generate a display object from the object data.
M:createDisplayObjectLayer (objectGroup) Layer to generate a display object from the object group.
M:createDisplayObjectLayers () To generate the object layer.
M:createDisplayTilesets (layer) To generate a list of tile set that is used by a given layer.
M:findLayerByName (name) Returns the layer by layer from the name search, was found.
M:findObjectByName (name) To return the object to find the object from the name, the first one it finds.
M:findObjectsByName (name) Returns all of the objects to find the object from the name, was found.
M:getViewSize () Returns the size of the MapView.
M:init (resourceDirectory) The constructor.
M:loadMap (tmxMap) Reads the map data, to generate a display object.
M:loadTexture (tileset) Load the texture of the tile set that is specified.
M:scrollCamera (x, y) To scroll through the camera.
M:scrollCameraToCenter (x, y) Scroll to the specified position in the center of the camera.
M:setScene (scene) Set the Scene.

Tables

TMXMapView View the class is to draw the TMXMap.


Functions

M:createCamera ()
To generate a 2D camera. Because of inheritance has been left for, please do not call from the outside.
M:createDisplayLayer (layer)
Display to generate a tile layer. Because of inheritance has been left for, please do not call from the outside.

Parameters

  • layer:
M:createDisplayLayerRenderer (displayLayer, tileset)
To generate the object on which to draw the layer. Because of inheritance has been left for, please do not call from the outside.

Parameters

  • displayLayer:
  • tileset:
M:createDisplayLayers ()
Display to generate a tile layer. Because of inheritance has been left for, please do not call from the outside.
M:createDisplayObject (object)
To generate a display object from the object data. Because of inheritance has been left for, please do not call from the outside.

Parameters

  • object:
M:createDisplayObjectLayer (objectGroup)
Layer to generate a display object from the object group. Because of inheritance has been left for, please do not call from the outside.

Parameters

  • objectGroup:
M:createDisplayObjectLayers ()
To generate the object layer. Because of inheritance has been left for, please do not call from the outside.
M:createDisplayTilesets (layer)
To generate a list of tile set that is used by a given layer. Because of inheritance has been left for, please do not call from the outside.

Parameters

  • layer:
M:findLayerByName (name)
Returns the layer by layer from the name search, was found.

Parameters

  • name:
M:findObjectByName (name)
To return the object to find the object from the name, the first one it finds. If not found, returns nil.

Parameters

  • name:
M:findObjectsByName (name)
Returns all of the objects to find the object from the name, was found.

Parameters

  • name:
M:getViewSize ()
Returns the size of the MapView.
M:init (resourceDirectory)
The constructor.

Parameters

  • resourceDirectory:
M:loadMap (tmxMap)
Reads the map data, to generate a display object.

Parameters

  • tmxMap:
M:loadTexture (tileset)
Load the texture of the tile set that is specified. Because of inheritance has been left for, please do not call from the outside.

Parameters

  • tileset:
M:scrollCamera (x, y)
To scroll through the camera. Adjust the position so that it does not appear out-of-range region is specified.

Parameters

  • x:
  • y:
M:scrollCameraToCenter (x, y)
Scroll to the specified position in the center of the camera. Adjust the position so that it does not appear out-of-range region is specified.

Parameters

  • x:
  • y:
M:setScene (scene)
Set the Scene. Add a layer for each Scene.

Parameters

  • scene:

Tables

TMXMapView
View the class is to draw the TMXMap.
You can render TMXMap by the use of this class.
You can add your own processing can be inherited.

Valid XHTML 1.0!