摘要 |
To provide a game device which is capable of realizing such a user interface as to allow a user to instruct a mobile character to stay within a predetermined region in the case where a movement target position for the mobile character is set outside the predetermined region while preventing the mobile character from exhibiting an unnatural action at a time of changing a moving direction. An intersection (92) between a straight line (90) connecting a position of a mobile character (58a) and a first movement target position (62), and a boundary line (53b) of the predetermined region, is acquired. An intersection (96) between a straight line (94) connecting the first movement target position and a second movement target position (64), and the boundary line of the predetermined region, is acquired. A mobile character which has arrived at a region whose distance from the intersection (92) is equal to or less than a first reference distance is caused to move in parallel with a direction from the intersection (92) toward the intersection (96). A mobile character which has arrived at a region whose distance from the intersection (96) is equal to or less than a second reference distance is caused to move toward a second movement target position. |