mattbruv / ccsr

The Cartoon Cartoon Summer Resort Shockwave game series ported to the modern web. (+Scooby Doo Hollywood Horror)
https://mattbruv.github.io/ccsr/
92 stars 3 forks source link

Interpolate movement #1

Closed mattbruv closed 2 years ago

mattbruv commented 2 years ago

The game requires that things are updated at 12 FPS and that the player moves 8 pixels every step. Right now he teleports 8 pixels, it should be possible to interpolate the movement (60 / 12) 4 or 5 times and more smoothly move the sprite before the 8 pixel movement is up.

This would likely make the movement more smooth.