Top-down Dungeon-crawler Controls

This recipe shows how to walk a character around a top-down 2D space, as is common in dungeon crawlers and Zelda-like games. In this recipe, the character is always in the center of the screen and the dungeon scrolls as they walk around.

Live Demo

Controls

Source Code

Exercises

Back to cookbook.