JP2020052620A - Program, processing device and processing method - Google Patents
Program, processing device and processing method Download PDFInfo
- Publication number
- JP2020052620A JP2020052620A JP2018180101A JP2018180101A JP2020052620A JP 2020052620 A JP2020052620 A JP 2020052620A JP 2018180101 A JP2018180101 A JP 2018180101A JP 2018180101 A JP2018180101 A JP 2018180101A JP 2020052620 A JP2020052620 A JP 2020052620A
- Authority
- JP
- Japan
- Prior art keywords
- touch
- coordinates
- continuation
- reference position
- management unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/21—Input arrangements for video game devices characterised by their sensors, purposes or types
- A63F13/214—Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
- A63F13/2145—Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
- A63F13/426—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle involving on-screen location information, e.g. screen coordinates of an area at which the player is aiming with a light gun
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Abstract
Description
本発明は、プログラム、処理装置及び処理方法に関する。 The present invention relates to a program, a processing device, and a processing method.
特許文献1に、基準位置とタッチ位置とに基づき決定した方向にキャラクターを移動させるゲーム制御方法が開示されている。 Patent Literature 1 discloses a game control method for moving a character in a direction determined based on a reference position and a touch position.
基準位置とタッチ位置とに基づき決定した方向にキャラクターを移動させるゲーム制御方法の場合、ある方向に移動中のキャラクターの移動方向を変更させる場合に行うべきタッチ操作を、直感的に把握し難いという問題がある。図1を用いて説明する。 In the case of a game control method in which a character is moved in a direction determined based on a reference position and a touch position, it is difficult to intuitively grasp a touch operation to be performed when the moving direction of a character moving in a certain direction is changed. There's a problem. This will be described with reference to FIG.
図1の点Sが基準位置であり、点Nが現在のタッチ位置である。点Nにおけるタッチが継続され、キャラクターCは点Sから点Nに向かう方向(図中上方向)への移動を継続している。当該移動を継続中にキャラクターCの移動方向を図中右方向に切り替える場合には、タッチ位置を基準点Sの右方向、具体的には線L1上の任意の位置例えば点M1に移動させる必要がある。すなわち、図中上方向に進行中のキャラクターCの移動方向を図中右方向に変更するためには、タッチ位置を右斜め下方向(例:点Nから点M1に向かう方向)にスライドさせる必要がある。このように、キャラクターCの変更後の移動方向と、タッチ位置のスライド方向とが一致しないため、実行すべきタッチ操作を直感的に把握し難くなる。 Point S in FIG. 1 is the reference position, and point N is the current touch position. The touch at the point N is continued, and the character C continues to move in the direction from the point S to the point N (upward in the figure). Moving the mobile when switching the moving direction of a character C in FIG right in the ongoing touch position rightward of the reference point S, at any position, for example the point M 1 of the concrete on the line L 1 is Need to be done. That is, to change to the right in the drawing direction the moving direction of the character C in progress upward in the drawing, the lower right direction touched position: it is made to slide (eg direction from point N to point M 1) There is a need. As described above, since the moving direction after the change of the character C does not match the sliding direction of the touch position, it is difficult to intuitively grasp the touch operation to be performed.
本発明は、実行すべきタッチ操作を直感的に把握できるようにすることを課題とする。 An object of the present invention is to enable intuitive grasp of a touch operation to be performed.
本発明によれば、
コンピュータを、
タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得するタッチ情報取得部、
前記座標平面上に設定された基準位置の座標を管理する基準位置管理部、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させるオブジェクト制御部、及び、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理する基準タッチ継続位置管理部、
として機能させ、
前記基準位置管理部は、前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新するプログラムが提供される。
According to the present invention,
Computer
Touch information acquisition unit that acquires presence / absence of a touch on the touch panel, and touch information indicating coordinates on a coordinate plane corresponding to a touch position on the touch panel at predetermined time intervals,
A reference position management unit that manages the coordinates of the reference position set on the coordinate plane,
An object control unit that moves an object displayed on a screen in a movement direction determined based on the touch position indicated by the touch information and the reference position, and
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, a reference touch continuation that manages coordinates of a reference touch continuation position that is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time. Location management,
Function as
A program is provided, wherein the reference position management unit updates the coordinates of the reference position to the coordinates of the reference touch continuation position when the touch position, the reference touch continuation position, and the reference position satisfy a reference position change condition. You.
また、本発明によれば、
コンピュータが、
タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得し、
前記座標平面上に設定された基準位置の座標を管理し、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させ、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理し、
前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新する処理方法が提供される。
According to the present invention,
Computer
The presence or absence of a touch on the touch panel, and acquires touch information indicating coordinates on a coordinate plane corresponding to the touch position on the touch panel at predetermined time intervals,
Manage the coordinates of the reference position set on the coordinate plane,
The touch position indicated by the touch information, in the moving direction determined based on the reference position, move the object displayed on the screen,
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, manages the coordinates of a reference touch continuation position, which is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time,
When the touch position, the reference touch continuation position, and the reference position satisfy a reference position change condition, a processing method for updating the coordinates of the reference position to the coordinates of the reference touch continuation position is provided.
また、本発明によれば、
タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得するタッチ情報取得部、
前記座標平面上に設定された基準位置の座標を管理する基準位置管理部、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させるオブジェクト制御部、及び、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理する基準タッチ継続位置管理部、
を有し、
前記基準位置管理部は、前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新する処理装置が提供される。
According to the present invention,
Touch information acquisition unit that acquires presence / absence of a touch on the touch panel, and touch information indicating coordinates on a coordinate plane corresponding to a touch position on the touch panel at predetermined time intervals,
A reference position management unit that manages the coordinates of the reference position set on the coordinate plane,
An object control unit that moves an object displayed on a screen in a movement direction determined based on the touch position indicated by the touch information and the reference position, and
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, a reference touch continuation that manages coordinates of a reference touch continuation position that is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time. Location management,
Has,
A processing device is provided in which the reference position management unit updates the coordinates of the reference position to the coordinates of the reference touch continuation position when the touch position, the reference touch continuation position, and the reference position satisfy a reference position change condition. Is done.
本発明によれば、実行すべきタッチ操作を直感的に把握できるようになる。 According to the present invention, it is possible to intuitively grasp a touch operation to be performed.
<<第1の実施形態>>
<概要>
本実施形態の処理装置は、基準位置とタッチ位置とに基づき決定した方向にキャラクターを移動させるゲーム制御を行う。そして、本実施形態の処理装置は、ある方向に移動中のキャラクターの移動方向を変更させる場合に行うべきタッチ操作が直感的に把握しやすくなる機能を備える。図1を用いて処理装置の機能を簡単に説明する。
<< First Embodiment >>
<Overview>
The processing device of the present embodiment performs game control for moving a character in a direction determined based on a reference position and a touch position. The processing device of the present embodiment has a function that makes it easy to intuitively grasp a touch operation to be performed when the moving direction of the character moving in a certain direction is changed. The function of the processing apparatus will be briefly described with reference to FIG.
図1の点Sが基準位置であり、点Nが現在のタッチ位置である。この場合、処理装置は、キャラクターCを点Sから点Nに向かう方向(図中上方向)に移動させる。なお、キャラクターCの表示位置を図中上方向に移動させてもよいし、キャラクターCの表示位置を固定したまま背景をスクロールして、キャラクターCが図中上方向に移動しているように見せてもよい。 Point S in FIG. 1 is the reference position, and point N is the current touch position. In this case, the processing device moves the character C in a direction from the point S to the point N (upward in the figure). The display position of the character C may be moved upward in the figure, or the background may be scrolled while the display position of the character C is fixed, so that the character C appears to be moving upward in the figure. You may.
そして、処理装置は、基準位置変更条件を満たすタッチ操作を受付けると、当該タッチ操作に応じて基準位置を変更する。例えば、点Nにおけるタッチが継続され、キャラクターCが点Sから点Nに向かう方向(図中上方向)への移動を継続している時に、タッチ位置を点Nから点M2にスライドさせるタッチ操作を受付けたとする。そして、当該タッチ操作が基準位置変更条件を満たしたとする。この場合、処理装置は、当該タッチ操作に応じて基準位置を点Sから点Nに変更する。そして、処理装置は、新たな基準位置である点Nから現在のタッチ位置である点M2に向かう方向にキャラクターCを移動させる。このような処理装置の機能によれば、ある方向に移動中のキャラクターCの変更後の移動方向と、タッチ位置のスライド方向とが一致するため(いずれも、点Nから点M2に向かう方向)、実行すべきタッチ操作を直感的に把握しやすくなる。 Then, when receiving a touch operation satisfying the reference position change condition, the processing device changes the reference position according to the touch operation. For example, the continuous touch at point N, when the character C continues to move from the point S in the direction toward the point N (upward direction in the figure), a touch sliding the touch position from the point N to point M 2 Assume that the operation has been accepted. Then, it is assumed that the touch operation satisfies the reference position change condition. In this case, the processing device changes the reference position from the point S to the point N according to the touch operation. The processor moves the character C in the direction from the point N is a new reference position M 2 that it is the current touched position. According to such a function of the processing apparatus, the moving direction of the changed character C in moved in a certain direction, both because (to the sliding direction of the touch position coincide, the direction from the point N to point M 2 ), It is easy to intuitively grasp the touch operation to be performed.
<構成>
次に、本実施形態の処理装置の構成を詳細に説明する。
<Structure>
Next, the configuration of the processing apparatus of the present embodiment will be described in detail.
まず、処理装置のハードウエア構成の一例について説明する。処理装置は、タッチパネルを備えたコンピュータ装置であり、例えばスマートフォン、タブレット、携帯ゲーム機、パソコンなどである。 First, an example of a hardware configuration of the processing device will be described. The processing device is a computer device having a touch panel, such as a smartphone, a tablet, a portable game machine, and a personal computer.
図2は、処理装置のハードウエア構成を例示するブロック図である。図2に示すように、処理装置は、プロセッサ1A、メモリ2A、入出力インターフェイス3A、周辺回路4A、バス5A、タッチパネル6A、通信部7Aなどを有する。周辺回路4Aには、様々なモジュールが含まれる。なお、周辺回路4Aを有さなくてもよい。
FIG. 2 is a block diagram illustrating a hardware configuration of the processing device. As shown in FIG. 2, the processing device includes a
バス5Aは、プロセッサ1A、メモリ2A、周辺回路4A及び入出力I/F(インターフェイス)3Aが相互にデータを送受信するためのデータ伝送路である。プロセッサ1Aは、例えばCPU(Central Processing Unit)やGPU(Graphics Processing Unit)などの演算処理装置である。メモリ2Aは、例えばRAM(Random Access Memory)やROM(Read Only Memory)などのメモリである。入出力I/F3Aには、入力装置(例:タッチパネル6A、マイク、物理ボタンなど)や、出力装置(例:タッチパネル6A、スピーカなど)や、インターネットなどのネットワークに接続するための通信部7Aなどが接続される。プロセッサ1Aは、各モジュールに指令を出し、それらの演算結果をもとに演算を行うことができる。
The
タッチパネル6Aは、画像を表示するディスプレイと、位置入力センサとにより構成される。タッチパネル6Aに対してタッチ操作がなされると、位置入力センサはタッチされた位置に基づいた信号(検出結果)を出力する。タッチパネル6Aから出力された信号は、入出力I/F3Aを介してプロセッサ1Aに入力される。プロセッサ1Aは、タッチパネル6Aから出力された信号を任意の座標平面上の座標に変換するプログラムを実行し、タッチパネル6Aから出力された信号を上記座標平面上の座標に変換する。上記座標平面は、例えば、タッチパネル6Aのタッチされる面上の任意の点を原点とし、当該面と平行な任意の方向にX軸及びY軸を定めた2次元座標系である。位置入力センサは、静電容量式又は抵抗膜式などが例示される。
The
ここで、タッチ操作とは、物体(例:指)を位置入力センサに接触又は近接させて物体の接触又は近接を位置入力センサに検出させたり、物体を位置入力センサに接触又は近接させた状態を維持したまま物体を位置入力センサに接触又は近接させる位置を変更したり、物体を位置入力センサから離して位置入力センサによる検出を解除したりする操作をいう。以降、タッチ操作により検出された位置に基づき特定された座標を「タッチ座標」といい、タッチ座標で特定される位置を「タッチ位置」という。 Here, the touch operation refers to a state in which an object (eg, a finger) is brought into contact with or in proximity to a position input sensor to cause the position input sensor to detect contact or proximity of the object, or a state in which the object is brought into contact with or approaching the position input sensor. This refers to an operation of changing the position at which the object is brought into contact with or approaching the position input sensor while maintaining the position, or separating the object from the position input sensor to cancel the detection by the position input sensor. Hereinafter, the coordinates specified based on the position detected by the touch operation are referred to as “touch coordinates”, and the position specified by the touch coordinates is referred to as “touch position”.
次に、処理装置の機能構成を説明する。図3に、処理装置10の機能ブロック図の一例を示す。図示するように、処理装置10は、タッチ情報取得部11と、基準位置管理部12と、オブジェクト制御部13と、基準タッチ継続位置管理部14と、角度条件判定部15とを有する。
Next, the functional configuration of the processing device will be described. FIG. 3 shows an example of a functional block diagram of the
処理装置が備えるこれらの機能部は、プロセッサ1A、メモリ2A、入出力I/F3A、入出力I/F3Aに接続されたモジュール(タッチパネル6A、通信部7Aなど)などのハードウエアと、内蔵メモリ(ROM、ハードディスクなど)に格納され、RAMなどにロードされるプログラム(ソフトウエア)との任意の組合せによって実現される。そして、その実現方法、装置にはいろいろな変形例があることは、当業者には理解されるところである。なお、内蔵メモリに格納されるプログラムは、あらかじめ処理装置の出荷段階から格納されているプログラムのほか、インターネット上のサーバなどからダウンロードされたプログラムなども含む。これらの前提は、以下の実施形態も同様である。
These functional units included in the processing device include a
以下、各機能部を詳細に説明する。 Hereinafter, each functional unit will be described in detail.
タッチ情報取得部11は、タッチパネル6Aから位置入力センサの検出結果を取得し、タッチパネル6Aに対するタッチの有無、及び、タッチパネル6A上のタッチ位置に対応する座標平面上の座標(タッチ座標)を示すタッチ情報を所定時間毎に生成する。
The touch information acquisition unit 11 acquires a detection result of the position input sensor from the
具体的には、タッチ情報取得部11は、所定時間毎に、タッチパネル6Aに対するタッチ操作の有無を検出し、タッチ操作があった場合にはそのタッチ位置(タッチ座標)をさらに検出する。所定時間は設計的事項である。例えば、タッチ情報取得部11は、フレーム毎に(1フレーム毎に)上記検出を行い、タッチ情報を生成してもよいし、数フレーム毎に上記検出を行い、タッチ情報を生成してもよい。なお、フレームレートが60fpsなら1フレームは1/60秒に相当し、30fpsなら1フレームは1/30秒に相当する。
Specifically, the touch information acquiring unit 11 detects the presence or absence of a touch operation on the
図4に、タッチ情報取得部11が取得したタッチ情報の一例を模式的に示す。図示する例では、タッチの有無を示す情報及びタッチ座標を示す情報を含むタッチ情報が時系列順(取得順)に並んでいる。なお、図4とは異なる例として、タッチ情報はタッチの有無を示す情報を含まず、タッチ座標を示す情報のみを含んでもよい。この場合、タッチ座標を示す情報に基づき、タッチの有無を判定することができる。すなわち、タッチ座標を示す情報が、タッチの有無及びタッチ座標の両方を示す。 FIG. 4 schematically illustrates an example of the touch information acquired by the touch information acquiring unit 11. In the illustrated example, touch information including information indicating presence / absence of a touch and information indicating a touch coordinate is arranged in chronological order (acquisition order). As an example different from FIG. 4, the touch information may not include the information indicating the presence or absence of the touch, but may include only the information indicating the touch coordinates. In this case, the presence or absence of a touch can be determined based on the information indicating the touch coordinates. That is, the information indicating the touch coordinates indicates both the presence or absence of a touch and the touch coordinates.
図3に戻り、基準タッチ継続位置管理部14は、タッチパネル6Aに対するタッチ有を示すタッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした座標平面上の位置である基準タッチ継続位置の座標を管理する。本実施形態において「管理」は登録、更新及びクリア(消去)を意味する。
Returning to FIG. 3, while acquisition of touch information indicating that there is a touch on the touch panel 6 </ b> A continues, the reference touch continuation
設定条件は、「タッチ継続時間が参照時間を超えること」である。基準タッチ継続位置管理部14は、基準タッチ継続位置の座標を更新する場合に、新たに基準タッチ継続位置として登録される座標においてタッチが継続した時間(タッチ継続時間)を参照時間として登録する。そして、基準タッチ継続位置管理部14は、タッチ継続時間が参照時間を超えた座標を新たに検出すると、基準タッチ継続位置の座標を新たに検出した座標に更新するとともに、参照時間を新たに検出した座標においてタッチが継続した時間(タッチ継続時間)に更新する。
The setting condition is that the touch duration time exceeds the reference time. When updating the coordinates of the reference touch continuation position, the reference touch continuation
また、基準タッチ継続位置管理部14は、タッチパネル6Aに対するタッチ無を示すタッチ情報の取得に応じて、基準タッチ継続位置の座標及び参照時間をクリアする。
In addition, the reference touch continuation
ここで、図5のフローチャートを用いて、基準タッチ継続位置管理部14による処理の流れの一例を説明する。基準タッチ継続位置管理部14は、例えばタッチ情報取得部11により新たなタッチ情報が取得される毎に図5のフローを実行することができる。
Here, an example of the flow of processing by the reference touch continuation
なお、基準タッチ継続位置管理部14は、図6に示す基準タッチ継続位置情報と継続中タッチ位置情報とを管理するものとする。基準タッチ継続位置情報は、基準タッチ継続位置の座標と上述した参照時間Tkとを含む。継続中タッチ位置情報は、その時点でタッチが継続されている位置(継続中タッチ位置)の座標とその位置でタッチが継続されている継続時間Trとを含む。なお、参照時間Tk及び継続時間Trは、分、秒などの時間の単位で示されてもよいし、フレーム数で示されてもよい。
The reference touch continuation
図5に戻り、タッチ情報取得部11が新たなタッチ情報を取得すると、基準タッチ継続位置管理部14は、そのタッチ情報がタッチパネル6Aに対するタッチ有を示すタッチ情報か否かを判定する(S401)。
Returning to FIG. 5, when the touch information acquisition unit 11 acquires new touch information, the reference touch continuation
タッチパネル6Aに対するタッチ有を示すタッチ情報である場合(S401のYes)、基準タッチ継続位置管理部14は、その時点で基準タッチ継続位置の座標、及び、継続中タッチ位置の座標が登録されているか判定する(S402)。
If the touch information indicates that there is a touch on the
基準タッチ継続位置の座標、及び、継続中タッチ位置の座標が登録されていない場合(S402のNo)、基準タッチ継続位置管理部14は、タッチ情報で示されるタッチ位置の座標を、基準タッチ継続位置の座標、及び、継続中タッチ位置の座標として登録する(S408)。また、基準タッチ継続位置管理部14は、参照時間Tk及び継続時間Trとして1フレーム又は1フレーム分の時間を登録する。そして、基準タッチ継続位置管理部14は処理を終了する。
If the coordinates of the reference touch continuation position and the coordinates of the continuation touch position are not registered (No in S402), the reference touch continuation
一方、基準タッチ継続位置の座標、及び、継続中タッチ位置の座標が登録されている場合(S402のYes)、基準タッチ継続位置管理部14は、継続中タッチ位置の座標と、タッチ情報で示されるタッチ位置の座標とを比較し、タッチ位置が継続しているか否かを判定する(S403)。例えば、基準タッチ継続位置管理部14は、継続中タッチ位置の座標とタッチ情報で示されるタッチ位置の座標とが一致する場合、又は、継続中タッチ位置の座標とタッチ情報で示されるタッチ位置の座標との間の距離が基準値以下である場合、タッチ位置が継続していると判定することができる。
On the other hand, when the coordinates of the reference touch continuation position and the coordinates of the continuation touch position are registered (Yes in S402), the reference touch continuation
タッチ位置が継続していると判定した場合(S403のYes)、基準タッチ継続位置管理部14は、継続時間Trを更新する(S404)。例えば、基準タッチ継続位置管理部14は、継続時間Trとして登録されているフレーム数に1を加算したり、継続時間Trとして登録されている時間に1フレーム分の時間を加算したりする。
When it is determined that the touch position is continued (Yes in S403), the reference touch continued
次いで、基準タッチ継続位置管理部14は、継続時間Trが参照時間Tkより大きいか判定する(S405)。継続時間Trが参照時間Tkより大きい場合(S405のYes)、基準タッチ継続位置管理部14は、基準タッチ継続位置の座標を継続中タッチ位置の座標に更新する(S406)。また、基準タッチ継続位置管理部14は、参照時間Tkを継続時間Trに更新する。そして、基準タッチ継続位置管理部14は処理を終了する。
Then, the reference touch duration
一方、継続時間Trが参照時間Tkより大きくない場合(S405のNo)、基準タッチ継続位置管理部14は処理を終了する。
On the other hand, (No in S405) when the duration time T r is not greater than the reference time T k, the reference touch duration
また、タッチ位置が継続していないと判定した場合(S403のNo)、基準タッチ継続位置管理部14は、継続中タッチ位置の座標を、タッチ情報で示されるタッチ位置の座標に更新する(S407)。また、基準タッチ継続位置管理部14は、継続時間Trを、1フレーム又は1フレーム分の時間に更新する。そして、基準タッチ継続位置管理部14は処理を終了する。
If it is determined that the touch position is not continued (No in S403), the reference touch continuation
また、タッチパネル6Aに対するタッチ無を示すタッチ情報である場合(S401のNo)、基準タッチ継続位置管理部14は、その時点で基準タッチ継続位置の座標、及び、継続中タッチ位置の座標が登録されているか判定する(S409)。基準タッチ継続位置の座標、及び、継続中タッチ位置の座標が登録されていない場合(S409のNo)、基準タッチ継続位置管理部14は処理を終了する。
If the touch information indicates no touch on the
一方、基準タッチ継続位置の座標、及び、継続中タッチ位置の座標が登録されている場合(S409のYes)、基準タッチ継続位置管理部14は、基準タッチ継続位置の座標、継続中タッチ位置の座標、参照時間Tk及び継続時間Trをクリアする(S410)。そして、基準タッチ継続位置管理部14は処理を終了する。
On the other hand, when the coordinates of the reference touch continuation position and the coordinates of the continuation touch position are registered (Yes in S409), the reference touch continuation
図3に戻り、基準位置管理部12は、座標平面上に設定された基準位置の座標を管理する。
Referring back to FIG. 3, the reference
例えば、基準位置管理部12は、タッチパネル6Aに対するタッチ無を示すタッチ情報の直後に取得されたタッチパネル6Aに対するタッチ有を示すタッチ情報で示されるタッチ位置の座標、又は、当該座標に基づき決定した他の座標(例:タッチ位置の周辺の任意の座標など)を、基準位置の座標として登録することができる。すなわち、基準位置管理部12は、タッチパネル6Aに対するタッチがなされていない状態から初めてタッチされた位置又はそのタッチ位置に基づき決定した位置を、基準位置として登録することができる。
For example, the reference
そして、基準位置管理部12は、タッチパネル6Aに対するタッチ無を示すタッチ情報の取得に応じて、基準位置の座標をクリアすることができる。すなわち、基準位置管理部12は、タッチパネル6Aに対するタッチがなされていない状態になると、その時点で登録されていた基準位置の座標をクリアし、基準位置が登録されていない状態にすることができる。
Then, the reference
また、基準位置管理部12は、タッチ情報で示されるタッチ位置、基準タッチ継続位置及び基準位置が基準位置変更条件を満たす場合、基準位置の座標を、基準タッチ継続位置の座標に更新する。本実施形態の基準位置変更条件は、タッチ情報で示されるタッチ位置、基準タッチ継続位置及び基準位置が角度条件を満たすこと、具体的には、タッチ情報で示されるタッチ位置と基準タッチ継続位置と基準位置とで定まる角度が角度条件を満たすことである。タッチ情報で示されるタッチ位置、基準タッチ継続位置及び基準位置が角度条件を満たすか否かの判定は、後述する角度条件判定部15が行う。
In addition, when the touch position, the reference touch continuation position, and the reference position indicated by the touch information satisfy the reference position change condition, the reference
変形例として、基準位置管理部12は、予め記憶されていた初期基準位置の座標を基準位置の座標として登録してもよい。そして、基準位置管理部12は、上記角度条件を満たすタッチ操作に応じて、基準位置の座標を更新してもよい。
As a modification, the reference
ここで、図7のフローチャートを用いて、基準位置管理部12よる処理の流れの一例を説明する。基準位置管理部12は、例えばタッチ情報取得部11により新たなタッチ情報が取得される毎に図7のフローを実行することができる。
Here, an example of the flow of processing by the reference
なお、基準位置管理部12は、図6に示す基準位置情報を管理するものとする。基準位置情報は、基準位置の座標を含む。
The reference
図7に戻り、タッチ情報取得部11が新たなタッチ情報を取得すると、基準位置管理部12は、そのタッチ情報がタッチパネル6Aに対するタッチ有を示すタッチ情報か否かを判定する(S201)。
Returning to FIG. 7, when the touch information acquisition unit 11 acquires new touch information, the reference
タッチパネル6Aに対するタッチ有を示すタッチ情報である場合(S201のYes)、基準位置管理部12は、その時点で基準位置の座標が登録されているか判定する(S202)。
If the touch information indicates that there is a touch on the
基準位置の座標が登録されていない場合(S202のNo)、基準位置管理部12は、タッチ情報で示されるタッチ位置の座標を、基準位置の座標として登録し(S205)、処理を終了する。
When the coordinates of the reference position are not registered (No in S202), the reference
一方、基準位置の座標が登録されている場合(S202のYes)、基準位置管理部12は、角度条件判定部15の判定結果が「角度条件を満たすか否か」を判定する(S203)。判定結果が角度条件を満たすである場合(S203のYes)、基準位置管理部12は、基準位置の座標を、基準タッチ継続位置の座標に更新し(S204)、処理を終了する。判定結果が角度条件を満たさないである場合(S203のNo)、基準位置管理部12は処理を終了する。
On the other hand, when the coordinates of the reference position are registered (Yes in S202), the reference
また、タッチパネル6Aに対するタッチ無を示すタッチ情報である場合(S201のNos)、基準位置管理部12は、その時点で基準位置の座標が登録されているか判定する(S206)。基準位置の座標が登録されていない場合(S206のNo)、基準位置管理部12は処理を終了する。
If the touch information indicates no touch on the
一方、基準位置の座標が登録されている場合(S206のYes)、基準位置管理部12は基準位置の座標をクリアし(S207)、処理を終了する。
On the other hand, when the coordinates of the reference position are registered (Yes in S206), the reference
図3に戻り、角度条件判定部15は、タッチ情報で示されるタッチ位置と、基準タッチ継続位置と、基準位置とで定まる角度が角度条件を満たすか判定する。図8を用いて、当該判定について説明する。図示する点Sが基準位置であり、点Kが基準タッチ継続位置であり、点Nがタッチ情報で示される現在のタッチ位置である。
Referring back to FIG. 3, the angle
現在のタッチ位置(点N)と基準タッチ継続位置(点K)と基準位置(点S)とで定まる角度は、∠点K点N点Sの角度、∠点K点S点Nの角度、∠点N点K点Sの角度等が例示される。角度条件判定部15は、例えば、図示する∠点K点N点Sの角度が所定の角度条件を満たすか判定してもよい。すなわち、角度条件判定部15は、現在のタッチ位置(点N)と基準タッチ継続位置(点K)とを結ぶ直線と、現在のタッチ位置(点N)と基準位置(点S)とを結ぶ直線とのなす角θが角度条件を満たすか判定してもよい。角度条件は、「θ1度以上、θ2度以下」のように角度で定めてもよい。その他、角度条件は、三角比(正弦、余弦等)の値で「α1以上α2以下」のように定めてもよい。
The angles determined by the current touch position (point N), the reference touch continuation position (point K), and the reference position (point S) are: ∠angle of point K point N point S, ∠angle of point K point S point N, The angle of the point N point K point S and the like are exemplified. For example, the angle
図3に戻り、オブジェクト制御部13は、タッチ情報で示されるタッチ位置の座標と、基準位置の座標とに基づき決定した移動方向に、画面表示されたオブジェクト(例:キャラクター)を移動させる。オブジェクト制御部13は、基準位置の座標を始点とし、タッチ情報で示されるタッチ位置の座標を終点とするベクトル(2点間のベクトル)を算出する。そして、オブジェクト制御部13は、そのベクトルが示す方向を、オブジェクトを移動させる方向として決定する。また、オブジェクト制御部13は、そのベクトルが示す大きさに応じて、オブジェクトを移動させる速さを決定することができる。
Returning to FIG. 3, the
ここで、図9のフローチャートを用いて、オブジェクト制御部13による処理の流れの一例を説明する。オブジェクト制御部13は、例えばタッチ情報取得部11により新たなタッチ情報が取得される毎に図9のフローを実行することができる。
Here, an example of the flow of processing by the
タッチ情報取得部11が新たなタッチ情報を取得すると、オブジェクト制御部13は、そのタッチ情報がタッチパネル6Aに対するタッチ有を示すタッチ情報か否かを判定する(S301)。タッチパネル6Aに対するタッチ無を示すタッチ情報である場合(S301のNo)、オブジェクト制御部13はオブジェクトを移動させないまま処理を終了する。
When the touch information acquisition unit 11 acquires new touch information, the
一方、タッチパネル6Aに対するタッチ有を示すタッチ情報である場合(S301のYes)オブジェクト制御部13は、基準位置の座標を始点とし、タッチ情報で示されるタッチ位置の座標を終点とするベクトルを算出する(S302)。そして、オブジェクト制御部13は、当該ベクトルが示す方向を、オブジェクトを移動させる方向として決定する(S303)。また、オブジェクト制御部13は、そのベクトルが示す大きさに応じて、オブジェクトを移動させる速さを決定する。
On the other hand, if the touch information indicates that there is a touch on the
次いで、オブジェクト制御部13は、決定した方向に決定した速さでオブジェクトを移動させるように、画面表示を制御する(S304)。
Next, the
なお、変形例として、オブジェクト制御部13は、基準位置の座標を始点とし、タッチ情報で示されるタッチ位置の座標を終点とする方向を算出し、算出した方向を、オブジェクトを移動させる方向として決定してもよい、すなわち、上述した例のようにベクトルを算出しなくてもよい。この場合のオブジェクトの移動速度は、予め定められた所定の速度で固定(常に一定)であってもよい。その他、「移動開始直後の数フレームの間は第1の速度を移動速度とし、移動開始から数フレーム経過後は第2の速度を移動速度とする」のように、オブジェクトの移動速度を移動開始タイミングからの経過時間に応じて変化させてもよい。
As a modification, the
次に、図10のフローチャートを用いて、処理装置10の処理の流れの一例を説明する。処理装置10は、所定時間毎に、例えば1フレーム毎に、新たなタッチ情報を取得する。新たなタッチ情報を取得すると(S100のYes)、処理装置10は、基準位置管理処理を実行する(S200)。基準位置管理処理は基準位置管理部12により実行される処理であり、例えば図7のフローチャートで示される。その後、処理装置10は、オブジェクト制御処理を実行する(S300)。オブジェクト制御処理はオブジェクト制御部13により実行される処理であり、例えば図9のフローチャートで示される。その後、処理装置10は、基準タッチ継続位置管理処理を実行する(S400)。基準タッチ継続位置管理処理は基準タッチ継続位置管理部14により実行される処理であり、例えば図5のフローチャートで示される。なお、S300のオブジェクト制御処理とS400の基準タッチ継続位置管理処理の処理順は逆であってもよい。
Next, an example of a processing flow of the
<作用効果>
以上説明した処理装置10は、角度条件を満たすタッチ操作を受付けると、基準位置の座標を基準タッチ継続位置の座標に更新することができる。例えば、図1に示すように点Nにおけるタッチが継続され、キャラクターCが基準位置である点Sから点Nに向かう方向(図中上方向)への移動を継続している時に、タッチ位置を点Nから点M2にスライドさせるタッチ操作(角度条件を満たすタッチ操作)を受付けると、処理装置10は、基準位置を点Sから点Nに変更する。そして、処理装置10は、新たな基準位置である点Nから現在のタッチ位置である点M2に向かう方向にキャラクターCを移動させる。
<Effects>
Upon receiving a touch operation that satisfies the angle condition, the
このように、処理装置10によれば、第1の方向に移動中のキャラクターの移動方向を第2の方向に変更させる場合に実行すべきタッチ操作は、タッチ位置を第2の方向にスライドさせる操作となる。キャラクターの変更後の移動方向と、タッチ位置のスライド方向とが一致するため、実行すべきタッチ操作が直感的に把握しやすくなる。
As described above, according to the
また、基準タッチ継続位置の座標を利用する処理装置10によれば、次のような作用効果が得られる。
Further, according to the
まず、図11に示す状況を想定する。図11は、点Nにおけるタッチを一定時間継続し、点Sから点Nに向かう方向へのキャラクターCの移動を継続した後、キャラクターCの移動方向を図中右方向に変更するために、タッチ位置を図中右方向にスライドさせるタッチ操作を行った場面を示す。しかし、静の状態(点Nでのタッチを継続する状態)から動の状態(点Nから図中右方向にタッチ位置をスライドさせる状態)に急激に変わるタッチ操作のため、当該タッチ操作を滑らかに実行できず、本来は点Nから点M2にスライドさせたかったにも関わらず、点Nから点M2´にスライドした後に、点M2にスライドするという状況になったとする。 First, assume the situation shown in FIG. FIG. 11 shows that the touch at the point N is continued for a certain period of time, the movement of the character C in the direction from the point S to the point N is continued, and then the touch is performed to change the moving direction of the character C to the right in the figure. 7 shows a scene in which a touch operation of sliding a position to the right in the drawing is performed. However, since the touch operation suddenly changes from a still state (a state where the touch at the point N is continued to be touched) to a moving state (a state where the touch position is slid rightward from the point N), the touch operation is smoothly performed. can not be run in, originally despite wanted to slide from point N to point M 2, after you slide from point N to point M 2 ', and became a situation that slide to the point M 2.
このような状況で入力された点M2´は、プレイヤが意図せずタッチした位置であり、このような位置の座標を基準位置の座標として登録すると、キャラクターCの変更後の移動方向がプレイヤの意図しないものとなり易い。これに対し、安定的に長時間タッチされていた基準タッチ継続位置の座標(図11の場合、点Nの座標)を基準位置の座標とする処理装置10によれば、上述のようなタッチ操作のミスがあっても、キャラクターCの変更後の移動方向がプレイヤの意図したものとなり易い。
The point M 2 ′ input in such a situation is a position touched by the player unintentionally. If the coordinates of such a position are registered as the coordinates of the reference position, the moving direction of the character C after the change is changed by the player. Tends to be unintended. On the other hand, according to the
また、上述のような点M2´と点M2と基準位置(点S)とで定まる角度は、プレイヤが意図せずタッチした位置である点M2´を含むため、プレイヤの意図しない角度となり易い。これに対し、安定的に長時間タッチされていた基準タッチ継続位置(図11の場合、点N)と点M2と基準位置(点S)とで定まる角度は、プレイヤの意図した角度となり易い。 Further, since the angle defined by the point M 2 ′, the point M 2, and the reference position (point S) includes the point M 2 ′ which is the position where the player has unintentionally touched, the angle not intended by the player Easily. In contrast, stable reference touch duration position has been touched long (in the case of FIG. 11, the point N) angle determined out with the point M 2 and the reference position (point S) is likely to become the intended angle of the player .
このように、基準タッチ継続位置の座標を利用することで、プレイヤの意図通りの入力を受付け、プレイヤの意図通りの結果に導くことができる。 In this way, by using the coordinates of the reference touch continuation position, an input as intended by the player can be received, and a result as intended by the player can be obtained.
<<第2の実施形態>>
<概要>
本実施形態の処理装置10は、第1の実施形態で説明した角度条件に加えて、距離条件を満たすタッチ操作を受付けた場合に、基準位置の座標を基準タッチ継続位置の座標に更新する点で、第1の実施形態と異なる。以下、詳細に説明する。
<< Second Embodiment >>
<Overview>
The
<構成>
処理装置10のハードウエア構成の一例は、第1の実施形態と同様である。
<Structure>
An example of the hardware configuration of the
図12に、処理装置10の機能ブロック図の一例を示す。図示するように、処理装置10は、タッチ情報取得部11と、基準位置管理部12と、オブジェクト制御部13と、基準タッチ継続位置管理部14と、角度条件判定部15と、距離条件判定部16とを有する。タッチ情報取得部11、オブジェクト制御部13、基準タッチ継続位置管理部14及び角度条件判定部15の構成は、第1の実施形態と同様である。
FIG. 12 shows an example of a functional block diagram of the
距離条件判定部16は、第1のタッチ情報で示される第1のタッチ位置(現在のタッチ位置)と、第1のタッチ情報の直前に取得された第2のタッチ情報で示される第2のタッチ位置との間の距離(座標間の距離)が、距離条件を満たすか判定する。なお、距離条件判定部16は、第1のタッチ情報で示される第1のタッチ位置と、基準タッチ継続位置との間の距離が、距離条件を満たすか判定してもよい。距離条件は、「距離が基準値以上」である。
The distance
本実施形態の基準位置変更条件は、第1のタッチ位置、基準タッチ継続位置及び基準位置が角度条件を満たし、かつ、第1のタッチ位置と、第2のタッチ位置又は基準タッチ継続位置との間の距離が距離条件を満たすことである。基準位置管理部12は、第1のタッチ位置、基準タッチ継続位置及び基準位置がこのような基準位置変更条件を満たす場合、基準位置の座標を基準タッチ継続位置の座標に更新する。基準位置管理部12のその他の構成は、第1の実施形態と同様である。
The reference position change condition of the present embodiment is such that the first touch position, the reference touch continuation position, and the reference position satisfy the angle condition, and the first touch position and the second touch position or the reference touch continuation position The distance between them satisfies the distance condition. When the first touch position, the reference touch continuation position, and the reference position satisfy such a reference position change condition, the reference
ここで、図13のフローチャートを用いて、本実施形態の基準位置管理部12の処理の流れの一例を示す。図13のフローチャートは、第1の実施形態で説明した図7のフローチャートと比較して、S203の内容が異なる。すなわち、図7のフローチャートでは、S203において、基準位置管理部12は、タッチ情報で示されるタッチ位置と基準タッチ継続位置と基準位置とで定まる角度が角度条件を満たすと判定されたか否かを判定している。これに対し、図13のフローチャートでは、S203において、基準位置管理部12は、タッチ情報で示されるタッチ位置と基準タッチ継続位置と基準位置とで定まる角度が角度条件を満たすと判定され、かつ、タッチ情報で示されるタッチ位置と直前に取得されたタッチ情報で示されるタッチ位置との距離が距離条件を満たすと判定されたか否かを判定している。なお、「直前に取得されたタッチ情報で示されるタッチ位置」を「基準タッチ継続位置」に置き換えてもよい。
Here, an example of a processing flow of the reference
本実施形態の処理装置10の処理の流れの一例は、図10のフローチャートを用いて第1の実施形態で説明した処理装置10の処理の流れの一例と同様である。
An example of the processing flow of the
<作用効果>
以上説明した処理装置10によれば、第1の実施形態と同様な作用効果を実現できる。
<Effects>
According to the
ところで、タッチ位置を厳密に同じ位置で維持させるのは困難であるため、タッチ位置のわずかなずれは生じ得る。このため、例えば、図14に示すように点Sから点Nに向かう方向(図中上方向)へのキャラクターCの移動を継続させるために、点Nにおけるタッチを継続する場合においても、タッチ位置のずれが生じ得る。そして、ずれる前のタッチ位置とずれた後のタッチ位置とが第1の実施形態で説明した角度条件を満たし得る。 By the way, since it is difficult to maintain the touch positions exactly at the same position, a slight shift of the touch positions may occur. Therefore, for example, as shown in FIG. 14, in order to continue the movement of the character C from the point S toward the point N (upward in the figure), even when the touch at the point N is continued, Deviation may occur. Then, the touch position before the shift and the touch position after the shift can satisfy the angle condition described in the first embodiment.
このような、プレイヤの意図しないタッチ位置のずれに応じて基準位置を更新し、キャラクターの移動方向を大きく変更してしまうと、キャラクターCがプレイヤの意図しない動きを行ってしまう。距離条件の判定を加えた本実施形態の処理装置10によれば、このような問題を解消できる。
If the reference position is updated according to such a shift of the touch position not intended by the player and the moving direction of the character is largely changed, the character C moves unintended by the player. According to the
また、距離条件を加えることで、プレイヤは、キャラクターの移動方向をわずかにずらすタッチ操作と、キャラクターの移動方向を大きく変更するタッチ操作とを区別して行うことができる。 Further, by adding the distance condition, the player can perform a touch operation for slightly shifting the moving direction of the character and a touch operation for greatly changing the moving direction of the character.
例えば、図14に示すように点Nにおけるタッチを継続し、キャラクターCが基準位置である点Sから点Nに向かう方向(図中上方向)への移動を継続している時に、キャラクターCの移動方向をわずかにずらしたい場合には、図15に示すように、距離条件を満たさないようにタッチ位置を小さくスライドさせればよい(点N→点M2)。このタッチ操作が角度条件を満たしても、距離条件を満たさなければ、基準位置は点Sのままで維持される。このため、当該タッチ操作に応じて、キャラクターCの移動方向は、点Sから点Nに向かう方向から、点Sから点M2に向かう方向に微調整される。 For example, as shown in FIG. 14, when the touch at the point N is continued and the character C continues to move from the point S, which is the reference position, to the point N (upward in the figure), When it is desired to slightly shift the moving direction, as shown in FIG. 15, the touch position may be slid small so as not to satisfy the distance condition (point N → point M 2 ). Even if the touch operation satisfies the angle condition but does not satisfy the distance condition, the reference position is maintained as the point S. Therefore, in accordance with the touch operation, the movement direction of a character C, from the direction from the point S to the point N, it is finely adjusted in the direction from the point S to the point M 2.
一方、図14に示すように点Nにおけるタッチを継続し、キャラクターCが点Sから点Nに向かう方向(図中上方向)への移動を継続している時に、キャラクターの移動方向を大きく変更したい場合には、図16に示すように、距離条件を満たすようにタッチ位置を大きくスライドさせればよい(点N→点M2)。このタッチ操作が角度条件及び距離条件を満たせば、基準位置は点Sから点Nに更新される。このため、当該タッチ操作に応じて、キャラクターCの移動方向は、図14の点Sから点Nに向かう方向から、図16の点Sから点M2に向かう方向に大きく変更される。 On the other hand, when the touch at the point N is continued as shown in FIG. 14 and the character C continues to move in the direction from the point S to the point N (upward in the figure), the moving direction of the character is greatly changed. If it is desired to do so, as shown in FIG. 16, the touch position may be greatly slid so as to satisfy the distance condition (point N → point M 2 ). If the touch operation satisfies the angle condition and the distance condition, the reference position is updated from point S to point N. Therefore, in accordance with the touch operation, the movement direction of a character C, from the direction toward the point N from point S in FIG. 14 is greatly changed in the direction toward the point M 2 from point S in FIG. 16.
このように、本実施形態の処理装置10によれば、キャラクターの移動方向をわずかにずらすタッチ操作と、キャラクターの移動方向を大きく変更するタッチ操作とを区別して行うことが可能となる。
As described above, according to the
<変形例>
処理装置10は、距離条件に代えて、速度条件を採用してもよい。すなわち、距離条件判定部16は、第1のタッチ情報で示される第1のタッチ位置と、第1のタッチ情報の直前に取得された第2のタッチ情報で示される第2のタッチ位置との間におけるタッチ位置をスライドさせる速度が速度条件を満たすか判定してもよい。そして、基準位置管理部12は、第1のタッチ位置と第2のタッチ位置との間におけるタッチ位置をスライドさせる速度が速度条件を満たし、かつ、第1のタッチ位置と基準タッチ継続位置と基準位置とで定まる角度が角度条件を満たす場合、基準位置の座標を基準タッチ継続位置の座標に更新してもよい。当該変形例においても、上述した第1及び第2の実施形態の作用効果と同様の作用効果が実現される。
<Modification>
The
<<第3の実施形態>>
<概要>
本実施形態の処理装置10は、基準タッチ継続位置情報に含まれる参照時間Tk(図6参照)を、基準タッチ継続位置の座標を更新したタイミングからの経過時間に応じて減衰させたり、クリアしたりする点で、第1及び第2の実施形態と異なる。以下、詳細に説明する。
<< Third Embodiment >>
<Overview>
The
<構成>
処理装置10のハードウエア構成の一例は、第1及び第2の実施形態と同様である。
<Structure>
An example of the hardware configuration of the
処理装置10の機能ブロック図の一例は、図3又は図12で示される。図示するように、処理装置10は、タッチ情報取得部11と、基準位置管理部12と、オブジェクト制御部13と、基準タッチ継続位置管理部14と、角度条件判定部15とを有する。また、処理装置10は、さらに距離条件判定部16を有することができる。タッチ情報取得部11、基準位置管理部12、オブジェクト制御部13、角度条件判定部15及び距離条件判定部16の構成は、第1及び第2の実施形態と同様である。
An example of a functional block diagram of the
基準タッチ継続位置管理部14は、基準タッチ継続位置の座標を更新したタイミングからの経過時間に応じて、参照時間を減衰させることができる。例えば、基準タッチ継続位置管理部14は、所定フレーム経過毎に所定値を減衰させてもよい。
The reference touch continuation
他の例として、基準タッチ継続位置管理部14は、基準タッチ継続位置の座標を更新したタイミングから所定時間経過すると、基準タッチ継続位置の座標をクリアすることができる。
As another example, the reference touch continuation
基準タッチ継続位置管理部14のその他の構成は、第1及び第2の実施形態と同様である。
Other configurations of the reference touch continuation
本実施形態の処理装置10の処理の流れの一例は、図10のフローチャートを用いて第1の実施形態で説明した処理装置10の処理の流れの一例と同様である。
An example of the processing flow of the
<作用効果>
以上説明した処理装置10によれば、第1及び第2の実施形態と同様な作用効果を実現できる。
<Effects>
According to the
ところで、タッチを継続したままタッチ位置を何度もスライドさせ、第1及び第2の実施形態で説明したキャラクターの移動方向の変更を何度も行う場合が考えられる。例えば、第1のタッチ位置でのタッチを継続し、第1の方向へのキャラクターの移動を継続した後に角度条件や距離条件を満たすタッチ操作を行ってキャラクターの移動方向を第2の方向に変更し、第2のタッチ位置でのタッチを継続して第2の方向へのキャラクターの移動を継続した後に角度条件や距離条件を満たすタッチ操作を行ってキャラクターの移動方向を第3の方向に変更するという操作が想定される。このような場面において、第2のタッチ位置でのタッチ継続時間が第1のタッチ位置でのタッチ継続時間を超えなかった場合、第1のタッチ位置を基準タッチ継続位置として、角度条件の判定や、基準位置の更新などが行われることとなる。結果、プレイヤの意図しない内容となってしまう。 By the way, there is a case where the touch position is slid many times while the touch is continued, and the movement direction of the character described in the first and second embodiments is changed many times. For example, the touch at the first touch position is continued, the movement of the character in the first direction is continued, and then the touch operation satisfying the angle condition and the distance condition is performed to change the moving direction of the character to the second direction. Then, after continuing the touch at the second touch position and continuing the movement of the character in the second direction, performing a touch operation satisfying the angle condition and the distance condition to change the movement direction of the character to the third direction It is assumed that the operation is performed. In such a situation, when the touch duration at the second touch position does not exceed the touch duration at the first touch position, the first touch position is set as the reference touch continuation position, and the determination of the angle condition or the like is performed. , The reference position is updated. As a result, the content is not intended by the player.
基準タッチ継続位置情報に含まれる参照時間Tk(図6参照)を、基準タッチ継続位置の座標を更新したタイミングからの経過時間に応じて減衰させたり、クリアしたりする本実施形態の処理装置10によれば、上述のような不都合を軽減できる。 The processing device according to the present embodiment that attenuates or clears the reference time T k (see FIG. 6) included in the reference touch continuation position information according to the elapsed time from the timing at which the coordinates of the reference touch continuation position are updated. According to 10, the inconvenience as described above can be reduced.
<<第4の実施形態>>
<概要>
本実施形態の処理装置10は、角度条件等の内容を変えた2段階の判定を行う点で、第1乃至第3の実施形態と異なる。以下、詳細に説明する。
<< 4th Embodiment >>
<Overview>
The
<構成>
処理装置10のハードウエア構成の一例は、第1乃至第3の実施形態と同様である。
<Structure>
An example of the hardware configuration of the
処理装置10の機能ブロック図の一例は、図3又は図12で示される。図示するように、処理装置10は、タッチ情報取得部11と、基準位置管理部12と、オブジェクト制御部13と、基準タッチ継続位置管理部14と、角度条件判定部15とを有する。また、処理装置10は、さらに距離条件判定部16を有することができる。タッチ情報取得部11、オブジェクト制御部13及び基準タッチ継続位置管理部14の構成は、第1乃至第3の実施形態と同様である。
An example of a functional block diagram of the
処理装置10が図3で示される場合、基準位置管理部12及び角度条件判定部15は、新たなタッチ情報が取得される毎に、次の処理を行う。
When the
まず、角度条件判定部15は、第1のタッチ情報で示される第1のタッチ位置と、第1のタッチ情報の直前に取得された第2のタッチ情報で示される第2のタッチ位置と、基準位置とで定まる角度が第1の角度条件を満たすか判定する。第1の角度条件を満たす場合、基準位置管理部12は、基準位置の座標を、第2のタッチ位置の座標に更新する。
First, the angle
一方、第1の角度条件を満たさない場合、角度条件判定部15は、第1のタッチ情報で示される第1のタッチ位置と基準タッチ継続位置と基準位置とで定まる角度が第2の角度条件を満たすか判定する。なお、第1の角度条件と第2の角度条件とは異なる。第2の角度条件を満たす場合、基準位置管理部12は、基準位置の座標を、基準タッチ継続位置の座標に更新する。一方、第2の角度条件を満たさない場合、基準位置が更新されないまま終了する。
On the other hand, when the first angle condition is not satisfied, the angle
処理装置10が図12で示される場合、基準位置管理部12、角度条件判定部15及び距離条件判定部16は、新たなタッチ情報が取得される毎に、次の処理を行う。
When the
まず、角度条件判定部15は、第1のタッチ情報で示される第1のタッチ位置と、第1のタッチ情報の直前に取得された第2のタッチ情報で示される第2のタッチ位置と、基準位置とで定まる角度が第1の角度条件を満たすか判定する。また、距離条件判定部16は、第1のタッチ位置と第2のタッチ位置との間の距離が第1の距離条件を満たすか判定する。第1の角度条件及び第1の距離条件を満たす場合、基準位置管理部12は、基準位置の座標を、第2のタッチ位置の座標に更新する。
First, the angle
一方、第1の角度条件及び第1の距離条件の少なくとも一方を満たさない場合、角度条件判定部15は、第1のタッチ情報で示される第1のタッチ位置と基準タッチ継続位置と基準位置とで定まる角度が第2の角度条件を満たすか判定する。また、距離条件判定部16は、第1のタッチ情報で示される第1のタッチ位置と、第2のタッチ情報で示される第2のタッチ位置又は基準タッチ継続位置との間の距離が第2の距離条件を満たすか判定する。なお、第1の角度条件と第2の角度条件とは異なる。また、第1の距離条件と第2の距離条件とは異なる。第2の角度条件及び第2の距離条件を満たす場合、基準位置管理部12は、基準位置の座標を、基準タッチ継続位置の座標に更新する。一方、第2の角度条件及び第2の距離条件の少なくとも一方を満たさない場合、基準位置が更新されないまま終了する。
On the other hand, when at least one of the first angle condition and the first distance condition is not satisfied, the angle
基準位置管理部12、角度条件判定部15及び距離条件判定部16のその他の構成は、第1乃至第3の実施形態と同様である。
Other configurations of the reference
<作用効果>
以上説明した処理装置10によれば、第1乃至第3の実施形態と同様な作用効果を実現できる。また、本実施形態によれば、各種判定を組み合わせることで、ゲームの興趣性が向上する。
<Effects>
According to the
以下、参考形態の例を付記する。
1. コンピュータを、
タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得するタッチ情報取得部、
前記座標平面上に設定された基準位置の座標を管理する基準位置管理部、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させるオブジェクト制御部、及び、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理する基準タッチ継続位置管理部、
として機能させ、
前記基準位置管理部は、前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新するプログラム。
2. 1に記載のプログラムにおいて、
前記コンピュータを、前記タッチ位置と前記基準タッチ継続位置と前記基準位置とで定まる角度が角度条件を満たすか判定する角度条件判定部として機能させ、
前記基準位置変更条件は、前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が前記角度条件を満たすことであるプログラム。
3. 2に記載のプログラムにおいて、
前記角度条件判定部は、前記タッチ位置と前記基準タッチ継続位置とを結ぶ直線と、前記タッチ位置と前記基準位置とを結ぶ直線とのなす角が角度条件を満たすか判定するプログラム。
4. 2又は3に記載のプログラムにおいて、
前記コンピュータを、
第1の前記タッチ情報で示される第1のタッチ位置と、前記第1のタッチ情報の直前に取得された第2の前記タッチ情報で示される第2のタッチ位置又は前記基準タッチ継続位置との間の距離が、距離条件を満たすか判定する距離条件判定部として機能させ、
前記基準位置変更条件は、前記第1のタッチ位置、前記基準タッチ継続位置及び前記基準位置が前記角度条件を満たし、かつ、前記第1のタッチ位置と、前記第2のタッチ位置又は前記基準タッチ継続位置との間の距離が前記距離条件を満たすことである
プログラム。
5. 1から4のいずれかに記載のプログラムにおいて、
前記基準タッチ継続位置管理部は、
前記基準タッチ継続位置の座標を更新する場合に、新たに前記基準タッチ継続位置として登録される座標においてタッチが継続した継続時間を参照時間として登録し、
前記設定条件は、前記タッチ継続時間が前記参照時間を超えることであるプログラム。
6. 5に記載のプログラムにおいて、
前記基準タッチ継続位置管理部は、前記基準タッチ継続位置の座標を更新したタイミングからの経過時間に応じて、前記参照時間を減衰させるプログラム。
7. 1から6のいずれかに記載のプログラムにおいて、
前記基準タッチ継続位置管理部は、前記基準タッチ継続位置の座標を更新したタイミングから所定時間経過すると、前記基準タッチ継続位置の座標をクリアするプログラム。
8. 1から7のいずれかに記載のプログラムにおいて、
前記基準タッチ継続位置管理部は、前記タッチパネルに対するタッチ無を示す前記タッチ情報の取得に応じて、前記基準タッチ継続位置の座標をクリアするプログラム。
9. 1から8のいずれかに記載のプログラムにおいて、
前記基準位置管理部は、
前記タッチパネルに対するタッチ無を示す前記タッチ情報の直後に取得された前記タッチパネルに対するタッチ有を示す前記タッチ情報で示されるタッチ位置の座標、又は、当該座標に基づき決定した他の座標を、前記基準位置の座標として登録し、
前記タッチパネルに対するタッチ無を示す前記タッチ情報の取得に応じて、前記基準位置の座標をクリアするプログラム。
10. コンピュータが、
タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得し、
前記座標平面上に設定された基準位置の座標を管理し、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させ、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理し、
前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新する処理方法。
11. タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得するタッチ情報取得部、
前記座標平面上に設定された基準位置の座標を管理する基準位置管理部、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させるオブジェクト制御部、及び、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理する基準タッチ継続位置管理部、
を有し、
前記基準位置管理部は、前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新する処理装置。
Hereinafter, examples of the reference embodiment will be additionally described.
1. Computer
Touch information acquisition unit that acquires presence / absence of a touch on the touch panel, and touch information indicating coordinates on a coordinate plane corresponding to a touch position on the touch panel at predetermined time intervals,
A reference position management unit that manages the coordinates of the reference position set on the coordinate plane,
An object control unit that moves an object displayed on a screen in a movement direction determined based on the touch position indicated by the touch information and the reference position, and
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, a reference touch continuation that manages coordinates of a reference touch continuation position that is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time. Location management,
Function as
A program for updating, when the touch position, the reference touch continuation position, and the reference position satisfy a reference position change condition, the reference position management unit updates the coordinates of the reference position with the coordinates of the reference touch continuation position.
2. In the program described in 1,
The computer, functioning as an angle condition determination unit that determines whether an angle determined by the touch position, the reference touch continuation position, and the reference position satisfies an angle condition,
The program in which the reference position change condition is that the touch position, the reference touch continuation position, and the reference position satisfy the angle condition.
3. In the program described in 2,
A program for determining whether an angle between a straight line connecting the touch position and the reference touch continuation position and a straight line connecting the touch position and the reference position satisfies an angle condition.
4. In the program described in 2 or 3,
Said computer,
A first touch position indicated by the first touch information and a second touch position indicated by the second touch information acquired immediately before the first touch information or the reference touch continuation position The distance between them is made to function as a distance condition determination unit that determines whether the distance condition is satisfied,
The reference position change condition is such that the first touch position, the reference touch continuation position, and the reference position satisfy the angle condition, and the first touch position, the second touch position, or the reference touch A program in which the distance to the continuation position satisfies the distance condition.
5. In the program according to any one of 1 to 4,
The reference touch continuation position management unit,
When updating the coordinates of the reference touch continuation position, register the continuation time during which the touch continued at the coordinates newly registered as the reference touch continuation position as a reference time,
The program in which the setting condition is that the touch duration time exceeds the reference time.
6. In the program described in 5,
The reference touch continuation position management unit is a program that attenuates the reference time according to an elapsed time from a timing at which coordinates of the reference touch continuation position are updated.
7. In the program according to any one of 1 to 6,
A program for clearing the coordinates of the reference touch continuation position when a predetermined time has elapsed from the timing at which the coordinates of the reference touch continuation position are updated.
8. In the program according to any one of 1 to 7,
A program for clearing coordinates of the reference touch continuation position according to acquisition of the touch information indicating that there is no touch on the touch panel.
9. In the program according to any one of 1 to 8,
The reference position management unit,
The coordinates of the touch position indicated by the touch information indicating that there is a touch on the touch panel acquired immediately after the touch information indicating no touch on the touch panel, or other coordinates determined based on the coordinates, the reference position Register as coordinates
A program for clearing the coordinates of the reference position in response to acquisition of the touch information indicating no touch on the touch panel.
10. Computer
The presence or absence of a touch on the touch panel, and acquires touch information indicating coordinates on a coordinate plane corresponding to the touch position on the touch panel at predetermined time intervals,
Manage the coordinates of the reference position set on the coordinate plane,
The touch position indicated by the touch information, in the moving direction determined based on the reference position, move the object displayed on the screen,
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, manages the coordinates of a reference touch continuation position, which is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time,
When the touch position, the reference touch continuation position, and the reference position satisfy a reference position change condition, the processing method updates the coordinates of the reference position to the coordinates of the reference touch continuation position.
11. Touch information acquisition unit that acquires presence / absence of a touch on the touch panel, and touch information indicating coordinates on a coordinate plane corresponding to a touch position on the touch panel at predetermined time intervals,
A reference position management unit that manages the coordinates of the reference position set on the coordinate plane,
An object control unit that moves an object displayed on a screen in a movement direction determined based on the touch position indicated by the touch information and the reference position, and
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, a reference touch continuation that manages coordinates of a reference touch continuation position that is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time. Location management,
Has,
The processing device, wherein the reference position management unit updates the coordinates of the reference position to the coordinates of the reference touch continuation position when the touch position, the reference touch continuation position, and the reference position satisfy a reference position change condition.
1A プロセッサ
2A メモリ
3A 入出力I/F
4A 周辺回路
5A バス
6A タッチパネル
7A 通信部
10 処理装置
11 タッチ情報取得部
12 基準位置管理部
13 オブジェクト制御部
14 基準タッチ継続位置管理部
15 角度条件判定部
16 距離条件判定部
4A
本発明によれば、
コンピュータを、
タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得するタッチ情報取得部、
前記座標平面上に設定された基準位置の座標を管理する基準位置管理部、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させるオブジェクト制御部、及び、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理する基準タッチ継続位置管理部、
として機能させ、
前記基準位置管理部は、前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新し、
前記基準タッチ継続位置管理部は、前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、
タッチが継続している継続中タッチ位置の座標及び前記継続中タッチ位置における前記タッチ継続時間を管理し、
前記タッチ継続時間と参照時間との比較処理、及び、前記タッチ継続時間が前記参照時間を超えた場合に前記基準タッチ継続位置の座標を前記継続中タッチ位置の座標に更新するとともに、前記参照時間を前記タッチ継続時間に更新する更新処理を繰り返し行うプログラムが提供される。
According to the present invention,
Computer
Touch information acquisition unit that acquires presence / absence of a touch on the touch panel, and touch information indicating coordinates on a coordinate plane corresponding to a touch position on the touch panel at predetermined time intervals,
A reference position management unit that manages the coordinates of the reference position set on the coordinate plane,
An object control unit that moves an object displayed on a screen in a movement direction determined based on the touch position indicated by the touch information and the reference position, and
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, a reference touch continuation that manages coordinates of a reference touch continuation position that is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time. Location management,
Function as
The reference position management unit updates the coordinates of the reference position to the coordinates of the reference touch continuation position when the touch position, the reference touch continuation position and the reference position satisfy a reference position change condition ,
The reference touch continuation position management unit, while the acquisition of the touch information indicating that there is a touch on the touch panel is continued,
Manage the coordinates of the continuing touch position where the touch is continuing and the touch duration at the continuing touch position,
Comparing the touch continuation time and the reference time, and updating the coordinates of the reference touch continuation position to the coordinates of the continuation touch position when the touch continuation time exceeds the reference time; Is provided, a program for repeatedly performing an update process for updating the touch duration to the touch duration .
また、本発明によれば、
コンピュータが、
タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得し、
前記座標平面上に設定された基準位置の座標を管理し、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させ、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理し、
前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新し、
前記基準タッチ継続位置の座標を管理する処理においては、前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、
タッチが継続している継続中タッチ位置の座標及び前記継続中タッチ位置における前記タッチ継続時間を管理し、
前記タッチ継続時間と参照時間との比較処理、及び、前記タッチ継続時間が前記参照時間を超えた場合に前記基準タッチ継続位置の座標を前記継続中タッチ位置の座標に更新するとともに、前記参照時間を前記タッチ継続時間に更新する更新処理を繰り返し行う処理方法が提供される。
According to the present invention,
Computer
The presence or absence of a touch on the touch panel, and acquires touch information indicating coordinates on a coordinate plane corresponding to the touch position on the touch panel at predetermined time intervals,
Manage the coordinates of the reference position set on the coordinate plane,
The touch position indicated by the touch information, in the moving direction determined based on the reference position, move the object displayed on the screen,
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, manages the coordinates of a reference touch continuation position, which is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time,
If the touch position, the reference touch continuation position and the reference position satisfy a reference position change condition, the coordinates of the reference position are updated to the coordinates of the reference touch continuation position ,
In the process of managing the coordinates of the reference touch continuation position, while the acquisition of the touch information indicating that there is a touch on the touch panel is continued,
Manage the coordinates of the continuing touch position where the touch is continuing and the touch duration at the continuing touch position,
Comparing the touch continuation time and the reference time, and updating the coordinates of the reference touch continuation position to the coordinates of the continuation touch position when the touch continuation time exceeds the reference time; Is repeatedly provided to the touch duration .
また、本発明によれば、
タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得するタッチ情報取得部、
前記座標平面上に設定された基準位置の座標を管理する基準位置管理部、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させるオブジェクト制御部、及び、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理する基準タッチ継続位置管理部、
を有し、
前記基準位置管理部は、前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新し、
前記基準タッチ継続位置管理部は、前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、
タッチが継続している継続中タッチ位置の座標及び前記継続中タッチ位置における前記タッチ継続時間を管理し、
前記タッチ継続時間と参照時間との比較処理、及び、前記タッチ継続時間が前記参照時間を超えた場合に前記基準タッチ継続位置の座標を前記継続中タッチ位置の座標に更新するとともに、前記参照時間を前記タッチ継続時間に更新する更新処理を繰り返し行う処理装置が提供される。
According to the present invention,
Touch information acquisition unit that acquires presence / absence of a touch on the touch panel, and touch information indicating coordinates on a coordinate plane corresponding to a touch position on the touch panel at predetermined time intervals,
A reference position management unit that manages the coordinates of the reference position set on the coordinate plane,
An object control unit that moves an object displayed on a screen in a movement direction determined based on the touch position indicated by the touch information and the reference position, and
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, a reference touch continuation that manages coordinates of a reference touch continuation position that is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time. Location management,
Has,
The reference position management unit updates the coordinates of the reference position to the coordinates of the reference touch continuation position when the touch position, the reference touch continuation position and the reference position satisfy a reference position change condition ,
The reference touch continuation position management unit, while the acquisition of the touch information indicating that there is a touch on the touch panel is continued,
Manage the coordinates of the continuing touch position where the touch is continuing and the touch duration at the continuing touch position,
Comparing the touch continuation time and the reference time, and updating the coordinates of the reference touch continuation position to the coordinates of the continuation touch position when the touch continuation time exceeds the reference time; Is provided, a processing device that repeatedly performs an update process of updating the touch duration to the touch duration .
Claims (11)
タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得するタッチ情報取得部、
前記座標平面上に設定された基準位置の座標を管理する基準位置管理部、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させるオブジェクト制御部、及び、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理する基準タッチ継続位置管理部、
として機能させ、
前記基準位置管理部は、前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新するプログラム。 Computer
Touch information acquisition unit that acquires presence / absence of a touch on the touch panel, and touch information indicating coordinates on a coordinate plane corresponding to a touch position on the touch panel at predetermined time intervals,
A reference position management unit that manages the coordinates of the reference position set on the coordinate plane,
An object control unit that moves an object displayed on a screen in a movement direction determined based on the touch position indicated by the touch information and the reference position, and
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, a reference touch continuation that manages coordinates of a reference touch continuation position that is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time. Location management,
Function as
A program for updating, when the touch position, the reference touch continuation position, and the reference position satisfy a reference position change condition, the reference position management unit updates the coordinates of the reference position with the coordinates of the reference touch continuation position.
前記コンピュータを、前記タッチ位置と前記基準タッチ継続位置と前記基準位置とで定まる角度が角度条件を満たすか判定する角度条件判定部として機能させ、
前記基準位置変更条件は、前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が前記角度条件を満たすことであるプログラム。 The program according to claim 1,
The computer, functioning as an angle condition determination unit that determines whether an angle determined by the touch position, the reference touch continuation position, and the reference position satisfies an angle condition,
The program in which the reference position change condition is that the touch position, the reference touch continuation position, and the reference position satisfy the angle condition.
前記角度条件判定部は、前記タッチ位置と前記基準タッチ継続位置とを結ぶ直線と、前記タッチ位置と前記基準位置とを結ぶ直線とのなす角が角度条件を満たすか判定するプログラム。 The program according to claim 2,
A program for determining whether an angle formed by a straight line connecting the touch position and the reference touch continuation position and a straight line connecting the touch position and the reference position satisfies an angle condition.
前記コンピュータを、
第1の前記タッチ情報で示される第1のタッチ位置と、前記第1のタッチ情報の直前に取得された第2の前記タッチ情報で示される第2のタッチ位置又は前記基準タッチ継続位置との間の距離が、距離条件を満たすか判定する距離条件判定部として機能させ、
前記基準位置変更条件は、前記第1のタッチ位置、前記基準タッチ継続位置及び前記基準位置が前記角度条件を満たし、かつ、前記第1のタッチ位置と、前記第2のタッチ位置又は前記基準タッチ継続位置との間の距離が前記距離条件を満たすことである
プログラム。 In the program according to claim 2 or 3,
Said computer,
A first touch position indicated by the first touch information and a second touch position indicated by the second touch information acquired immediately before the first touch information or the reference touch continuation position The distance between them is made to function as a distance condition determination unit that determines whether the distance condition is satisfied,
The reference position change condition is such that the first touch position, the reference touch continuation position, and the reference position satisfy the angle condition, and the first touch position, the second touch position, or the reference touch A program in which the distance to the continuation position satisfies the distance condition.
前記基準タッチ継続位置管理部は、
前記基準タッチ継続位置の座標を更新する場合に、新たに前記基準タッチ継続位置として登録される座標においてタッチが継続した継続時間を参照時間として登録し、
前記設定条件は、前記タッチ継続時間が前記参照時間を超えることであるプログラム。 In the program according to any one of claims 1 to 4,
The reference touch continuation position management unit,
When updating the coordinates of the reference touch continuation position, register the continuation time during which the touch continued at the coordinates newly registered as the reference touch continuation position as a reference time,
The program in which the setting condition is that the touch duration time exceeds the reference time.
前記基準タッチ継続位置管理部は、前記基準タッチ継続位置の座標を更新したタイミングからの経過時間に応じて、前記参照時間を減衰させるプログラム。 The program according to claim 5,
The reference touch continuation position management unit is a program that attenuates the reference time according to an elapsed time from a timing at which coordinates of the reference touch continuation position are updated.
前記基準タッチ継続位置管理部は、前記基準タッチ継続位置の座標を更新したタイミングから所定時間経過すると、前記基準タッチ継続位置の座標をクリアするプログラム。 The program according to any one of claims 1 to 6,
A program for clearing the coordinates of the reference touch continuation position when a predetermined time has elapsed from the timing at which the coordinates of the reference touch continuation position are updated.
前記基準タッチ継続位置管理部は、前記タッチパネルに対するタッチ無を示す前記タッチ情報の取得に応じて、前記基準タッチ継続位置の座標をクリアするプログラム。 The program according to any one of claims 1 to 7,
A program for clearing coordinates of the reference touch continuation position according to acquisition of the touch information indicating that there is no touch on the touch panel.
前記基準位置管理部は、
前記タッチパネルに対するタッチ無を示す前記タッチ情報の直後に取得された前記タッチパネルに対するタッチ有を示す前記タッチ情報で示されるタッチ位置の座標、又は、当該座標に基づき決定した他の座標を、前記基準位置の座標として登録し、
前記タッチパネルに対するタッチ無を示す前記タッチ情報の取得に応じて、前記基準位置の座標をクリアするプログラム。 The program according to any one of claims 1 to 8,
The reference position management unit,
The coordinates of the touch position indicated by the touch information indicating that there is a touch on the touch panel acquired immediately after the touch information indicating no touch on the touch panel, or other coordinates determined based on the coordinates, the reference position Register as coordinates
A program for clearing the coordinates of the reference position in response to acquisition of the touch information indicating no touch on the touch panel.
タッチパネルに対するタッチの有無、及び、前記タッチパネル上のタッチ位置に対応する座標平面上の座標を示すタッチ情報を所定時間毎に取得し、
前記座標平面上に設定された基準位置の座標を管理し、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させ、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理し、
前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新する処理方法。 Computer
The presence or absence of a touch on the touch panel, and acquires touch information indicating coordinates on a coordinate plane corresponding to the touch position on the touch panel at predetermined time intervals,
Manage the coordinates of the reference position set on the coordinate plane,
The touch position indicated by the touch information, in the moving direction determined based on the reference position, move the object displayed on the screen,
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, manages the coordinates of a reference touch continuation position, which is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time,
When the touch position, the reference touch continuation position, and the reference position satisfy a reference position change condition, the processing method updates the coordinates of the reference position to the coordinates of the reference touch continuation position.
前記座標平面上に設定された基準位置の座標を管理する基準位置管理部、
前記タッチ情報で示される前記タッチ位置と、前記基準位置とに基づき決定した移動方向に、画面表示されたオブジェクトを移動させるオブジェクト制御部、及び、
前記タッチパネルに対するタッチ有を示す前記タッチ情報の取得が継続している間、その間にタッチ継続時間が設定条件を満たした前記座標平面上の位置である基準タッチ継続位置の座標を管理する基準タッチ継続位置管理部、
を有し、
前記基準位置管理部は、前記タッチ位置、前記基準タッチ継続位置及び前記基準位置が基準位置変更条件を満たす場合、前記基準位置の座標を、前記基準タッチ継続位置の座標に更新する処理装置。 Touch information acquisition unit that acquires presence / absence of a touch on the touch panel, and touch information indicating coordinates on a coordinate plane corresponding to a touch position on the touch panel at predetermined time intervals,
A reference position management unit that manages the coordinates of the reference position set on the coordinate plane,
An object control unit that moves an object displayed on a screen in a movement direction determined based on the touch position indicated by the touch information and the reference position, and
While the acquisition of the touch information indicating that there is a touch on the touch panel is continued, a reference touch continuation that manages coordinates of a reference touch continuation position that is a position on the coordinate plane where the touch continuation time satisfies a setting condition during that time. Location management,
Has,
The processing device, wherein the reference position management unit updates the coordinates of the reference position to the coordinates of the reference touch continuation position when the touch position, the reference touch continuation position, and the reference position satisfy a reference position change condition.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018180101A JP6554220B1 (en) | 2018-09-26 | 2018-09-26 | Program, processing apparatus, and processing method |
PCT/JP2019/037538 WO2020067133A1 (en) | 2018-09-26 | 2019-09-25 | Program, processing device, and processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018180101A JP6554220B1 (en) | 2018-09-26 | 2018-09-26 | Program, processing apparatus, and processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP6554220B1 JP6554220B1 (en) | 2019-07-31 |
JP2020052620A true JP2020052620A (en) | 2020-04-02 |
Family
ID=67473307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018180101A Active JP6554220B1 (en) | 2018-09-26 | 2018-09-26 | Program, processing apparatus, and processing method |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP6554220B1 (en) |
WO (1) | WO2020067133A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012133481A (en) * | 2010-12-20 | 2012-07-12 | Namco Bandai Games Inc | Program, information storage medium and terminal device |
JP2013127683A (en) * | 2011-12-16 | 2013-06-27 | Namco Bandai Games Inc | Program, information storage medium, terminal, server, and network system |
JP2014016712A (en) * | 2012-07-06 | 2014-01-30 | Nec Casio Mobile Communications Ltd | Information processing apparatus, and information processing method and program |
JP5830806B1 (en) * | 2015-04-13 | 2015-12-09 | 株式会社Cygames | Program, electronic device, and method for improving operability of user input |
JP2016126512A (en) * | 2014-12-26 | 2016-07-11 | 株式会社バンダイナムコエンターテインメント | Input processor and program |
JP2017191436A (en) * | 2016-04-13 | 2017-10-19 | 株式会社カプコン | Computer program and game system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5830806B2 (en) * | 1976-01-12 | 1983-07-01 | 大成建設株式会社 | Manufacturing method for eccentrically tensioned precast concrete construction material |
KR101580210B1 (en) * | 2015-01-08 | 2016-01-04 | 라인플러스 주식회사 | Game method and system for providing smart control for touch type |
-
2018
- 2018-09-26 JP JP2018180101A patent/JP6554220B1/en active Active
-
2019
- 2019-09-25 WO PCT/JP2019/037538 patent/WO2020067133A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012133481A (en) * | 2010-12-20 | 2012-07-12 | Namco Bandai Games Inc | Program, information storage medium and terminal device |
JP2013127683A (en) * | 2011-12-16 | 2013-06-27 | Namco Bandai Games Inc | Program, information storage medium, terminal, server, and network system |
JP2014016712A (en) * | 2012-07-06 | 2014-01-30 | Nec Casio Mobile Communications Ltd | Information processing apparatus, and information processing method and program |
JP2016126512A (en) * | 2014-12-26 | 2016-07-11 | 株式会社バンダイナムコエンターテインメント | Input processor and program |
JP5830806B1 (en) * | 2015-04-13 | 2015-12-09 | 株式会社Cygames | Program, electronic device, and method for improving operability of user input |
JP2017191436A (en) * | 2016-04-13 | 2017-10-19 | 株式会社カプコン | Computer program and game system |
Also Published As
Publication number | Publication date |
---|---|
JP6554220B1 (en) | 2019-07-31 |
WO2020067133A1 (en) | 2020-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11816330B2 (en) | Display device, display controlling method, and computer program | |
US10478734B2 (en) | Game control program, game control method, and game control device | |
US20130106700A1 (en) | Electronic apparatus and input method | |
US9798512B1 (en) | Context-based volume adjustment | |
WO2018216078A1 (en) | Game program, information processing device, information processing system, and game processing method | |
US10095277B2 (en) | Electronic apparatus and display control method thereof | |
WO2018216080A1 (en) | Game program, information processing device, information processing system, and game processing method | |
JP2018506118A (en) | Method and device for determining a motion trajectory of a target object and storage medium | |
WO2018216079A1 (en) | Game program, information processing device, information processing system, and game processing method | |
US9665232B2 (en) | Information-processing device, storage medium, information-processing method, and information-processing system for enlarging or reducing an image displayed on a display device | |
US20150222947A1 (en) | Method and device for controlling a display device | |
US11386612B2 (en) | Non-transitory computer-readable medium, image processing method, and image processing system for controlling progress of information processing in response to a user operation | |
JP2014085816A (en) | Program, information processing device, information processing method, and information processing system | |
KR102260409B1 (en) | Method and apparatus for interfacing of game | |
US9875020B2 (en) | Method for capturing user input from a touch screen and device having a touch screen | |
TW201738722A (en) | Program, computer device, program execution method, and system | |
JP6554220B1 (en) | Program, processing apparatus, and processing method | |
JP2019013297A (en) | Game program, recording medium, method, and information processing device | |
CN111263084B (en) | Video-based gesture jitter detection method, device, terminal and medium | |
JP6190505B1 (en) | GAME PROGRAM, RECORDING MEDIUM, METHOD, AND INFORMATION PROCESSING DEVICE | |
JP6446149B1 (en) | Program, processing apparatus, and processing method | |
CN115061585A (en) | Cursor moving method and device and electronic equipment | |
KR20150098960A (en) | Method for controlling wearable device and apparatus thereof | |
JP2018033950A (en) | Game program, recording medium, method, and information processing device | |
US20140245172A1 (en) | User interface transfer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20181129 |
|
A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20181129 |
|
A975 | Report on accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A971005 Effective date: 20190131 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190205 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190405 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20190611 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190705 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6554220 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |