Information processing program, information processing system, and information processing method
The system addresses the challenge of changing virtual camera direction by providing a bird's-eye view and controlled orientation adjustment, enhancing user experience and navigation in three-dimensional games.
Patent Information
- Application Number
- JP2023017466
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-02-08
- Publication Date
- 2024-11-07
- Estimated Expiration
- 2043-02-08
AI Technical Summary
Users unfamiliar with games struggle to accurately and easily change the direction of a virtual camera in a three-dimensional space, especially when using touch operations, as it is difficult to grasp the direction the player character is facing and operate while viewing both the minimap and the virtual space.
A system that allows users to change the virtual camera direction through a bird's-eye view of the virtual space, where the orientation is adjusted over a predetermined period after switching displays, enabling easy recognition of direction changes by displaying a planar image of the topography and allowing users to specify a point in the virtual space to determine the camera direction.
Enables accurate and easy specification of the virtual camera direction, improving user convenience by preventing disorientation and facilitating movement to desired locations within the virtual space.
Smart Images

Figure 0007579371000001 
Figure 0007579371000002 
Figure 0007579371000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to information processing for moving a player object within a virtual space based on a user's operation and capturing and rendering the virtual space with a virtual camera. [Background technology]
[0002] Conventionally, games have been known in which a virtual three-dimensional space is displayed from a first-person or third-person perspective and the player progresses through the game. Also, games that use a touch panel for operation of such games are also known. For example, a game that is executed on a mobile terminal is known in which the imaging direction of a virtual camera can be adjusted by touch operation (for example, Patent Document 1). Also, among such games, a game that displays a map image showing the whole or part of the game world is known. For example, a game that displays a "minimap" superimposed on the upper left or upper right of the 3D screen is also known. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-76721 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the above-mentioned games, users who are not yet familiar with the game may not be able to fully recognize the space in the virtual three-dimensional space. For such users, when trying to change the direction of the virtual camera by touch operation, it may not be easy to change the image capture direction to the desired direction while grasping the direction in which the player character is facing in the virtual three-dimensional space. In addition, for example, it is possible to present the field of view information of the virtual camera using a minimap, but it is still not easy to operate while looking at both the minimap and the virtual three-dimensional space.
[0005] Therefore, an object of the present disclosure is to provide an information processing program, an information processing system, and an information processing method that, when a user wants to change the imaging direction of a virtual camera on a screen on which a virtual space is displayed as a three-dimensional image, enables accurate and easy imaging direction instruction operation while making it easier for the user to recognize how the imaging direction has been changed. [Means for solving the problem]
[0006] In order to achieve the above object, for example, the following configuration example can be given.
[0007] (Configuration 1) Configuration 1 is an information processing program that causes a computer to execute a process of moving a user object within a virtual space based on a user's operation, and photographing and drawing the virtual space with a virtual camera, the information processing program causing the computer to perform a first display in which the virtual space is photographed and drawn by a virtual camera facing a predetermined first camera direction of the virtual space, switching to a second display showing the virtual space from a bird's-eye view during the first display in response to a user's operation, specifying a second camera direction which is a direction on the second display based on the user's operation during the second display, switching to the first display in response to a user's operation during the second display, and changing the orientation of the virtual camera from the first camera direction to a direction based on the second camera direction for a predetermined period of time after switching to the first display to execute a process of photographing and drawing the virtual space.
[0008] According to the above configuration, in the bird's-eye view display of the virtual space, the direction to face within the virtual space can be specified, and the orientation of the virtual camera is changed over a predetermined period of time after switching from the second display to the first display, thereby allowing the user to recognize how the orientation of the virtual camera has changed, and preventing the user's sense of direction from being impaired.
[0009] (Configuration 2) Configuration 2 is the above-mentioned configuration 1, and the second display may be a display of a planar image expressing the topography when the virtual space is viewed from above.
[0010] According to the above configuration, since the virtual space is displayed as a planar image, the topography and positional relationships in the virtual space can be presented in a form that allows the user to easily understand them. In addition, the direction of a point that is not visible in the first display can be specified as the second camera direction.
[0011] (Configuration 3) In configuration 3, in the above-mentioned configuration 1, the second camera direction may be determined by a user designating a predetermined point in the virtual space and performing a first operation during the second display.
[0012] According to the above configuration, for example, a point to which the player wishes to move can be designated as the predetermined point, and the second camera direction can be determined based on that point.
[0013] (Configuration 4) Configuration 4 in the above-mentioned configuration 3 may be such that the second camera direction is a direction from a position of the player character toward a predetermined point in the virtual space designated by the user.
[0014] According to the above configuration, in the first display, it is possible to clearly present in what direction the predetermined point designated by the user is located from the position of the player character.
[0015] (Configuration 5) In configuration 5, in configuration 3, a second operation may be selectively accepted as the first operation during the second display. When the second operation is performed by designating a predetermined point in the virtual space, the player character may be moved to the designated point after switching from the second display to the first display.
[0016] According to the above configuration, by simply designating a predetermined point during the second display and performing the second operation, the player character can be automatically moved to the predetermined point after returning to the first display. This improves the convenience of the player. Furthermore, when the first operation is performed in the second display, only the orientation of the virtual camera can be changed. Therefore, the user can select the control to be performed when returning from the second display to the first display by selectively using the first operation and the second operation.
[0017] (Configuration 6) Configuration 6 may be such that in the above-mentioned configuration 4, when a predetermined point in the virtual space designated by the user during the second display is a point that the player object cannot reach, acceptance of the first operation is restricted.
[0018] According to the above configuration, when the user designates a point to which the player object cannot move during the second display, the control for automatic movement cannot be selected. This makes it possible to prevent the player object from performing a wasteful action of moving to an unreachable place when switching from the second display to the first display.
[0019] (Configuration 7) Configuration 7 is the same as configuration 1, in which a part of the virtual space is displayed in the second display, and the display range of the virtual space may be changed in response to an operation by the user.
[0020] According to the above configuration, it is possible to specify the direction of a point that is not visible in the first display.
[0021] (Configuration 8) In an eighth embodiment of the present invention, in any one of the first to seventh embodiments, a direction image indicating the imaging direction of the virtual camera may be displayed in the second display. Then, the display position of the direction image may be changed in response to an operation by the user so that the direction indicated by the direction image is changed.
[0022] According to the above configuration, during the second display, the orientation of the virtual camera can be changed directly by a user's operation without specifying a predetermined point.
[0023] (Configuration 9) In a ninth aspect of the present invention, in any one of the first to eighth aspects, the player character may be set as a gaze point of the virtual camera in the first display. Then, the virtual camera may be rotated from the first camera direction to a direction based on the second camera direction by changing only the angle of the yaw component, which is a component corresponding to the imaging direction of the virtual camera, and leaving the pitch component and roll component unchanged.
[0024] (Configuration 10) Configuration 10 is any one of configurations 1 to 9 above, wherein the first camera direction may be a predetermined direction other than a vertically downward direction in the virtual space.
[0025] According to the above configuration, a three-dimensional image with a sense of depth and stereoscopic effect is presented to the user as the first display. When the second display is switched to the first display, the orientation is changed over a predetermined period of time, so that the user can understand the change in orientation without losing the sense of direction in the virtual three-dimensional space. Effect of the Invention
[0026] According to the present disclosure, a second display showing a virtual space from a bird's-eye view can be used to accurately and easily specify a specific direction, and by changing the orientation of the virtual camera over a specific period of time when switching to the first display, it is possible to make it easier for the user to understand the change in orientation of the virtual camera. [Brief description of the drawings]
[0027] [Figure 1] FIG. 1 shows an example of a state in which a left controller 3 and a right controller 4 are attached to a main unit 2. [Diagram 2] FIG. 1 shows an example of a state in which the left controller 3 and the right controller 4 are removed from the main unit 2. [Diagram 3]Six-sided views showing an example of the main unit 2 [Figure 4] Six-sided diagram showing an example of the left controller 3 [Diagram 5] Six-sided diagram showing an example of the right controller 4 [Figure 6] A block diagram showing an example of the internal configuration of the main unit 2. [Figure 7] A block diagram showing an example of the internal configuration of the main unit 2, the left controller 3, and the right controller 4. [Figure 8] An example of a normal screen according to the present embodiment [Figure 9] FIG. 1 is a diagram for explaining movement of a virtual camera. [Figure 10] An example of a map screen according to the present embodiment [Figure 11] An example of a map screen according to the present embodiment [Figure 12] An example of a normal screen according to the present embodiment [Figure 13] FIG. 1 is a diagram for explaining an overview of processing according to the present embodiment; [Figure 14] An example of a normal screen according to the present embodiment [Figure 15] FIG. 1 is a diagram for explaining an overview of processing according to the present embodiment; [Figure 16] An example of a normal screen according to the present embodiment [Figure 17] FIG. 1 is a diagram for explaining an overview of processing according to the present embodiment; [Figure 18] A memory map showing an example of various data stored in the DRAM 85. [Figure 19] An example of operation data 305 [Figure 20] A flowchart showing details of the game processing according to the present embodiment. [Figure 21] Flowchart showing details of normal screen processing [Figure 22] Flowchart showing details of normal screen processing [Diagram 23] Flowchart showing details of auto rotation control process [Figure 24] Flowchart showing details of map screen processing [Diagram 25] Flowchart showing details of map screen processing [Figure 26] An example of a normal screen in the modified example [Figure 27] An example of a normal screen in the modified example DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0028] An embodiment will be described below.
[0029] A game system according to an example of this embodiment will be described below. An example of the game system 1 in this embodiment includes a main unit (information processing device; in this embodiment, it functions as a game device main unit) 2, a left controller 3, and a right controller 4. The left controller 3 and the right controller 4 are each detachable from the main unit 2. In other words, the game system 1 can be used as an integrated device by attaching the left controller 3 and the right controller 4 to the main unit 2. The game system 1 can also be used as a separate device from the main unit 2, the left controller 3, and the right controller 4 (see FIG. 2). The hardware configuration of the game system 1 of this embodiment will be described below, and then the control of the game system 1 of this embodiment will be described.
[0030] Fig. 1 is a diagram showing an example of a state in which a left controller 3 and a right controller 4 are attached to a main unit 2. As shown in Fig. 1, the left controller 3 and the right controller 4 are each attached to and integrated with the main unit 2. The main unit 2 is a device that executes various processes (e.g., game processes) in the game system 1. The main unit 2 includes a display 12. The left controller 3 and the right controller 4 are devices that include an operation unit that allows the user to perform input.
[0031] Fig. 2 is a diagram showing an example of a state in which the left controller 3 and the right controller 4 have been removed from the main unit 2. As shown in Figs. 1 and 2, the left controller 3 and the right controller 4 are detachable from the main unit 2. In the following, the left controller 3 and the right controller 4 may be collectively referred to as "controller."
[0032] Fig. 3 is a six-sided view showing an example of the main unit 2. As shown in Fig. 3, the main unit 2 includes a substantially plate-shaped housing 11. In this embodiment, the main surface of the housing 11 (in other words, the front surface, i.e., the surface on which the display 12 is provided) is generally rectangular in shape.
[0033] The shape and size of the housing 11 are arbitrary. As an example, the housing 11 may be of a size that is portable. Furthermore, the main unit 2 alone or an integrated device in which the left controller 3 and the right controller 4 are attached to the main unit 2 may be a portable device. Furthermore, the main unit 2 or the integrated device may be a handheld device. Furthermore, the main unit 2 or the integrated device may be a portable device.
[0034] 3, the main unit 2 includes a display 12 provided on a main surface of a housing 11. The display 12 displays an image generated by the main unit 2. In this embodiment, the display 12 is a liquid crystal display (LCD). However, the display 12 may be any type of display device.
[0035] The main unit 2 also includes a touch panel 13 on the screen of the display 12. In this embodiment, the touch panel 13 is of a type that allows multi-touch input (e.g., a capacitive type). However, the touch panel 13 may be of any type, and may be of a type that allows single-touch input (e.g., a resistive film type), for example.
[0036] The main unit 2 includes a speaker (i.e., speaker 88 shown in FIG. 6) inside the housing 11. As shown in FIG. 3, speaker holes 11a and 11b are formed in the main surface of the housing 11. The output sound of the speaker 88 is output from these speaker holes 11a and 11b, respectively.
[0037] The main unit 2 also has a left side terminal 17, which is a terminal through which the main unit 2 performs wired communication with the left controller 3, and a right side terminal 21 through which the main unit 2 performs wired communication with the right controller 4.
[0038] As shown in FIG. 3, the main unit 2 includes a slot 23. The slot 23 is provided on the upper side of the housing 11. The slot 23 has a shape that allows a predetermined type of storage medium to be attached thereto. The predetermined type of storage medium is, for example, a storage medium (e.g., a dedicated memory card) dedicated to the game system 1 and the same type of information processing device. The predetermined type of storage medium is used, for example, to store data used in the main unit 2 (e.g., application save data, etc.) and / or programs executed in the main unit 2 (e.g., application programs, etc.). The main unit 2 also includes a power button 28.
[0039] The main unit 2 includes a lower terminal 27. The lower terminal 27 is a terminal through which the main unit 2 communicates with the cradle. In this embodiment, the lower terminal 27 is a USB connector (more specifically, a female connector). When the all-in-one device or the main unit 2 alone is placed on the cradle, the game system 1 can display images generated and output by the main unit 2 on a stationary monitor. In this embodiment, the cradle also has a function of charging the all-in-one device or the main unit 2 alone that is placed on it. The cradle also has a function of a hub device (more specifically, a USB hub).
[0040] FIG. 4 is a six-sided view showing an example of the left controller 3. As shown in FIG. 4, the left controller 3 includes a housing 31. In this embodiment, the housing 31 has a vertically long shape, that is, a shape that is long in the up-down direction in FIG. 4 (z-axis direction shown in FIG. 4). The left controller 3 can also be held in a vertically long orientation when removed from the main unit 2. The housing 31 has a shape and size that allows it to be held in one hand, particularly the left hand, when held in a vertically long orientation. The left controller 3 can also be held in a horizontally long orientation. When the left controller 3 is held in a horizontally long orientation, it may be held with both hands.
[0041] The left controller 3 includes a left analog stick (hereinafter, referred to as the left stick) 32, which is an example of a directional input device. As shown in FIG. 4, the left stick 32 is provided on the main surface of the housing 31. The left stick 32 can be used as a directional input unit capable of inputting a direction. By tilting the left stick 32, the user can input a direction according to the tilt direction (and input a magnitude according to the tilt angle). Note that the left controller 3 may include a cross key or a slide stick capable of slide input, instead of an analog stick, as the directional input unit. In addition, in this embodiment, an input can be made by pressing the left stick 32.
[0042] The left controller 3 includes various operation buttons. The left controller 3 includes four operation buttons 33 to 36 (specifically, a right button 33, a down button 34, an up button 35, and a left button 36) on the main surface of the housing 31. Furthermore, the left controller 3 includes a record button 37 and a - (minus) button 47. The left controller 3 includes a first L button 38 and a ZL button 39 on the upper left of the side of the housing 31. The left controller 3 also includes a second L button 43 and a second R button 44 on the side of the housing 31 that is attached when the left controller 3 is attached to the main unit 2. These operation buttons are used to give instructions according to various programs (for example, OS programs and application programs) executed on the main unit 2.
[0043] In addition, the left controller 3 is equipped with a terminal 42 that enables the left controller 3 to communicate with the main unit 2 via wire.
[0044] FIG. 5 is a six-sided view showing an example of the right controller 4. As shown in FIG. 5, the right controller 4 includes a housing 51. In this embodiment, the housing 51 has a vertically long shape, that is, a shape that is long in the up-down direction in FIG. 5 (z-axis direction shown in FIG. 5). The right controller 4 can also be held in a vertically long orientation when removed from the main unit 2. The housing 51 has a shape and size that allows it to be held in one hand, particularly the right hand, when held in a vertically long orientation. The right controller 4 can also be held in a horizontally long orientation. When the right controller 4 is held in a horizontally long orientation, it may be held with both hands.
[0045] The right controller 4, like the left controller 3, is provided with a right analog stick (hereinafter, referred to as the right stick) 52 as a direction input unit. In this embodiment, the right stick 52 has the same configuration as the left stick 32 of the left controller 3. The right controller 4 may be provided with a cross key or a slide stick capable of slide input, instead of an analog stick. The right controller 4, like the left controller 3, is provided with four operation buttons 53 to 56 (specifically, an A button 53, a B button 54, an X button 55, and a Y button 56) on the main surface of the housing 51. The right controller 4 further includes a + (plus) button 57 and a home button 58. The right controller 4 is provided with a first R button 60 and a ZR button 61 on the upper right of the side surface of the housing 51. The right controller 4 is provided with a second L button 65 and a second R button 66, like the left controller 3.
[0046] In addition, the right controller 4 is equipped with a terminal 64 for enabling the right controller 4 to communicate with the main unit 2 via wire.
[0047] Fig. 6 is a block diagram showing an example of the internal configuration of main unit 2. In addition to the configuration shown in Fig. 3, main unit 2 includes components 81-91, 97, and 98 shown in Fig. 6. Some of these components 81-91, 97, and 98 may be mounted on an electronic circuit board as electronic components and housed in housing 11.
[0048] The main unit 2 includes a processor 81. The processor 81 is an information processing unit that executes various types of information processing executed in the main unit 2, and may be composed of only a CPU (Central Processing Unit), or may be composed of a SoC (System-on-a-chip) including multiple functions such as a CPU function and a GPU (Graphics Processing Unit) function. The processor 81 executes various types of information processing by executing an information processing program (e.g., a game program) stored in a storage unit (specifically, an internal storage medium such as a flash memory 84, or an external storage medium inserted in the slot 23, etc.).
[0049] The main unit 2 includes a flash memory 84 and a dynamic random access memory (DRAM) 85 as examples of internal storage media built into the main unit 2. The flash memory 84 and the DRAM 85 are connected to the processor 81. The flash memory 84 is a memory used mainly for storing various data (which may be programs) saved in the main unit 2. The DRAM 85 is a memory used for temporarily storing various data used in information processing.
[0050] The main device 2 includes a slot interface (hereinafter abbreviated as "I / F") 91. The slot I / F 91 is connected to the processor 81. The slot I / F 91 is connected to the slot 23, and reads and writes data from and to a predetermined type of storage medium (e.g., a dedicated memory card) inserted in the slot 23 in response to an instruction from the processor 81.
[0051] The processor 81 appropriately reads and writes data from and to the flash memory 84, DRAM 85, and each of the above storage media to execute the above information processing.
[0052] The main unit 2 includes a network communication unit 82. The network communication unit 82 is connected to the processor 81. The network communication unit 82 communicates with an external device via a network (specifically, wireless communication). In this embodiment, the network communication unit 82 connects to a wireless LAN and communicates with an external device using a method conforming to the Wi-Fi standard as a first communication mode. The network communication unit 82 also performs wireless communication with other main units 2 of the same type using a predetermined communication method (for example, communication using a unique protocol or infrared communication) as a second communication mode. Note that the wireless communication using the second communication mode enables wireless communication with other main units 2 located within a closed local network area, and realizes a function that enables so-called "local communication" in which data is transmitted and received by directly communicating between multiple main units 2.
[0053] The main unit 2 includes a controller communication unit 83. The controller communication unit 83 is connected to the processor 81. The controller communication unit 83 performs wireless communication with the left controller 3 and / or the right controller 4. Any communication method may be used between the main unit 2 and the left controller 3 and right controller 4, but in this embodiment, the controller communication unit 83 performs communication with the left controller 3 and the right controller 4 in accordance with the Bluetooth (registered trademark) standard.
[0054] The processor 81 is connected to the left terminal 17, the right terminal 21, and the lower terminal 27. When the processor 81 performs wired communication with the left controller 3, it transmits data to the left controller 3 via the left terminal 17 and receives operation data from the left controller 3 via the left terminal 17. When the processor 81 performs wired communication with the right controller 4, it transmits data to the right controller 4 via the right terminal 21 and receives operation data from the right controller 4 via the right terminal 21. When the processor 81 performs communication with the cradle, it transmits data to the cradle via the lower terminal 27. Thus, in this embodiment, the main unit 2 can perform both wired communication and wireless communication with the left controller 3 and the right controller 4. When the main unit 2 alone or an integrated device with the left controller 3 and the right controller 4 attached to the main unit 2 is attached to the cradle, the main unit 2 can output data (e.g., image data and audio data) to a stationary monitor or the like via the cradle.
[0055] Here, the main unit 2 can communicate with a plurality of left controllers 3 simultaneously (in other words, in parallel). The main unit 2 can also communicate with a plurality of right controllers 4 simultaneously (in other words, in parallel). Therefore, a plurality of users can simultaneously input to the main unit 2 using each set of left controllers 3 and right controllers 4. As an example, a first user can input to the main unit 2 using a first set of left controllers 3 and right controllers 4, while a second user can input to the main unit 2 using a second set of left controllers 3 and right controllers 4.
[0056] The main device 2 includes a touch panel controller 86, which is a circuit that controls the touch panel 13. The touch panel controller 86 is connected between the touch panel 13 and the processor 81. The touch panel controller 86 generates data indicating, for example, the position where a touch input has been performed based on a signal from the touch panel 13, and outputs the data to the processor 81.
[0057] The display 12 is also connected to the processor 81. The processor 81 displays on the display 12 an image generated (for example, by executing the above-mentioned information processing) and / or an image acquired from the outside.
[0058] The main unit 2 includes a codec circuit 87 and speakers (specifically, a left speaker and a right speaker) 88. The codec circuit 87 is connected to the speaker 88 and the audio input / output terminal 25, and is also connected to the processor 81. The codec circuit 87 is a circuit that controls the input and output of audio data to and from the speaker 88 and the audio input / output terminal 25.
[0059] The main unit 2 includes a power control unit 97 and a battery 98. The power control unit 97 is connected to the battery 98 and the processor 81. Although not shown, the power control unit 97 is also connected to each unit of the main unit 2 (specifically, each unit that receives power from the battery 98, the left terminal 17, and the right terminal 21). The power control unit 97 controls the supply of power from the battery 98 to each of the above-mentioned units based on instructions from the processor 81.
[0060] Furthermore, battery 98 is connected to lower terminal 27. When an external charging device (e.g., a cradle) is connected to lower terminal 27 and power is supplied to main unit 2 via lower terminal 27, battery 98 is charged with the supplied power.
[0061] Fig. 7 is a block diagram showing an example of the internal configuration of the main unit 2, the left controller 3, and the right controller 4. Note that details of the internal configuration of the main unit 2 are omitted in Fig. 7 because they are shown in Fig. 6.
[0062] The left controller 3 includes a communication control unit 101 that communicates with the main unit 2. As shown in FIG. 7, the communication control unit 101 is connected to each component including the terminal 42. In this embodiment, the communication control unit 101 can communicate with the main unit 2 by both wired communication via the terminal 42 and wireless communication not via the terminal 42. The communication control unit 101 controls the communication method by which the left controller 3 communicates with the main unit 2. That is, when the left controller 3 is attached to the main unit 2, the communication control unit 101 communicates with the main unit 2 via the terminal 42. Also, when the left controller 3 is detached from the main unit 2, the communication control unit 101 performs wireless communication with the main unit 2 (specifically, the controller communication unit 83). The wireless communication between the controller communication unit 83 and the communication control unit 101 is performed according to, for example, the Bluetooth (registered trademark) standard.
[0063] The left controller 3 also includes a memory 102, such as a flash memory. The communication control unit 101 is configured with, for example, a microcomputer (also called a microprocessor), and executes firmware stored in the memory 102 to perform various processes.
[0064] The left controller 3 includes buttons 103 (specifically, buttons 33 to 39, 43, 44, and 47). The left controller 3 also includes a left stick 32. Each button 103 and left stick 32 repeatedly outputs information relating to an operation performed on the button 103 and left stick 32 to the communication control unit 101 at an appropriate timing.
[0065] The left controller 3 includes an inertial sensor. Specifically, the left controller 3 includes an acceleration sensor 104. The left controller 3 also includes an angular velocity sensor 105. In this embodiment, the acceleration sensor 104 detects the magnitude of acceleration along three predetermined axes (for example, the x, y and z axes shown in FIG. 4). The acceleration sensor 104 may detect acceleration in one or two axial directions. In this embodiment, the angular velocity sensor 105 detects angular velocity around three predetermined axes (for example, the x, y and z axes shown in FIG. 4). The angular velocity sensor 105 may detect angular velocity around one or two axes. The acceleration sensor 104 and the angular velocity sensor 105 are each connected to the communication control unit 101. The detection results of the acceleration sensor 104 and the angular velocity sensor 105 are repeatedly output to the communication control unit 101 at appropriate timing.
[0066] The communication control unit 101 acquires information related to the input (specifically, information related to the operation, or the detection results by the sensors) from each input unit (specifically, each button 103, left stick 32, each sensor 104 and 105). The communication control unit 101 transmits operation data including the acquired information (or information obtained by performing a specified process on the acquired information) to the main unit 2. The operation data is repeatedly transmitted once every specified time. The interval at which the information related to the input is transmitted to the main unit 2 may or may not be the same for each input unit.
[0067] By transmitting the above operation data to the main unit 2, the main unit 2 can obtain the input performed on the left controller 3. That is, the main unit 2 can determine the operations on the buttons 103 and the left stick 32 based on the operation data. In addition, the main unit 2 can calculate information regarding the movement and / or attitude of the left controller 3 based on the operation data (specifically, the detection results of the acceleration sensor 104 and the angular velocity sensor 105).
[0068] The left controller 3 is equipped with a power supply unit 108. In this embodiment, the power supply unit 108 has a battery and a power control circuit. Although not shown, the power control circuit is connected to the battery and to each part of the left controller 3 (specifically, each part that receives power from the battery).
[0069] As shown in FIG. 7, the right controller 4 includes a communication control unit 111 that communicates with the main unit 2. The right controller 4 also includes a memory 112 that is connected to the communication control unit 111. The communication control unit 111 is connected to each component including the terminal 64. The communication control unit 111 and the memory 112 have the same functions as the communication control unit 101 and the memory 102 of the left controller 3. Therefore, the communication control unit 111 can communicate with the main unit 2 by both wired communication via the terminal 64 and wireless communication (specifically, communication in accordance with the Bluetooth (registered trademark) standard) that does not go through the terminal 64, and controls the method of communication that the right controller 4 uses with the main unit 2.
[0070] The right controller 4 has input units similar to those of the left controller 3. Specifically, it has buttons 113, a right stick 52, and inertial sensors (an acceleration sensor 114 and an angular velocity sensor 115). These input units have the same functions as those of the left controller 3, and operate in the same manner.
[0071] The right controller 4 is equipped with a power supply unit 118. The power supply unit 118 has the same functions as the power supply unit 108 of the left controller 3, and operates in the same manner.
[0072] [Overview of information processing in this embodiment] Next, an overview of the information processing operation executed by the game system 1 according to this embodiment will be described. In this embodiment, as an example of the information processing, a game processing in which a user operates a player character object (hereinafter, referred to as a player character) existing in a virtual three-dimensional space (hereinafter, simply referred to as a virtual space) to play will be assumed and described. More specifically, the processing according to this embodiment is mainly processing related to the control of a virtual camera in the virtual space.
[0073] FIG. 8 is an example of a game screen of the game according to this embodiment. In the example of FIG. 8, a part of the virtual space is displayed as a three-dimensional image. In addition, in FIG. 8, a player character and a rock object are also displayed. As shown in FIG. 8, in this embodiment, the game screen is drawn from a third-person perspective. Specifically, the player character is set as the gaze point of the virtual camera. In addition, the virtual camera is placed at a position away from the player character by a distance such that the whole body of the player character is reflected. The initial placement position is behind the player character. In addition, the height at which the virtual camera is placed is a height that is somewhat close to the ground, and the orientation of the virtual camera is oriented in a direction that is approximately horizontal to the ground. Therefore, the game screen basically displays the whole body of the player character on the back side, while displaying the state in the forward direction (depth direction) of the player character. In addition, if the player character moves, the virtual camera moves in principle from behind the player character while keeping a certain distance. Therefore, if the orientation of the player character changes due to the movement of the player character, the virtual camera moves so as to go around behind the player character.
[0074] Moreover, if the imaging direction of the virtual camera (hereinafter referred to as the virtual camera orientation) is changed without moving the player character, the virtual camera moves so as to circle around the player character while changing its orientation. FIG. 9 shows an example of the movement of the virtual camera in this case. As shown in FIG. 9, the virtual camera moves along a circumference centered on the player character, which is the gaze point, while keeping a certain distance from the player character and changing the orientation of the virtual camera so as to always face the player character. In other words, if the orientation of the virtual camera changes, the position of the virtual camera also changes.
[0075] In this embodiment, the default position of the virtual camera is a position behind the player character, but in some cases, the virtual camera may be moved to follow the player character while being positioned in a position other than behind the player character. For example, the virtual camera may move in accordance with the movement of the player character while keeping its orientation to the right of the player character. In this case, the virtual camera may move in parallel with the player character while capturing the left side of the player character.
[0076] In the game according to this embodiment, on the game screen as shown in FIG. 8, the player character can be moved to various places in the virtual space based on the user's operation. Here, the virtual space of this game is assumed to be a vast space. In this respect, it is difficult to grasp the whole picture of the virtual space only with the amount of information obtained from the game screen as shown in FIG. 8, in which a part of the virtual space is displayed as a three-dimensional image. Therefore, in this game, in order to make it easier for the user to grasp the overall geography and topography of the virtual space, a screen called a "map screen" that shows an overview of the virtual space can be displayed in addition to the game screen as shown in FIG. 8. In the following description, the game screen as shown in FIG. 8 is called a "normal screen."
[0077] Next, the map screen will be described. FIG. 10 is an example of the map screen. In FIG. 10, the map image is displayed in a full-screen display mode. The map image is a planar image expressing the terrain when the virtual space is viewed from directly above. In the example of FIG. 10, the entire virtual space is not displayed within the display range of the screen, but only a part of it is displayed, and the screen can be scrolled. In FIG. 10, a player icon indicating the player character and a cursor are displayed. A substantially fan-shaped frustum image is displayed adjacent to the player character. In the example of FIG. 10, an image corresponding to the rock object is displayed approximately to the upper right of the player icon. Furthermore, a terrain image corresponding to a terrain object with a rocky mountain motif is also displayed on the right side of the screen. In this example, the terrain object is an object having a ground surface portion at a position somewhat higher than the ground on which the player character is located.
[0078] The map image used on the map screen may be an image of the virtual space captured by the virtual camera from above, or an image of the virtual space captured from above by perspective projection. Also, an abstract image (illustrated image, etc.) of the virtual space viewed from above, which is prepared separately for the map screen, may be used. In this embodiment, an abstract image of the virtual space viewed from above, which is prepared separately for the map screen, is used.
[0079] Next, operations that the user can perform on the map screen will be described. First, in this embodiment, the user can move the cursor on the map image on the map screen by operating the left stick 32. For example, in FIG. 10, the cursor is displayed near the upper left end of the screen. If the left stick 32 is tilted downward and to the right from this state, the cursor can be moved in the downward and right direction as shown in FIG. 11. Here, in this embodiment, the display position of the frustum image also changes with the movement of the cursor. Specifically, as shown in FIG. 11, the display position changes so that the tip of the frustum image faces the direction of the cursor. In other words, the direction of the tip of the frustum image is controlled to change in conjunction with the movement of the cursor, so that the user can easily understand which direction the virtual camera will face. In this embodiment, the frustum image is rotated in conjunction with the movement of the cursor, but in another embodiment, the frustum image may not be rotated. By not rotating the frustum image on the map screen, the user can recognize that the virtual camera has not yet rotated at that point.
[0080] Furthermore, the user can end the display of the map screen and switch to the normal screen by performing a predetermined operation. In this embodiment, a number of operation methods can be used as an operation for ending the map screen display. Specifically, the map screen can be switched to the normal screen by pressing the A button 53 (hereinafter, an auto-move instruction operation), pressing the ZL button 39 (hereinafter, an auto-rotate instruction operation), or pressing the B button 54 (hereinafter, a simple end operation). Each operation will be described below.
[0081] [About auto movement command operation] First, the auto movement instruction operation by the A button 53 will be described. When the user presses the A button 53 on the map screen, the map screen is switched to the normal screen, and the "auto movement control" can be started. The auto movement control is a control for automatically moving the player character toward a point in the virtual space corresponding to the position of the cursor on the map screen (hereinafter referred to as the cursor point) after switching from the map screen to the normal screen. More specifically, when the A button 53 is pressed, a route is calculated from the current position of the player character in the virtual space to the cursor point when the A button 53 is pressed. This route is calculated as a route that arrives in the shortest time while avoiding obstacles. For example, in the case of the positional relationship shown in FIG. 11, a route is calculated in which the player character does not move linearly from the current position to the cursor point, but moves around the terrain object to the cursor point without coming into contact with the terrain object. Then, the player character automatically moves along this route. That is, the user can move the cursor to a desired location on the map screen and press the A button 53 to switch from the map screen to the normal screen and automatically move the player character toward the cursor location. That is, the user can specify a destination on the map screen where the overall topography of the virtual space is easily grasped, and automatically move the player character. This can improve user convenience. Note that, in this example, during the auto movement control, the movement operation of the player character by the user is not accepted until the user performs a predetermined "auto movement release operation." Also, during the auto movement control, the virtual camera is controlled to follow the player character from behind.
[0082] In addition, since there are various types of terrain and their elevation differences in the virtual space, the point on the map screen where the cursor is located may be a point in the virtual space where the player character cannot reach. When the A button 53 is pressed with the cursor pointing to such a destination, a message is displayed indicating that auto movement control is not possible, and the map screen is controlled so as not to close.
[0083] [About auto-rotation command operation] Next, the operation when an auto-rotation instruction operation is performed by pressing the ZL button 39 on the map screen will be described. In this embodiment, when an auto-rotation instruction operation is performed, after returning to the normal screen, a control (hereinafter referred to as auto-rotation control) is performed to change the direction of the virtual camera over a predetermined time (for example, about 1 to 2 seconds) so that the virtual camera faces the cursor point. In other words, after switching to the normal screen, the above-mentioned auto-movement control is not performed, but only the direction of the virtual camera is directed to the cursor point. In other words, the user is only informed of the direction in which the cursor point is located in the virtual space, and whether or not to move is left to the user's discretion thereafter.
[0084] Further, a supplementary explanation will be given regarding the change in the orientation of the virtual camera. In this embodiment, when the orientation of the virtual camera is captured as a three-axis component with the vertical direction of the virtual space as the y axis, the depth direction (imaging direction) as the z axis, and the axis perpendicular to these two axes as the x axis, the orientation of the virtual camera is changed by only rotating around the y axis. In other words, the yaw component (z axis component) of the virtual camera is changed to an angle facing the direction of the cursor point, and the pitch component and roll component are not changed. Also, since the gaze point is the player character as described above, the position of the virtual camera changes with the change in the orientation of the virtual camera (see FIG. 9 above).
[0085] Here, in this embodiment, when the map screen is ended and switched to the normal screen by the above-mentioned auto-rotation instruction operation, the virtual camera is not instantly directed to the direction of the cursor point, but is controlled to be directed to the direction of the cursor point over a certain period of time as described above. This is for the following reasons. Assume that the virtual camera is already directed to the cursor point when the map screen is ended and switched to the normal screen. In this case, it may be difficult for the user to determine which direction the camera has changed from before the map screen is displayed to after it is ended. It may also be difficult to know which direction the camera was facing before the map screen was displayed. Therefore, in some cases, the user's sense of direction may be impaired on the normal screen where the virtual space is displayed in a three-dimensional image, leading to a situation where the user gets lost in the virtual space. In particular, it is possible that the user may have difficulty in grasping the sense of direction on the normal screen in a place where landmarks that can serve as landmarks are visible in the virtual space, but in a place where there are no such landmark-like objects and the scene is surrounded by similar scenery, it is likely that the user may have difficulty in grasping the sense of direction on the normal screen. Therefore, in this embodiment, when the map screen is switched to the normal screen, the direction and position of the virtual camera are controlled to change over a short period of time from the direction it was facing before the transition to the map screen to the direction of the cursor point. This makes it possible to convey the direction of the cursor point to the user without impairing the user's sense of direction when switching from the map screen to the normal screen.
[0086] In this embodiment, when the map screen is switched to the normal screen by the above-mentioned auto-rotation instruction operation, the orientation of the player character is also controlled to face the cursor point. By changing the orientation of the player character in this way, the change in direction can be more clearly conveyed. In addition, the user's operation of changing the orientation of the player character can be omitted, which improves user convenience. However, in other embodiments, when the normal screen is switched to by the auto-rotation instruction operation, the orientation of the player character does not need to change. In this case, for example, the screen may change from one in which the back of the player character was reflected before entering the map screen to one in which the side or front of the player character is reflected. In this case, it is advantageous in that the difference in orientation before and after the display of the map screen can be easily conveyed to the user. Even in this case, since the orientation of the virtual camera is changed over a certain amount of time, the difference between the orientation of the player character and the orientation of the virtual camera can be visually conveyed, which makes it easier for the user to grasp the positional relationship in the virtual space.
[0087] 12 to 17 show examples of screens when the map screen is switched to the normal screen by the above-mentioned auto-rotation instruction operation. FIG. 12 is an example of a screen immediately after switching to the normal screen by the auto-rotation instruction operation. FIG. 13 is a schematic diagram showing the relationship between the position and direction of the virtual camera and the player character on the screen of FIG. 12 from above. At this time, the direction of the virtual camera is the direction immediately before the map screen is displayed. After this, for example, over a period of about 1 to 2 seconds, the direction of the virtual camera changes so as to face the cursor point. FIG. 14 is an example of a screen at a stage in which the direction of the virtual camera is in the middle of facing the cursor point. FIG. 15 is a schematic diagram showing the relationship between the position and direction of the virtual camera and the player character on FIG. 14 from above. At this time, the direction of the virtual camera is not yet facing the cursor point. And FIG. 16 is an example of a screen in a state in which the direction of the virtual camera is facing the cursor point. Moreover, Fig. 17 is a schematic diagram showing, from above, the relationship between the positions and orientations of the virtual camera and the player character in Fig. 16. When the virtual camera is directed toward the cursor point in this way, the auto-rotation control ends.
[0088] Although not shown in the figures, the map screen may display operation guides for the two operations, the auto-movement instruction operation and the auto-rotation instruction operation. In this case, while the cursor is designating a point where auto-movement control is not possible, the operation guide for the auto-movement instruction operation may not be displayed.
[0089] [About simple exit operation] Next, a simple closing operation for closing the map screen by pressing the B button 54 will be described. In this case, regardless of the position of the cursor on the map screen, the normal screen is displayed without changing the position and orientation of the virtual camera from the state before the map screen was displayed. In other words, this is an operation that simply closes the map screen.
[0090] [Details of the virtual camera control process of this embodiment] Next, the game processing in this embodiment will be described in more detail with reference to FIGS.
[0091] [About data usage] First, various data used in this process will be described. Fig. 18 is a memory map showing an example of various data stored in the DRAM 85 of the main unit 2. The DRAM 85 of the main unit 2 stores at least a game program 301, player character data 302, terrain object data 303, virtual camera data 304, operation data 305, a map flag 306, an auto movement flag 307, auto movement control data 308, an auto rotation flag 309, and auto rotation control data 310.
[0092] The game program 301 is a program for executing game processing including virtual camera control processing in this embodiment.
[0093] The player character data 302 is data related to the player character. The player character data 302 includes data indicating the position of the player character, data indicating the posture of the player character, and the like.
[0094] The terrain object data 303 is data on various terrain objects arranged in a virtual space. The terrain object data 303 includes an ID for uniquely identifying each terrain object, information indicating the arrangement position, model data and image data indicating the shape and appearance of the terrain object, and the like.
[0095] The virtual camera data 304 is data for controlling the virtual camera, and includes data indicating the position, attitude (depression angle), angle of view, movement speed, and the like of the virtual camera.
[0096] The operation data 305 is data obtained from the controller operated by the user. That is, it is data indicating the operation contents performed by the user. FIG. 19 shows an example of the data configuration of the operation data 305. The operation data 305 includes at least digital button data 351, right stick data 352, left stick data 353, right inertial sensor data 354, and left inertial sensor data 355. The digital button data 351 is data indicating the pressed state of various buttons of the controller. The right stick data 352 is data for indicating the operation contents of the right stick 52. Specifically, it includes two-dimensional data of x and y. The left stick data 353 is data for indicating the operation contents of the left stick 32. The right inertial sensor data 354 is data indicating the detection results of the inertial sensors of the acceleration sensor 114 and the angular velocity sensor 115 of the right controller 4. Specifically, it includes three-axis acceleration data and three-axis angular velocity data. The left inertial sensor data 355 is data that indicates the detection results of the inertial sensors, such as the acceleration sensor 104 and the angular velocity sensor 105 of the left controller 3.
[0097] 18, the map flag 306 is a flag used to determine whether to display the normal screen or the map screen. When the map screen is to be displayed, the map flag 306 is set to ON.
[0098] The automatic movement flag 307 is a flag used to determine whether or not to execute the automatic movement control. When the automatic movement flag 307 is on, it indicates that the automatic movement control is to be executed.
[0099] The automatic movement control data 308 is various data used when performing automatic movement control. Specifically, the automatic movement control data 308 includes route information indicating the route to the cursor position.
[0100] The auto-rotation flag 309 is a flag used to determine whether or not to execute the auto-rotation control. When the auto-rotation flag 309 is on, it indicates that the auto-rotation control is to be executed.
[0101] The auto-rotation control data 310 is data used when performing the auto-rotation control. The auto-rotation control data 310 includes data indicating a "target direction" that is the direction of the cursor point as viewed from the position of the player character, and data indicating the rotation speed, movement direction, and movement speed of the virtual camera per unit time during auto-rotation control.
[0102] In addition, although not shown, various data necessary for game processing is also stored in the DRAM 85.
[0103] [Details of the processing performed by Processor 81] Next, the virtual camera control process in this embodiment will be described in detail. In this embodiment, one or more processors read and execute the above program stored in one or more memories, thereby realizing the flowchart shown below. Note that the flowchart shown below is merely an example of the processing process. Therefore, the processing order of each step may be changed as long as the same result is obtained. In addition, the values of the variables and the threshold values used in the determination step are merely examples, and other values may be adopted as necessary.
[0104] 20 is a flowchart showing the details of the game processing according to this embodiment. The processing according to this flowchart is repeatedly executed for each frame. It is assumed that a predetermined terrain object and a player character have already been placed in the virtual space prior to the execution of this processing.
[0105] When the game process starts, first, in step S1, the processor 81 initializes various data and captures an image of the virtual space from a virtual camera position determined based on the position of the player character. The processor 81 then displays the captured image as the normal screen. Then, the processor 81 waits for an operation from the user.
[0106] Next, in step S2, processor 81 determines whether map flag 306 is on or not. If the result of this determination is that map flag 306 is not on (NO in step S2), processor 81 performs normal screen processing in step S3, while if map flag 306 is on (YES in step S2), processor 81 performs map screen processing in step S4. Each process will be described in detail below.
[0107] [Normal screen processing] 21 and 22 are flowcharts showing details of the normal screen process related to step S3. First, in step S11, processor 81 determines whether auto-rotation flag 309 is on. If the result of the determination is that auto-rotation flag 309 is off (NO in step S11), processor 81 acquires operation data 305 in step S12.
[0108] Next, in step S13, processor 81 determines whether or not an operation for transitioning to a map screen has been performed, based on operation data 305. If the result of this determination is that an operation for transitioning to a map screen has not been performed (NO in step S13), then in step S14, processor 81 determines whether or not auto movement flag 307 is on. If the result of this determination is that auto movement flag 307 is off (NO in step S14), then in step S15, processor 81 determines whether or not a player character movement operation has been performed, based on operation data 305. If a player character movement operation has been performed (YES in step S15), then in step S16, processor 81 controls the movement of the player character, based on operation data 305. On the other hand, if a player character movement operation has not been performed (NO in step S15), the process of step S16 is skipped.
[0109] Next, in step S17 of FIG. 22, processor 81 controls various actions of the player character other than movement based on operation data 305. For example, processor 81 controls attack actions, jump actions, and the like of the player character. Processor 81 also controls the virtual camera based on virtual camera data 304. For example, when the player character moves, processor 81 appropriately sets the contents of virtual camera data 304 so that the virtual camera follows the player character. Then, processor 81 changes the position and orientation of the virtual camera based on virtual camera data 304.
[0110] Next, in step S18, processor 81 controls the movements of various objects other than the player character.
[0111] Next, in step S19, the processor 81 captures an image of the virtual space with a virtual camera. The processor 81 then generates a game image to be displayed as the normal screen based on the captured image. The processor 81 then outputs the game image to the display 12, a stationary monitor, or the like. The processor 81 then ends the normal screen process.
[0112] [Automatic rotation control] Next, a process will be described when the result of the determination in step S11 above is that auto-rotation flag 309 is on (YES in step S11). In this case, it is considered that the display of the map screen is in a state after being ended by the auto-rotation instruction operation. Therefore, in step S21, processor 81 executes an auto-rotation control process for performing the auto-rotation control as described above.
[0113] 23 is a flowchart showing details of the auto-rotation control process. First, in step S31, processor 81 controls the virtual camera based on auto-rotation control data 310. That is, processor 81 changes the orientation and position of the virtual camera based on auto-rotation control data 310.
[0114] Next, in step S32, processor 81 determines whether the front side of the player character faces the target direction. If the result of this determination is that the player character does not face the target direction (NO in step S32), in step S33, processor 81 changes the posture of the player character so that the player character faces the target direction. On the other hand, if the player character faces the target direction (YES in step S32), the processing of step S33 is skipped.
[0115] Next, in step S34, processor 81 determines whether the orientation of the virtual camera is in the target direction. If the result of the determination is that the orientation of the virtual camera is in the target direction (YES in step S34), processor 81 sets auto-rotation flag 309 to OFF in step S35. On the other hand, if the orientation of the virtual camera is not in the target direction (NO in step S34), the process of step S35 is skipped.
[0116] After that, the processor 81 ends the auto-rotation control process.
[0117] Returning to FIG. 21, when the auto-rotation control process is completed, the processor 81 advances the process to step S18. Here, in this embodiment, the operation from the user is not accepted during the auto-rotation control. In this regard, in other embodiments, the operation from the user may be accepted even during the auto-rotation control. In addition, in this case, if an operation to change the attitude of the virtual camera is detected as an operation by the user, the auto-rotation control may be interrupted at that point in time, and the attitude of the virtual camera may be changed based on the operation content of the user.
[0118] [Transition to map screen] Next, a process will be described when the result of the determination in step S13 above indicates that a map screen transition operation has been performed (YES in step S13). In this case, in step S22, processor 81 sets map flag 306 to ON. Next, in step S23, processor 81 generates and displays a map screen as described above based on the current position of the player character. For example, processor 81 determines the display range of the map image on the map screen such that the display position of the player icon is approximately at the center of the map screen. Then, processor 81 displays the map image of the determined range. After that, processor 81 ends the normal screen process.
[0119] [Auto movement control] Next, a process will be described when the result of the determination in step S14 above is that auto movement flag 307 is on (YES in step S14). This case is considered to be the state after the display of the map screen is ended by the auto movement instruction operation. In this case, first, in step S24, processor 81 moves the player character based on auto movement control data 308. Furthermore, processor 81 controls the virtual camera so that the virtual camera moves to follow the player character from behind.
[0120] Next, in step S25, processor 81 determines whether or not an auto-movement canceling operation has been performed, based on operation data 305. If the result of this determination is that an auto-movement canceling operation has been performed (YES in step S25), in step S26, processor 81 sets auto-movement flag 307 to OFF. Furthermore, it stops the movement of the player character. Then, processing proceeds to step S18 above. On the other hand, if an auto-movement canceling operation has not been performed (NO in step S25), the processing of step S26 above is skipped. Then, processing proceeds to step S18 above.
[0121] In this embodiment, an example is given in which operations other than the automatic movement cancel operation are not accepted during the automatic movement control. In this regard, in other embodiments, operations other than the movement may be possible even during the automatic movement control.
[0122] This is the end of the detailed description of the normal screen processing.
[0123] [Map screen processing] Next, details of the map screen processing in step S4 will be described. Fig. 24 and Fig. 25 are flowcharts showing details of the map screen processing. First, in step S41, processor 81 acquires operation data 305. Next, in step S42, processor 81 determines whether or not an operation to move the cursor has been performed based on operation data 305. If the result of the determination is that an operation to move the cursor has been performed (YES in step S42), in step S43, processor 81 moves the cursor on the map screen according to the operation content. At this time, the coordinates of the cursor on the map screen are temporarily stored in DRAM 85. Thereafter, the process proceeds to step S58 described later.
[0124] On the other hand, if it is determined in step S42 that no operation for moving the cursor has been performed (NO in step S42), in step S44, processor 81 determines whether or not a scroll operation of the map screen has been performed based on operation data 305. If a scroll operation has been performed (YES in step S44), in step S45, processor 81 scrolls the map screen in accordance with the operation content. This enables the user to specify, for example, a point that is not displayed on the normal screen or a point far away from the current position of the player character with the cursor. Then, the process proceeds to step S58 described below.
[0125] On the other hand, if it is determined in step S44 that a scroll operation has not been performed (NO in step S44), in step S46, processor 81 determines whether or not an auto-rotation instruction operation has been performed, based on operation data 305. In this example, it is determined whether or not ZL button 39 has been pressed. If it is determined in step S47 that an auto-rotation instruction operation has been performed (YES in step S46), processor 81 sets auto-rotation flag 309 to ON.
[0126] Next, in step S48, processor 81 determines the target direction based on the coordinates of the cursor on the map screen. Specifically, processor 81 calculates a position in the virtual space corresponding to the coordinates of the cursor on the map screen as the cursor point. Next, processor 81 determines the target direction based on the current position of the player character in the virtual space and the cursor point.
[0127] Next, in step S49, processor 81 sets auto-rotation control data 310 based on the target direction. Specifically, processor 81 calculates the amount of change in orientation per unit time so that the orientation of the virtual camera changes from the current orientation to the target direction over a predetermined time. In addition, as the orientation of the virtual camera changes, the position of the virtual camera also changes as described above, and processor 81 calculates the amount of movement per unit time for this as well. Then, processor 81 sets data indicating the calculation result as auto-rotation control data 310. Thereafter, processing proceeds to step S55, which will be described later.
[0128] On the other hand, if the result of the determination in step S46 above is that an auto-rotation instruction operation has not been performed (NO in step S46), then in step S50 of FIG. 25, processor 81 determines whether or not an auto-movement instruction operation has been performed based on operation data 305. In this example, it is determined whether or not A button 53 has been pressed. If the result of the determination is that an auto-movement instruction operation has been performed (YES in step S50), then in step S51, processor 81 determines whether or not the cursor position is a location to which the player character can move. If the result of the determination is that the location is not a location to which the player character can move (NO in step S51), then in step S52, processor 81 performs settings for displaying a message to the effect that auto-movement control is not possible. Thereafter, processing proceeds to step S58 described below.
[0129] On the other hand, if the cursor point is a location to which the player character can move (YES in step S51), in step S53, processor 81 sets auto movement control data 308 based on the coordinates of the cursor on the map screen. Specifically, processor 81 calculates the cursor point based on the coordinates of the cursor. Next, processor 81 calculates a route from the current position of the player character to the cursor point. Then, processor 81 sets information indicating the route as auto movement control data 308.
[0130] Next, in step S54, the processor 81 sets the auto movement flag 307 to ON.
[0131] Next, in step S55, the processor 81 ends the map screen and displays the normal screen. The normal screen displayed at this point is based on an image captured at the position and orientation of the virtual camera immediately before the map screen was displayed.
[0132] Next, in step S56, the processor 81 sets the map flag 306 to OFF. After that, the processor 81 ends the map screen processing.
[0133] On the other hand, if the result of the determination in step S50 above is that the automatic movement instruction operation has not been performed (NO in step S50), in step S57, the processor 81 determines whether or not the simple end operation has been performed based on the operation data 305. In this example, it is determined whether or not the B button 54 has been pressed. If the result of the determination is that the simple end operation has been performed (YES in step S57), the process proceeds to step S55 above. As a result, the map screen is terminated. On the other hand, if the simple end operation has not been performed (NO in step S57), in step S58, the processor 81 displays the map screen. At this time, if the display setting of a message indicating that automatic movement control is not possible is set in step S52 above, the message is also displayed on the map screen. In addition, if the cursor has been moved or a screen scroll operation has been performed, a map screen reflecting the operation content is displayed. Thereafter, the processor 81 ends the map screen process.
[0134] Returning to FIG. 20, when the normal screen processing or the map screen processing ends, processor 81 then determines in step S5 whether or not a condition for ending the game has been satisfied. For example, it is determined whether or not an operation for ending the game has been performed. If the result of this determination is that the game end condition has not been satisfied (NO in step S5), the process returns to step S2 and the process is repeated. If the game end condition has been satisfied (YES in step S5), processor 81 ends the game processing.
[0135] This concludes the detailed description of the game processing according to this embodiment.
[0136] In this embodiment, in a game in which the normal screen and the map screen can be switched as described above, when returning from the map screen to the normal screen, the virtual camera is controlled to face a point specified on the map screen. Also, the direction is not changed instantly, but rather the user is shown how the direction changes over a certain period of time. This allows the user to understand how the imaging direction has changed.
[0137] In addition, when performing game processing using touch operations on a portable information processing device such as a smartphone, for example, an operation may be adopted in which the imaging direction of the virtual camera is changed by a touch operation and the imaging direction is returned to the original direction by a touch-off. In this case, since the display screen is relatively small in size and the screen may be hidden by a finger during a touch operation, it may be difficult to grasp the direction in which the virtual camera is facing when the orientation of the virtual camera is changed. In this respect, the processing of this embodiment makes it easier to grasp how the orientation of the virtual camera has been changed, so that the processing of this embodiment is also useful for game processing using the above-mentioned touch operations.
[0138] In addition, the direction in which the virtual camera faces can be specified by moving the cursor on the map screen, which displays a bird's-eye view of the virtual space, so the direction in which you want the virtual camera to face can be specified accurately and easily.
[0139] [Variations] In the above embodiment, a frustum image is displayed on the map screen. The frustum image is controlled to face the position of the cursor on the map screen, which means that the frustum image indicates the direction of the virtual camera by auto-rotation control (the target direction). In this regard, in other embodiments, the frustum image may be directly rotated around the user icon, for example, by operating the right stick xx. For example, the frustum image may be made operable based on the user's operation on the map screen without using the cursor as described above, so that the user can directly specify the target direction.
[0140] Furthermore, the image showing the direction of the virtual camera on the map screen is not limited to the above-mentioned fan-shaped frustum image, and may be, for example, an image of an arrow.
[0141] In the above embodiment, the game processing is exemplified in which the normal screen is a third-person viewpoint screen, but the above-described processing can also be applied to information processing in which the normal screen is a first-person viewpoint screen. In the case of a first-person viewpoint screen, the auto-rotation control may be performed such that the position of the virtual camera is not changed and only the angle of the yaw component is changed.
[0142] In addition, the orientation of the virtual camera on the normal screen is approximately horizontal to the ground in the above example, but is not limited to this, and may be at least other than vertical (directly below) in other embodiments.
[0143] Also, if the game allows the virtual camera to be oriented vertically downward on the normal screen, the following processing may be performed. For example, assume a game processing in which the position and attitude of the virtual camera can be controlled by a user's operation on the normal screen. In such a game, the virtual camera may be moved upward in the virtual space while keeping the focus on the player character, thereby changing the orientation of the virtual camera vertically downward, and as a result, the normal screen may display a bird's-eye view of the virtual space as shown in FIG. 26. Assume a case in which such virtual camera operation is possible, the normal screen is switched to the map screen in a bird's-eye view display, and the normal screen is returned to by the auto-rotation instruction operation. In this case, the virtual camera may be rotated so that the target direction is in the upward direction in the screen coordinate system as shown in FIG. 27. The example of FIG. 27 is an example in which a point to the right in FIG. 26 is specified as the cursor point. That is, if the orientation of the virtual camera when it transitions to the map screen is vertically downward, when it returns to the normal screen by an auto-rotation instruction operation, the virtual camera may be rotated around the z-axis, i.e., the angle of the pitch component may be changed. Also, if the orientation of the virtual camera when it transitions to the map screen is a direction other than vertically downward, it may be rotated around the y-axis by the above-mentioned processing.
[0144] In the above embodiment, the case where a series of processes related to the game process is executed by a single main unit 2 has been described. In another embodiment, the series of processes may be executed in an information processing system consisting of a plurality of information processing devices. For example, in an information processing system including a terminal device and a server device capable of communicating with the terminal device via a network, a part of the series of processes may be executed by the server device. Furthermore, in an information processing system including a terminal device and a server device capable of communicating with the terminal device via a network, a main part of the series of processes may be executed by the server device, and a part of the processes may be executed by the terminal device. In the above information processing system, the server system may be composed of a plurality of information processing devices, and the processes to be executed on the server side may be shared and executed by the plurality of information processing devices. Also, a so-called cloud gaming configuration may be used. For example, the main unit 2 may be configured to send operation data indicating a user's operation to a predetermined server, and various game processes may be executed in the server, and the execution results may be streamed to the main unit 2 as video and audio. [Explanation of symbols]
[0145] 1. Game System 2 Main Unit 3 Left Controller 4 Right Controller 81 Processor 84 Flash Memory 85 DRAM
Claims
1. A computer comprising: a first display is generated by capturing an image of a virtual space using a virtual camera facing a first camera direction of the virtual space and rendering the image; moving a player object within the virtual space in response to a user operation input during the first display; switching to a second display showing the virtual space from a bird's-eye view in response to an operation by the user; designating a second camera direction, which is a direction on the second display, based on an operation by the user during the second display; switching to the first display in response to an operation by the user while the second display is being displayed; An information processing program that executes a process of changing the orientation of the virtual camera from the first camera direction to a direction based on the second camera direction during a predetermined period after switching to the first display, and photographing and drawing the virtual space.
2. The information processing program according to claim 1 , wherein the second display is a display of a planar image expressing a topography when the virtual space is viewed from above.
3. The information processing program according to claim 1 , wherein the second camera direction is determined by the user performing a first operation by designating a predetermined point in the virtual space during the second display.
4. The information processing program according to claim 3 , wherein the second camera direction is a direction from a position of the player object to a predetermined point in the virtual space designated by the user.
5. 4. The information processing program according to claim 3, further comprising: during the second display, a second operation is selectively accepted as the first operation; and when the second operation is performed by designating a predetermined point in the virtual space, after switching from the second display to the first display, the player object is moved to the designated point.
6. 5. The information processing program according to claim 4, wherein, during the second display, if a predetermined point in the virtual space designated by the user is a point that the player object cannot reach, acceptance of the first operation is restricted.
7. The information processing program according to claim 1 , wherein a part of the virtual space is displayed in the second display, and a display range of the virtual space is changed in response to an operation by the user.
8. In the second display, a directional image indicating an imaging direction of the virtual camera is displayed; The information processing program according to claim 1 , further comprising: changing a display position of the directional image so that the direction indicated by the directional image is changed in response to an operation by the user.
9. In the first display, the player object is set as a gaze point of the virtual camera; 2. The information processing program according to claim 1, wherein the virtual camera is rotated from the first camera direction to a direction based on the second camera direction by changing only the angle of a yaw component, which is a component corresponding to an imaging direction of the virtual camera, while leaving the pitch component and roll component unchanged.
10. The information processing program according to claim 1 , wherein the first camera direction is a predetermined direction other than a vertically downward direction in the virtual space.
11. An information processing system having a computer, The computer includes: performing a first display in which a virtual space is photographed and drawn by a virtual camera facing a first camera direction of the virtual space; moving a player object within the virtual space in response to a user operation input during the first display; switching to a second display showing the virtual space from a bird's-eye view in response to an operation by the user; designating a second camera direction, which is a direction on the second display, based on an operation by the user during the second display; switching to the first display in response to an operation by the user while the second display is being displayed; An information processing system that, during a predetermined period after switching to the first display, changes the orientation of the virtual camera from the first camera direction to a direction based on the second camera direction and executes a process of photographing and drawing the virtual space.
12. A computer comprising: a first display is generated by capturing an image of a virtual space using a virtual camera facing a first camera direction of the virtual space and rendering the image; moving a player object within the virtual space in response to a user operation input during the first display; switching to a second display showing the virtual space from a bird's-eye view in response to an operation by the user; designating a second camera direction, which is a direction on the second display, based on an operation by the user during the second display; switching to the first display in response to an operation by the user while the second display is being displayed; An information processing method, comprising: a process of changing an orientation of the virtual camera from the first camera direction to a direction based on the second camera direction during a predetermined period after switching to the first display, and photographing and drawing the virtual space.
Citation Information
Patent Citations
Game device and game program
JP2005230263A
Program, information storage medium and game device
JP2006280447A
Game machine
JP2009056181A
Information processing program, information processing device, information processing system, and information processing method
JP2014235538A
Information processing method and device, storage medium, and electronic apparatus
JP2019076721A
