• trying to find a simple displacement algorithm, can’t seem to find one

  • well, displacement is just acceleration (which in this case is a continually decreasing value), multiplied by time delta, + velocity (just a displacement unit over time). Acceleration decreases a certain amount each cycle.

  • Most of the code for something like the character can be put into the player’s class instance (like “draw”) if the drawing context is passed in.

  • Separated out the positional information for a given component as they’re inter-dependent

  • The interesting thing about dynamic interfaces, is how much is accomplished with math, and not super complex math either.

  • The code is getting a bit hairy but nonetheless, bugs are still easy to find and fix

  • Managed to get the player to occupy the capsule, draw the sequencer, then generate and play it

  • For testing purposes, I now generate new capsules every few seconds, to a max of 5 because then ToneJS starts to break, so I need to maybe find a solution for that. Can be tested in its current form at: https://drohen.github.io/paddle-game/