A non-transitory computer-readable storage medium having stored therein an information processing program causing one or more processors to execute processing of moving a player object in a virtual space on the basis of an operation performed by a user, taking an image of the virtual space by a virtual camera, and rendering the virtual space, the information processing program causing the one or more processors to provide execution comprising:
- performing first display obtained by taking an image of the virtual space by the virtual camera facing a first camera direction in the virtual space and rendering the virtual space;
- during the first display, accepting input based on an operation performed by the user and switching from the first display to second display, wherein the second display represents the virtual space as viewed from above;
- during the second display that represents the virtual space as viewed from above, determining a cursor location for a cursor displayed during the second display and designating a second camera direction on the basis of an operation performed, by the user, in association with the cursor location, wherein the second camera direction is a direction on the second display;
- during the second display, switching to the first display according to an operation performed by the user;
- during a predetermined period after switching to the first display, changing a direction of the virtual camera from the first camera direction to a direction based on the second camera direction determined based on the cursor location for the cursor displayed during the second display;
- and
- rendering the virtual space for display, on a display device, in association with the changed direction of the virtual camera.