Ultima V: Warriors of Destiny/Moongates

After sunset all the eight Moongates appear. The destination of the moongates is determined by the moon phase of the moon nearest to the apex (middle point in the sky).

Trivia
Note that in Ultima the sun and the moons rise from the right and set on the left.

In the Northern emisphere (Europe, Asia, North America) the opposite is true: the Sun is to the South at noon and the Moon is to the South at its apex, they both rise from the East on your left and set into the West on your right.

This may mean either one of the following:
 * 1) The fictional land of Ultima is in the Southern emisphere of its world;
 * 2) No one of the authors ever bothered to look at the sky.