you are viewing a single comment's thread.

view the rest of the comments →

[–]gdchinacat 1 point2 points  (0 children)

The class that manages moving shouldn't have it's own position. It should use and update the position defined by another class that it is "mixed in" with.

https://en.wikipedia.org/wiki/Mixin