Storage medium having game program stored thereon and game apparatus
First Claim
1. A non-transitory storage medium having stored thereon a program executable by a computer of an apparatus for executing processing based on a state of an input device, which is at least one of a position, a moving speed and an acceleration of the input device, the program causing the computer to execute:
- sequentially obtaining data variable in accordance with the state of the input device and usable for the processing;
determining whether or not a predetermined condition for the processing has been fulfilled based on the data, wherein said predetermined condition relates to whether the acceleration of the input device exceeds a predetermined value;
indicated position establishment for obtaining information on an indicated position on an image in virtual space, which is calculated from the data at the time when the predetermined condition has been fulfilled;
parameter establishment for obtaining one of the moving speed and the acceleration of the input device which are calculated from the data; and
when one of the moving speed and the acceleration which is obtained in the parameter establishment is equal to or greater than a predetermined value, processing for controlling motion of an object which appears in a virtual space based on the indicated position.
1 Assignment
0 Petitions
Accused Products
Abstract
Game data variable in accordance with the state of an input device and usable for game processing is sequentially obtained. Next, it is determined whether or not a predetermined condition for the game processing has been fulfilled based on the game data. Information on an indicated position on a game image, which is calculated from the game data when the predetermined condition has been fulfilled, is obtained. A moving speed of the input device which is calculated from the game data is also obtained. When the obtained moving speed is equal to or greater than a predetermined speed, an object which appears in a virtual game space and is related to the indicated position is processed.
-
Citations
16 Claims
-
1. A non-transitory storage medium having stored thereon a program executable by a computer of an apparatus for executing processing based on a state of an input device, which is at least one of a position, a moving speed and an acceleration of the input device, the program causing the computer to execute:
-
sequentially obtaining data variable in accordance with the state of the input device and usable for the processing; determining whether or not a predetermined condition for the processing has been fulfilled based on the data, wherein said predetermined condition relates to whether the acceleration of the input device exceeds a predetermined value; indicated position establishment for obtaining information on an indicated position on an image in virtual space, which is calculated from the data at the time when the predetermined condition has been fulfilled; parameter establishment for obtaining one of the moving speed and the acceleration of the input device which are calculated from the data; and when one of the moving speed and the acceleration which is obtained in the parameter establishment is equal to or greater than a predetermined value, processing for controlling motion of an object which appears in a virtual space based on the indicated position. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An apparatus for executing processing based on a state of an input device, which is at least one of a position, a moving speed and an acceleration of the input device, the apparatus comprising one or more computer processors configured to:
-
sequentially obtain data variable in accordance with the state of the input device and usable for the processing; determine whether or not a predetermined condition for the processing has been fulfilled based on the data, wherein said predetermined condition relates to whether the acceleration of the input device exceeds a predetermined value; obtain information on an indicated position on image in virtual space, which is calculated from the data at the time when the predetermined condition has been fulfilled; obtain one of the moving speed and the acceleration of the input device which are calculated from the data; and when one of the obtained moving speed and the acceleration is equal to or greater than a predetermined value, processing for controlling motion of an object which appears in a virtual space based on the indicated position.
-
-
10. A non-transitory storage medium having stored thereon a program executable by a computer of an apparatus for executing processing based on a motion of an input device including an acceleration sensor, the program causing the computer to execute:
-
obtaining data representing an output from the acceleration sensor, or data corresponding to an acceleration of the input device which is calculated from the data representing the output from the acceleration sensor, at an interval of a unit time; storing the obtained acceleration data; detecting, from the stored data, a ratio of accelerations having a value close to a value of a gravitational acceleration with respect to accelerations for a predetermined time duration counted backward from the time when the acceleration data was obtained; when the ratio is equal to or greater than a predetermined value, calculating a conversion parameter for allowing a direction of each of the accelerations, having a value close to the value of the gravitational acceleration in a coordinate system for the input device, to be detected as a direction of the gravitational acceleration; and executing the processing based on the motion of the input device, which is obtained as a result of the conversion using the conversion parameter. - View Dependent Claims (11)
-
-
12. An apparatus for executing processing based on a motion of an input device including an acceleration sensor, the apparatus comprising one or more computer processors configured to:
-
obtain data representing an output from the acceleration sensor, or data corresponding to an acceleration of the input device which is calculated from the data representing the output from the acceleration sensor, at an interval of a unit time; store the obtained acceleration data in storage locations; detect, from the data stored by the storage locations, a ratio of accelerations having a value close to a value of a gravitational acceleration with respect to accelerations for a predetermined time duration counted backward from the time when the acceleration data was obtained; when the ratio is equal to or greater than a predetermined value, calculate a conversion parameter for allowing a direction of each of the accelerations, having a value close to the value of the gravitational acceleration in a coordinate system for the input device, to be detected as a direction of the gravitational acceleration; and execute the processing based on the motion of the input device, which is obtained as a result of the conversion performed using the conversion parameter.
-
-
13. A method for executing processing based on a state of an input device, which is at least one of a position, a moving speed and an acceleration of the input device, the method comprising:
-
sequentially obtaining data variable in accordance with the state of the input device and usable for the processing; determining whether or not a predetermined condition for the processing has been fulfilled based on the data, wherein said predetermined condition relates to whether the acceleration of the input device exceeds a predetermined value; obtaining information on an indicated position on image in virtual space, which is calculated from the data at the time when the predetermined condition has been fulfilled; obtaining one of the moving speed and the acceleration of the input device which are calculated from the data; and when one of the obtained moving speed and the acceleration is equal to or greater than a predetermined value, processing for controlling motion of an object which appears in a virtual space based on the indicated position.
-
-
14. A system comprising:
-
a communications device configured to receive a indication from one or more input device, said indication being one or more of a position, a moving speed and an acceleration of the input device; and a computer processor configured to; generate a display portion for displaying at least an operating portion of a virtual space; sequentially obtain data variable in accordance with the state of the one or more input device and usable for processing; determine whether or not a predetermined condition for the processing has been fulfilled based on the data, wherein said predetermined condition relates to whether the acceleration of the one or more input device exceeds a predetermined value; establish indicated position for obtaining information on an indicated position on image in virtual space, which is calculated from the data at the time when the predetermined condition has been fulfilled; establish a parameter for obtaining one of the moving speed and the acceleration of the one or more input device which are calculated from the data; and perform processing for, when one of the moving speed and the acceleration which is obtained by the parameter establishment is equal to or greater than a predetermined value, processing for controlling motion of an object which appears in a virtual space based on the indicated position.
-
-
15. A method for executing processing based on a motion of an input device including an acceleration sensor, the method comprising:
-
obtaining data representing an output from the acceleration sensor, or data corresponding to an acceleration of the input device which is calculated from the data representing the output from the acceleration sensor, at an interval of a unit time; storing in storage locations the acceleration data obtained by the acceleration data obtaining; detecting, from the data stored in the storage locations, a ratio of accelerations having a value close to a value of a gravitational acceleration with respect to accelerations for a predetermined time duration counted backward from the time when the acceleration data was obtained; when the ratio is equal to or greater than a predetermined value, calculating a conversion parameter for allowing a direction of each of the accelerations, having a value close to the value of the gravitational acceleration in a coordinate system for the input device, to be detected as a direction of the gravitational acceleration; and executing the processing based on the motion of the input device, which is obtained as a result of the conversion performed using the conversion parameter.
-
-
16. A system comprising
a communications device configured to receive an indication from one or more input device including an acceleration sensor; - and
a computer processor configured to; generate a display portion for displaying at least an operating portion of a virtual space; obtain acceleration data for obtaining data representing an output from the acceleration sensor, or data corresponding to an acceleration of the one or more input device which is calculated from the data representing the output from the acceleration sensor, at an interval of a unit time; store the acceleration data obtained by the acceleration data obtaining in storage locations; determine a ratio for detecting, from the data stored in the storage locations, a ratio of accelerations having a value close to a value of a gravitational acceleration with respect to accelerations for a predetermined time duration counted backward from the time when the data was obtained by the acceleration data obtaining; calculate a conversion parameter for, when the ratio is equal to or greater than a predetermined value, calculating a conversion parameter for allowing a direction of each of the accelerations, having a value close to the value of the gravitational acceleration in a coordinate system for the input device, to be detected as a direction of the gravitational acceleration; and perform control for executing the processing based on the motion of the one or more input device, which is obtained as a result of the conversion performed using the conversion parameter.
- and
Specification