1. A non-transitory storage medium storing a game program to be executed by a computer in a game apparatus comprising an input device for detecting positions designated by a player on an input surface, wherein a storage device of the game apparatus stores shape data indicating, for a plurality of reference patterns, a shape of a reference pattern among the plurality of reference patterns, and also stores a default reference value corresponding to the each of the plurality of reference patterns, the storage medium storing the game program for causing the computer to perform: calculating an input graphic drawn on the input surface by using the positions detected by the input device; calculating, for each of the plurality of reference patterns, a score related to a degree of similarity between a shape of one of the plurality of reference patterns indicated by the shape data stored in the storage device and a shape of the input graphic; setting a reference value for each of the plurality of reference patterns by adjusting the default reference value of each of the plurality of reference patterns by a respective adjustment amount, the respective adjustment amounts being variable as between different reference patterns in the plurality of reference patterns; identifying the shape of the input graphic from among the plurality of reference patterns by using a result obtained by performing a predetermined calculation for each of the plurality of reference patterns through using the score and the set reference value as an offset to the score; and performing a game process in accordance with the identified shape.