Here's a project with most things needed for a platformer. it has spikes, saws, cannons, lava, load, start, and more.
link to it:https://dexxogames.itch.io/platformer-template
Develop games in your browser. Powerful, performant & highly capable.