Patent ID: 8866856

Claim:
A non-transitory computer-readable storage medium having stored therein an image processing program to be executed by a computer of an image processing device, the image processing device comprising an input device for obtaining a coordinate specified on a screen of a display device, and the image processing device displaying, on the screen, an image of a virtual space within a display area that is determined so as to include an object, the image processing program comprising instructions causing the computer to perform: determining whether or not there is a coordinate specified on the input device; upon obtaining the coordinate specified, calculating a difference vector based on the specified input device coordinate, the difference vector representing the spacing on the display between the specified coordinate and the displayed object; correcting the difference vector to an upper limit value if the difference vector exceeds the upper limit value thereby preventing the displayed object from moving out of the display area by limiting the magnitude of the difference vector to the upper limit value; shifting the displayed virtual space by an amount that is dependent on the corrected difference vector so as to display more of an area of the virtual space in the direction from the position of the object to the specified position of the coordinate, than the corresponding area prior to specifying the coordinate; and producing an image of the virtual space based on the shifted display area to display the produced image on the screen of the display device.