This is the platform engine from my popular(ish) Little Ninja game series. It supports death, minor slope detection, minor sliding, wall and roof detection, high jumping, fast acceleration, wall jumping, wall clinging, and restarting. Use the arrow Keys to move. Press R to restart. Press space to switch between the good and bad characters from my game.
If you make a game from this base, you MUST give me credit! This is mandatory, not optional! Here are my Little Ninja games: http://scratch.mit.edu/studios/428497/