Robots should be animated. Instead of abruptly jumping from one field to another they should smoothly move between fields. This helps understand what the bots are actually doing, especially if there are multiple bots on the board.
Todo
[x] pass current and passed state to renderer
[x] use onAnimationFrame to rerender canvas on every frame
[x] pass time elapsed since last tick as value between 0 and 1
0 means no time has passed since last tick, 0.5 means half the time has passed until next tick ...
[x] interpolate position of entities, to enable smooth move animation
[x] add commit action so prev state is only updated on every clock tick instead of every action
Description
Robots should be animated. Instead of abruptly jumping from one field to another they should smoothly move between fields. This helps understand what the bots are actually doing, especially if there are multiple bots on the board.
Todo
[ ] add sprite animation