The disclosure of Japanese Patent Application No. 2009-000443, filed on Jan. 5, 2009, is incorporated herein by reference.
1. Field of the Invention
The present invention relates to a computer-readable storage medium having stored therein a drawing processing program which allows a player to draw a desired picture, and more particularly, to a computer-readable storage medium having stored therein a drawing processing program which allows a player to draw a desired picture by using a pointing device such as a touch panel.
2. Description of the Background Art
Conventionally, there has been known an apparatus for editing an image by a user operating a touch pen to perform an input to a touch panel (for example, Japanese Laid-Open Patent Publication No. 2003-191567, and Japanese Laid-Open Patent Publication No. 2006-129257). Such an apparatus is capable of, by using the touch pen, editing (e.g., drawing graffiti on) an image obtained by shooting an object (user) itself. In addition, at this time, the thickness or the line type of a pen can also be selected.
However, an apparatus as described above has the following problem. In the above apparatus, drawing is performed while an input is being performed by the touch pen with respect to the touch panel. Therefore, the user can perform an operation as if the user performs drawing on paper by using a pen. On the other hand, such an operation is commonplace, and therefore, does not give sufficient freshness to the user.
Therefore, an object of the present invention is to provide a drawing processing program and an information processing apparatus which enable drawing to be performed through a nonconventional and novel way of operation.
The present invention has the following features to achieve the objects mentioned above. Note that reference numerals, supplementary explanations, and the like in the parentheses indicate an example of the correspondence relationship with an embodiment described below in order to aid in understanding the present invention and are not intended to limit, in any way, the scope of the present invention.
A first aspect is a computer-readable storage medium having stored therein a drawing processing program which is executed by a computer of an information processing apparatus in which a pointing device for designating a position on a display screen, and sound input means can be used, the drawing processing program causing the computer to function as designated position detection means (S22), sound detection means (S51), and drawing-related processing execution means (S56). The designated position input coordinate detection means continuously obtains a designated position on the display screen, based on a designation performed by the pointing device. Here, upon obtaining the designated position, if, for example, the pointing device is a touch panel, a touch operation with respect to the touch panel corresponds to a designation operation. Alternatively, if the pointing device is an operation device including shooting means for shooting a shooting target and is capable of, based on shooting information obtained by the shooting means, designating any position on a screen, pressing down a predetermined button provided to the operation device while the position is being designated corresponds to a designation operation. The sound detection means detects that a sound which satisfies a predetermined condition is inputted to the sound input means. Here, a determination using the predetermined condition may be a determination using a predetermined threshold value. That is, the predetermined condition may be such that when a sound having a magnitude of certain level is inputted, it is determined that a sound is inputted, or may be such that specified sound determination means described later determines that a predetermined sound is inputted. The drawing-related processing execution means executes, while the sound detection means detects that the sound which satisfies the predetermined condition is inputted, predetermined drawing-related processing on a position based on the designated position obtained by the designated position detection means. Here, the drawing-related processing includes processing of drawing a line (straight line or curved line), a dot, or an image formed by a collection of the line or the dot on the display screen, and in addition, includes processing of working upon (editing) an image or the like which has been already drawn, and processing of erasing an image or the like which has been already displayed.
According to the first aspect, a painting program providing a novel way of operation can be provided.
In a second aspect based on the first aspect, the drawing-related processing execution means changes a content of the drawing-related processing to be executed, based on the sound detected by the sound detection means, and in accordance with a characteristic of the sound. Here, the characteristic of the sound is, for example, a volume, a frequency, a tone, or the like.
According to the second aspect, since a content of the drawing-related processing to be executed is changed depending on a content of an inputted sound, a novel way of enjoyment can be provided to the player.
In a third aspect based on the second aspect, the drawing-related processing execution means sequentially changes a content of the drawing-related processing to be executed, in a coordinated manner with changes in chronological order in the characteristic of the sound repeatedly detected by the sound detection means.
According to the third aspect, since a content of the drawing-related processing is changed in real time in accordance with a change in an inputted sound, a novel way of enjoyment can be provided to the player. Further, while drawing is performed based on the position detected by the designated position detection means, the content of the drawing-related processing is changed in accordance with an input from the sound input means which is means other than the designated position detection means. Therefore, the player can change the content of the drawing-related processing while the player continues to designate a position for drawing.
In a fourth aspect based on the second aspect, sound analysis means executes the predetermined drawing-related processing only when a volume of the inputted sound is equal to or larger than a predetermined threshold value.
According to the fourth aspect, since the drawing-related processing is executed only when the volume of the inputted sound is larger than a certain degree, a novel way of enjoyment can be provided to the player.
In a fifth aspect based on the second aspect, the drawing-related processing execution means executes, as the drawing-related processing, processing of drawing a line which connects, in chronological order, the position based on the designated position sequentially obtained by the input coordinate detection means.
According to the fifth aspect, since a handwritten image can be drawn on the display screen through a novel way of operation, a novel way of enjoyment can be provided to the player.
In a sixth aspect based on the fifth aspect, the sound analysis means changes at least one of a thickness of the line and a density of a color in which the line is drawn, in accordance with a volume of the inputted sound.
According to the sixth aspect, since the thickness or the density of the line to be drawn is changed in accordance with the volume of the inputted sound, a novel way of enjoyment can be provided to the player.
In a seventh aspect based on the second aspect, the drawing-related processing execution means executes, as the drawing-related processing, processing of drawing one or more dots in a drawing range which is a predetermined range including therein the position based on the designated position.
According to the seventh aspect, for example, a feeling of performing drawing by using a spray, together with a novel way of operation, can be provided to the player.
In an eighth aspect based on the second aspect, the sound analysis means changes at least one of a size of the drawing range and a number of the dots to be drawn in the drawing range, in accordance with a volume of the inputted sound.
In a ninth aspect based on the eighth aspect, the drawing-related processing execution means draws the dots such that an area density of the number of the dots which are nearer to the position based on the designated position is higher, and that an area density of the number of the dots which are farther from the position based on the designated position is lower.
In a tenth aspect based on the eighth aspect, the drawing-related processing execution means draws the dots at random positions in the drawing area.
According to the eighth to the tenth aspects, various types of drawing can be performed in accordance with the volume of the inputted sound.
In an eleventh aspect based on the seventh aspect, the drawing-related processing execution means executes, as the drawing-related processing, processing of moving the dots drawn on the display screen in a predetermined direction, based on the position based on the designated position, and the sound input detected by the sound detection means.
In a twelfth aspect based on the eleventh aspect, the drawing-related processing execution means includes movement content calculation means for calculating: a direction of a line connecting each of the dots displayed on the display screen, with a reference point which is the position based on the designated position; and a distance from the reference point to each of the dots displayed on the display screen. In addition, the drawing-related processing execution means moves the dots displayed on the screen, based on the direction and the distance calculated by the movement content calculation means.
According to the eleventh and twelfth aspects, dots which have been already drawn can be moved by using a sound input, and thereby a novel way of enjoyment can be provided to the player.
In a thirteenth aspect based on the first aspect, the drawing processing program further causes the computer to function as sound effect reproduction means (S60) for causing predetermined sound output means to output a predetermined sound effect when the drawing-related processing execution means is executing the predetermined drawing-related processing.
In a fourteenth aspect based on the thirteenth aspect, the sound effect reproduction means changes a volume at which the sound effect is reproduced, in accordance with a characteristic of the sound detected by the sound detection means.
According to the thirteenth and fourteenth aspects, the player can intuitively recognize whether or not the drawing-related processing is being executed.
In a fifteenth aspect based on the first aspect, the drawing processing program further causes the computer to function as cursor display means (S57) and animation display means (S57). The cursor display means displays a predetermined cursor image at the designated position. The animation display means animates the cursor when the drawing-related processing execution means is executing the predetermined drawing-related processing.
In a sixteenth aspect based on the fifteenth aspect, the animation display means changes a speed of the animation in accordance with a characteristic of the sound detected by the sound detection means.
According to the fifteenth and sixteenth aspects, the player can visually recognize whether or not the drawing-related processing is being executed.
In a seventeenth aspect based on the first aspect, the pointing device is a touch panel.
According to the seventeenth aspect, an intuitive way of operation can be provided to the player.
In an eighteenth aspect based on the first aspect, the drawing processing program further causes the computer to function as shot image obtaining means (S1), and shot image display means (S21). The shot image obtaining means obtains image data of an image shot by predetermined shooting means. The shot image display means displays, on the display screen, the shot image. In addition, the drawing-related processing execution means executes the drawing-related processing on the shot image.
According to the eighteenth aspect, editing of an image with respect to a shot image, or the like can be provided together with a novel way of operation.
In a nineteenth aspect based on the first aspect, the drawing processing program further causes the computer to function as specified sound determination means for determining whether or not the sound detected by the sound detection means is a predetermined sound. In addition, the drawing-related processing execution means executes the drawing-related processing only when the specified sound determination means determines that the sound detected by the sound detection means is the predetermined sound.
According to the nineteenth aspect, it becomes possible to execute the drawing-related processing by identifying a specified sound such as a sound of the player blowing breath, and thereby a novel way of enjoyment can be provided to the player. In addition, it becomes possible to execute the drawing-related processing only when the player utters a specified sound, whereby the drawing-related processing can be prevented from being executed in response to a sound involuntarily uttered.
A twentieth aspect is an information processing apparatus capable of using a pointing device (13) for designating a position on a display screen (12), and of using sound input means (42), the information processing apparatus comprising input coordinate detection means (31), sound detection means (31), and drawing-related processing execution means (31). The input coordinate detection means continuously obtains a designated position on the display screen, based on a designation performed by the pointing device. The sound detection means detects that a sound which satisfies a predetermined condition is inputted to the sound input means. The drawing-related processing execution means executes, while the sound detection means detects that the sound is inputted, predetermined drawing-related processing on a position based on the designated position.
According to the twentieth aspect, the same effect as that of the drawing processing program of the above aspects can be obtained.
In a twenty-first aspect based on the twentieth aspect, the sound detection means is placed in proximity of the display screen.
According to the twenty-first aspect, since the display screen and the sound detection means are placed at positions which are close to each other, it becomes possible to provide an effect of intuitive rendering, which is, for example, an effect of, when a sound is uttered toward the screen, performing drawing on the display screen in response to the sound.
According to the above aspects, a painting program and a painting game which allow the player to enjoy drawing through a novel way of operation can be provided.
These and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings.
The following will describe embodiments of the present invention with reference to the drawings. The present invention is not limited to the embodiments.
As shown in
The game apparatus 1 includes a lower housing 11 and an upper housing 21. The lower housing 11 and the upper housing 21 are connected to each other such that the game apparatus 1 can be opened or closed (folded). In the example of
In the lower housing 11, a lower LCD (Liquid Crystal Display) 12 is provided. The lower LCD 12 has a horizontally long shape, and is located such that a long-side direction thereof corresponds to a long-side direction of the lower housing 11. Note that although an LCD is used as a display device provided in the game apparatus 1 in the present embodiment, any other display devices such as a display device using an EL (Electro Luminescence), and the like may be used. In addition, the game apparatus 1 can use a display device of any resolution. Note that although details will be described later, the lower LCD 12 is used mainly for displaying, in real time, an image to be shot by an inner camera 23 or an outer camera 25.
In the lower housing 11, operation buttons 14A to 14K, and a touch panel 13 are provided as input devices. As shown in
Note that the operation buttons 14I to 14K are omitted in
In addition, the game apparatus 1 further includes the touch panel 13 as an input device other than the operation buttons 14A to 14K. The touch panel 13 is mounted on the lower LCD 12 so as to cover a screen of the lower LCD 12. Note that in the present embodiment, for example, a resistive film type touch panel is used as the touch panel 13. However, the touch panel 13 is not limited to the resistive film type, and any press-type touch panel may be used. In addition, in the present embodiment, the touch panel 13 having the same resolution (detection accuracy) as that of the lower LCD 12 is used, for example. However, the resolutions of the touch panel 13 and the lower LCD 12 may not necessarily be the same as each other. In addition, in a right side surface of the lower housing 11, an insertion opening (indicated by a dotted line in
In the right side surface of the lower housing 11, an insertion opening (indicated by a two-dot chain line in
Further, in the upper side surface of the lower housing 11, an insertion opening (indicated by a chain line in
Three LEDs 15A to 15C are mounted to a left side part of the connection portion where the lower housing 11 and the upper housing 21 are connected to each other. Here, the game apparatus 1 is capable of performing wireless communication with another apparatus, and the first LED 15A is lit up while the power of the game apparatus 1 is ON. The second LED 15B is lit up while the game apparatus 1 is being charged. The third LED 15C is lit up while wireless communication is established. Thus, the three LEDs 15A to 15C can notify the user of a state of ON/OFF of the power of the game apparatus 1, a state of charge of the game apparatus 1, and a state of communication establishment of the game apparatus 1.
On the other hand, in the upper housing 21, an upper LCD 22 is provided. The upper LCD 22 has a horizontally long shape, and is located such that a long side direction thereof corresponds to a long side direction of the upper housing 21. Note that similarly to the lower LCD 12, a display device which is of any other type or has any other resolution may be used instead of the upper LCD 22. Note that a touch panel may be provided so as to cover the upper LCD 22. For example, on the upper LCD 22, an operation illustration screen is displayed for teaching roles of the operation buttons 14A to 14K and the touch panel 13 to the user.
In addition, in the upper housing 21, two cameras (the inner camera 23 and the outer camera 25) are provided. As shown in
Note that in the inner main surface of the upper housing 21 and at the vicinity of the connection portion, a microphone (a microphone 42 shown in
In addition, in the outer main surface of the upper housing 21, a fourth LED 26 (indicated by a dashed line in
In addition, sound holes 24 are formed in the inner main surface of the upper housing 21 and to the left and right of the upper LCD 22 provided in the vicinity of a center of the inner main surface of the upper housing 21. The speakers are accommodated in the upper housing 21 and at the back of the sound holes 24. The sound holes 24 are holes for releasing a sound from the speakers to the outside of the game apparatus 1 therethrough.
As described above, the inner camera 23 and the outer camera 25 which are configurations for shooting an image, and the upper LCD 22 which is display means for displaying, for example, an operation illustration screen upon shooting are provided in the upper housing 21. On the other hand, the input devices for performing an operation input with respect to the game apparatus 1 (the touch panel 13 and the buttons 14A to 14K), and the lower LCD 12 which is display means for displaying a game screen are provided in the lower housing 11. Thus, when using the game apparatus 1, the user can hold the lower housing 11 and perform an input with respect to the input device while viewing a shot image (an image shot by the camera) displayed on the lower LCD 12.
The following will describe an internal configuration of the game apparatus 1 with reference to
As shown in
The CPU 31 is information processing means for executing a predetermined program. In the present embodiment, the predetermined program is stored in a memory (e.g., the storage data memory 34) in the game apparatus 1, or in the memory cards 28 and/or 29, and the CPU 31 executes later-described graffiti processing by executing the predetermined program. Note that a program executed by the CPU 31 may be stored in advance in a memory in the game apparatus 1, may be obtained from the memory card 28 and/or the cartridge 29, or may be obtained from another apparatus by means of communication with the other apparatus. For example, the program may be downloaded and obtained from a predetermined server via the Internet, or a predetermined program stored in a stationary game apparatus may be downloaded and obtained by performing communication with the stationary game apparatus.
The main memory 32, the memory control circuit 33, and the preset data memory 35 are connected to the CPU 31. In addition, the storage data memory 34 is connected to the memory control circuit 33. The main memory 32 is storage means used as a work area and a buffer area of the CPU 31. In other words, the main memory 32 stores various data used in the graffiti processing, and stores a program obtained from the outside (the memory cards 28 and 29, another apparatus, or the like). In the present embodiment, for example, a PSRAM (Pseudo-SRAM) is used as the main memory 32. The storage data memory 34 is storage means for storing a program executed by the CPU 31, data of an image shot by the inner camera 23 and the outer camera 25, and the like. The storage data memory 34 is constructed of a nonvolatile storage medium, which is, in the present embodiment, a NAND flash memory, for example. The memory control circuit 33 is a circuit for controlling reading of data from the storage data memory 34 or writing of data to the storage data memory 34 in accordance with an instruction from the CPU 31. The preset data memory 35 is storage means for storing data (preset data) of various parameters which are set in advance in the game apparatus 1, and the like. A flash memory connected to the CPU 31 via an SPI (Serial Peripheral Interface) bus can be used as the preset data memory 35.
The memory card I/F 36 is connected to the CPU 31. The memory card I/F 36 reads data from the memory card 28 mounted to the connectors or writes data to the memory card 28, in accordance with an instruction from the CPU 31. In the present embodiment, data of images shot by the outer camera 25 is written to the memory card 28, and image data stored in the memory card 28 is read from the memory card 28 to be stored in the storage data memory 34.
The cartridge I/F 44 is connected to the CPU 31. The cartridge I/F 44 reads out data from the cartridge 29 mounted to the connector or writes data to the cartridge 29, in accordance with an instruction from the CPU 31. In the present embodiment, an application program which can be executed by the information processing apparatus 10 is read out from the cartridge 29 to be executed by the CPU 31, and data associated with the application program (e.g., saved data in a game) is written to the cartridge 29.
Note that the graffiti game program according to the present invention may be supplied to a computer system not only from an external storage medium such as the cartridge 29, but also via a wired or wireless communication line. In addition, the graffiti game program may be stored in advance in a nonvolatile storage unit in the computer system. Note that an information storage medium for storing the color conversion program is not limited to the above nonvolatile storage unit, and may be a CD-ROM, a DVD, or an optical disc-shaped storage medium similar to them.
The wireless communication module 37 has a function of connecting to a wireless LAN, for example, by a method conformed to the standard of IEEE802.11.b/g. The local communication module 38 has a function of wirelessly communicating with a game apparatus of the same type by a predetermined communication method. The wireless communication module 37 and the local communication module 38 are connected to the CPU 31. The CPU 31 is capable of receiving data from and transmitting data to another apparatus via the Internet by using the wireless communication module 37, and capable of receiving data from and transmitting data to another game apparatus of the same type by using the local communication module 38.
In addition, the RTC 39 and the power circuit 40 are connected to the CPU 31. The RTC 39 counts time, and outputs the time to the CPU 31. For example, the CPU 31 is capable of calculating current time (date) and the like, based on the time counted by the RTC 39. The power circuit 40 controls electric power from a power supply (typically, a battery accommodated in the lower housing 11) of the game apparatus 1 to supply the electric power to each electronic component of the game apparatus 1.
In addition, the game apparatus 1 includes the microphone 42 and an amplifier 43. The microphone 42 and the amplifier 43 are connected to the I/F circuit 41. The microphone 42 detects a voice produced by the user toward the game apparatus 1, and outputs a sound signal indicating the voice to the I/F circuit 41. The amplifier 43 amplifies the sound signal from the I/F circuit 41, and causes the speakers (not shown) to output the sound signal. The I/F circuit 41 is connected to the CPU 31.
In addition, the touch panel 13 is connected to the I/F circuit 41. The I/F circuit 41 includes a sound control circuit for controlling the microphone 42 and the amplifier (the speakers), and a touch panel control circuit for controlling the touch panel 13. The sound control circuit performs A/D conversion or D/A conversion with respect to the sound signal, and converts the sound signal into sound data in a predetermined format. The touch panel control circuit generates touched position data in a predetermined format, based on a signal from the touch panel 13, and outputs the touched position data to the CPU 31. For example, the touched position data is data indicating coordinate of a position at which an input is performed with respect to an input surface of the touch panel 13. Note that the touch panel control circuit reads a signal from the touch panel 13 and generates touched position data, once every predetermined time period. The CPU 31 is capable of recognizing a position at which an input is performed with respect to the touch panel 13 by obtaining the touched position data via the I/F circuit 41.
An operation button 14 includes the above operation buttons 14A to 14K, and is connected to the CPU 31. The operation button 14 outputs, to the CPU 31, operation data indicating an input state with respect to each of the buttons 14A to 14K (whether or not each button is pressed). The CPU 31 obtains the operation data from the operation button 14, and executes processing in accordance with an input with respect to the operation button 14.
The inner camera 23 and the outer camera 25 are connected to the CPU 31. Each of the inner camera 23 and the outer camera 25 shoots an image in accordance with an instruction from the CPU 31, and outputs data of the shot image to the CPU 31. In the present embodiment, the CPU 31 gives a shooting instruction to the inner camera 23 or the outer camera 25, and the camera which has received the shooting instruction shoots an image and transmits image data to the CPU 31.
In addition, the lower LCD 12 and the upper LCD 22 are connected to the CPU 31. Each of the lower LCD 12 and the upper LCD 22 displays an image thereon in accordance with an instruction from the CPU 31.
Next, referring to
In addition, in the application, the player can enjoy drawing graffiti on an image shot by the outer camera (or image shot by the inner camera 23) of the game apparatus 1. For example, when an image shown in
Next, a drawing operation with respect to the canvas 101 in the application will be described. As described above, in the application, a picture can be drawing by moving the touch pen 27 on the canvas 101. Here, in the application, two types, i.e., a “pen” and an “eraser” can be used as types of drawing tools used for drawing in a game. The “pen” is a tool for drawing something on the canvas, and the “eraser” is a tool for erasing a content drawn on the canvas 101. Upon using the “pen” or the “eraser”, a line of uniform thickness, or a “spray” can be selected as a type (line type) of a drawn line. In the application, upon selection of the drawing tools, the “pen” or the “eraser” can be selected by operating the drawing tool icon 111 on the toolbar 103. The line type of the selected tool can be selected by operating the line-type icon 112. Specifically, use of the line of uniform thickness or use of the “spray” can be selected. At this time, the thickness of the line of uniform thickness can also be designated, and of the four icons of the line-type icon 112, left three icons represent the respective thicknesses. In addition, of the four icons, the rightmost icon on which a picture of a propeller is displayed represents the “spray”. In addition, when the “pen” is selected as a drawing tool, the drawing color (color of the line or the spray) can also be designated.
Next, an operation performed when the “pen” is used as a drawing tool will be described. When the “pen” is selected and the line of uniform thickness is selected as the line-type, the line of uniform thickness can be drawn at a touched position as shown in
On the other hand, when the “spray” is selected as the line-type, although a “spray line” as described later can be drawn at a touched position, the drawing is not performed by only touching the touch panel, unlike in the case of using the line of uniform thickness. Hereinafter, referring to
In this state, in order to perform drawing on the canvas 101, the player performs an operation of blowing breath on the cursor 102, as shown in
Moreover, in the application, the thickness and the density of the spray line change in accordance with the strength at which the player blows breath. For example, when the player weakly blows breath, the spray line which is thin and dilute (has the reduced number of dots) as shown in
Here, the outline (principle) of drawing processing of the spray line performed in the present embodiment will be described. As shown in
Next, of the drawing tools described above, the “eraser” will be described. The case where the player operates the toolbar 103 to select the eraser as the drawing tool, and to select the line of uniform thickness as the “line type”, will be described. In this case, when the player touches a position on the canvas 101, the cursor 102 which is of eraser type is displayed. An operation performed in this case conforms with that performed in the case where the “pen” is selected and the line of uniform thickness is selected, and a line (uniform line and spray line) drawn at the touched position can be erased. Next, the case where the “spray” is selected as the “line-type” will be described. In this case, when the player touches a position on the canvas 101, the cursor 102 which is of propeller type is displayed as in the case where the “pen” is selected and the “spray” is selected as the line type. Then, when the player blows on the cursor 102, the spray line or the line of uniform thickness drawn within a predetermined range can be erased in accordance with the strength (that is, the magnitude of the microphone input sound) at which the player blows breath, and the touched position.
Thus, in the present embodiment, processing is performed such that drawing on the canvas 101 can be performed only after a touch input and an operation (sound input to the microphone 42) of blowing breath are performed, as in the case of the “spray”. Thus, it becomes possible to provide a drawing application having a nonconventional and novel way of operation.
Next, the detail of application processing performed by the game apparatus 1 will be described. Firstly, data which is stored in the main memory 32 when the application processing is performed will be described.
The program storage area 321 stores a program which is to be executed by the CPU 31 and which includes a main processing program 322, a camera processing program 323, a graffiti processing program 324, and the like.
A main processing program 322 is a program corresponding to processing shown by a flowchart in
The data storage area 325 stores operation data 326, a drawing tool master 327, drawing color data 328, shot image data 329, current tool data 330, sound effect data 331, a spray table 332, sound characteristic data 333, and the like.
The operation data 326 is data indicating a content of an operation performed by the player with respect to the game apparatus 1, and includes the operation button data 3261 and the touched position data 3262. The operation button data 3261 is data indicating an input state of each of the operation buttons 14A to 14K. The touched position data 3262 is data indicating coordinate (input coordinate) of a touched position inputted to the touch panel 13. In the present embodiment, while the player is touching the touch panel 13, the input coordinate is repeatedly obtained and saved as the touched position data 3262. Note that in the present embodiment, it is possible to save the latest input coordinate and input coordinate just prior to the latest input coordinate as the touched position data 3262.
The drawing tool master 327 is a table associated with the drawing tools described above.
The drawing color data 328 is data indicating the color of a line or the like drawn on the canvas 101 when the type of the drawing tool is the “pen”. The shot image data 329 is data indicating an image shot by the outer camera 25. The current tool data 330 is data indicating the type of the drawing tool (pen or eraser) currently selected and the line type (uniform line or spopray). The sound effect data 331 is data of a sound effect to be reproduced upon drawing.
The spray table 332 is a table which defines the size of an area in which drawing is performed and the number of dots to be drawn, so as to associate the size and the number with the volume of the above-described microphone input sound.
Referring to
In processing described later, the data storage area 325 stores, in addition to the above-described data, various flags such as a reproduction flag used for indicating whether or not reproduction of a sound effect is being performed, various image data, and the like.
Next, a flow of application processing (hereinafter, referred to as graffiti game processing) executed by the game apparatus 1 will be described referring to
Referring to
Next, the CPU 31 obtains the operation data 326 from the main memory 32 (step S2). Next, it is determined whether or not a content indicated by the operation data is an instruction of executing camera processing (step S3). As a result, if the content is not an instruction of executing camera processing (NO in step S3), the CPU 31 proceeds to processing in step S5 described later. On the other hand, if the content is an instruction of executing camera processing (YES in step S3), the CPU 31 executes camera processing (step S4). In the camera processing, processing for shooting an image which is to be used as the base picture by using the outer camera 25 and saving the shot image is executed. Next, the CPU 31 executes the graffiti processing (step S5). In the graffiti processing, processing for displaying the screen as shown in
Next, the CPU 31 displays, on the lower LCD 12, a video being shot by the outer camera 25 (step 12).
Next, the CPU 31 obtains the operation data 326 from the main memory 32 (step S13). Thereafter, the CPU 31 determines whether or not a content of an operation performed by the player which is indicated by the operation data 326 indicates that the shutter button is pressed down (step S14). As a result of the determination, if the shutter is pressed down (YES in step S14), the CPU 31 performs processing of storing an image shot by the outer camera 25. That is, the image shot by the outer camera 25 is stored as the shot image data 329 in the main memory 32 (step S15). Thereafter, the CPU 31 returns to the processing in step S12 to repeat the processing.
On the other hand, as a result of the determination in step S14, if the shutter is not pressed (NO in step S14), next, the CPU 31 determines whether or not a content of an operation indicated by the operation data 326 is an operation of an instruction of ending the camera processing (step S16). As a result, if the content is an instruction of ending the camera processing (YES in step S16), the CPU 31 ends the camera processing. On the other hand, if the content is not an instruction of ending the camera processing (NO in step S16), the CPU 31 executes other processing based on the operation data 326 (step S17). For example, the CPU 31 executes setting of control of zoom magnification, exposure control, or the like. Thereafter, the CPU 31 returns to step S12 to repeat processing therefrom. Description of the camera processing is finished here.
Next, the graffiti processing shown in step S2 will be described.
When the initial processing is finished, next, the CPU 31 obtains the operation data 326 from the main memory 32 (step S22). Thereafter, the CPU 31 determines whether or not a content of an operation indicated by the operation data 326 is an instruction of ending the graffiti processing (step S23). As a result of the determination, if the content is an instruction of ending the graffiti processing (YES in step S23), the CPU 31 ends the graffiti processing.
On the other hand, if the content is not an instruction of ending the graffiti processing (NO in step S23), next, the CPU 31 determines whether or not the content of an operation is an operation of selecting the type of the drawing tool (step S24). As a result, if the content is an operation of selecting the drawing tool (YES in step S24), processing of selecting the drawing tool is executed based on the content of the operation data 326 (step S25). Here, an example of the selection operation will be described. First, the player touches the drawing tool icon 111 on the screen as shown in
On the other hand, as a result of the determination in step S24, if the content of an operation is not an operation of selecting the drawing tool (NO in step S24), next, the CPU 31 refers to the operation data 326 and thereby determines whether or not a touch input (more accurately, touch input to an area, of the touch panel 13, corresponding to an area in which the canvas 101 is displayed) to the canvas 101 is being performed (step S26). Specifically, the CPU 31 refers to the latest input coordinate stored in the touched position data 3262, and determines whether or not the latest input coordinate is in the area in which the canvas 101 is displayed. As a result, if a touch input to the canvas 101 is being performed (YES in step S26), the CPU 31 executes processing of displaying the cursor 102 at the position where the touch input is being performed (step S27). More specifically, first, the CPU 31 refers to the drawing tool master 327 and obtains a piece of the cursor image data 3272 which corresponds to the drawing tool currently selected. Then, the CPU 31 refers to the touched position data 3262 and displays, as the cursor 102, an image based on the piece of the cursor image data 3272 at the position where the touch input is being performed.
Subsequently to the display of the cursor 102, the CPU 31 determines whether or not the drawing tool currently selected, that is, the drawing tool indicated by the current tool data 330 is the “pen” (step S28). As a result, if the drawing tool is the “pen”, the CPU 31 executes pen processing (step S29).
On the other hand, as a result of the determination in step S41, if the line type is the “spray” (YES in step S41), the CPU 31 executes spray drawing processing for drawing a spray line as described above referring to
Next, the CPU 31 determines whether or not the volume indicated by the sound characteristic data 333 is equal to or larger than a predetermined threshold value which is set in advance (step S52). As a result of the determination, if the volume of the microphone input sound is equal to or larger than the predetermined threshold value (YES in step S52), the CPU 31 refers to the spray table 332, and determines the size of an area in which a spray line is drawn, and the number of dots to be drawn, based on the magnitude of the volume (step S53).
Next, in accordance with the magnitude of the volume indicated by the sound characteristic data 333, the CPU 31 determines a volume at which a sound effect reproduced upon drawing a spray line is reproduced (step S54).
Next, in accordance with the magnitude of the volume indicated by the sound characteristic data 333, the CPU 31 sets a speed at which an animation display of the cursor 102 is reproduced (step S55). As described above, in the present embodiment, when a spray line is drawn, an animation in which a propeller rotates is displayed as the cursor 102 which is of propeller type. The CPU 31 executes processing in which the speed at which the propeller rotates is set in accordance with the magnitude of the volume of the microphone input sound. For example, the speed at which the animation is reproduced is set such that if the volume of the microphone input sound is larger, the propeller rotates faster. For example, in the case where the animation in which the propeller rotates includes three images, setting may be performed such that when the volume of the microphone input sound is large, the image may be changed for every one frame, and that when the volume of the microphone input sound is not large, the image may be redrawn for every ten frames.
Next, the CPU 31 places the above-described drawing area such that the center of the drawing area coincides with the touched position, and draws dots to form a spray line on the canvas 101 (in the drawing area) in accordance with a content of the determination in step S53 (step S56). Here, the dots to form a spray line may be randomly placed in the drawing area, or may be drawn around the touched position such that the density of the dots is greatest at the touched position and that the density of the dots gradually becomes lesser as the dots become more distant from the touched position.
Next, the CPU 31 displays an animation (animation in which a propeller rotates) of the cursor 102 in accordance with the speed, set in step S55, at which the animation is reproduced (step S57).
Next, the CPU 31 determines whether or not the reproduction flag is set at OFF (step S58). The reproduction flag is a flag indicating whether or not a sound effect is being reproduced, and when a sound effect is not being reproduced, the reproduction flag is set at OFF. As a result of the determination, if the reproduction flag is OFF (YES in step S58), the CPU 31 sets the reproduction flag to ON (step S59). Then, the CPU 31 refers to the sound effect data 331, and starts reproducing a sound effect (spraying sound of a spray) for drawing of a spray line at a volume set in step S54 (step S60). Thereafter, the CPU 31 ends the spray processing.
On the other hand, as a result of the determination in step S58, if the CPU 31 determines that the reproduction flag is not OFF (NO in step S58), since it is considered that a sound effect is being reproduced, the CPU 31 ends the spray processing without executing the processing in steps S59 and S60.
Next, processing (NO in step S52) performed when, as a result of the determination in step S52, the volume indicated by the sound characteristic data 333 is smaller than the predetermined threshold value, will be described. In this case, next, the CPU 31 determines whether or not the reproduction flag is set at ON (step S61). As a result, if the reproduction flag is ON (YES in step S61), the CPU 31 stops the reproduction of the sound effect which has been started in step S60. Then, the CPU 31 sets the reproduction flag to OFF (step S63).
On the other hand, as a result of the determination in step S61, if the reproduction flag is not ON (NO in step S61), the CPU 31 ends the spray drawing processing without executing the processing in steps S62 and S63. Description of the spray drawing processing will be finished here.
Referring to
On the other hand, as a result of the determination in step S30, if the current tool data 330 indicates the “eraser” (YES in step S30), the CPU 31 executes eraser processing (step S31). In the eraser processing, processing in which, when a microphone input sound of a volume equal to or larger than a predetermined value is inputted, a spray line and the like which are drawn at the touched position are erased, is executed.
On the other hand, as a result of the determination in step S71, if the line type is the “spray”, the CPU 31 executes spray eraser processing (step S73).
As shown in
Next, the CPU 31 determines the volume at which the sound effect for erasing the spray line or the like is reproduced, in accordance with the magnitude of the volume (step S82).
Next, the CPU 31 determines the speed at which an animation of the cursor for the erasing is reproduced (step S83). That is, as in step S55, the CPU 31 determines the speed at which the propeller rotates, in accordance with the magnitude of the volume of the microphone input sound.
Next, the CPU 31 places the erasing area such that the center of the erasing area coincides with the touched position, and erases the spray line drawn within the erasing area (step S84).
Thereafter, the CPU 31 displays the animation of the cursor (step S57), and proceeds to processing of determining whether or not the reproduction flag is OFF (step S58). Since processing in step S58 and subsequent steps is the same as the processing in the respective steps described above referring to
Referring to
Thus, in the present embodiment, in the case where the player performs drawing by using the “spray”, drawing on the canvas 101 can be performed when two types of inputs, that is, a touch input to the canvas 101 and a sound input to the microphone 42 are performed. As a result, a novel game having a nonconventional and new feeling of operation can be provided.
In addition, in the present embodiment, the spray line is drawn while a touch input and a sound input to the microphone 42 continue to be performed (the player continues to blow). Therefore, by changing the strength at which the player blows breath, the thickness of the spray line can be changed in real time. Thus, it becomes possible to provide a novel way of enjoyment in which, depending on how the player blows breath, the thickness (corresponding to so-called pen pressure) of the spray line can be changed, that is, a content to be drawn can be changed.
In the above-described eraser processing, processing of erasing the spray line drawn at a touched position is performed. Other than such processing, processing (hereinafter, referred to as blow-off processing) in which dots forming the spray line which is present near or at a touched position are blown off in accordance with blowing breath on the touch panel may be executed. Hereinafter, the outline of the blow-off processing will be described. For example, it is assumed that a positional relationship between a touched position and dots is as shown in
Next, referring to
As shown in
As a result of the determination in step S52, if the volume is smaller than the predetermined threshold value (NO in step S52), the CPU 31 proceeds to processing in step S61. Since processing to be performed in this case is also the same as the processing from step S61 in
On the other hand, as a result of the determination in step S52, if the CPU 31 determines that the volume is equal to or larger than the predetermined threshold value (YES in step S52), the CPU 31 determines the size of an area (hereinafter, referred to as blow-off area) for the blow-off processing, in accordance with the magnitude of the volume (step S81). The size of the area is determined by referring to the spray table 332 and obtaining the area size 3322 corresponding to the magnitude of the volume, as in step S53.
Next, the CPU 31 calculates straight lines (see
Next, the CPU 31 moves the dots within the blow-off area in accordance with the directions and the lengths of the respective calculated straight lines (see
The dots are moved through the above processing, and thereafter, the CPU 31 proceeds to processing in step S58. Since the processing from step S58 is the same as the corresponding processing described above referring to
Thus, by performing processing in which when the player blows breath on a touched position, a dot is moved as if sands are blown off, it becomes possible to provide the player with a novel way of enjoyment.
In addition, in the above embodiment, the CPU 31 detects a sound produced when the player blows breath on the touch panel 13 and performs processing based on the volume thereof, and at this time, any other sound can be used (for example, a sound of clapping hands can be used). That is, the type and the content of the sound are not identified. However, the present invention is not limited thereto, and a sound of “blow” may be identified. A method of detection or identification of the “sound of blow” may be of any type. For example, there can be considered a method in which a waveform pattern of a sound segment included in a sound (sound of breath) of blow is stored in advance, the stored sound segment and a sound segment of an inputted sound are compared with each other, and thereby it is determined whether or not the player has blown. Alternatively, there may be used a method in which by using a fast fourier transform processing (FFT), the spectrum of an inputted sound is calculated, the calculated spectrum and the spectrum of a sound of blow which is stored in advance are compared with each other, and thereby it is determined whether or not the player has blown.
In addition, instead of using a volume, or using the type and the content of a specified sound as described above, a characteristic of an inputted sound, such as tone or frequency, may be calculated or identified, and a content of drawing processing may be changed in accordance with the characteristic of the inputted sound.
In addition, the reproduction of the sound effect may be executed such that a fade-in/fade-out effect is used upon start and end of the reproduction of the sound effect. This can prevent a noise (for example, noise of a sound “putsu”) upon start of reproduction from being generated.
In addition, for a drawing color used upon drawing, only one color may be used, or a plurality of colors may be used at the same time. In an exemplar case where a plurality of colors are used at the same time, an edged line (whose edge has a color different from a color of part of the edged line other than the edge) may be used if the “pen” is used as the drawing tool, for example. In addition, if the “spray” is used, dots forming a spray line may have colors different from each other. For example, when “gray” and “black” are designated as the drawing colors, the spray line which is formed by both a gray dot and a black dot may be drawn (see
In addition, in the case where a plurality of drawing colors are used, when the above-described blow-off processing is executed and dots having different colors overlap with each other as a result of movements of the dots, the dots may be displayed as one dot having a color obtained by mixing the colors thereof with each other. Thus, when the spray line is drawn by using multiple drawing colors, the spray line which includes various colors in a mixed manner and cannot be predicted by the player can be displayed through the above-described blow-off processing, whereby a new way of enjoyment using the blow-off processing can be provided to the player.
In addition, in the spray eraser processing, a translucence effect may be used for erasing the spray line or the like. That is, instead of erasing the spray line or the like at the moment when the player blows breath, processing in which the spray line or the like is gradually diluted, and finally, cleanly erased may be executed.
In addition to other than the drawing processing using the “spray line” formed by multiple dots, the drawing processing using the “uniform line” may also be executed only when a microphone input sound is being inputted. Further, in this case, the pen pressure may be changed in accordance with the magnitude of the microphone input sound. For example, when the magnitude of the microphone input sound is small (when the strength at which the player blows breath is weak), a “faded line” or a “line of a dilute color” may be drawn, and when the magnitude of the microphone input sound is large (when the strength at which the player blows breath is strong), a “clear line” or a “line of a deep color” may be drawn. In addition, drawing of the “uniform line” with the “pen” may be executed without a microphone input sound, and the thickness of the line may be changed in real time by a breath being blown on the touch panel 13 while the “uniform line” is being drawn with the “pen”.
In addition, upon drawing in the spray processing, when the volume of a microphone input sound becomes smaller than a predetermined threshold value (that is, when the player stops blowing) while a touch input continues to be detected, drawing of the spray line may continue during about 1 to 2 seconds, for example, instead of immediately stopping drawing of the spray line. That is, processing in which even if the player stops blowing breath, rotation of the propeller continues during a short time and the spray line is drawn during the short time, may be executed.
In addition, it is understood that the image created in the above embodiment, on which graffiti has been drawn, may be saved. In this case, only data corresponding to the above-described handwriting layer 106 (see
In addition, in the above embodiment, the case where graffiti is drawn on an image shot by the outer camera is described as an example. However, the present invention is not limited thereto, and the present invention is applicable to general painting software which does not use the outer camera 25, that is, which does not allow graffiti to be drawn on a shot image or the like.
In addition, in the present embodiment, a hand-held game apparatus having two display devices is described as an example. However, the present invention is applicable to a hand-held terminal which has a single display device and has a touch panel on a screen of the display device. In addition, in the present embodiment, a touch panel is used as an example of a device which detects a designated position, in an operation area, designated by the player. However, a so-called pointing device which allows the player to designate a position in a predetermined area may be used as the device. For example, there may be used, as the device, a mouse which is capable of designating any position on a screen, or a tablet which designates any position on an operation surface having no display screen. Alternatively, there may be used, as the device, a pointing device in which: a device including shooting means for remotely shooting, for example, a display screen, or a marker positioned in the periphery of the display screen obtains a shot image by pointing toward the display screen; and from the position of the display screen or the marker on the shot image, coordinate, on the display screen corresponding to the position on the display screen at which the device has pointed, is calculated.
While the invention has been described in detail, the foregoing description is in all aspects illustrative and not restrictive. It is understood that numerous other modifications and variations can be devised without departing from the scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2009-000443 | Jan 2009 | JP | national |