JP7175124B2 - Information processing device, position prediction method and position prediction program - Google Patents
Information processing device, position prediction method and position prediction program Download PDFInfo
- Publication number
- JP7175124B2 JP7175124B2 JP2018147118A JP2018147118A JP7175124B2 JP 7175124 B2 JP7175124 B2 JP 7175124B2 JP 2018147118 A JP2018147118 A JP 2018147118A JP 2018147118 A JP2018147118 A JP 2018147118A JP 7175124 B2 JP7175124 B2 JP 7175124B2
- Authority
- JP
- Japan
- Prior art keywords
- action
- character
- predicted
- unit
- game
- 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.)
- Active
Links
- 230000010365 information processing Effects 0.000 title claims description 37
- 238000000034 method Methods 0.000 title claims description 17
- 230000009471 action Effects 0.000 claims description 111
- 230000004044 response Effects 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000008602 contraction Effects 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 2
- 230000007123 defense Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Description
本開示は、情報処理装置、位置予測方法及び位置予測プログラムに関する。 The present disclosure relates to an information processing device, a position prediction method, and a position prediction program.
特殊なアクションで高速に動き回るキャラクタが登場するゲームが提案されている(特許文献1、2参照)。
A game has been proposed in which characters that move around at high speed with special actions appear (see
かかるキャラクタの運動は、等速直線運動や自由落下運動ではないため、位置の予測が容易ではなく、シンプルな方法で位置を予測できない。一方、そのキャラクタを攻撃する等の場合に、キャラクタの現在位置から攻撃にかかる時間を加えた時間にキャラクタがどの位置にいるかを正確に予測する必要がある。 Since the motion of such a character is not uniform linear motion or free-fall motion, it is not easy to predict the position, and the position cannot be predicted by a simple method. On the other hand, when attacking the character, it is necessary to accurately predict where the character will be when the time taken for the attack is added to the current position of the character.
本開示は、ゲームにおいて特定のアクションで動くキャラクタの位置を正確に予測する技術を提供する。 This disclosure provides a technique for accurately predicting the position of a character that moves in a specific action in a game.
本開示の一の態様によれば、ゲームにおけるユーザ操作に応じたキャラクタのアクションを予測する予測部と、予測した前記アクションが、記憶部に記憶した特定のアクションであり、前記記憶部は前記特定のアクションに応じて定義されるアクションの動作条件を有するかを判定する判定部と、を有し、前記アクションの動作条件を有すると判定されると、前記予測部は、判定された前記特定の動作条件に基づき、ユーザ操作の方向に応じて前記キャラクタの移動を算出し、算出結果に応じて前記キャラクタの現時点から所定時間経過後までの予測位置を決定する、情報処理装置が提供される。
According to one aspect of the present disclosure, a prediction unit that predicts an action of a character in response to a user operation in a game; the predicted action is a specific action stored in a storage unit; and a determining unit that determines whether or not there is an operating condition for an action defined according to the action, and when it is determined that the operating condition for the action is satisfied, the predicting unit determines the determined specific An information processing apparatus is provided that calculates the movement of the character according to the direction of the user's operation based on the operation conditions, and determines the predicted position of the character from the present time until the elapse of a predetermined period of time according to the calculation result .
一の側面によれば、ゲームにおいて特定のアクションで動くキャラクタの位置を正確に予測できる。 According to one aspect, it is possible to accurately predict the position of a character that moves in a specific action in a game.
以下、本開示を実施するための形態について図面を参照して説明する。なお、本明細書及び図面において、実質的に同一の構成については、同一の符号を付することにより重複した説明を省く。 Hereinafter, embodiments for implementing the present disclosure will be described with reference to the drawings. In addition, in this specification and the drawings, substantially the same configurations are denoted by the same reference numerals, thereby omitting redundant explanations.
[情報処理装置の機能構成]
まず、一実施形態に係る情報処理装置10の機能構成の一例について、図1を参照しながら説明する。図1は、一実施形態に係る情報処理装置10の機能構成の一例を示す図である。一実施形態に係る情報処理装置10は、記憶部11、ゲーム実行部12、受付部13、予測部14、判定部15、グラフィック処理部16、サウンド処理部17、表示部18、音出力部19及び通信部20を有する。
[Functional Configuration of Information Processing Device]
First, an example of the functional configuration of an
記憶部11は、アクション予測条件テーブル111、予測位置保存テーブル112、位置予測プログラム113を記憶する。アクション予測条件テーブル111は、ユーザ操作(ユーザが行うコントローラやタッチパネルの操作)に対して予測するアクション動作の条件を定義したテーブルである。図2は、一実施形態に係るアクション予測条件テーブル111の一例を示す図である。例えば、ユーザ操作がワイヤーを伸縮させてキャラクタを所定方向へ移動させる操作である場合、「ワイヤーの伸縮」操作に対応するアクションの動作条件として、「ワイヤーがAmまで伸びたらワイヤーが切れる」ことが定義されている。また、「操作時間、方向に応じてワイヤーの伸縮及びキャラクタの移動角度を算出する」ことが定義されている。また、ユーザ操作がコントローラを前傾させる動作の場合、コントローラの前傾角度に応じた速度にキャラクタの移動速度をスピードアップすることが定義される。また、ユーザ操作がコントローラを後傾させる動作の場合、コントローラの後傾角度に応じた速度にキャラクタの移動速度をスピードダウンすることが定義される。また、ユーザ操作がガスの噴射指示である場合、キャラクタに装着されたガス噴射器から噴射されるガス噴射量に応じてキャラクタの移動速度を制御することが定義される。
The
予測位置保存テーブル112は、キャラクタの予測位置を記憶するテーブルである、図3は、一実施形態に係る予測位置保存テーブル112の一例を示す図である。予測位置保存テーブル112は、ユーザ操作を受け付けた受付時刻と、受付時刻から所定時間間隔毎のキャラクタの予測位置を記憶する。ユーザ操作を受け付けた受付時刻は、キャラクタの現時点の時刻を示す。本実施形態では、所定時間間隔の一例として1/30秒毎に予測位置が記憶されている。 The predicted position storage table 112 is a table that stores predicted positions of characters. FIG. 3 is a diagram showing an example of the predicted position storage table 112 according to one embodiment. The predicted position storage table 112 stores the reception time when the user operation is received and the predicted position of the character at predetermined time intervals from the reception time. The acceptance time at which the user operation is accepted indicates the current time of the character. In this embodiment, the predicted position is stored every 1/30 second as an example of the predetermined time interval.
図1に戻り、記憶部11には、その他、位置予測プログラム113、ゲームプログラム及び各種データが記憶される。ゲーム実行部12は、記憶部11に記憶されたゲームプログラム及び位置予測プログラム113を実行し、ゲームの進行と、ユーザ操作に応じたキャラクタ(プレイやキャラクタ)の所定時間経過後の位置を予測する。
Returning to FIG. 1, the
受付部13は、コントローラ及び/又はタッチパネルを用いたユーザ操作を受け付ける。ゲーム実行部12は、ユーザ操作に応じてゲームを進行させる。ユーザ操作には、キャラクタを移動させたり、キャラクタに攻撃等の所定の行動を起こさせたりする操作が挙げられる。また、ゲーム実行部12は、記憶部11に記憶された予測位置保存テーブル112を参照して、敵キャラクタ等から出される攻撃等の新たなアクションの実行時刻におけるキャラクタの予測位置を判定する。そして、ゲーム実行部12は、判定したキャラクタの予測位置に向けて前記新たなアクションを実行する。
The accepting
予測部14は、ゲームにおけるユーザ操作に応じたキャラクタのアクションを予測する。判定部15は、アクション予測条件テーブル111を参照して、予測したアクションが特定のアクションであり、該アクションの動作条件を有するかを判定する。判定部15が、予測したアクションの動作条件が定義されていると判定すると、予測部14は、判定された特定の動作条件に応じてキャラクタの現時点から所定時間経過後までの予測位置を決定する。図3のアクション予測条件テーブル111の例では、予測部14が受付時刻から2秒経過後までの間、1/30秒間隔毎に予測したキャラクタの位置を記憶している。ただし、キャラクタの現時点から所定時間経過後までの予測位置は、受付時刻から2秒経過後までの予測位置に限られず、1秒未満であってもよいし、1秒以上であってもよい。また、キャラクタの位置を予測する時間間隔は、1/30秒間隔に限られず、1/60秒間隔であってもよいし、その他の時間間隔であってもよい。
The
グラフィック処理部16は、ゲーム実行部12から描画命令が出力されると、表示部18にビデオ信号を出力する。これにより、表示部18は、ゲームの進行に応じたゲームの画像を表示する。
The
サウンド処理部17は、ゲーム実行部12からサウンド出力の指示命令が出力されると、音出力部19にサウンド信号を出力する。これにより、音出力部19は、ゲームの進行に応じたキャラクタの音声やその他のサウンドを出力する。通信部20は、他の機器と通信を行う。
The
なお、図1に示す情報処理装置10は、例えばパーソナルコンピュータ、タブレット端末、家庭用ゲーム端末、業務用ゲーム端末、スマートフォンなどの携帯電話機、携帯ゲーム機等であってもよい。情報処理装置10は、HMD(Head Mount Display)、FMD(Face Mount Display)、腕時計型等のウェアラブルデバイスであってもよい。
The
[情報処理装置のハードウェア構成]
次に、一実施形態に係る情報処理装置10のハードウェア構成の一例について、図4を参照しながら説明する。図4は、一実施形態に係る情報処理装置10のハードウェア構成の一例を示す図である。
[Hardware Configuration of Information Processing Device]
Next, an example of the hardware configuration of the
一実施形態に係る情報処理装置10は、CPU(Central Processing Unit)21、ROM(Read Only Memory)22、RAM(Random Access Memory)23及びHDD(Hard Disk Drive)24を有する。また、情報処理装置10は、グラフィックカード25、外部I/F26、通信I/F27、入力I/F28、ディスプレイ29、スピーカ30及びタッチパネル31を有する。各部はバスで相互に接続されている。
The
ROM22は、電源を切っても内部データを保持することができる不揮発性の半導体メモリである。RAM23は、プログラムやデータを一時保持する揮発性の半導体メモリである。ROM22及びRAM23には、プログラム及びデータが格納されている。
The
HDD24は、プログラムやデータを格納している不揮発性の記憶装置である。ROM22、RAM23、HDD24には、情報処理装置10の全体を制御する基本ソフトウェアのプログラム、ゲームプログラム及び位置予測プログラム113が格納されてもよい。
The HDD 24 is a nonvolatile storage device that stores programs and data. The
CPU21は、ROM22やHDD24から各種プログラム及び各種データをRAM23上に読み出し、各種の処理を実行することで、情報処理装置10の全体の制御や情報処理装置10に搭載された機能を実現する。
The
外部I/F26は、情報処理装置10を外部装置に接続するインターフェースである。外部装置には、記憶媒体26aなどがある。これにより、情報処理装置10は、外部I/F26を介して記憶媒体26aの読み取り及び書き込みを行うことができる。記憶媒体26aの一例としては、CD(Compact Disk)、DVD(Digital Versatile Disk)、SDメモリカード(SD Memory card)又はUSBメモリ(Universal Serial Bus memory)等が挙げられる。
The external I/
例えば、情報処理装置10には、ゲームプログラムや位置予測プログラム113が格納された記憶媒体26aを装着することが可能である。ゲームプログラムや位置予測プログラム113は、外部I/F26により読み出されて、RAM23に読み込まれる。
For example, the
CPU21は、RAM23に読み込まれたゲームプログラム及び位置予測プログラム113を実行し、グラフィックカード25にゲームの進行に応じた画像の出力を指示する。グラフィックカード25は、指示に従い画面に表示するゲームの画像処理を行い、ゲームの画像をディスプレイ29に描画させる。グラフィックカード25から出力される画像の一フレーム時間は、例えば1/30~1/60秒である。グラフィックカード25は、フレーム単位で1枚の画像の描画を実行する。すなわち、一秒間に30回~60回のフレームの画像が描画される。
The
また、CPU21は、RAM23に読み込まれた位置予測プログラム113を実行し、特定のアクションに関するかキャラクタの予測位置を算出し、記憶する。また、CPU21は、キャラクタの予測位置に向かって攻撃するアクションを行う。攻撃するアクション等ではスピーカ30から所定の音を出力させる。通信I/F27は、情報処理装置10をネットワークに接続するインターフェースである。通信I/F27は、アンテナを有する通信ユニットを介して他の機器と通信を行う。
Also, the
入力I/F28は、コントローラ1等の入力機器に接続するインターフェースである。コントローラ1は、操作ボタン2及び方向キー3を有する。プレイヤは、コントローラ1を用いてゲームの操作(ユーザ操作)を行う。例えば、プレイヤは、操作ボタン2及び方向キー3の操作の組み合わせで、プレイヤキャラクタに攻撃や防御等の所定の動作や、画面の開始等の所定の処理を行わせてもよい。コントローラ1は、情報処理装置10の本体と一体になっていてもよいし、別体になっていてもよい。また、コントローラ1は、情報処理装置10の本体から着脱可能であってもよい。また、コントローラ1は、1つまたは複数設けられてもよい。
The input I/
入力I/F28は、プレイヤがコントローラ1を用いて行った入力操作に基づく入力情報をRAM23に格納させる。また、プレイヤが、コントローラ1を操作してゲームの開始を指示したとき、入力I/F28が、その指示情報を入力することによりゲーム処理が実行される。
The input I/
タッチパネル31は、ディスプレイ29の画面上に設けられ、プレイヤによってタッチされた情報処理装置10の画面上の位置を検出する。タッチパネル31としては、例えば、静電容量方式、抵抗膜方式等、任意のものが用いられる。なお、タッチパネル31は情報処理装置10に搭載されていなくてもよい。また、タッチパネル31を搭載した情報処理装置10の場合、タッチパネルの操作によりゲームをコントロールできる場合には、コントローラ1は有していなくてもよい。
The
かかる構成の情報処理装置10において、CPU21は、ゲームプログラム及び位置予測プログラム113の手順に従い、ゲーム処理を実行する。入力I/F28はCPU21からの指示に従いRAM23に記憶されているゲームのデータをメモリカード28aに保存させる。また、入力I/F28は、メモリカード28aに保存されている中断時のゲームのデータを読み出してRAM23に転送する処理を行う。
In the
なお、図1は機能に着目したブロック図を描いており、これらの機能ブロックで示した各部は、図3に一例を示すハードウェアによって実現可能である。例えば、図1の記憶部11の機能は、例えばROM22、RAM23、HDD24又はネットワークを介して情報処理装置10に接続されるクラウド上の記憶装置等により実現可能である。
Note that FIG. 1 is a block diagram focusing on functions, and each part indicated by these functional blocks can be realized by hardware, an example of which is shown in FIG. For example, the functions of the
プレイヤによるコントローラ1やタッチパネル31を用いたゲーム操作を受け付ける受付部13の機能は、例えば入力I/F28により実現可能である。ゲーム実行部12、予測部14、判定部15及びサウンド処理部17の各機能は、例えば、ゲームプログラム又は位置予測プログラム113がCPU21に実行させる処理により実現可能である。
The function of the receiving
グラフィック処理部16の機能は、例えばグラフィックカード25により実現可能である。表示部18の機能は、例えばディスプレイ29により実現可能である。音出力部19の機能は、例えばスピーカ30により実現可能である。
The function of the
通信部20の機能は、例えば通信I/F27により実現可能である。例えば記憶部11に記憶されたアクション予測条件テーブル111及び予測位置保存テーブル112の情報をクラウド上の記憶装置に記憶している場合、通信部20は、クラウド上の記憶装置から必要な情報を受信する。
The function of the
[位置予測処理]
次に、一実施形態に係る位置予測処理の一例について、図5を参照して説明する。図5は、一実施形態に係る位置予測処理の一例を示すフローチャートである。本処理が開始されると、受付部13は、コントローラ1を用いたユーザ操作を受け付け、予測部14は、受け付けたユーザ操作に基づきキャラクタのアクションを予測する(S10)。次に、受付部13は、変数nに1を設定する(S12)。
[Position prediction processing]
Next, an example of position prediction processing according to one embodiment will be described with reference to FIG. FIG. 5 is a flowchart illustrating an example of position prediction processing according to one embodiment. When this process is started, the
次に、予測部14は、直前に予測されたアクションに基づきn/30秒後のキャラクタのアクションを予測する(S14)。ここでは、ユーザ操作の受付時刻から1/30秒後のキャラクタのアクションが予測される。
Next, the
次に、予測部14は、今回予測したアクションに基づき、n/30秒後のキャラクタの位置を予測する(S16)。ここでは、1/30秒後のキャラクタの位置が予測される。このとき、判定部15は、アクション予測条件テーブル111を参照して、ユーザ操作に応じて予測されるアクションの動作条件が定義されているかを判定する。ユーザ操作に応じて予測されるアクションの動作条件が定義されていると判定されると、予測部14は、定義されているアクションの動作条件に応じたキャラクタの位置を予測する。
Next, the
たとえば、図6は、敵キャラクタBaとユーザが操作するプレイヤキャラクタ(以下、「キャラクタBb」という。)とが描画されたゲームシーンの一例を示す。キャラクタBbは、オブジェクトOjの上部に一端が固定されたワイヤーを使って空中や建物間を飛びながら移動することができる。図6の例では、コントローラ1による右への移動操作に応じて、キャラクタBbは軌跡Fに従い右上へ移動する。
For example, FIG. 6 shows an example of a game scene in which an enemy character Ba and a player character operated by a user (hereinafter referred to as "character Bb") are drawn. The character Bb can move while flying in the air or between buildings using a wire whose one end is fixed to the upper part of the object Oj. In the example of FIG. 6, the character Bb moves to the upper right along the trajectory F in response to the operation to move the
かかるキャラクタのワイヤーを用いたアクション(以下、「ワイヤーアクション」という。)は、単純な等速直線運動や自由落下運動等ではなく、ワイヤーの伸縮に応じた特殊な動作であり、キャラクタBbが高速に移動する爽快感をユーザに与え、ゲームの趣向性を高めることができる。一方、ワイヤーアクションは、等速直線運動等のように単純計算によりキャラクタの位置を予測できない。そこで、本実施形態では、アクション予測条件テーブル111を参照して、ワイヤーアクション等の特定のアクションに応じて定義されるアクションの動作条件にしたがってキャラクタの位置を予測する。これにより、特定のアクションについて、ユーザ操作に応じたキャラクタの移動位置を正確に予測することができる。 The action using the wire of such a character (hereinafter referred to as "wire action") is not a simple uniform linear motion or free fall motion, but a special action corresponding to the expansion and contraction of the wire. It is possible to give the user an exhilarating feeling of moving to another area, thereby enhancing the interest of the game. On the other hand, the wire action cannot predict the position of the character by simple calculation, unlike uniform linear motion. Therefore, in the present embodiment, the action prediction condition table 111 is referred to, and the position of the character is predicted according to action conditions defined according to a specific action such as a wire action. As a result, it is possible to accurately predict the movement position of the character according to the user's operation for a specific action.
図5に戻り、予測部14は、S14において「ワイヤーの伸縮」操作によるアクションと予測すると、S16においてアクション予測条件テーブル111を参照して、予測した「ワイヤーの伸縮」のアクションについて定義される動作条件を特定する。そして、予測部14は、そのアクションの動作条件に基づき、ワイヤーの操作方向に応じてワイヤーの伸縮及びキャラクタの移動方向を算出する。これにより、予測部14は、1/30秒後のキャラクタBbの位置を予測する。。
Returning to FIG. 5, when the
また、たとえば、予測部14は、ワイヤーがどの長さまで延びたら切れるのか等の情報が定義されたアクション予測条件テーブル111に基づき、ある動作でワイヤーが切れるまで延びたと判定したとする。この場合、S14では、予測部14は、直前のキャラクタの動作、つまり、ワイヤーが切れたときの動作をキャラクタのアクションとして予測し、予測されたワイヤーが切れたときのキャラクタのアクションに基づき1/30秒後のキャラクタの位置を予測する。
Also, for example, it is assumed that the
この結果、図7に一例を示すように、予測したワイヤーアクションについて、現時点のキャラクタBbの位置(x0、y0)から1/30秒後のキャラクタBbの位置(x1、y1)を予測できる
図5に戻り、次に、予測部14は、予測した1/30秒後のキャラクタBbの位置(x1、y1)を受付時刻に関連付けて予測位置保存テーブル112に記憶する(S18)。図3の例では、ユーザ操作を受け付けた受付時刻「○○時△△分××秒」と受付時刻から1/30秒後のキャラクタBbの位置(x1、y1)が記憶されている。
As a result, as an example is shown in FIG. 7, for the predicted wire action, the position (x 1 , y 1 ) of the character Bb after 1/30 second from the current position (x 0 , y 0 ) of the character Bb is changed to Returning to FIG. 5, next, the
図5に戻り、次に、予測部14は、変数nに1を加算し(S20)、変数nが60よりも大きいかを判定する(S22)。変数nが60以下であると判定されると、S14に戻り、予測部14は、直前に予測されたアクションに基づきn/30秒後のキャラクタのアクションを予測する(S14)。図7の例では、位置(x1、y1)におけるキャラクタBbのアクションに基づき、受付時刻から2/30秒後、すなわち、直前のアクションから1/30秒後のキャラクタのアクションが予測される。予測したい位置は、予測位置保存テーブル112に保存される。図3の例では、予測位置保存テーブル112には、受付時刻「○○時△△分××秒」と1/30秒後のキャラクタBbの位置(x1、y1)とともに1/30秒後のキャラクタBbの位置(x2、y2)が記憶されている。
Returning to FIG. 5, next, the
図5に戻り、予測部14は、変数nに1を加算し(S20)、変数nが60以下であると判定されている間(S22)、S14~S22の処理を繰り返す。これにより、図7に示すように、直前のアクションから1/30秒のキャラクタの位置(x1、y1)~(x6、y6)・・・が判断され、順番に予測位置保存テーブル112に記憶される。
Returning to FIG. 5, the
S22において、変数nが60よりも大きいと判定されると、本処理を終了する。これにより、図7に示すように、ユーザ操作を受け付けてから、キャラクタがどの位置に動くのかを直前のアクションから所定時間間隔(本実施形態では1/30秒)で予測することを所定時間(本実施形態では2秒)が経過するまで繰り返す。これにより、図3に示すように、受付時刻から2秒後まで、1/30秒間隔毎に60個のキャラクタの位置が予測位置保存テーブル112に保存される。 If it is determined in S22 that the variable n is greater than 60, the process ends. As a result, as shown in FIG. 7, after the user operation is received, the position to which the character will move is predicted at predetermined time intervals (1/30 second in this embodiment) from the immediately preceding action. 2 seconds in this embodiment) is repeated. As a result, as shown in FIG. 3, 60 character positions are stored in the predicted position storage table 112 at intervals of 1/30 second until two seconds after the reception time.
なお、S22において繰返し回数は60に限られず、可変に設定することができる。予測位置の精度と処理の負荷とのバランスを考慮して繰返し回数を設定することが好ましい。 Note that the number of repetitions in S22 is not limited to 60, and can be set variably. It is preferable to set the number of repetitions in consideration of the balance between the accuracy of the predicted position and the processing load.
[攻撃処理]
以上に説明した位置予測処理において予測されたキャラクタの位置、すなわち、予測位置保存テーブル112に保存されたキャラクタの位置を用いて実行される攻撃処理の一例について、図8を参照して説明する。図8は、一実施形態に係る攻撃処理の一例を示すフローチャートである。
[Attack processing]
An example of attack processing executed using the character positions predicted in the position prediction processing described above, that is, the character positions stored in the predicted position storage table 112 will be described with reference to FIG. FIG. 8 is a flowchart illustrating an example of attack processing according to one embodiment.
本処理が開始されると、受付部13は、コントローラ1を用いたユーザ操作を受け付け(S30)、ゲーム実行部12は、ゲームプログラムを実行し、ユーザ操作を受け付けた受付時刻から所定時間経過後に攻撃を行うか否かを判定する(S32)。ゲーム実行部12は、受付時刻から所定時間経過後に攻撃を行わないと判定すると、本処理を終了する。一方、ゲーム実行部12は、受付時刻から所定時間経過後に攻撃を行うと判定すると、所定時間が経過したかを判定する(S34)。ゲーム実行部12は、所定時間が経過したと判定すると、予測位置保存テーブル112に保存されたキャラクタの予測位置のうち受付時刻から所定時間経過後のキャラクタの予測位置を特定し、予測位置を向かって攻撃する(S36)。攻撃後、本処理を終了する。
When this process is started, the accepting
図9は、図8のS36においてゲーム実行部12が、ユーザ操作の受付時刻から5/60秒後のキャラクタの予測位置(x5、y5)を特定し、敵キャラクタBaから、その予測位置(x5、y5)に攻撃を行う画像が表示されている。
9, in S36 of FIG. 8, the
特定のアクションで移動するキャラクタに対して他のキャラクタ等から攻撃が行われる場合、実際に攻撃が加えられるまでには任意の時間がかかる。例えば、敵を捕まえる、敵を殴る等の行動に1秒~数秒又はそれ以上かかる場合がある。これに対して、以上に説明したように、本実施形態によれば、単純計算によりキャラクタの位置を予測できないワイヤーアクションのような特定のアクションの場合であっても、その特定のアクションの動作条件にしたがってキャラクタの位置を予測する。これにより、特定のアクションを行うキャラクタについて、1秒~数秒後にキャラクタがいる位置を正確に予測し、予測した位置に攻撃することができる。これにより、キャラクタBbへの攻撃が、キャラクタBbがいる位置と異なる位置に対して行われることを回避し、自然なアクションを描画できる。 When another character or the like attacks a character that moves with a specific action, it takes an arbitrary amount of time before the attack is actually applied. For example, an action such as catching an enemy or hitting an enemy may take from one second to several seconds or longer. On the other hand, as described above, according to the present embodiment, even in the case of a specific action such as a wire action in which the position of the character cannot be predicted by simple calculation, the operating condition of the specific action is Predict the position of the character according to As a result, it is possible to accurately predict the position of a character performing a specific action one to several seconds later, and to attack the predicted position. As a result, it is possible to prevent the character Bb from being attacked at a position different from the position at which the character Bb is present, and draw a natural action.
なお、本実施形態では、ワイヤーアクションを例に挙げて、特定のアクションの動作条件にしたがってキャラクタの位置を予測する方法について説明したが、これに限られない。例えば、アクション予測条件テーブル111には、キャラクタが装着するガス噴射器から噴射するガスの噴射量によりキャラクタのアクションの動作条件が定義されている。よって、ガスを噴射するアクションを特定のアクションとして、その動作条件に従いキャラクタの位置を予測してもよい。ガスを噴射するアクションとワイヤーアクションとの組合せや、その他の特定のアクションとの組合せに対応するそれぞれの動作条件に従いキャラクタの位置を予測してもよい。これによっても、特定のアクションの組合せについて、ユーザ操作に応じたキャラクタの移動位置を正確に予測することができる。これにより、特定のアクションを行うキャラクタへの攻撃等を正確に行うことができ、ゲームの一シーンをより自然に描画することができる。 In this embodiment, the wire action is used as an example to describe the method of predicting the position of the character according to the operating conditions of a specific action, but the present invention is not limited to this. For example, in the action prediction condition table 111, action conditions for character actions are defined according to the injection amount of gas injected from a gas injector worn by the character. Therefore, the position of the character may be predicted according to the operating conditions, with the action of injecting gas as a specific action. The position of the character may be predicted according to each operating condition corresponding to the combination of the action of injecting gas and the wire action, or the combination of other specific actions. This also makes it possible to accurately predict the movement position of the character according to the user's operation for a combination of specific actions. As a result, it is possible to accurately perform an attack or the like on a character performing a specific action, and it is possible to render one scene of the game more naturally.
今回開示された一実施形態に係る情報処理装置、位置予測方法及び位置予測プログラムは、すべての点において例示であって制限的なものではないと考えられるべきである。上記の実施形態は、添付の請求の範囲及びその主旨を逸脱することなく、様々な形態で変形及び改良が可能である。上記複数の実施形態に記載された事項は、矛盾しない範囲で他の構成も取り得ることができ、また、矛盾しない範囲で組み合わせることができる。 The information processing device, the position prediction method, and the position prediction program according to one embodiment disclosed this time should be considered as examples and not restrictive in all respects. The embodiments described above can be modified and improved in various ways without departing from the scope and spirit of the appended claims. The items described in the above multiple embodiments can take other configurations within a consistent range, and can be combined within a consistent range.
例えば、予測位置保存テーブル112には、キャラクタの予測位置が1/30秒間隔で記憶されている。よって、例えば、1/30秒間隔よりも細かい間隔の時刻についてのキャラクタの位置は、その時刻の直前と直後の予測位置を使用して算出してもよい。例えば、受付時刻から1/30秒後と2/30秒後の中間の時刻についてのキャラクタの位置を算出する場合、1/30秒後の位置を示す(x1、y1)と2/30秒後の位置を示す(x2、y2)の平均値を算出することでキャラクタの予測位置を補完することができる。 For example, the predicted position storage table 112 stores predicted positions of characters at intervals of 1/30 second. Therefore, for example, the position of the character for time intervals finer than 1/30 second may be calculated using predicted positions immediately before and after that time. For example, when calculating the position of the character at an intermediate time between 1/30 second and 2/30 second after the reception time, (x 1 , y 1 ) indicating the position after 1/30 second and 2/30 By calculating the average value of (x 2 , y 2 ) indicating the position after seconds, the predicted position of the character can be complemented.
10 情報処理装置
11 記憶部
12 ゲーム実行部
13 受付部
14 予測部
15 判定部
16 グラフィック処理部
17 サウンド処理部
111 アクション予測条件テーブル
112 予測位置保存テーブル
113 位置予測プログラム
10
Claims (7)
予測した前記アクションが、記憶部に記憶した特定のアクションであり、前記記憶部は前記特定のアクションに応じて定義されるアクションの動作条件を有するかを判定する判定部と、を有し、
前記アクションの動作条件を有すると判定されると、前記予測部は、判定された前記特定の動作条件に基づき、ユーザ操作の方向に応じて前記キャラクタの移動を算出し、算出結果に応じて前記キャラクタの現時点から所定時間経過後までの予測位置を決定する、
情報処理装置。 a prediction unit that predicts a character's action in response to a user's operation in a game;
a determination unit that determines whether the predicted action is a specific action stored in a storage unit, and the storage unit has an action condition defined according to the specific action ;
When it is determined that the motion condition of the action is satisfied, the prediction unit calculates the movement of the character according to the direction of the user operation based on the determined specific motion condition, and calculates the movement of the character according to the calculation result . Determining the character's predicted position from the current time until a predetermined time has passed;
Information processing equipment.
請求項1に記載の情報処理装置。 The prediction unit determines a plurality of predicted positions of the character at predetermined time intervals from the current time to the elapse of a predetermined time.
The information processing device according to claim 1 .
前記記憶部を参照して、前記キャラクタに対する新たなアクションの実行時刻における前記キャラクタの予測位置を判定し、判定した前記キャラクタの予測位置に向けて前記新たなアクションを実行するゲーム実行部と、
を有する請求項2に記載の情報処理装置。 a storage unit that stores a plurality of determined predicted positions for each predetermined time interval in association with the current time of the character;
a game execution unit that refers to the storage unit to determine the predicted position of the character at the execution time of the new action for the character, and executes the new action toward the determined predicted position of the character;
The information processing apparatus according to claim 2, comprising:
請求項3に記載の情報処理装置。 When the execution time of the action does not match the time when the character arrives at each of the plurality of predicted positions, the game execution unit predicts the time when the character will arrive before or after the execution time of the action. correcting the predicted position corresponding to the execution time of the action based on the position;
The information processing apparatus according to claim 3.
請求項1~4のいずれか一項に記載の情報処理装置。 The prediction unit determines a plurality of predicted positions for each predetermined time interval according to the specific action condition corresponding to the previous action of the character.
The information processing apparatus according to any one of claims 1 to 4.
予測した前記アクションが、記憶部に記憶した特定のアクションであり、前記記憶部は前記特定のアクションに応じて定義されるアクションの動作条件を有するかを判定し、
前記アクションの動作条件を有すると判定されると、判定された前記特定の動作条件に基づき、ユーザ操作の方向に応じて前記キャラクタの移動を算出し、算出結果に応じて前記キャラクタの現時点から所定時間経過後までの予測位置を決定する、
処理をコンピュータが実行する位置予測方法。 Predict the character's action according to the user's operation in the game,
determining whether the predicted action is a specific action stored in a storage unit, and whether the storage unit has an action condition defined according to the specific action ;
When it is determined that the motion condition of the action is present, the movement of the character is calculated according to the direction of the user operation based on the determined specific motion condition, and the movement of the character from the current time point is calculated according to the calculation result . Determining the predicted position after time,
A position prediction method in which the processing is performed by a computer.
予測した前記アクションが、記憶部に記憶した特定のアクションであり、前記記憶部は前記特定のアクションに応じて定義されるアクションの動作条件を有するかを判定し、
前記アクションの動作条件を有すると判定されると、判定された前記特定の動作条件に基づき、ユーザ操作の方向に応じて前記キャラクタの移動を算出し、算出結果に応じて前記キャラクタの現時点から所定時間経過後までの予測位置を決定する、
処理をコンピュータに実行させる位置予測プログラム。 Predict the character's action according to the user's operation in the game,
determining whether the predicted action is a specific action stored in a storage unit, and whether the storage unit has an action condition defined according to the specific action ;
When it is determined that the motion condition of the action is present, the movement of the character is calculated according to the direction of the user operation based on the determined specific motion condition, and the movement of the character from the current time point is calculated according to the calculation result . Determining the predicted position after time,
A position prediction program that causes a computer to execute processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2018147118A JP7175124B2 (en) | 2018-08-03 | 2018-08-03 | Information processing device, position prediction method and position prediction program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2018147118A JP7175124B2 (en) | 2018-08-03 | 2018-08-03 | Information processing device, position prediction method and position prediction program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2020018792A JP2020018792A (en) | 2020-02-06 |
| JP7175124B2 true JP7175124B2 (en) | 2022-11-18 |
Family
ID=69587808
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2018147118A Active JP7175124B2 (en) | 2018-08-03 | 2018-08-03 | Information processing device, position prediction method and position prediction program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7175124B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025057572A1 (en) * | 2023-09-15 | 2025-03-20 | ソニーグループ株式会社 | Information processing device, information processing method, and program |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008000346A (en) | 2006-06-22 | 2008-01-10 | Nippon Telegr & Teleph Corp <Ntt> | Enemy aircraft attack control method of shooting game, apparatus thereof, program thereof, and recording medium thereof |
| JP2011255114A (en) | 2010-06-11 | 2011-12-22 | Namco Bandai Games Inc | Program, information storage medium, and image generation system |
-
2018
- 2018-08-03 JP JP2018147118A patent/JP7175124B2/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008000346A (en) | 2006-06-22 | 2008-01-10 | Nippon Telegr & Teleph Corp <Ntt> | Enemy aircraft attack control method of shooting game, apparatus thereof, program thereof, and recording medium thereof |
| JP2011255114A (en) | 2010-06-11 | 2011-12-22 | Namco Bandai Games Inc | Program, information storage medium, and image generation system |
Non-Patent Citations (1)
| Title |
|---|
| 進撃の巨人,週刊ファミ通 2016年3月3日号,カドカワ株式会社,2016年02月18日,第31巻第9号通巻1420号,p.154~161 |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2020018792A (en) | 2020-02-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11426652B2 (en) | Game control device, game system, and program | |
| US7828660B2 (en) | Storage medium having game program stored thereon and game apparatus | |
| JP7274703B2 (en) | Game program, rhythm game processing method, rhythm game system, and rhythm game device | |
| JP2003245471A (en) | Video game apparatus, recording medium, and program | |
| JP2017055910A (en) | Information processing device, posture motion control method, and posture control program | |
| JP7175124B2 (en) | Information processing device, position prediction method and position prediction program | |
| JP2014027975A (en) | Program, information storage medium, game device, and server | |
| US10994205B2 (en) | Information processing apparatus, arrangement method, and arrangement program | |
| CN115802093A (en) | Video playing method and device, electronic equipment and storage medium | |
| JP2017046950A (en) | Information processing apparatus, position information detection method, and position information detection program | |
| CN111617474B (en) | Information processing method and device | |
| JP7071134B2 (en) | Information processing device, operation control program and operation control method | |
| JP2025531312A (en) | Virtual object display method, device, equipment, and program | |
| JP7013609B2 (en) | Programs, electronics, methods, and systems | |
| JP5374436B2 (en) | GAME DEVICE, ITS CONTROL METHOD, AND PROGRAM | |
| JP7406930B2 (en) | Game program, game processing method, and information processing device | |
| JP2018060377A (en) | Screen control program | |
| JP6987634B2 (en) | Information processing device, display control program and display control method | |
| JP7073119B2 (en) | Display method, display program and information processing device | |
| KR101570681B1 (en) | System and method for combat game using launch of unit | |
| JP2004267632A (en) | Video game apparatus, video game progress check method, program, and recording medium | |
| US8753214B2 (en) | Game device, method for controlling game device, program and information memory medium | |
| JP2010046219A (en) | Image processor, image processing method, and program | |
| JP7312574B2 (en) | Information processing device, game processing method and game processing program | |
| JP7171186B2 (en) | Game program, information processing method, and information processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210521 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20220428 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220531 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220714 |
|
| 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: 20221101 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20221108 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7175124 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |