One other thought I forgot to put in my previous post:
There are one or two cases where the ball-pushing doesn't seem quite consistent. If the player is on an arrow and the ball pushes against him without the player moving with the arrow, he dies, even if the ball is pushing in the same direction as the arrow. What I expected to happen was that the player would be pushed over the arrow.
Something like this happens at corners too, and it may be just because the arrows are there as well, but I think it would be nice to have the player pushed around corners even if he doesn't push in the right direction.
A good general algorithm for pushing might be:
If player can move in the same direction as the arrow pushes...
Move him there.
If not then...
Look at other squares adjacent to player in order of their closeness to the square the arrow pushed towards.
If a square was found that player could move into...
Move him to that square.
Else
Death!
So basically the player is pushed out of the way of the ball if it's possible. Less deaths due to keyslips that way, and you can have that "
go with the flow"
feeling when the balls are pushing the player around corners.
But if that is going too far, I'd still allow balls to push the player over arrows.
-Erik
____________________________
The Godkiller - Chapter 1 available now on Steam. It's a DROD-like puzzle adventure game.
dev journals |
twitch stream |
youtube archive (NSFW)