Movement tracking

Is there a way that a newer person could figure out how to have a player move based on movement of the phone itself? I want to make a map that players will be on but to move around the map they actually have to walk around. So basically it would track what direction they are pointed and as the walk in that direction the player would also walk that direction in the game.