Any Idea for the Algorithm to the Blueprint of Super Mario's Brick Smash and Koopa Stomp w/ Bounce?

Hi. What could be the blueprint for Super Mario’s move: brick smash and Koopa stomp? Thank you. God bless. Proverbs 31