Arrow Keys to Move This is a simple example of a scrolling tile engine with platformer physics I made a couple years ago. I've made lots of improvements and optimizations to this since then, but it's in another project I haven't released yet. In the meanwhile, feel free to learn from this one.
This project uses Tiled Map Editor's (a free map editor you can find on the web) XML data to load a map with the "XMLParser" sprite. You don't have to use that sprite, or the Tiled Map Editor if you don't want to. I included a script on the Map sprite with a comment describing how to write your own map data manually. Features: Camera scrolling Dynamic game scale/resolution Loads tilemap data saved from an external tile editor Supports very large maps at a steady 30FPS