project-slippi / slippi-js

Parse slp files and compute stats
GNU Lesser General Public License v3.0
147 stars 78 forks source link

Added analog metrics. #40

Open WattTheFlux opened 3 years ago

WattTheFlux commented 3 years ago

Added in tracking the analog distance for the joystick in addition to computing the distance traveled in meters and the average velocity of the stick throughout the game. Analog distance is measured in joystick coordinate units while meters and meters per second are used for the real world distances. After looking at the average velocity, it's not as interesting as a metric as I initially thought it'd be. It's pretty low just due to the fact that in general, more frames are spent holding a direction than moving it. Maybe it'd be more interesting to track joystick acceleration or to exclude frames that don't have any movement? Eh.