Patent ID: 9539511
Date: 2017-01-10
CPC Classifications: A63F

Claim:
1. A non-transitory computer-readable storage medium having stored therein an information processing program executed on a computer of an information processing apparatus which is capable of displaying an image on a portable display device which outputs at least attitude data based on an attitude of a body of the portable display device, wherein the information processing program causes the computer to perform functionality comprising: calculating an attitude of the portable display device with respect to a predetermined direction in real space; determining, based on the calculated attitude of the portable display device, whether or not a direction of a predetermined axis is within a first range which is set with respect to the predetermined direction in the real space, based on the attitude of the portable display device with respect to the predetermined direction in the real space; controlling an action of a first object arranged in a virtual world, with reference to a predetermined direction which is set in the virtual world and corresponds to the predetermined direction in the real space, based on the direction of the predetermined axis with respect to the predetermined direction in the real space, when the result of the determination is that the direction of the predetermined axis is within the first range; controlling at least an action of a second object arranged in the virtual world, with reference to the predetermined direction set in the virtual world, based on the direction of the predetermined axis with respect to the predetermined direction in the real space, when the result of the determination is that the direction of the predetermined axis is outside the first range; and displaying, on the portable display device, a first image showing the virtual world including at least the first object and the second object.