WASD to move (sorry arrow key users). Are you here to play around or learn physics? Physics nerds, scroll past the overview to get into the explanation (basic level calculus recommended). High-level overview: Velocity is, in simple terms, an object's change in position. Velocity is what most beginners use to move their sprites at a constant speed. Acceleration is a change in velocity. This is what most platformers use, making a smooth start and stop. Here is where it gets complicated. Jerk is a change in acceleration. Remember how acceleration is a constant change in velocity? Now the velocity changes faster and faster, since jerk is changing acceleration at a constant rate. We can continue down this list, but this is the extent to which my project covers for now. May add more later. PHYSICS AND CALCULUS NERDS A derivative dy/dx of a function f(x) is the "slope" of the function at x, denoted by f'(x) (I assume you know this already if you are down here!). If we define a position function p(x), taking the derivative will allow us to obtain p'(x), or v(x), the velocity function. Continuing to take the respective derivatives of p(x) will obtain a(x), j(x), and s(x). This is the general idea behind this project, since a "change in" (derivative!) position is velocity, or in other words, the derivative of position is velocity. Change in velocity is acceleration (derivative of velocity is acceleration), acceleration jerk, etc. Bonus: after snap, it's crackle, pop, lock, drop, shot, put.
me ig code is simple (check inside), only thing i wish i could improve is the fact that x and y are calculated seperately, meaning faster movement in the diagonals (1.414 (sqrt 2) times faster). whoops mode 5 does nothing