flatworld.objects.ObjectSpriteTerrain Class
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
Coordinatesformat: {x: Number, y: Number}. Coordinates for the object relative to it's parent
-
data
ObjectThis units custom data