Top-Down Tiled View
This recipe shows a top-down tiled background that can be scrolled around. There is also an
editor recipe which extends this with editing capabilities.
Live Demo
Controls
- Arrow keys - scroll the view
Source Code
Exercises
- Add support for clicking and dragging the view to scroll it.
- Add support for clicking on a view location and smoothly scrolling the view to center on
the clicked spot.
Back to cookbook.