fix movement calculation

it was reverse in x
basic animation support. There is a bug that prevents rendering tiles.