Ishadijcks / Ishadijcks.github.io

PokéClicker
15 stars 32 forks source link

Rework keypress handling, toggle animation instead #103

Closed Aegyo closed 7 years ago

Aegyo commented 7 years ago

Now keeps track of all directional keys held, walking only set to false (and hence ending the current walk) once the last one is released.

Now uses Motio .on('frame') to handle only moving forward two frames per step, and the current frame is kept track of in safari.frame so that when a new Motio object is created, it can be started from the correct frame.