摘要 |
PROBLEM TO BE SOLVED: To evade an action which is inconceivable in the real world without detecting collision with an obstruction part. SOLUTION: Data to regulate a range within which a virtual pet can move is registered, for example, in a moving range control table in an HHD 13a in a step S21. Next, a position of an abutter corresponding to the virtual pet is detected in a step S22 and a position of the virtual pet is generated based on the detected position of the abutter in a step S23. Next, the position of the virtual pet generated in the step S23 is decided whether it exists within the regulated area within which the virtual pet can move or not in a step S24. When the position of the virtual pet generated in the step S23 is decided to be outside the regulated area, a processing proceeds to a step S25 and a position in the regulated range which is nearest to the generated position of the virtual pet is retrieved. Next, the position of the virtual pet is corrected as the position retrieved in the step S25 in a step S26. Next, the virtual pet moves further by following the abutter in a step S27. |