akari icon indicating copy to clipboard operation
akari copied to clipboard

A pixel perfect lie

Open lcnr opened this issue 4 years ago • 1 comments

The player has a running speed of 100, this means that he moves 1.666 pixels per frame.

In reality, this causes an alternating sequence of 2, 2, 1, 2, 2, 1, .... As the gameplay is scaled by 3, this is 3 pixel difference is noticeable as some kind of stuttering.

Solutions:

  • set max speed to 120.
  • only draw each sprite scaled, do not round the positions to a multiple of 3.

lcnr avatar Mar 10 '20 14:03 lcnr

solved by setting max speed to 120. Still fairly annoying

lcnr avatar Mar 14 '20 22:03 lcnr