API Docs for: 0.1.1
Show:

flatworld.objects.ObjectSpriteTerrain Class

Extends ObjectSprite

Terrain tile like desert or mountain, non-movable and cacheable. Normally, but not necessarily, these are inherited, depending on the map type. For example you might want to add some click area for these

Constructor

flatworld.objects.ObjectSpriteTerrain

(
  • coords
  • data
)

Parameters:

  • coords Coordinates

    format: {x: Number, y: Number}. Coordinates for the object relative to it's parent

  • data Object

    This units custom data

Item Index