If you are looking for a very easy template to learn how to make a game like Super Mario World, this is it.
The template was designed taking into consideration other games in the same genre.
The code is well commented and organized. It is very easy to take it and turn it into any platform game you desire.