Module
Graphics.Phaser.TileMap
- Package
- purescript-phaser
- Repository
- lfarroco/purescript-phaser
#TilemapConfig Source
data TilemapConfig
#tilemapConfig Source
tilemapConfig :: { data :: Array (Array Int) -> Options TilemapConfig, height :: Int -> Options TilemapConfig, insertNull :: Boolean -> Options TilemapConfig, key :: String -> Options TilemapConfig, tileHeight :: Int -> Options TilemapConfig, tileWidth :: Int -> Options TilemapConfig, width :: Int -> Options TilemapConfig }
#MapDataConfig Source
type MapDataConfig :: Row Type
type MapDataConfig = (format :: Number, height :: Number, heightInPixels :: Int, imageCollections :: Array PhaserImage, images :: Array PhaserMapData, layers :: Array PhaserLayerData, name :: String, orientation :: String, properties :: Number, renderOrder :: String, tileHeight :: Number, tileWidth :: Number, tiles :: Array PhaserTile, tilesets :: Array PhaserTileSet, version :: Number, width :: Number, widthInPixels :: Int)
Docs: https://newdocs.phaser.io/docs/3.55.2/Phaser.Types.Tilemaps.MapDataConfig
#addTilesetImage Source
addTilesetImage :: String -> String -> PhaserTileMap -> Effect PhaserTileSet
#createLayer Source
createLayer :: String -> Array PhaserTileSet -> PhaserTileMap -> Effect PhaserLayer
#tilesets Source
tilesets :: PhaserTileMap -> Effect (Array PhaserTileSet)
#layers Source
layers :: PhaserTileMap -> Effect (Array PhaserLayerData)
#getLayer Source
getLayer :: String -> PhaserTileMap -> Effect (Maybe PhaserLayerData)
#orientation Source
orientation :: PhaserTileMap -> Effect String
#properties Source
properties :: forall a. PhaserTileMap -> Effect a
#renderOrder Source
renderOrder :: PhaserTileMap -> Effect String
#scene Source
scene :: PhaserTileMap -> Effect PhaserScene
#tileHeight Source
tileHeight :: PhaserTileMap -> Effect Number
#calculateFacesAt Source
calculateFacesAt :: { x :: Int, y :: Int } -> PhaserTileMap -> Effect PhaserTileMap
#getTileAt Source
getTileAt :: { x :: Int, y :: Int } -> Boolean -> String -> PhaserTileMap -> Effect (Maybe PhaserTile)
#getTileAtWorldXY Source
getTileAtWorldXY :: { x :: Number, y :: Number } -> Boolean -> String -> PhaserTileMap -> Effect (Maybe PhaserTile)
#getTileAtWorldXYWithCamera Source
getTileAtWorldXYWithCamera :: { x :: Number, y :: Number } -> Boolean -> String -> PhaserCamera -> PhaserTileMap -> Effect (Maybe PhaserTile)
#setCollisionByProperty Source
setCollisionByProperty :: Boolean -> Boolean -> String -> PhaserTileMap -> Effect PhaserTileMap
#setLayerCollisionBetween Source
setLayerCollisionBetween :: Int -> Int -> PhaserLayer -> Effect PhaserLayer
#getCenterX Source
getCenterX :: PhaserTile -> Effect Number
#getCenterY Source
getCenterY :: PhaserTile -> Effect Number
#getPolyline Source
getPolyline :: PhaserTiledObject -> Effect (Array Vector)
#getPoligon Source
getPoligon :: PhaserTiledObject -> Effect (Array Vector)
#getText Source
getText :: forall a. PhaserTiledObject -> Effect a
#getPropertyValue Source
getPropertyValue :: forall a. PhaserTiledObjectProperty -> Effect a
- Modules
- Graphics.
Phaser - Graphics.
Phaser. ArcadePhysics - Graphics.
Phaser. Camera - Graphics.
Phaser. Container - Graphics.
Phaser. CoreTypes - Graphics.
Phaser. Curves - Graphics.
Phaser. Display. RGB - Graphics.
Phaser. Events - Graphics.
Phaser. ForeignTypes - Graphics.
Phaser. GameConfig - Graphics.
Phaser. GameObject - Graphics.
Phaser. GameObjects. LightsManager - Graphics.
Phaser. Graphics - Graphics.
Phaser. Image - Graphics.
Phaser. Input. InputPlugin - Graphics.
Phaser. Input. Pointer - Graphics.
Phaser. Loader - Graphics.
Phaser. Scene - Graphics.
Phaser. SceneManager - Graphics.
Phaser. Sprite - Graphics.
Phaser. Text - Graphics.
Phaser. TileMap - Graphics.
Phaser. Time - Graphics.
Phaser. Tween - Graphics.
Tweens. TweenManager - Internal.
Utils - Phaser.
Graphics. Input. KeyCodes - Utils.
FFI