obiot/melonJS — Issue #46: Anchor Point for renderables
Author: jarruda
Created: 2012-02-23 14:13:25+00:00
State: open

Instead of there only being an alignment attribute available to fonts, an anchor point should be added to a base class that all objects that draw themselves may inherit from.

The anchor point allows you to specify in normalized coordinates (0.0, 1.0) what the object's set position is relative to. For example (0.5, 0.5) means that the object's position refers to where the center of the object is placed in world coordinates.