Re:Snake in Elm with WebGL
by baddox on Tuesday June 27, 2017 @12:24AM
(#14642561)
Maybe it makes it too easy, but I would enjoy the mechanic that quickly pressing UP LEFT when moving right would make the snake head move one square up then turn left and continue left. I suppose that would require some special casing, and you wouldn't want to support longer queued direction changes. Maybe a nice implementation would be that for inputs queued within a single game tick, execute the first input for one square of movement, then the last input for the next tick.
[ Parent
| on HN ]
There are no comments on this comment yet.