Driftwood2D / Driftwood

Driftwood 2D Tiling Game Engine and Development Suite
http://tileengine.org/
MIT License
24 stars 1 forks source link

Pixel-mode diagonal movement #109

Closed pmer closed 7 years ago

pmer commented 7 years ago

Fixes #90.

So I know there are problems with this code. For instance—why is there a facing and a stance and an end_stance? I have no idea! I just blindly got things working without actually understanding that part of the movement code.

What should be happening there?

seisatsu commented 7 years ago

The facing code was fine as is. Facing is which direction you're facing for the purpose of interaction with a tile or entity, which stances are purely graphical. The code set a facing if we were moving up, down, left, or right, otherwise it set none. Interacting diagonally is weird so we don't do it.

seisatsu commented 7 years ago

Alright I changed some things back while keeping the ability to manually set facing. Everything works, pulling now.