JP2020127589A - Information processing device, game processing method, and game processing program - Google Patents
Information processing device, game processing method, and game processing program Download PDFInfo
- Publication number
- JP2020127589A JP2020127589A JP2019021049A JP2019021049A JP2020127589A JP 2020127589 A JP2020127589 A JP 2020127589A JP 2019021049 A JP2019021049 A JP 2019021049A JP 2019021049 A JP2019021049 A JP 2019021049A JP 2020127589 A JP2020127589 A JP 2020127589A
- Authority
- JP
- Japan
- Prior art keywords
- character
- virtual ground
- action
- unit
- information processing
- 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
Landscapes
- Processing Or Creating Images (AREA)
Abstract
Description
本開示は、情報処理装置、ゲーム処理方法及びゲーム処理プログラムに関する。 The present disclosure relates to an information processing device, a game processing method, and a game processing program.
ゲームにおいてキャラクタが移動する地面等の地形を検出するレイキャストの技術がある。この技術では、キャラクタの真下に向かってレイキャストを行い、地形情報を検出することが行われている。その際、レイ(光線)がヒットした場所の情報を取得し、取得した情報に基づきキャラクタの下の地面の位置及び角度を設定する。 There is a raycast technique that detects the topography such as the ground on which the character moves in the game. With this technique, ray casting is performed right below the character to detect topographical information. At that time, information on the place where the ray (ray) hits is acquired, and the position and angle of the ground below the character are set based on the acquired information.
また、地形を検出するための地形検出用オブジェクトを仮想空間に配置し、キャラクタと地形検出用オブジェクトとの衝突情報から地形を自動的に判定する技術が開示されている(例えば特許文献1、2参照)。 Further, there is disclosed a technique in which a terrain detection object for detecting terrain is arranged in a virtual space and the terrain is automatically determined from collision information between the character and the terrain detection object (for example, Patent Documents 1 and 2). reference).
また、 Also,
しかしながら、建物の間の狭い隙間や道路に設けられた低い段差等の特定の地形は無視してキャラクタを移動させる方が、キャラクタをゲーム上の地形に応じてスムーズに動作させることができ、ゲームの進行上好ましい場合がある。 However, moving the character by ignoring specific terrain such as narrow gaps between buildings and low steps on the road allows the character to move smoothly according to the terrain in the game. It may be preferable in terms of the progress of.
そこで、本開示は、オブジェクトをゲーム上の地形に応じてスムーズに動作させることが可能な技術を提供する。 Therefore, the present disclosure provides a technique capable of smoothly moving an object according to the terrain in the game.
本開示の一の態様によれば、ゲーム画面に表示されているオブジェクトの下の仮想地面を特定する特定部と、特定した前記仮想地面の情報に基づき、前記オブジェクトの次のアクションを決定する決定部と、決定した前記次のアクションに基づき、前記ゲーム画面に表示するオブジェクトの動作を制御する動作制御部と、を有する情報処理装置が提供される。 According to an aspect of the present disclosure, a determination unit that determines a virtual ground below an object displayed on a game screen, and a determination that determines a next action of the object based on information of the specified virtual ground. An information processing apparatus is provided that includes a unit and a motion control unit that controls a motion of an object displayed on the game screen based on the determined next action.
一の側面によれば、オブジェクトをゲーム上の地形に応じてスムーズに動作させることができる。 According to the one aspect, it is possible to smoothly move the object according to the terrain in the game.
以下、一実施形態について添付の図面を参照しながら説明する。なお、本明細書及び図面において、実質的に同一の機能構成を有する構成要素については、同一の符号を付することにより重複した説明を省く場合がある。 An embodiment will be described below with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functional configuration may be denoted by the same reference numerals, and duplicate description may be omitted.
以下の説明に際し、ゲーム画面においてキャラクタが動作する仮想空間に置かれた建物等のオブジェクトを「表示部品」という。また、以下では、「キャラクタ」は、プレイヤーによって操作されるプレイヤーキャラクタを想定して説明を行う。しかし、キャラクタは、これに限られず、通信ゲームの通信相手が操作するキャラクタであってもよいし、自動で動作するキャラクタ(ノンプレイヤキャラクタ)であってもよい。
<従来の地形検出の一例>
従来の地形検出の一例について図1を参照して説明する。図1は、従来の地形検出を説明するための図である。ゲーム画面に表示されているキャラクタ100の足場の地形を判定する手法の一つとして、キャラクタの真下に向かってレイキャストを行う方法がある。この方法では、レイ(光線)がヒットした場所の情報を取得し、取得した情報に基づきキャラクタの下の地面の位置及び角度を検出し、キャラクタの足元の地面の高さ、角度を判定する。
In the following description, an object such as a building placed in the virtual space where the character moves on the game screen is referred to as a “display component”. Further, in the following, the “character” will be described assuming a player character operated by the player. However, the character is not limited to this, and may be a character operated by a communication partner of the communication game or a character (non-player character) that automatically operates.
<Example of conventional terrain detection>
An example of conventional terrain detection will be described with reference to FIG. FIG. 1 is a diagram for explaining conventional terrain detection. As one of the methods of determining the landform of the scaffolding of the
かかる判定では、キャラクタ100の落下やキャラクタ100が隙間に挟まれてしまう等の意図しない動作が生じ、キャラクタ100の動作が望む通りの挙動とならない場合がある。たとえば、図1(a)にて、キャラクタ100が表示部品201、202の間の隙間203付近にいる場合、レイキャストでは、レイが隙間203に入る。その結果、キャラクタ100は、図1(b)に示すように隙間203に入り込み、図1(c)に示すように隙間203の底部の地面の表示部品102(以下、「地面102」とも表記する。)上に着地する動作が行われる。これにより、キャラクタ100は、隙間203に挟まった状態で動けなくなる場合がある。
In such a determination, an unintended action such as a fall of the
レイキャストを複数回行ったとしても、図1(d)に示すように表示部品204、205が細く、キャラクタが細い足場にいる場合、レイが表示部品204、205の間の隙間206に入り、キャラクタが隙間206に挟まってしまう。
Even if ray casting is performed a plurality of times, when the
また、図1(e)に示すように地面102に無視できる程度の小さな段差を生じさせる表示部品207があり、その上にキャラクタ100がいる場合、レイキャストを行った結果、表示部品207は傾斜が45°以上の不正な足場と判定され、キャラクタ100の落下処理が発生する場合がある。
Further, as shown in FIG. 1E, when there is a
そこで、狭い隙間や低い段差等の地形は無視してキャラクタ100の動作が望む通りの挙動となることで、キャラクタ100をスムーズに動作させることが可能な情報処理装置、ゲーム処理方法及びゲーム処理プログラムを提供する。
Thus, the information processing apparatus, the game processing method, and the game processing program that allow the
[情報処理装置の機能構成]
以下では、一実施形態に係る情報処理装置10の機能構成の一例について、図2を参照しながら説明する。図2は、一実施形態に係る情報処理装置10の機能構成の一例を示す図である。
[Functional configuration of information processing device]
Hereinafter, an example of a functional configuration of the
本実施形態に係る情報処理装置10は、プレイヤーがゲームをプレイする機器であればいずれの電子機器でもよく、スマートフォン、携帯ゲーム機、パーソナルコンピュータ、タブレット端末、家庭用ゲーム装置、業務用ゲーム装置等であってもよい。
The
情報処理装置10は、記憶部11、入力部12、特定部13、決定部14、動作制御部15、グラフィック処理部16、サウンド処理部17、表示部18及び音出力部19を有する。
The
記憶部11は、キャラクタテーブル111、表示部品位置テーブル112、動作ルールテーブル113を記憶する。キャラクタテーブル111は、キャラクタの情報を記憶するテーブルである。表示部品位置テーブル112は、ゲーム画面に表示する表示部品の位置を記憶するテーブルである。動作ルールテーブル113は、キャラクタの動作を行うルールを定義したテーブルである。これらのテーブルについての具体例は後述する。
The
入力部12は、プレイヤーからのコントローラ(図3参照)の操作を受け付ける。入力部12は、プレイヤーからの操作をタッチパネルにより受け付けてもよい。
The
特定部13は、ゲーム画面に表示されているキャラクタの足元の仮想地面を特定する。キャラクタの足元の仮想地面は、キャラクタの足元において仮想的に作成される非表示の地面であり、キャラクタの足場(足元の状態)を判定するために用いられる。なお、ゲーム画面に表示されているキャラクタは、ゲーム画面に表示されているオブジェクトの一例である。すなわち、オブジェクトは、キャラクタに限られず、車等の乗り物、キャラクタが乗った移動物、その他のゲーム画面に表示されるすべてのものを含む。また、キャラクタの足元(足場)の仮想地面は、オブジェクトの下の仮想地面の一例である。すなわち、オブジェクトは、キャラクタの足元に限られず、キャラクタがほふく前進していたり、寝そべっていたり、逆立ちしていたりしている場合、キャラクタの腹や背中や両手が「オブジェクトの下」となり、キャラクタの腹や背中や両手において仮想的に非表示の地面が作成される。
The specifying
決定部14は、特定した仮想地面の情報に基づき、キャラクタの次のアクションを決定する。決定部14は、動作ルールテーブル113に定義されたルールに基づき、キャラクタの次のアクションを決定してもよい。動作制御部15は、決定した次のアクションに基づき、キャラクタの動作を制御する。
The
グラフィック処理部16は、動作制御部15から描画命令が出力されると、表示部18に所定の画像を表示するためのビデオ信号を出力する。これにより、表示部18は、キャラクタと背景のステージとを仮想空間に表示する。グラフィック処理部16から出力されるビデオ信号に含まれる画像の一フレーム時間は、例えば30分の1秒である。よって、グラフィック処理部16は、フレーム単位(すなわち、30分の1秒単位)で1枚の画像の描画を実行する。
When the drawing command is output from the
サウンド処理部17は、グラフィック処理部16からサウンド出力の指示命令が出力されると、音出力部19に所定の音を出力するためのサウンド信号を出力する。これにより、ゲームの状況に応じたサウンドが出力される。
When the
[情報処理装置のハードウェア構成]
次に、一実施形態に係る情報処理装置10のハードウェア構成の一例について、図3を参照しながら説明する。図3は、一実施形態に係る情報処理装置10のハードウェア構成の一例を示す図である。
[Hardware configuration of information processing device]
Next, an example of the hardware configuration of the
情報処理装置10は、CPU21、ROM22、RAM23、HDD24、グラフィックカード25、外部I/F(インターフェース)26、通信I/F27、入力I/F28、ディスプレイ29及びスピーカ30を有する。各部は、バスで相互に接続されている。
The
ROM22は、電源を切っても内部データを保持することができる不揮発性の半導体メモリである。ROM22には、プログラム及びデータが格納されている。RAM23は、プログラムやデータを一時保持する揮発性の半導体メモリである。
The
HDD24は、プログラムやデータを格納している不揮発性の記憶装置である。格納されるプログラムには、情報処理装置10の全体を制御する基本ソフトウェア及びアプリケーションソフトウェアがある。HDD24には、各種のデータベースが格納されてもよい。本実施形態では、HDD24にアクション処理を実行するためのプログラムや基本ゲームプログラムが格納される。また、HDD24にキャラクタテーブル111、表示部品位置テーブル112及び動作ルールテーブル113の各情報が格納される。
The
CPU21は、HDD24からプログラムやデータをRAM23上に読み出し、アクション処理や基本ゲーム処理を実行することで、情報処理装置10の全体の制御や情報処理装置10に搭載された機能を実現する。
The
具体的には、図2に示す特定部13、決定部14及び動作制御部15の機能は、情報処理装置10にインストールされたアクション処理を実行するためのプログラムがCPU21に実行させる処理により実現される。
Specifically, the functions of the specifying
外部I/F26は、情報処理装置10を記録媒体26a等の外部装置に接続するインターフェースである。これにより、情報処理装置10は、外部I/F26を介して記録媒体26aの読み取り及び書き込みを行うことができる。記録媒体26aの一例としては、CD(Compact Disk)、DVD(Digital Versatile Disk)が挙げられる。記録媒体26aは、SDメモリーカード(SD Memory card)又はUSBメモリ(Universal Serial Bus memory)等であってもよい。
The external I/
例えば、情報処理装置10には、アクション処理を実行するためのプログラム及び基本ゲームプログラムが格納された記録媒体26aを装着することが可能である。これらのプログラムは、外部I/F26により読み出されて、RAM23に読み込まれる。
For example, the
CPU21は、RAM23にロードされた上記の各種のプログラムを処理し、グラフィックカード25にゲームの進行に応じた画像の出力を指示する。グラフィックカード25は、指示に従い画面に表示するゲームの場面に応じた画像処理を行い、ディスプレイ29にキャラクタの画像及びステージの画像を描画させる。これにより、グラフィック処理部16及び表示部18の機能が実行される。なお、グラフィックカード25は、フレーム単位で1枚の画像の描画を実行し、一秒間に30回〜60回のフレームの画像が描画される。
The
また、CPU21は、RAM23に読み込まれた上記の各種のプログラムを処理し、ゲームの進行に応じてスピーカ30から所定の音を出力させる。これにより、サウンド処理部17及び音出力部19の機能が実行される。
Further, the
ディスプレイ29はタッチパネル式としても良い。これにより、コントローラ1を用いずに入力操作を行うことができる。この場合、タッチパネルにより検出されたタッチ位置の入力情報は、RAM23に格納され、CPU21はRAM23に格納された入力情報をもとに各種の演算処理を実行する。
The
通信I/F27は、情報処理装置10をネットワークに接続するインターフェースである。また、通信I/F27は、アンテナを有する通信ユニットを介して、他のゲーム機器と無線により通信を行う機能を有していてもよい。
The communication I/
入力I/F28は、コントローラ1に接続するインターフェースである。コントローラ1は、操作ボタン2及び方向キー3を有する。プレイヤーは、操作ボタン2を操作することでキャラクタに所定の動作を行わせることができる。また、プレイヤーは、方向キー3を操作することでキャラクタを所定の方向に移動させることができる。入力I/F28は、プレイヤーがコントローラ1を用いて行った入力操作に基づく入力情報をRAM23に格納させる。これにより、入力部12の機能が実行される。
The input I/
CPU21は、RAM23に格納された入力情報に基づきキャラクタの動作等の各種の演算処理を実行する。また、入力I/F28は、CPU21からの指示に従いRAM23に記憶されているゲームの進行状況を示すデータをメモリーカード28aに保存させ、メモリーカード28aに保存されている中断時のゲームのデータを読み出してRAM23に転送する処理を行う。
The
[アクション処理の概要]
次に、図4及び図5を参照して、一実施形態に係るアクション処理の概要について説明する。図4及び図5は、一実施形態に係るアクション処理の概要を説明するための図である。本実施形態に係るアクション処理では、レイキャストではなく、キャラクタに重ねてキャラクタとともに移動する非表示の判定オブジェクトを使用し、判定オブジェクトの押出情報に基づき仮想地面が特定される。そして、仮想地面を用いてキャラクタの足場の状態が判定される。これにより、キャラクタは狭い隙間に落下することなく、小さな段差であれば段差でなく坂道とみなして乗り越えることができる。ただし、これらのキャラクタの動作は一例であり、キャラクタをゲーム上の地形に応じてスムーズに動作させることができる。
[Overview of action processing]
Next, an outline of the action processing according to the embodiment will be described with reference to FIGS. 4 and 5. 4 and 5 are diagrams for explaining the outline of the action processing according to the embodiment. In the action processing according to the present embodiment, not a raycast but a hidden determination object that overlaps with the character and moves with the character is used, and the virtual ground surface is specified based on the extrusion information of the determination object. Then, the state of the scaffolding of the character is determined using the virtual ground. As a result, the character does not fall into a narrow gap, and if it is a small step, it can be regarded as a slope instead of a step and can get over it. However, the movements of these characters are merely examples, and the characters can be smoothly moved according to the terrain in the game.
図4及び図5に示すように、キャラクタ100には判定オブジェクト101が重ねて設けられる。プレイヤーには、キャラクタ100は見えるが、判定オブジェクト101は見えない。ここでは、説明の便宜上、判定オブジェクト101を表示する。判定オブジェクト101は、キャラクタ100の大きさに応じてサイズが異なってもよい。判定オブジェクト101は、キャラクタ100の大きさに応じて形状が異なってもよい。
As shown in FIGS. 4 and 5, the
一実施形態に係るアクション処理では、キャラクタ100の大きさに応じたサイズの判定オブジェクト101が予めキャラクタテーブル111に設定されている。キャラクタテーブル111の一例を図6に示す。例えば、キャラクタIDが「Aa」のキャラクタ100には、判定オブジェクトIDが「Ba」の判定オブジェクト101が重ねられる。キャラクタIDが「Ab」のキャラクタ100には、判定オブジェクトIDが「Bb」の判定オブジェクト101が重ねられる。「Aa」のキャラクタ100が「Ab」のキャラクタ100の1.5倍の大きさであれば、「Ba」の判定オブジェクト101は「Bb」の判定オブジェクト101の1.5倍の大きさに設定されてもよい。
In the action processing according to the embodiment, the
ゲーム画面には、建物、地面、山等のキャラクタ以外のオブジェクト(以下、「表示部品」という。)が表示される。図4及び図5では、表示部品102、103、104が図示されている。
Objects (hereinafter referred to as "display parts") other than characters such as buildings, grounds, and mountains are displayed on the game screen. 4 and 5, the
一実施形態に係るアクション処理に用いる表示部品の表示位置は、表示部品位置テーブル112に記憶される。一実施形態に係る表示部品位置テーブル112の一例を図7に示す。例えば、表示部品IDが「Ca」の表示部品103に対応する位置情報の左上の座標(xa1、ya1)及び右下の座標(xa2、ya2)から表示部品103の位置及び大きさが定まる。
The display position of the display component used for the action processing according to the embodiment is stored in the display component position table 112. FIG. 7 shows an example of the display component position table 112 according to the embodiment. For example, the position and size of the
図4は、表示部品102、103とキャラクタ100が表示されている場面を示す。判定オブジェクト101は、ゲーム中のプレイヤーには見えないように非表示にして、キャラクタ100の移動に応じてキャラクタ100に重ねて移動される。なお、キャラクタ100、判定オブジェクト101、表示部品102、103の大きさ及び形状は一例であり、これに限られない。
FIG. 4 shows a scene in which the
情報処理装置10は、毎フレーム、すなわち、一フレーム毎に以下の手順(1)〜(4)を実行することで、キャラクタ100のアクションを更新する。
(1)足場の判定
(2)アクションの決定
(3)移動
(4)判定オブジェクトの押出
図4(a)〜(d)を参照して、キャラクタが表示部品103の側壁に衝突する場合のアクションの更新について説明する。まず、手順(1)において、特定部13は、キャラクタ100がいる位置の足場を判定する。図4(a)の例では、特定部13は、キャラクタ100の足場を判定した結果、キャラクタ100の足元に所定幅の地面102があるため、足場があると判定する。特定部13は、キャラクタ100の足元に所定幅の面がある場合、後述する仮想地面を作成せずに「足場がある」と判定できる。
The
(1) Judgment of scaffolding (2) Determination of action (3) Movement (4) Pushing out judgment object Referring to FIGS. 4A to 4D, an action when the character collides with the side wall of the
次に、手順(2)において、決定部14は、判定結果に応じてキャラクタ100の次のアクションを決定する。アクションを決定するための動作ルールは、動作ルールテーブル113に定義されている。
Next, in procedure (2), the
動作ルールテーブル113の一例を図8に示す。図8の動作ルールテーブル113の例では、条件が「足場がある」の場合であって足場の傾斜がない又は足場の傾斜が45°未満の場合、キャラクタのアクションは「動作継続」に設定される。条件が「足場がある」の場合であって足場の傾斜が45°以上の場合、キャラクタのアクションは「動作停止」又は「落下」に設定される。条件が「足場がない」の場合、キャラクタのアクションは「落下」に設定される。 FIG. 8 shows an example of the operation rule table 113. In the example of the motion rule table 113 in FIG. 8, when the condition is “scaffolding” and there is no scaffolding inclination or the scaffolding inclination is less than 45°, the action of the character is set to “continue movement”. It When the condition is “there is scaffolding” and the inclination of the scaffolding is 45° or more, the action of the character is set to “stop motion” or “fall”. When the condition is “no scaffolding”, the character action is set to “fall”.
よって、図4(b)の例では、決定部14は、動作ルールテーブル113を参照して、条件が「足場がある」の場合の「足場の傾斜なし」の条件に従い、次のアクションとして、キャラクタの動作継続を決定する。つまり、決定部14は、キャラクタ100の走りを継続させるようにアクションを決定する。
Therefore, in the example of FIG. 4B, the determining
次に、手順(3)において、動作制御部15は、決定した次のアクションに基づき、キャラクタの動作を制御する。図4(c)の例では、動作制御部15は、キャラクタ100の走りを継続し、キャラクタ100を移動させる。移動の結果、キャラクタ100は表示部品103に衝突し、キャラクタ100に重ねられた判定オブジェクト101とともに表示部品103内に押し込まれる。
Next, in procedure (3), the
次に、手順(4)において、動作制御部15は、判定オブジェクト101の表示部品103からの押出を制御する。この結果、判定オブジェクト101が表示部品103から押し出される。このとき、判定オブジェクト101は、押し込まれた方向と逆の方向に押し出される。これにより、図4(d)に示すように、キャラクタ100が表示部品103の壁に衝突する動作が表示される。
Next, in the procedure (4), the
次に、図5(a)〜(f)を参照して、キャラクタが表示部品104の段差から落下する場合のアクションの更新について説明する。まず、手順(1)において、特定部13は、キャラクタ100がいる位置の足場を判定する。図5(a)の例では、特定部13は、キャラクタ100の足場を判定した結果、キャラクタ100の足元に所定幅の表示部品104の上面があるため、地面があると判定する。
Next, with reference to FIGS. 5A to 5F, the update of the action when the character falls from the step of the
次に、手順(2)において、決定部14は、判定結果に応じてキャラクタ100の次のアクションを決定する。図5(b)の例では、決定部14は、動作ルールテーブル113を参照して、条件が「足場がある」の場合の「足場の傾斜なし」の条件に従い、次のアクションとして、キャラクタの動作の継続を決定する。つまり、決定部14は、キャラクタ100の走りを継続させるようにアクションを決定する。
Next, in procedure (2), the
次に、手順(3)において、動作制御部15は、決定した次のアクションに基づき、キャラクタの動作を制御する。図5(c)の例では、動作制御部15は、キャラクタ100の走りを継続し、キャラクタ100を移動させる。移動の結果、キャラクタ100は表示部品104の先に飛び出し、空中に浮いた状態となる。
Next, in procedure (3), the
次に、手順(4)において、動作制御部15は、判定オブジェクト101の押出を行う。ここでは、判定オブジェクト101は、キャラクタ100に重なる位置にて空中に浮き、表示部品104内に押し込まれていない。よって、動作制御部15は、判定オブジェクト101を押し出す動作を行えず、図5(d)に示すように、キャラクタ100は空中に浮いた状態のままとなる。
Next, in procedure (4), the
次に、次のフレームの手順(1)において、特定部13は、キャラクタ100がいる位置の足場を判定する。図5(e)の例では、特定部13は、仮想地面を作成できず、キャラクタ100の足場を判定した結果、地面がないと判定する。
Next, in the procedure (1) of the next frame, the identifying
次に、手順(2)において、決定部14は、判定結果に応じてキャラクタ100の次のアクションを決定する。決定部14は、動作ルールテーブル113を参照して、条件が「足場がない」の場合のルールに従い、次のアクションとして、キャラクタの落下を決定する。この結果、動作制御部15は、決定した次のアクションに基づき、ゲーム画面に表示するキャラクタの動作を制御する。その結果、図5(f)の例では、動作制御部15は、決定した次のアクションに従い、キャラクタ100を表示部品104から落下する動作を実行する。
Next, in procedure (2), the
[アクション処理の詳細]
次に、図9及び図10を参照して、一実施形態に係る仮想地面の作成を含むアクション処理の詳細について説明する。図9は、一実施形態に係るアクション処理の詳細を説明するための図である。
[Details of action processing]
Next, with reference to FIG. 9 and FIG. 10, details of the action processing including the creation of the virtual ground according to the embodiment will be described. FIG. 9 is a diagram for explaining the details of the action processing according to the embodiment.
仮想地面の作成を含むアクション処理では、上記手順(1)〜(4)のうち、手順(1)において仮想地面の作成を行った後に足場の判定を行う。仮想地面の作成は、レイキャストを使用せずに判定オブジェクトの押出情報に基づき行う。また、上記手順(3)と手順(4)との間にキャラクタ100の着地補正を行う。
In the action process including the creation of the virtual ground, the scaffolding is determined after the creation of the virtual ground in step (1) of the above steps (1) to (4). The virtual ground is created based on the push information of the determination object without using raycast. Further, the landing correction of the
図9の本処理が開始されると、入力部12が、キャラクタ100に対するプレイヤーの操作を受け付け、特定部13は、キャラクタ100の仮想地面を作成する(ステップS1)。図10(a)の例では、地面102と平行に仮想地面が作成されてもよい。特定部13は、キャラクタ100の足元に所定幅の面がある場合、仮想地面を作成せずに「足場がある」と判定してもよい。
When the present process of FIG. 9 is started, the
図9に戻り、次に、特定部13は、足場の判定を行う(ステップS2)。特定部13が「足場あり」と判定した場合、決定部14は、キャラクタ100の次のアクションを、動作ルールテーブル113に定義したルールに基づき決定する(ステップS3)。決定部14は、水平方向に足場がある場合、動作ルールテーブル113に記憶された「動作継続」を次のアクションに決定する。図10(b)の例では、走りを継続するアクションに決定される。
Returning to FIG. 9, the identifying
図9に戻り、次に、動作制御部15は、決定したアクションに従いキャラクタを動作させる(ステップS4)。これにより、図10(c)に示すように、キャラクタ100が走りを継続する。その結果、図10(c)の例では、キャラクタ100が、キャラクタ100の前方に配置された表示部品105まで移動し、キャラクタ100と判定オブジェクト101とが、表示部品105内に押し込まれる。
Returning to FIG. 9, next, the
図9に戻り、次に、動作制御部15は、決定したアクションに従い動作後のキャラクタの着地を補正する(ステップS5)。着地補正とは、キャラクタ100と判定オブジェクト101とを地面に押し込ませることをいう。例えば、動作制御部15は、図10(d)に示すように、キャラクタ100が接触する地面102が水平であれば、地面102に対して垂直な方向に判定オブジェクト101とキャラクタ100とを押し込ませる。キャラクタ100が接触する地面102が斜めであれば、その角度に垂直な方向に判定オブジェクト101とキャラクタ100とを押し込ませる。なお、押し込ませる対象は、判定オブジェクト101だけでもよい。
Returning to FIG. 9, next, the
図9に戻り、次に、動作制御部15は、表示部品105及び地面102に押し込まれた判定オブジェクト101を押し出す(ステップS6)。10(e)の例では、地面102と衝突した表示部品105からの押出により、判定オブジェクト101とキャラクタ100とが左上の45°の方向に斜めに押し出される。判定オブジェクト101の押出情報は、記憶部11に記憶される。
Returning to FIG. 9, next, the
図9に戻り、次に、特定部13は、次のフレームの更新タイミングかを判定する(ステップS7)。特定部13は、次のフレームの更新タイミングであると判定すると、ステップS1に戻り、キャラクタ100の仮想地面を作成する(ステップS1)。
Returning to FIG. 9, the identifying
特定部13は、前回の判定オブジェクト101の押出情報に基づき、判定オブジェクト101の押出方向に略垂直な方向に仮想地面を作成する。この結果、図10(f)に示すように、判定オブジェクト101の押出方向に応じて判定オブジェクト101の押出方向に略垂直な方向に仮想地面150が作成される。
The identifying
図9に戻り、次に、特定部13は、足場の判定を行う(ステップS2)。特定部13は、仮想地面150が作成されている場合、足場があると判定する。足場があると判定された場合、前述したステップS3〜S7の処理が繰り返される。その結果、次のアクションは、動作継続に決定され、図10(g)〜図10(j)に示すキャラクタ100の動作が実行される。
Returning to FIG. 9, the identifying
一方、特定部13は、ステップS2において足場がないと判定すると、キャラクタ100の次のアクションを、動作ルールテーブル113に記憶された動作ルールに基づき「落下」に決定する(ステップS8)。
On the other hand, when determining that there is no scaffolding in step S2, the identifying
次に、動作制御部15は、決定したアクションに従いキャラクタを動作させる(ステップS9)。これに応じてキャラクタ100が落下する。次に、動作制御部15は、キャラクタ100が落下した後の着地補正を行い(ステップS5)、判定オブジェクトの押出を行う(ステップS6)。次フレームの更新タイミングが来るたびに(ステップS7)、ステップS1に戻ってステップS1以降の処理が繰り返され、キャラクタの動作が更新される。
Next, the
以上に説明したように、一実施形態に係るアクション処理によれば、キャラクタ100に重ねて判定オブジェクト101を設け、判定オブジェクト101の押出情報に基づき、キャラクタ100の足場である仮想地面150を作成し、キャラクタの足場を判定する。
As described above, according to the action processing according to the embodiment, the
これにより、図11(a)に示すように、表示部品201、202の間に隙間203が生じていても、隙間203が所定以下の狭い隙間であればキャラクタ100の下に作成された足場(仮想地面150)により、キャラクタ100が隙間203に落下して身動きが取れない動作は発生しない。
As a result, as shown in FIG. 11A, even if there is a
また、図11(b)に示すように、小さな段差を形成する表示部品207が地面102に置かれている場合、キャラクタ100の下に作成される仮想地面150と地面102との角度は45°未満になる。このため、決定部14は、動作ルールテーブル113に基づき次のアクションを「動作継続」に決定する。
Further, as shown in FIG. 11B, when the
これにより、表示部品207の小さな段差であれば、仮想地面150に基づき、キャラクタ100は、表示部品207を段差でなく坂道とみなして乗り越える等の動作を行う。これにより、キャラクタ100が小さな段差から落下するなどの不自然な動作を回避し、キャラクタ100をゲーム上の地形に応じてスムーズに動作させることができる。
As a result, if the
更に、特定部13は、キャラクタ100の大きさ及び/又は形状に応じて判定オブジェクト101のサイズを設定することで、キャラクタ100の大きさ及び/又は形状に応じた仮想地面150を作成できる。
Furthermore, the specifying
キャラクタテーブル111に一例を示した通り、キャラクタ100毎に設定される判定オブジェクト101は、キャラクタ100の大きさ及び/又は形状に応じてサイズを変えることができる。特定部13は、判定オブジェクト101の表示部品からの押出方向に応じて仮想地面150を作成する。このため、作成される仮想地面150の傾斜角度はキャラクタ100の大きさ及び/又は形状に応じて変わり、キャラクタ100の乗り越えられる段差の高さがキャラクタ100の大きさ及び/又は形状に応じて自動的に変わる。
As an example is shown in the character table 111, the size of the
例えば、図12(a)〜(c)に示すキャラクタ100Aは、図12(d)〜(f)に示すキャラクタ100Bよりも小さい。これに応じて、キャラクタ100Aに重ねる判定オブジェクト101Aは、キャラクタ100Bに重ねる判定オブジェクト101Bよりも小さく設定することができる。
For example, the
これにより、図12(a)及び(d)に示すキャラクタ100A、100Bの移動、図12(b)及び(e)に示すキャラクタ100A、100Bの着地補正の後の、図12(c)及び(f)に示す判定オブジェクト101A、101Bの押出方向が変わる。この結果、作成された仮想地面150A,150Bの角度は、判定オブジェクト101Aよりも大きい判定オブジェクト101B側の仮想地面150Bと地面102との角度θ2が、仮想地面150Aと地面102との角度θ1よりも小さくなる。
As a result, after the movement of the
このように、判定オブジェクト101の大きさをキャラクタ100に応じて変えることで、判定オブジェクト101の押出方向が変わり、これにより、作成する仮想地面150の傾斜を変えることができる。これにより、キャラクタ100Aでは登ることが困難な高さの表示部品106であっても、キャラクタ100Aよりも大きなキャラクタ100Bでは表示部品106を越える又は登る動作を、次のアクションに決定することが可能となる。
As described above, by changing the size of the
これにより、キャラクタ100Bは、表示部品106を乗り越えられるが、キャラクタ100Aは、表示部品106を乗り越えられないというように、キャラクタ100の大きさに応じて乗り越えられる段差の高さを自動的に変えることができる。これにより、キャラクタ100の大きさに応じてキャラクタ100の動作を自動で変え、キャラクタ100をゲーム上の地形とキャラクタ100の大きさ及び/又は形状に応じてスムーズに動作させることができる。
As a result, the
[変形例]
以上に説明したキャラクタ100の次のアクションは、一例であり、これに限られない。例えば、図13(a)に示した仮想地面150と地面102との角度θ3は45°以上である。この場合、決定部14は、動作ルールテーブル113に基づき、次のアクションを「動作停止」又は「落下」に決定する。
[Modification]
The next action of the
しかしながら、これに限らず、決定部14は、仮想地面150と地面102との角度θ3が45°以上である場合、キャラクタ100を表示部品107の壁面に沿って走らせる壁走りのアクションに決定してもよい。
However, the
例えば、動作ルールテーブル113に、仮想地面の角度θ3が45°以上の場合、壁走りのアクションを予め設定しておくことにより、決定部14は、仮想地面の角度θ3が45°以上の場合のキャラクタ100の次のアクションを壁走りに決定することができる。また、キャラクタ100の次のアクションは壁走りに限られず、表示部品107を登ったり、乗り越えたり、転がったりするアクションであってもよい。
For example, when the virtual ground angle θ 3 is 45° or more in the operation rule table 113, the deciding
10:情報処理装置
11:記憶部
12:入力部
13:特定部
14:決定部
15:動作制御部
16:グラフィック処理部
17:サウンド処理部
18:表示部
19:音出力部
21:CPU
22:ROM
23:RAM
24:HDD
25:グラフィックカード
26:外部I/F
26a:記録媒体
27:通信I/F
28:入力I/F
28a:メモリーカード
29:ディスプレイ
30:スピーカ
111:キャラクタテーブル
112:表示部品位置テーブル
113:動作ルールテーブル
150:仮想地面
10: information processing device 11: storage unit 12: input unit 13: specification unit 14: determination unit 15: operation control unit 16: graphic processing unit 17: sound processing unit 18: display unit 19: sound output unit 21: CPU
22: ROM
23: RAM
24: HDD
25: Graphic card 26: External I/F
26a: recording medium 27: communication I/F
28: Input I/F
28a: Memory card 29: Display 30: Speaker 111: Character table 112: Display component position table 113: Operation rule table 150: Virtual ground
Claims (11)
特定した前記仮想地面の情報に基づき、前記オブジェクトの次のアクションを決定する決定部と、
決定した前記次のアクションに基づき、前記ゲーム画面に表示するオブジェクトの動作を制御する動作制御部と、を有する情報処理装置。 A specific part that identifies the virtual ground below the object displayed on the game screen,
A determination unit that determines the next action of the object based on the information of the identified virtual ground;
An information processing device comprising: a motion control unit that controls a motion of an object displayed on the game screen based on the determined next action.
前記オブジェクトの大きさに応じて、ゲーム画面に表示されている表示部品において無視する段差及び/又は隙間を前記仮想地面に基づき変更し、無視する前記段差及び/又は隙間を変更して前記オブジェクトの次のアクションを決定する、
請求項1に記載の情報処理装置。 The determining unit is
Depending on the size of the object, the step and/or the gap to be ignored in the display component displayed on the game screen is changed based on the virtual ground, and the step and/or the gap to be ignored are changed to change the object. Determine the next action,
The information processing apparatus according to claim 1.
前記オブジェクトの大きさに応じたサイズであって前記オブジェクトに重ねて移動する判定オブジェクトの前記表示部品からの押出方向に応じて前記仮想地面を特定する、
請求項2に記載の情報処理装置。 The specific unit is
The virtual ground is specified according to the push-out direction from the display component of the determination object which is a size corresponding to the size of the object and moves overlapping with the object,
The information processing apparatus according to claim 2.
決定した前記次のアクションに基づき前記オブジェクトを動作させた後の前記判定オブジェクトの位置を補正し、
前記特定部は、
補正した前記判定オブジェクトの前記表示部品からの押出方向に応じて前記仮想地面を特定する、
請求項3に記載の情報処理装置。 The operation control unit,
Correct the position of the determination object after operating the object based on the determined next action,
The specific unit is
The virtual ground is specified according to the pushing direction from the display component of the corrected determination object,
The information processing apparatus according to claim 3.
特定した前記仮想地面の角度に基づき、前記オブジェクトの次のアクションを決定する、
請求項1〜4のいずれか一項に記載の情報処理装置。 The determining unit is
Determining the next action of the object based on the identified angle of the virtual ground,
The information processing device according to claim 1.
特定した前記仮想地面の角度が所定の角度未満である場合、前記オブジェクトの次のアクションを前記オブジェクトの直前の動作と同じ動作に決定する、
請求項1〜5のいずれか一項に記載の情報処理装置。 The determining unit is
If the specified angle of the virtual ground is less than a predetermined angle, the next action of the object is determined to be the same action as the previous action of the object,
The information processing device according to claim 1.
特定した前記仮想地面の角度が所定の角度以上である場合、前記オブジェクトの次のアクションを前記オブジェクトの直前の動作と異なる動作に決定する、
請求項1〜6のいずれか一項に記載の情報処理装置。 The determining unit is
If the specified angle of the virtual ground is greater than or equal to a predetermined angle, the next action of the object is determined to be a different action from the action immediately before the object,
The information processing apparatus according to claim 1.
前記仮想地面が特定されなかった場合、前記オブジェクトの次のアクションを、前記オブジェクトの直前の動作と異なる動作に決定する、
請求項1〜7のいずれか一項に記載の情報処理装置。 The determining unit is
If the virtual ground is not specified, the next action of the object is determined to be different from the previous action of the object,
The information processing device according to claim 1.
請求項1〜8のいずれか一項に記載の情報処理装置。 The specifying unit specifies the virtual ground for each frame,
The information processing device according to claim 1.
特定した前記仮想地面の情報に基づき、前記オブジェクトの次のアクションを決定し、
決定した前記次のアクションに基づき、前記ゲーム画面に表示するオブジェクトの動作を制御する、
処理をコンピュータが実行するゲーム処理方法。 Identify the virtual ground below the object displayed on the game screen,
Based on the information of the identified virtual ground, determine the next action of the object,
Based on the determined next action, control the operation of the object displayed on the game screen,
A game processing method in which a computer executes the processing.
特定した前記仮想地面の情報に基づき、前記オブジェクトの次のアクションを決定し、
決定した前記次のアクションに基づき、前記ゲーム画面に表示するオブジェクトの動作を制御する、
処理をコンピュータに実行させるゲーム処理プログラム。 Identify the virtual ground below the object displayed on the game screen,
Based on the information of the identified virtual ground, determine the next action of the object,
Based on the determined next action, control the operation of the object displayed on the game screen,
A game processing program that causes a computer to execute processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019021049A JP7290426B2 (en) | 2019-02-07 | 2019-02-07 | Information processing device, game processing method and game processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019021049A JP7290426B2 (en) | 2019-02-07 | 2019-02-07 | Information processing device, game processing method and game processing program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2020127589A true JP2020127589A (en) | 2020-08-27 |
JP7290426B2 JP7290426B2 (en) | 2023-06-13 |
Family
ID=72175131
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019021049A Active JP7290426B2 (en) | 2019-02-07 | 2019-02-07 | Information processing device, game processing method and game processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7290426B2 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006244046A (en) * | 2005-03-02 | 2006-09-14 | Nintendo Co Ltd | Collision determining program and collision determining device |
JP2010273946A (en) * | 2009-05-29 | 2010-12-09 | Nintendo Co Ltd | Game program and game apparatus |
JP2017217334A (en) * | 2016-06-10 | 2017-12-14 | 任天堂株式会社 | Game device, game control method and game program |
-
2019
- 2019-02-07 JP JP2019021049A patent/JP7290426B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006244046A (en) * | 2005-03-02 | 2006-09-14 | Nintendo Co Ltd | Collision determining program and collision determining device |
JP2010273946A (en) * | 2009-05-29 | 2010-12-09 | Nintendo Co Ltd | Game program and game apparatus |
JP2017217334A (en) * | 2016-06-10 | 2017-12-14 | 任天堂株式会社 | Game device, game control method and game program |
Also Published As
Publication number | Publication date |
---|---|
JP7290426B2 (en) | 2023-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9427663B2 (en) | Touch-controlled game character motion providing dynamically-positioned virtual control pad | |
JP3770499B1 (en) | GAME DEVICE AND GAME PROGRAM | |
US7884822B2 (en) | Game apparatus, storage medium storing a game program, and game controlling method | |
JP4741909B2 (en) | GAME DEVICE AND GAME PROGRAM | |
US11707669B2 (en) | Program, control method, and information processing apparatus | |
US8016671B2 (en) | Game apparatus and storage medium storing game program | |
JP3813945B2 (en) | GAME DEVICE AND GAME PROGRAM | |
US10232262B2 (en) | Information processing apparatus, motion control method, and non-transitory computer-readable recording medium | |
JP2006314705A (en) | Game program and game device | |
US20070197287A1 (en) | Storage medium storing game program and game apparatus | |
JP4788950B2 (en) | Image processing program, image processing method, and image processing apparatus | |
US11045732B2 (en) | Non-transitory computer readable storage medium storing image processing program, image processing method, and image processing device | |
JP5489195B2 (en) | Video game program and video game apparatus | |
JP2006149662A (en) | Game program and game device | |
JP7290426B2 (en) | Information processing device, game processing method and game processing program | |
EP1854520B1 (en) | Game program and game apparatus | |
US20070197286A1 (en) | Storage medium storing game program and game apparatus | |
JP6301813B2 (en) | GAME PROGRAM AND GAME DEVICE | |
JP4143590B2 (en) | 3D image processing apparatus, game apparatus, 3D image processing program, and game program | |
JPH11309273A (en) | Game device, game treating method and storage medium | |
JP2005027921A (en) | Game device and game program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20211111 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20221122 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20221125 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230123 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230314 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230410 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7426 Effective date: 20230412 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20230412 |
|
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: 20230516 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230601 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7290426 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |