Feel free to use this in your games, just make sure you credit me! This is more or less the game engine I used in POTM and FFTS3, with minor adjustments to jump height and momentum speed, etc.
I used the engine by @griffpatch_tutor as a base, and made some adjustments to make it more efficient and added wall jumping!