I wrote a little algorithm to control the movement of the Player Character and the enemies to demonstrate my gameplay idea that I mentioned in my last post. The algorithm itself works, but is a bit unreliable, since little errors will accumulate and the characters might move off the grid, so I’ll rewrite it completely, but it is good enough for a proof of concept.
The enemy is just a placeholder.
Comments