File hp/classes/MapSprite.lua
Functions
I:setMapSheets (tileWidth, tileHeight, tileX, tileY, spacing, margin) | タイル形式のシートデータを生成して設定します. |
I:setMapSize (mapWidth, mapHeight, tileWidth, tileHeight) | マップサイズを設定します. |
I:setRow (...) | マップの行データを設定します. |
I:setRows (rows) | マップの行データを設定します. |
I:setSheets (sheets) | シートデータを設定します. |
I:setTexture (texture) | Textureを設定します. |
M:new (params) | SpriteSheetインスタンスを生成して返します. |
Tables
MapSprite | Gridを描画するモジュールです. |
Functions
- I:setMapSheets (tileWidth, tileHeight, tileX, tileY, spacing, margin)
-
タイル形式のシートデータを生成して設定します.
Parameters
- tileWidth:
- tileHeight:
- tileX:
- tileY:
- spacing:
- margin:
- I:setMapSize (mapWidth, mapHeight, tileWidth, tileHeight)
-
マップサイズを設定します.
Parameters
- mapWidth:
- mapHeight:
- tileWidth:
- tileHeight:
- I:setRow (...)
-
マップの行データを設定します.
Parameters
- ...:
- I:setRows (rows)
-
マップの行データを設定します.
Parameters
- rows:
- I:setSheets (sheets)
-
シートデータを設定します.
Parameters
- sheets:
- I:setTexture (texture)
-
Textureを設定します.
Parameters
- texture:
- M:new (params)
-
SpriteSheetインスタンスを生成して返します.
Parameters
- params: