Skip to content

Argument type mismatch between getTile[Id] and setTile/clearTile #107

@parasyte

Description

@parasyte

me.TiledLayer has four functions for accessing and modifying the tiles in the layer, but the x,y arguments passed to each function do not match:

  • getTile and getTileId accept the coordinates in pixels
  • setTile and clearTile accept the coordinates in tiles

The difference is not evident in documentation: http://www.melonjs.org/docs/symbols/me.TiledLayer.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions