This is a demo of my recreation of Super Mario 64 game mechanics/player controls using PlayCanvas.
My code was starting to get messy so I refactored a lot of things and will have to redo the sideflip, walking on slopes and dropping off ledges which I previously had working but it was too messy to continue. I now have better state management by separating:
Controls
Movement
Animations
Keeping these independent from one another will allow me to make changes to one without affecting the others. So if I want to add my own animations it won't break the game mechanics. If I want to switch to keyboard controls instead of a controller I can do that without affecting the movement.