Patent ID: 7824266

Claim:
A storage medium having stored thereon a game program executed by a computer in a game apparatus which is operated using a pointing device for outputting coordinate information being based on a given coordinate system and being designated according to an operation of a player, wherein the computer is operable to execute: reference coordinate setting for setting reference coordinates in the coordinate system; designated coordinate setting for repeatedly obtaining coordinate information which is outputted from the pointing device and repeatedly updating designated coordinates in the coordinate system based on the coordinate information which has been repeatedly obtained from the pointing device; reference coordinate changing for repeatedly updating a position of the reference coordinates so as to approach latest coordinates among the designated coordinates which have been repeatedly updated; and game control for controlling the game based on at least one of an input direction which is a direction from the reference coordinates to the designated coordinates and an input distance which is a distance between the reference coordinates and the designated coordinates, wherein in the reference coordinate changing, the position of the reference coordinates is changed so as to approach the designated coordinates when a predetermined condition is satisfied, wherein the predetermined condition which is used in the reference coordinate changing is a condition that the designated coordinates are outside a predetermined area based on the reference coordinates, wherein in the game control, the game is controlled based on at least the input distance, and when the designated coordinates are outside the predetermined area based on the reference coordinates, the input distance is set as a predetermined distance from the reference coordinates to the boundary of the predetermined area, and in the reference coordinate changing, the position of the reference coordinates is changed so as to approach the designated coordinates when the designated coordinates are outside the predetermined area based on the reference coordinates.