1 /*********************************
2 ** Tsunagari Tile Engine **
4 ** Copyright 2011-2012 OmegaSDG **
5 *********************************/
19 void Overlay::teleport(int x
, int y
)
25 void Overlay::move(int x
, int y
)
30 // XXX: Find nearest facing.
31 //setFacing(ivec2(x, y));
33 // XXX: Hack for facing. Shouldn't need to set.
34 setFacing(ivec2(0, 1));
36 // Copied from Entity::preMove()
37 destCoord
= r
+ rcoord(x
, y
, 0);
41 // Start moving animation.
42 //setPhase("moving " + getFacing());
44 // Movement happens over time. See updateTile().