JP4566221B2 - Video game processing apparatus and video game processing program - Google Patents
Video game processing apparatus and video game processing program Download PDFInfo
- Publication number
- JP4566221B2 JP4566221B2 JP2007189314A JP2007189314A JP4566221B2 JP 4566221 B2 JP4566221 B2 JP 4566221B2 JP 2007189314 A JP2007189314 A JP 2007189314A JP 2007189314 A JP2007189314 A JP 2007189314A JP 4566221 B2 JP4566221 B2 JP 4566221B2
- Authority
- JP
- Japan
- Prior art keywords
- movement
- player character
- correction mode
- collision
- determined
- 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
- 238000012545 processing Methods 0.000 title claims description 46
- 238000012937 correction Methods 0.000 claims description 165
- 238000000034 method Methods 0.000 claims description 42
- 230000008569 process Effects 0.000 claims description 41
- 230000009471 action Effects 0.000 claims description 15
- 230000004044 response Effects 0.000 claims description 14
- 230000008859 change Effects 0.000 claims description 11
- 238000004891 communication Methods 0.000 description 9
- 238000013459 approach Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012854 evaluation process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Processing Or Creating Images (AREA)
Description
本発明は、プレイヤキャラクタを画像表示装置の表示画面上に表示し、表示画面上に表示されているプレイヤキャラクタの移動を含む行動をプレイヤの操作に応じて制御することでビデオゲームの進行を制御するための技術に関する。 The present invention controls the progress of a video game by displaying a player character on a display screen of an image display device and controlling an action including movement of the player character displayed on the display screen in accordance with the operation of the player. It relates to technology.
従来から、RPG(ロールプレイングゲーム:プレイヤがゲームの世界の中であるキャラクタの役割を演じ、様々な経験を通して成長していく過程を楽しみながら、所定の目的を達成していくゲーム。)と呼ばれるゲームなどの様々なジャンルのビデオゲームが提供されている。 Conventionally, it is called RPG (Role Playing Game: A game in which a player plays the role of a character in the game world and enjoys the process of growing through various experiences while achieving a predetermined purpose). Various genres of video games such as games are provided.
このようなビデオゲームにおいて、プレイヤが操作するキャラクタ(プレイヤキャラクタ)がゲームにおけるフィールド上を移動しているときに、プレイヤキャラクタの視線の変化に伴い3次元空間の表示形態が変化しても、プレイヤが継続して操作指示している進行方向にプレイヤキャラクタを継続して移動させていくようにしたものがある(特許文献1参照)。 In such a video game, even when the character operated by the player (player character) is moving on the field in the game, even if the display form of the three-dimensional space changes with the change in the line of sight of the player character, the player Has continuously moved the player character in the advancing direction instructed to operate (see Patent Document 1).
上述した特許文献1に記載された発明は、プレイヤキャラクタがゲームにおけるフィールド上を移動しているときに壁などの障害物に当った場合については言及されていない。プレイヤキャラクタが障害物に当った場合に、プレイヤが継続して操作指示している進行方向とは一致しない進行可能な方向にプレイヤキャラクタが移動していくように、自動的に進行方向を補正することが考えられる。しかしながら、プレイヤキャラクタがスムーズに移動していくように進行方向を補正することは困難であり、スムーズでない不自然な動きになってしまうため、プレイヤにストレスを与えることとなっているという問題があった。特にRPGなどのビデオゲームでは、プレイヤキャラクタが移動していくシーンが多く登場するため、プレイヤのストレスにならないようスムーズにプレイヤキャラクタを移動させることができるようなものが望まれている。
The invention described in
本発明は、上記の問題を解消すべく、ゲームにおけるフィールド上に障害物が配置されている場合であっても、プレイヤによる移動指示操作を厳格に要求することなく簡単な操作でプレイヤキャラクタをスムーズに移動させることができ、プレイヤキャラクタの移動操作に関わるプレイヤのストレスを低減させることができるようにすることを目的とする。 In order to solve the above problems, the present invention smoothes the player character with a simple operation without strictly requesting the movement instruction operation by the player even when an obstacle is placed on the field in the game. An object of the present invention is to reduce the stress of the player related to the movement operation of the player character.
本発明のビデオゲーム処理装置は、プレイヤキャラクタを画像表示装置の表示画面上に表示し、前記表示画面上に表示されている前記プレイヤキャラクタの移動を含む行動をプレイヤの操作に応じて制御することでビデオゲームの進行を制御するビデオゲーム処理装置であって、プレイヤによる入力装置の移動指示操作に応じた前記プレイヤキャラクタの移動方向の指定を受け付ける移動方向受付手段と、前記プレイヤキャラクタが移動する位置を決定する移動位置決定手段と、前記ビデオゲームで用いられるゲームフィールド上に配置されている障害物に前記プレイヤキャラクタが衝突したか否かを判定する衝突判定手段と、該衝突判定手段により衝突したと判定されたときに、前記プレイヤキャラクタの移動位置を補正する補正モードに設定されていなければ、当該補正モードに設定する補正モード設定手段と、前記補正モードに設定されていないときに前記衝突判定手段により衝突したと判定されたときは、前記障害物の配置方向ベクトルと前記移動指示操作に応じた移動指示方向ベクトルとの内積値を算出する第1内積算出手段と、前記補正モードに設定されているときに前記衝突判定手段により衝突したと判定されたときは、前記障害物の配置方向ベクトルと当該障害物の前回衝突時の配置方向ベクトルである前回配置方向ベクトルとの内積値を算出する第2内積算出手段と、前記移動方向受付手段が受け付けた移動方向が変更したか否かを判定する変更判定手段と、前記補正モードに設定されているときに、前記変更判定手段により移動方向が変更したと判定された場合には、前記補正モードの設定を解除する操作判定補正モード解除手段と、を含み、前記移動位置決定手段は、前記補正モードが設定されていないときは、前記移動方向受付手段が受け付けた移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードに設定されていないときに前記衝突判定手段により衝突したと判定されたときは、前記第1内積算出手段により算出された内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードに設定されているときに前記衝突判定手段により衝突したと判定されたときは、前記第2内積算出手段により算出された内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードが設定されているときに前記衝突判定手段により衝突していないと判定されたときは、前記移動方向受付手段が受け付けた移動方向に向かう移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定することを特徴とする。
また、本発明のビデオゲーム処理装置は、プレイヤキャラクタを画像表示装置の表示画面上に表示し、前記表示画面上に表示されている前記プレイヤキャラクタの移動を含む行動をプレイヤの操作に応じて制御することでビデオゲームの進行を制御するビデオゲーム処理装置であって、プレイヤによる入力装置の移動指示操作に応じた前記プレイヤキャラクタの移動方向の指定を受け付ける移動方向受付手段と、前記プレイヤキャラクタが移動する位置を決定する移動位置決定手段と、前記ビデオゲームで用いられるゲームフィールド上に配置されている障害物に前記プレイヤキャラクタが衝突したか否かを判定する衝突判定手段と、該衝突判定手段により衝突したと判定されたときに、前記プレイヤキャラクタの移動位置を補正する補正モードに設定されていなければ、当該補正モードに設定する補正モード設定手段と、前記補正モードに設定されていないときに前記衝突判定手段により衝突したと判定されたときは、前記障害物の配置方向ベクトルと前記移動指示操作に応じた移動指示方向ベクトルとの内積値を算出する第1内積算出手段と、前記補正モードに設定されているときに前記衝突判定手段により衝突したと判定されたときは、前記障害物の配置方向ベクトルと当該障害物の前回衝突時の配置方向ベクトルである前回配置方向ベクトルとの内積値を算出する第2内積算出手段と、を含み、前記移動位置決定手段は、前記補正モードが設定されていないときは、前記移動方向受付手段が受け付けた移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードに設定されていないときに前記衝突判定手段により衝突したと判定されたときは、前記第1内積算出手段により算出された内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードに設定されているときに前記衝突判定手段により衝突したと判定されたときは、前記第2内積算出手段により算出された内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードが設定されているときに前記衝突判定手段により衝突していないと判定されたときは、前記移動方向受付手段が受け付けた移動方向に向かう移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定する構成とされ、前記補正モードが設定されているときに前記衝突判定手段により衝突していないと判定されたことに応じて前記移動位置決定手段によって決定された移動位置にプレイヤキャラクタが移動されたあと、前記移動方向受付手段が受け付けた移動方向と前記プレイヤキャラクタの進行方向との角度があらかじめ定められた補正モード解除値以下であるか否か判定する角度判定手段と、該角度判定手段により前記補正モード解除値以下であると判定されたときに、前記補正モードの設定を解除する角度判定補正モード解除手段とを含むことを特徴とする。
The video game processing device of the present invention displays a player character on a display screen of an image display device, and controls an action including movement of the player character displayed on the display screen according to an operation of the player. A moving direction receiving means for receiving a designation of the moving direction of the player character in response to a moving instruction operation of the input device by the player, and a position at which the player character moves. A collision determination means for determining whether or not the player character has collided with an obstacle arranged on a game field used in the video game, and a collision determination means Is determined to be in the correction mode for correcting the movement position of the player character. If not determined, the correction mode setting means for setting the correction mode, and when the collision determination means determines that the collision has occurred when the correction mode is not set, A first inner product calculating means for calculating an inner product value with a movement instruction direction vector corresponding to the movement instruction operation; and when the collision determination means determines that a collision has occurred when the correction mode is set, Second inner product calculation means for calculating an inner product value of the obstacle arrangement direction vector and the previous arrangement direction vector which is the arrangement direction vector at the time of the previous collision of the obstacle; and the movement direction received by the movement direction reception means Change determination means for determining whether or not the movement direction has been changed, and when the correction mode is set, the change determination means determines that the moving direction has been changed. Includes an operation determination correction mode cancellation unit that cancels the setting of the correction mode, and the movement position determination unit is configured to move the movement direction received by the movement direction reception unit when the correction mode is not set. The movement position of the player character to be moved to is determined, and when it is determined that the collision determination means has collided when the correction mode is not set, the inner product calculated by the first inner product calculation means A movement position of the player character for moving in the movement direction along the obstacle is determined based on the movement direction based on the value, and when the correction mode is set, the collision determination unit determines that the collision has occurred. When the second inner product calculating means moves the moving direction along the obstacle in the moving direction based on the inner product value calculated by the second inner product calculating means. When the movement position of the player character is determined and the collision determination means determines that there is no collision when the correction mode is set, the movement direction toward the movement direction received by the movement direction reception means is set. The moving position of the player character for moving is determined.
The video game processing apparatus of the present invention displays a player character on a display screen of an image display device, and controls an action including movement of the player character displayed on the display screen according to an operation of the player. A video game processing apparatus for controlling the progress of the video game, wherein the player character moves in accordance with movement direction reception means for receiving designation of the movement direction of the player character in response to a movement instruction operation of the input device by the player. A moving position determining means for determining a position to be played, a collision determining means for determining whether or not the player character has collided with an obstacle arranged on the game field used in the video game, and the collision determining means A correction mode for correcting the movement position of the player character when it is determined that a collision has occurred. If it is determined that the collision has occurred by the collision determination unit when the correction mode is not set and the collision determination unit determines that the collision has occurred, the obstacle orientation direction is set. A first inner product calculating unit that calculates an inner product value of a vector and a movement instruction direction vector corresponding to the movement instruction operation; and when the collision determination unit determines that a collision has occurred when the correction mode is set Includes second inner product calculation means for calculating an inner product value of the obstacle arrangement direction vector and the previous arrangement direction vector which is the arrangement direction vector at the time of the previous collision of the obstacle, and the movement position determination means When the correction mode is not set, the moving position of the player character for moving in the moving direction received by the moving direction receiving means is determined. The time it is determined that the collision by the collision determining means when not set to the correction mode, the moving direction along the obstacle movement direction based on the scalar product value calculated by the first inner product calculating means The movement position of the player character to be moved to is determined, and when it is determined that the collision determination unit has collided when the correction mode is set, the inner product calculated by the second inner product calculation unit A movement position of the player character for moving in the movement direction along the obstacle is determined based on the movement direction based on the value, and it is determined that the collision determination unit does not collide when the correction mode is set. When the player character is moved, the moving position of the player character for moving in the moving direction toward the moving direction received by the moving direction receiving means When the correction mode is set, the player character moves to the movement position determined by the movement position determination unit when the collision determination unit determines that no collision has occurred. After that, an angle determination unit that determines whether or not an angle between the movement direction received by the movement direction reception unit and the traveling direction of the player character is equal to or less than a predetermined correction mode release value, and the angle determination unit And an angle determination correction mode canceling means for canceling the setting of the correction mode when it is determined that the correction mode is not more than the correction mode cancel value.
上記の構成としたことで、ゲームにおけるフィールド上に障害物が配置されている場合であっても、プレイヤによる移動指示操作を厳格に要求することなく簡単な操作でプレイヤキャラクタをスムーズに移動させることができ、プレイヤキャラクタの移動操作に関わるプレイヤのストレスを低減させることができるようになる。 With the above configuration, even when an obstacle is placed on the field in the game, the player character can be smoothly moved by a simple operation without strictly requesting a movement instruction operation by the player. It is possible to reduce the stress of the player related to the movement operation of the player character.
前記プレイヤキャラクタの向きを決定する方向決定手段を含み、前記方向決定手段は、前記補正モードが設定されていないときは、前記移動方向受付手段が受け付けた移動方向に向かせるための前記プレイヤキャラクタの向きを決定し、前記衝突判定手段により衝突したと判定されたときは、前記第1内積算出手段により算出された内積値に基づく回転方向で前記障害物に沿った方向に所定角度回転させた方向に向かせるための前記プレイヤキャラクタの向きを決定し、前記補正モードが設定されているときに前記衝突判定手段により衝突していないと判定されたときは、前記移動方向受付手段が受け付けた移動方向に特定角度回転させた方向に向かせるための前記プレイヤキャラクタの向きを決定するように構成されていてもよい。 Direction determining means for determining the direction of the player character, and the direction determining means is adapted to determine the direction of the player character to be directed in the moving direction received by the moving direction receiving means when the correction mode is not set. When the direction is determined and it is determined by the collision determination means that the vehicle has collided, the rotation direction based on the inner product value calculated by the first inner product calculation means is rotated by a predetermined angle in the direction along the obstacle. The direction of the player character to be directed to the movement direction, and when the correction mode is set, when the collision determination means determines that there is no collision, the movement direction received by the movement direction reception means It may be configured to determine the orientation of the player character to be directed in a direction rotated by a specific angle.
前記移動位置決定手段が決定した移動位置に前記方向決定手段が決定した向きで前記プレイヤキャラクタを表示するプレイヤキャラクタ表示手段を含む構成とされていてもよい。 The moving position determined by the moving position determination means may include a player character display means for displaying the player character in the direction determined by the direction determination means.
前記所定角度は、前記特定角度よりも大きい角度にあらかじめ設定されていることが望ましい。 The predetermined angle is preferably set in advance to an angle larger than the specific angle.
前記衝突判定手段は、前記プレイヤキャラクタの現在位置と前記移動方向受付手段が受け付けた移動方向とに基づき移動予定位置を算出し、算出した移動予定位置が前記障害物の配置領域内であるか否かを確認することによって当該障害物に前記プレイヤキャラクタが衝突したか否かを判定するように構成されていてもよい。 The collision determination unit calculates a planned movement position based on the current position of the player character and the movement direction received by the movement direction reception unit, and whether or not the calculated planned movement position is within the obstacle arrangement region. It may be configured to determine whether or not the player character has collided with the obstacle.
さらに、本発明のビデオゲーム処理プログラムは、画像表示装置の表示画面上に表示されているプレイヤキャラクタの移動を含む行動をプレイヤの操作に応じて制御することでビデオゲームの進行を制御させるビデオゲーム処理プログラムであって、コンピュータに、プレイヤによる入力装置の移動指示操作に応じた前記プレイヤキャラクタの移動方向の指定を受け付ける移動方向受付ステップと、前記プレイヤキャラクタが移動する位置を決定する移動位置決定ステップと、前記ビデオゲームで用いられるゲームフィールド上に配置されている障害物に前記プレイヤキャラクタが衝突したか否かを判定する衝突判定ステップと、該衝突判定ステップにて衝突したと判定したときに、前記プレイヤキャラクタの移動位置を補正する補正モードに設定されていなければ、当該補正モードに設定する補正モード設定ステップと、前記補正モードに設定されていないときに前記衝突判定ステップにて衝突したと判定したときは、前記障害物の配置方向ベクトルと前記移動指示操作に応じた移動指示方向ベクトルとの内積値を算出する第1内積算出ステップと、前記補正モードに設定されているときに前記衝突判定ステップにて衝突したと判定したときは、前記障害物の配置方向ベクトルと当該障害物の前回衝突時の配置方向ベクトルである前回配置方向ベクトルとの内積値を算出する第2内積算出ステップと、前記移動方向受付ステップにて受け付けた移動方向が変更したか否かを判定する変更判定ステップと、前記補正モードに設定されているときに、前記変更判定ステップにて移動方向が変更したと判定した場合に、前記補正モードの設定を解除する操作判定補正モード解除ステップと、を実行させ、前記移動位置決定ステップでは、前記補正モードが設定されていないときは、前記移動方向受付ステップにて受け付けた移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードに設定されていないときに前記衝突判定ステップにて衝突したと判定したときは、前記第1内積算出ステップにて算出した内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードに設定されているときに前記衝突判定ステップにて衝突したと判定したときは、前記第2内積算出ステップにて算出した内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードが設定されているときに前記衝突判定ステップにて衝突していないと判定したときは、前記移動方向受付ステップにて受け付けた移動方向に向かう移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定する処理を実行させるためのものである。
また、本発明のビデオゲーム処理プログラムは、画像表示装置の表示画面上に表示されているプレイヤキャラクタの移動を含む行動をプレイヤの操作に応じて制御することでビデオゲームの進行を制御させるビデオゲーム処理プログラムであって、コンピュータに、プレイヤによる入力装置の移動指示操作に応じた前記プレイヤキャラクタの移動方向の指定を受け付ける移動方向受付ステップと、前記プレイヤキャラクタが移動する位置を決定する移動位置決定ステップと、前記ビデオゲームで用いられるゲームフィールド上に配置されている障害物に前記プレイヤキャラクタが衝突したか否かを判定する衝突判定ステップと、該衝突判定ステップにて衝突したと判定したときに、前記プレイヤキャラクタの移動位置を補正する補正モードに設定されていなければ、当該補正モードに設定する補正モード設定ステップと、前記補正モードに設定されていないときに前記衝突判定ステップにて衝突したと判定したときは、前記障害物の配置方向ベクトルと前記移動指示操作に応じた移動指示方向ベクトルとの内積値を算出する第1内積算出ステップと、前記補正モードに設定されているときに前記衝突判定ステップにて衝突したと判定したときは、前記障害物の配置方向ベクトルと当該障害物の前回衝突時の配置方向ベクトルである前回配置方向ベクトルとの内積値を算出する第2内積算出ステップと、を実行させ、前記移動位置決定ステップでは、前記補正モードが設定されていないときは、前記移動方向受付ステップにて受け付けた移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードに設定されていないときに前記衝突判定ステップにて衝突したと判定したときは、前記第1内積算出ステップにて算出した内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードに設定されているときに前記衝突判定ステップにて衝突したと判定したときは、前記第2内積算出ステップにて算出した内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、前記補正モードが設定されているときに前記衝突判定ステップにて衝突していないと判定したときは、前記移動方向受付ステップにて受け付けた移動方向に向かう移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定する処理を実行させ、さらに、前記補正モードが設定されているときに前記衝突判定ステップにて衝突していないと判定したことに応じて前記移動位置決定ステップにて決定した移動位置にプレイヤキャラクタが移動されたあと、前記移動方向受付ステップにて受け付けた移動方向と前記プレイヤキャラクタの進行方向との角度があらかじめ定められた補正モード解除値以下であるか否か判定する角度判定ステップと、該角度判定ステップにて前記補正モード解除値以下であると判定したときに、前記補正モードの設定を解除する角度判定補正モード解除ステップとを実行させるためのものである。
Furthermore, the video game processing program of the present invention controls the progress of the video game by controlling the action including the movement of the player character displayed on the display screen of the image display device according to the operation of the player. A processing program, a moving direction receiving step for receiving a designation of a moving direction of the player character in response to a movement instruction operation of the input device by the player, and a moving position determining step for determining a position where the player character moves A collision determination step for determining whether or not the player character has collided with an obstacle arranged on the game field used in the video game, and when it is determined that the collision has occurred in the collision determination step, Correction mode for correcting the movement position of the player character If it is not set, a correction mode setting step for setting the correction mode, and when it is determined that the collision has occurred in the collision determination step when the correction mode is not set, When it is determined that a collision has occurred in the first inner product calculation step of calculating the inner product value with the movement instruction direction vector corresponding to the movement instruction operation, and the collision determination step when the correction mode is set, A second inner product calculating step of calculating an inner product value of the obstacle arrangement direction vector and the previous arrangement direction vector which is the arrangement direction vector at the time of the previous collision of the obstacle; and the movement received in the movement direction reception step. A change determination step for determining whether or not the direction has changed, and a movement method in the change determination step when the correction mode is set. When it is determined that the correction mode has been changed, an operation determination correction mode release step for canceling the setting of the correction mode is executed, and in the movement position determination step, the movement direction is determined when the correction mode is not set. When the movement position of the player character to be moved in the movement direction received in the reception step is determined and it is determined that the collision has occurred in the collision determination step when the correction mode is not set, The collision position is determined when the movement position of the player character for moving in the movement direction along the obstacle is determined in the movement direction based on the inner product value calculated in the inner product calculation step , and the correction mode is set. When it is determined that the collision has occurred in the step , the obstacle is moved in the moving direction based on the inner product value calculated in the second inner product calculating step . The movement position of the player character for moving in the movement direction along the harmful object is determined, and when the collision determination step determines that no collision has occurred when the correction mode is set, the movement is performed. This is for executing a process of determining the moving position of the player character for moving in the moving direction toward the moving direction received in the direction receiving step.
The video game processing program of the present invention is a video game for controlling the progress of a video game by controlling an action including movement of a player character displayed on a display screen of an image display device according to the operation of the player. A processing program, a moving direction receiving step for receiving a designation of a moving direction of the player character in response to a movement instruction operation of the input device by the player, and a moving position determining step for determining a position where the player character moves A collision determination step for determining whether or not the player character has collided with an obstacle arranged on the game field used in the video game, and when it is determined that the collision has occurred in the collision determination step, A correction mode for correcting the movement position of the player character If not determined, the correction mode setting step for setting the correction mode, and when the collision determination step determines that there is a collision when the correction mode is not set, When it is determined that a collision has occurred in the first inner product calculation step of calculating the inner product value with the movement instruction direction vector corresponding to the movement instruction operation, and the collision determination step when the correction mode is set, A second inner product calculation step of calculating an inner product value of the obstacle arrangement direction vector and a previous arrangement direction vector which is an arrangement direction vector at the time of the previous collision of the obstacle, and in the movement position determination step, When the correction mode is not set, the player character for moving in the moving direction received in the moving direction receiving step. Determines the moving position of Kuta, the when it is determined that the collision at the collision judging step when not set to the correction mode, the mobile direction based on the inner product value calculated by said first inner product calculating step When the movement position of the player character for moving in the movement direction along the obstacle is determined and it is determined that the collision has occurred in the collision determination step when the correction mode is set, the second inner product is determined. A movement position of the player character for moving in the movement direction along the obstacle is determined in the movement direction based on the inner product value calculated in the calculation step, and the collision determination step is performed when the correction mode is set. When it is determined that there is no collision at the moving direction receiving step, the moving direction toward the moving direction received in the moving direction receiving step is A process of determining the movement position of the player character is executed, and further, determined in the movement position determination step in response to determining that the collision has not occurred in the collision determination step when the correction mode is set. After the player character is moved to the moved position, it is determined whether or not the angle between the moving direction received in the moving direction receiving step and the moving direction of the player character is equal to or less than a predetermined correction mode release value. An angle determination step and an angle determination correction mode release step for canceling the setting of the correction mode when it is determined that the correction mode release value is equal to or less than the correction mode release value at the angle determination step.
本発明によれば、ゲームにおけるフィールド上に障害物が配置されている場合であっても、プレイヤによる移動指示操作を厳格に要求することなく簡単な操作でプレイヤキャラクタをスムーズに移動させることができ、プレイヤキャラクタの移動操作に関わるプレイヤのストレスを低減させることができるようになる。 According to the present invention, even when an obstacle is placed on the field in the game, the player character can be smoothly moved by a simple operation without strictly requesting a movement instruction operation by the player. The player's stress related to the player character movement operation can be reduced.
以下、本発明の一実施の形態について図面を参照して説明する。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
図1は、本発明の一実施の形態における描画装置の一例を示すビデオゲーム装置100の構成の例を示すブロック図である。図1に示すように、本例のビデオゲーム装置100は、ビデオゲーム装置本体10と、表示装置50と、サウンド出力装置60とを含む。ビデオゲーム装置本体10は、例えば市販のビデオゲーム機によって構成される。また、表示装置50は、例えばテレビジョン装置や液晶表示装置などによって構成され、画像表示部51を有している。
FIG. 1 is a block diagram showing an example of the configuration of a video game apparatus 100 showing an example of a drawing apparatus according to an embodiment of the present invention. As shown in FIG. 1, the video game apparatus 100 of this example includes a video game apparatus
ビデオゲーム装置本体10は、制御部11と、RAM12と、ハードディスクドライブ(HDD)13と、サウンド処理部14と、グラフィック処理部15と、DVD/CD−ROMドライブ16と、通信インターフェイス17と、インターフェイス部18と、フレームメモリ19と、メモリーカードスロット20と、入力インターフェイス部21とを含む。
The video
制御部11、RAM12、ハードディスクドライブ(HDD)13、サウンド処理部14、グラフィック処理部15、DVD/CD−ROMドライブ16、通信インターフェイス17、及びインターフェイス部18は、それぞれ内部バス22に接続されている。
The
制御部11は、CPUやROMなどを含み、HDD13や記憶媒体70に格納された制御プログラムに従ってビデオゲーム装置100全体の制御を行う。制御部11は、タイマ割り込みを発生させるため等に用いられる内部タイマを備えている。RAM12は、制御部11のワークエリアとして用いられる。HDD13は、制御プログラムや各種のデータを保存するための記憶領域である。
The
サウンド処理部14は、例えばスピーカによって構成されるサウンド出力装置60に接続される。サウンド処理部14は、制御プログラムに従って処理を実行している制御部11からのサウンド出力指示に従って、サウンド出力装置60に対してサウンド信号を出力する。なお、サウンド出力装置60は、表示装置50あるいはビデオゲーム装置本体10に内蔵されていてもよい。
The
グラフィック処理部15は、画面表示がなされる画像表示部51を有する表示装置50に接続される。グラフィック処理部15は、制御部11からの描画命令に従って、フレームメモリ19に画像を展開するとともに、画像表示部51に画像を表示させるためのビデオ信号を表示装置50に対して出力する。ビデオ信号によって表示される画像の切替時間は、例えば、1フレームあたり1/30秒とされる。
The
DVD/CD−ROMドライブ16には、DVD−ROMやCD−ROMなどのゲーム用の制御プログラムが格納された記憶媒体70が装着される。DVD/CD−ROMドライブ16は、装着された記憶媒体70から、制御プログラムなどの各種データを読み出す処理を行う。
The DVD / CD-
通信インターフェイス17は、インターネットなどの通信ネットワーク80に無線あるいは有線によって接続される。ビデオゲーム装置本体10は、通信インターフェイス17における通信機能を用いて、通信ネットワーク80を介して例えば他のコンピュータとの通信を行う。
The
インターフェイス部18には、入力インターフェイス部21と、メモリカードスロット20とが接続される。インターフェイス部18は、プレイヤによるキーパッド30の操作にもとづく入力インターフェイス部21からの指示データをRAM12に格納する。すると、RAM12に格納された指示データに従って、制御部11が各種の演算処理を実行する。
An
ビデオゲーム装置本体10は、入力インターフェイス部21を介して操作入力部(コントローラ)としてのキーパッド30に接続される。
The video
キーパッド30の上部には、十字キー31と、ボタン群32と、左ジョイスティック38と、右ジョイスティック39とが配設されており、十字キー31には、上方キー31a、下方キー31b、右方キー31c及び左方キー31dが含まれ、ボタン群32には、○ボタン32a、×ボタン32b、△ボタン32c及び□ボタン32dが含まれる。また、十字キー31が配設される基部と、ボタン群32とが配設される基部との連結部には、セレクトボタン35が配設されている。なお、キーパッド30の側部にもR1ボタン36やL1ボタン33等の複数のボタンが配設されている。
At the top of the
キーパッド30は、十字キー31、○ボタン32a、×ボタン32b、△ボタン32c、□ボタン32d、セレクトボタン35、R1ボタン36及びL1ボタン33等のそれぞれと連係するスイッチを備え、各ボタンに対して押圧力が加えられると、その対応したスイッチがオンする。このスイッチのオン/オフに応じた検出信号がキーパッド30において生成されると共に、左ジョイスティック38及び右ジョイスティック39のそれぞれの傾倒方位に対応した検出信号がキーパッド30において生成される。
The
キーパッド30において生成された2系統の検出信号が入力インターフェイス部21に供給され、キーパッド30からの検出信号が入力インターフェイス部21を介されることによりキーパッド30上のどのボタンがオンされたかを示す検出情報と、左ジョイスティック38及び右ジョイスティック39のそれぞれの状態を示す検出情報となる。このようにキーパッド30に対してなされたプレイヤによる操作指令がビデオゲーム装置本体10に与えられる。
Two detection signals generated in the
また、インターフェイス部18は、制御部11からの指示に従って、RAM12に記憶されているゲームの進行状況を示すデータをメモリカードスロット20に装着されているメモリーカード90に格納する処理や、メモリーカード90に保存されている中断時のゲームのデータを読み出してRAM12に転送する処理などを行う。
In addition, the
ビデオゲーム装置100でゲームを行うための制御プログラムなどの各種のデータは、例えば記憶媒体70に記憶されている。記憶媒体70に記憶されている制御プログラムなどの各種のデータは、記憶媒体70が装着されているDVD/CD−ROMドライブ16によって読み出され、RAM12にロードされる。制御部11は、RAM12にロードされた制御プログラムに従って、グラフィック処理部15に対して描画命令を出力する処理や、サウンド処理部14に対してサウンド出力の指示を出力する処理などの各種の処理を実行する。なお、制御部11が処理を実行している間は、ワークメモリとして用いられるRAM12に、ゲームの進行状況によって中間的に発生するデータ(例えば、ゲームの得点、プレイヤキャラクタの状態を示すデータなど)が保存される。
Various data such as a control program for playing a game on the video game apparatus 100 is stored in the
この実施の形態に係る3次元ビデオゲームは、仮想3次元空間に設けられたフィールド上でゲームが進行していくものであるものとする。なお、フィールドが形成された仮想3次元空間は、ワールド座標系によって示されるものとする。フィールドは、複数の面で構成され、各構成面の頂点の座標を特徴点として表したものである。 The three-dimensional video game according to this embodiment is assumed to be a game that progresses on a field provided in a virtual three-dimensional space. Note that the virtual three-dimensional space in which the field is formed is indicated by the world coordinate system. The field is composed of a plurality of surfaces, and the coordinates of the vertices of each component surface are represented as feature points.
次に、本例のビデオゲーム装置100の動作について説明する。
ここでは、説明を簡単にするため、本発明に特に関わる処理以外は、説明を省略している場合があるものとする。なお、本例では、RPGについてのビデオゲーム制御が実行されるものとする。
Next, the operation of the video game apparatus 100 of this example will be described.
Here, in order to simplify the description, the description may be omitted except for the processing particularly related to the present invention. In this example, it is assumed that video game control for RPG is executed.
図2は、本例のビデオゲーム装置100におけるメイン処理の例を示すフローチャートである。メイン処理は、1フレーム分の画像を生成するための処理、及びビデオゲームの制御に必要な処理であり、1/30秒ごとのタイマ割り込みに応じて実行される。なお、「1/30秒ごと」は一例であり、メイン処理は、例えば、1フィールド期間(1/60秒)ごとのタイマ割り込みに応じて実行されるものとしても、処理量によっては2フレーム期間(1/15秒)ごとのタイマ割り込みに応じて実行されるものとしてもよい。 FIG. 2 is a flowchart showing an example of main processing in the video game apparatus 100 of the present example. The main process is a process for generating an image for one frame and a process necessary for controlling the video game, and is executed in response to a timer interrupt every 1/30 seconds. Note that “every 1/30 seconds” is an example, and the main process may be executed in response to a timer interrupt for each field period (1/60 seconds), for example, depending on the amount of processing. It may be executed in response to a timer interrupt every (1/15 seconds).
メイン処理において、制御部11は、ゲーム開始前であればプレイヤによるキーパッド30の操作によりゲームの開始指示があったか否かを判定し、ゲームの実行中であれば場面変更(例えばフィールドの変更)を行うタイミングとなったか否かを判定する(ステップS101)。場面変更を行うタイミングは、例えば、これまで画像表示部51に表示していた場面(例えば、仮想3次元空間によって表されている場面)を終了し、新たな場面に切り替えるために、画像表示部51に新たな場面を示す仮想3次元空間を表示するタイミングを意味する。
In the main process, the
ゲームの開始指示があったと判定したとき、あるいは場面変更を行うタイミングとなったと判定したときは(ステップS101のY)、制御部11は、制御プログラムに従って、初期画面(ゲーム開始時の初期画面、場面変更時の初期画面)を決定する(ステップS102)。なお、ゲームに用いられる画面やキャラクタなどの各種のデータは、記憶媒体70に格納されている。
When it is determined that there is an instruction to start the game, or when it is determined that it is time to change the scene (Y in step S101), the
次いで、制御部11は、仮想カメラの視点の位置、視軸の方向、および視角の大きさを、制御プログラムに従って決定し、透視変換を行うための仮想カメラの初期設定を行う(ステップS103)。そして、ステップS115に移行する。
Next, the
ゲームの実行中であり場面変更を行うタイミングでないと判定したときは(ステップS101のN)、制御部11は、プレイヤによるキーパッド30の操作にもとづく指示データを受け付ける(ステップS104)。ステップS104にて移動に関する行動を指示するための指示データを受け付けた場合には(ステップS105のY)、制御部11は、受け付けた移動指示データに応じて移動処理を実行し(ステップS106)、移動処理に伴って派生するプレイヤキャラクタの位置情報にもとづいて移動情報を生成する(ステップS107)。そして、ステップS113に移行する。
When it is determined that the game is being executed and it is not time to change the scene (N in Step S101), the
ステップS104にて戦闘に関する行動を指示するための指示データを受け付けた場合には(ステップS108のY)、制御部11は、受け付けたバトル指示データに応じてバトル処理を実行し(ステップS109)、バトル処理によって決定された戦闘結果や戦闘経過にもとづいてバトル情報を生成する(ステップS110)。そして、ステップS113に移行する。
When the instruction data for instructing the action related to the battle is received in step S104 (Y in step S108), the
ステップS104にてその他の指示のための指示データを受け付けた場合には(ステップS111のY)、制御部11は、受け付けたその他指示データに応じた処理(例えば、会話、買物、拾得等)を実行し(ステップS112)、この処理結果に応じたその他の諸情報を生成する。そして、ステップS113に移行する。
When instruction data for other instructions is received in step S104 (Y in step S111), the
ステップS113にて、制御部11は、ステップS107にて生成した移動情報をRAM12の所定のデータ領域に格納することにより、プレイヤキャラクタの現在位置を更新する。また、ステップS113にて、制御部11は、ステップS110にて生成したバトル情報や、ステップS112の後に生成したその他の諸情報をRAM12の所定のデータ領域に格納することにより、プレイヤキャラクタの各種の行動履歴を記憶保持する。
In step S113, the
次いで、制御部11は、RAM12に一旦格納されたプレイヤキャラクタの行動履歴を示す情報にもとづいて、行動評価処理を実行する(ステップS114)。
Next, the
そして、制御部11は、仮想カメラの設定内容等に応じて、仮想カメラから表示すべきプレイヤキャラクタやノンプレイヤキャラクタを含む仮想3次元空間を仮想スクリーン上に透視変換して、画像表示部51に表示させる2次元画像を生成するための表示処理を行う(ステップS115)。表示処理を終了すると、今回のメイン処理を終了する。その後、次のフレーム期間の開始タイミングにおいてタイマ割り込みが発生すると、次回のメイン処理が実行されることとなる。そして、メイン処理が繰り返し実行されることで、キャラクタ画像がフレーム期間毎に切り替えられて、画像表示部51にて動画が表示されることになる。
Then, the
ここで、ステップS115の表示処理について簡単に説明する。ステップS115では、制御部11は、先ず、プレイヤキャラクタやノンプレイヤキャラクタを含む仮想3次元空間を構成するポリゴンの頂点の座標のうち、少なくとも仮想スクリーン上に透視変換される範囲に含まれるポリゴンの頂点の座標を、ワールド座標系の座標から視点座標系の座標に変換する。次いで、制御部11は、プレイヤキャラクタやノンプレイヤキャラクタについての視点座標系におけるポリゴンの頂点の座標をグラフィック処理部15に送信し、グラフィック処理部15に対して描画命令を出力する。
Here, the display process in step S115 will be briefly described. In step S115, the
描画命令が入力されると、グラフィック処理部15は、視点座標系の座標にもとづいて、各面を構成する各点について、前側にある点のデータが残るようにZバッファの内容を更新する。Zバッファの内容を更新すると、グラフィック処理部15は、前側にある残った点についての画像データをフレームメモリ19に展開する。また、グラフィック処理部15は、展開される画像データに対して、シェーディングやテクスチャマッピングなどの処理も行う。
When a drawing command is input, the
そして、グラフィック処理部15は、フレームメモリ19に展開された画像データを順次読み出し、同期信号を付加してビデオ信号を生成し、表示装置50に出力する。表示装置50は、グラフィック処理部15から出力されたビデオ信号に対応した画像を画像表示部51に表示する。1フレーム時間ごとに画像表示部51の画像が切り替えられていくことで、プレイヤは、プレイヤキャラクタやノンプレイヤキャラクタがフィールド上を移動する様子を含む画像を見ることができる。
The
次に、本例のビデオゲーム装置100におけるキャラクタ補正動作処理について説明する。図3及び図4は、本例のビデオゲーム装置100におけるキャラクタ補正動作処理の例を示すフローチャートである。なお、本発明に特に関わる処理以外は、説明を省略している場合があるものとする。このキャラクタ補正動作処理は、上述したメイン処理を繰り返し実行することによって実現される処理であって、特にプレイヤキャラクタの進行方向の補正に関する処理についてまとめたものである。 Next, character correction operation processing in the video game apparatus 100 of this example will be described. 3 and 4 are flowcharts showing an example of character correction operation processing in the video game apparatus 100 of the present example. It should be noted that explanations may be omitted except for processing particularly related to the present invention. This character correction operation process is a process realized by repeatedly executing the main process described above, and particularly summarizes the process related to the correction of the moving direction of the player character.
本例のビデオゲーム装置100では、プレイヤによるキーパッド30の方向キー(例えば、十字キー31、左ジョイスティック38)の操作により、プレイヤキャラクタの移動指示操作がなされる。すなわち、制御部11は、キーパッド30の方向キーの操作によって示される方向(移動指示方向)に、プレイヤキャラクタを移動させるための制御を行う。ただし、ゲームフィールドに配置されている障害物にプレイヤキャラクタが衝突した場合には、制御部11は、図3及び図4に示すキャラクタ補正動作処理に従って、方向キーの操作によって示される移動指示方向とは異なる補正された方向に、プレイヤキャラクタを移動させるための制御を行う。
In the video game apparatus 100 of the present example, the player character is instructed to move by operating the direction keys (for example, the cross key 31 and the left joystick 38) of the
キャラクタ補正動作処理において、制御部11は、先ず、プレイヤキャラクタが壁などの障害物に衝突したか否か判定する(ステップS201)。ステップS201では、制御部11は、キーパッド30の方向キーの操作によって示される移動指示方向に向いた移動指示方向ベクトル(ベクトルの大きさは、プレイヤキャラクタのステータスなどによって定められるものとする。)をプレイヤキャラクタの現在位置を示す座標に加算することで移動予定位置(移動目標位置)の座標を求め、現在位置から移動予定位置までの線分上に障害物の外縁部分(例えば障害物が壁であれば、その壁の外縁を示す辺)が交差しているか否か確認し、交差していれば衝突した(衝突する)と判定する。なお、障害物の外縁部分の座標データは、記憶媒体70に記憶されている各種のデータに含まれており、記憶媒体70が装着されているDVD/CD−ROMドライブ16によって読み出され、RAM12にロードされているものとする。
In the character correction operation process, the
衝突したと判定した場合には、制御部11は、補正モード中であるか否かを確認し(ステップS202)、補正モードでなければ補正モードを開始する(ステップS203)。制御部11は、例えば、ステップS202では補正モードであるか否かを示す補正モードフラグの設定状態を確認し、ステップS203ではオフ状態となっている補正モードフラグをオン状態に設定する。
When it determines with having collided, the
次に、制御部11は、障害物の角度を特定する(ステップS204)。本例では、ステップS204にて、衝突位置における障害物の角度を特定するために、その障害物の配置方向のベクトル(配置方向ベクトル)を特定する。なお、配置方向ベクトルは、プレイヤキャラクタの現在位置から移動予定位置までの線分と障害物の外縁との交点でその外縁に接する方向を向いたベクトルであり、障害物の配置方向のみが特定できればよいので例えば単位ベクトルとされる。また、この配置方向ベクトルは、ゲームフィールドの座標系において右向き(X正方向)に取るようにしてもよく、左向き(X負方向)に取るようにしてもよい。
Next, the
次に、制御部11は、ステップS204にて特定した配置方向ベクトルを、前回衝突時配置方向ベクトルとして、RAM12の所定の保存領域に保存する(ステップS205)。
Next, the
次に、制御部11は、ステップS204にて特定した障害物の配置方向ベクトルと、キーパッド30の方向キーの操作によって示される移動指示方向に向いた移動指示方向ベクトルとの内積を算出する(ステップS206)。なお、移動指示方向ベクトルが示す方向は、ゲームフィールドにおけるプレイヤキャラクタの進行方向に向いた進行方向ベクトルが示す向きとは必ずしも一致しない。
Next, the
次に、制御部11は、ステップS206にて算出した内積値が正負のいずれであるかに応じて、プレイヤキャラクタの回転方向を決定する(ステップS207)。具体的には、ステップS207では、制御部11は、内積値が正(ここでは0を含む)であれば配置方向ベクトルが示す方向を回転方向とし、内積値が負であれば配置方向ベクトルが示す方向と逆の方向を回転方向とすることに決定する。また、ステップS207では、回転強度(回転角度の大きさ)として「強」を設定する。回転強度が強であるときは、回転角度が比較的大きく、障害物に沿った方向に、プレイヤキャラクタの向きが速やかに近づくように回転動作が実行されるようになる。
Next, the
次に、制御部11は、ステップS206にて算出した内積値が負であれば、保存している前回衝突時配置方向ベクトルの符号を反転させる(ステップS208)。
Next, if the inner product value calculated in step S206 is negative, the
次に、制御部11は、ゲームフィールドにおける障害物に沿ったプレイヤキャラクタの移動位置を決定する(ステップS209)。ステップS209では、制御部11は、ステップS206にて内積値が正であると判定されていれば配置方向ベクトルが示す方向で障害物に沿った位置を移動位置に決定し、ステップS206にて内積値が負であると判定されていれば配置方向ベクトルが示す方向とは逆の方向で障害物に沿った位置を移動位置に決定する。すなわち、ステップS209では、制御部11は、前回衝突時配置方向ベクトルが示す方向で障害物に沿った位置を移動位置に決定する。
Next, the
そして、制御部11は、プレイヤキャラクタの向きをステップS207で決定した回転方向に所定角度回転した向きに更新し、プレイヤキャラクタの位置をステップS209で決定した移動位置に所定距離移動した位置に更新し、ゲームフィールドにおける更新後の位置に更新後の向きでプレイヤキャラクタを表示する(ステップS210)。ステップS210でのプレイヤキャラクタの向きの更新は、具体的には、例えば、プレイヤキャラクタにおける現在の向きを示すベクトル(PC方向ベクトル)が示す方向と、配置方向ベクトルが示す方向との差分角度を算出し、回転強度(強)に対応する所定角度(例えば差分角度の半分の角度)回転した向きにPC方向ベクトルを更新する処理を実行することで実現される。
Then, the
ステップS202にて補正モード中であると判定した場合には、制御部11は、ステップS204と同様に障害物の角度を特定する(ステップS211)。すなわち、本例では、ステップS211にて、衝突位置における障害物の角度を特定するために、その障害物の配置方向のベクトル(配置方向ベクトル)を特定する。
When it determines with it being in correction | amendment mode in step S202, the
次に、制御部11は、ステップS211にて特定した配置方向ベクトルと、保存している前回衝突時配置方向ベクトルとの内積を算出し(ステップS212)、算出した内積値が負であれば配置方向ベクトルの符号を反転させたあと(ステップS213)、前回衝突時配置方向ベクトルを配置方向ベクトルに更新する(ステップS214)。すなわち、ステップS211にて特定した配置方向ベクトル、あるいはステップS211にて特定した配置方向ベクトルの符号を反転されたベクトルを、新たな前回衝突時配置方向ベクトルとする。
Next, the
次に、ステップS209に移行する。ここでのステップS209では、制御部11は、ステップS212にて内積値が正であると判定されていればステップS211にて特定した配置方向ベクトルが示す方向で障害物に沿った位置を移動位置に決定し、ステップS212にて内積値が負であると判定されていれば配置方向ベクトルが示す方向とは逆の方向で障害物に沿った位置を移動位置に決定する。すなわち、ステップS209では、制御部11は、ステップS214にて更新した前回衝突時配置方向ベクトルが示す方向で障害物に沿った位置を移動位置に決定する。そして、制御部11は、ステップS210を実行する。
Next, the process proceeds to step S209. In step S209 here, if it is determined in step S212 that the inner product value is positive, the
次に、制御部11は、プレイヤによるキーパッド30の方向キーによる移動操作指示方向を確認し、その移動操作指示方向が変更されていなければ(ステップS215のN)、ステップS201に戻る。一方、制御部11は、プレイヤによるキーパッド30の方向キーによる移動操作指示方向が変更されていれば(ステップS215のY)、ステップS222に移行する。すなわち、方向キー操作による移動操作指示方向が変更されることなく継続されていれば(同一の操作が継続してなされた状態であれば)、ステップS201に戻る。
Next, the
上述したステップS201〜S215が繰り返し実行されることで、キーパッド30の方向キーの同一操作を継続するだけで、ゲームフィールド上に配置されている障害物に衝突したとしても、プレイヤキャラクタの方向(向き)と移動位置とがスムーズに補正され、プレイヤキャラクタをスムーズに動作させるようにすることができる。
By repeatedly executing the above-described steps S201 to S215, even if the same operation of the direction key of the
上述したステップS201にて衝突していないと判定した場合には、制御部11は、補正モード中であるか否かを確認する(ステップS216)。補正モード中でなければ、制御部11は、ステップS201に戻る。すなわち、キャラクタ補正動作処理では、制御部11は、補正モードでないときは、プレイヤキャラクタが障害物に衝突したか否かを監視する(ステップS201、S216)。
If it is determined in step S201 described above that there is no collision, the
補正モード中であれば、制御部11は、キーパッド30の方向キー操作による移動操作指示方向(移動指示方向ベクトルが示す方向)に近づく方向に回転するように、プレイヤキャラクタの回転方向を決定する(ステップS217)。また、制御部11は、回転強度(回転角度の大きさ)として「弱」を設定する(ステップS218)。回転強度が弱であるときは、回転角度が比較的小さく、キーパッド30の方向キー操作による移動操作指示方向に、プレイヤキャラクタの向きが緩やかに近づくように回転動作が実行される。
If in the correction mode, the
次に、制御部11は、キーパッド30の方向キー操作による移動操作指示方向(移動指示方向ベクトルが示す方向)に向かう位置に、プレイヤキャラクタの移動位置を決定する(ステップS219)。
Next, the
そして、制御部11は、プレイヤキャラクタの向きをステップS217で決定した回転方向に所定角度(回転強度「弱」に対応する角度)回転した向きに更新し、プレイヤキャラクタの位置をステップS219で決定した移動位置に所定距離移動した位置に更新し、ゲームフィールドにおける更新後の位置に更新後の向きでプレイヤキャラクタを表示する(ステップS220)。ステップS220でのプレイヤキャラクタの向きの更新は、具体的には、例えば、プレイヤキャラクタにおける現在の向きを示すベクトル(PC方向ベクトル)が示す方向と、移動指示方向ベクトルが示す方向との差分角度を算出し、回転強度(弱)に対応する所定角度(例えば差分角度の1/10の角度)回転した向きにPC方向ベクトルを更新する処理を実行することで実現される。
Then, the
その後、制御部11は、キーパッド30の方向キー操作による移動操作指示方向(移動指示方向ベクトルが示す方向)とプレイヤキャラクタ向き(PC方向ベクトルが示す方向)との角度が所定値以内であるか否かを判定する(ステップS221)。所定値以内であれば、制御部11は、補正モードを終了する(ステップS222)。一方、所定値以内でなければ、制御部11は、ステップS201に戻る。
Thereafter, the
上述したステップS216〜S221が繰り返し実行され、その後にステップS222にて補正モードが終了されることで、キーパッド30の方向キーをプレイヤが同一操作し続けるだけで、障害物との衝突が無くなったあと、プレイヤキャラクタの進行方向がキーパッド30の方向キー操作による移動操作指示方向に合致するよう速やかに調整することができ、プレイヤキャラクタの向きがキーパッド30の方向キー操作による移動操作指示方向に合致するよう緩やかに調整していくことができるようになる。
Steps S216 to S221 described above are repeatedly executed, and then the correction mode is ended in step S222, so that the player can continue to perform the same operation on the direction key of the
ここで、図5〜図9を参照して、本例のビデオゲーム装置100におけるプレイヤキャラクタ(PC)の移動態様について説明する。ここでは、方向キーによる移動操作指示方向(移動指示方向ベクトルが示す方向)Xは、継続して同一方向であるものとする。 Here, with reference to FIGS. 5 to 9, the movement mode of the player character (PC) in the video game apparatus 100 of the present example will be described. Here, it is assumed that the movement operation instruction direction (direction indicated by the movement instruction direction vector) X by the direction key is continuously the same direction.
先ず、図5に示すように、障害物Yに衝突していないときは、プレイヤキャラクタは、方向キーによる移動操作指示方向Xを進行方向として移動していく(ステップS104〜S107,S115参照)。 First, as shown in FIG. 5, when the vehicle does not collide with the obstacle Y, the player character moves with the movement operation instruction direction X using the direction keys as the traveling direction (see steps S104 to S107, S115).
その後、図6に示すように、プレイヤキャラクタが障害物Yに衝突すると(ステップS201のY)、補正モードが開始され(ステップS203)、移動指示方向ベクトルと配置方向ベクトルとの内積値の正負に従った回転方向に回転しながら、障害物Yに沿った方向に移動していく(ステップS204〜S214)。障害物Yが壁である場合には、図7に示すように壁に向かって移動していたプレイヤキャラクタが、図8に示すように壁に沿った方向に向きを変えて移動していくようになる。 Thereafter, as shown in FIG. 6, when the player character collides with the obstacle Y (Y in step S201), the correction mode is started (step S203), and the inner product value of the movement instruction direction vector and the arrangement direction vector becomes positive or negative. The robot moves in the direction along the obstacle Y while rotating in the rotating direction according to the steps (steps S204 to S214). When the obstacle Y is a wall, the player character moving toward the wall as shown in FIG. 7 changes its direction in the direction along the wall as shown in FIG. become.
そして、プレイヤキャラクタが障害物Yに衝突したと判定されている間(ステップS201にてYと判定されている間)は、図6に示すように、移動指示方向ベクトルと配置方向ベクトルとの内積値の正負に従った回転方向に回転しながら、障害物Yに沿った方向に移動していく動作が継続される(ステップS201のY,S202のY,ステップS204〜S214,S215のN)。 Then, while it is determined that the player character has collided with the obstacle Y (while it is determined as Y in step S201), as shown in FIG. 6, the inner product of the movement instruction direction vector and the arrangement direction vector The operation of moving in the direction along the obstacle Y is continued while rotating in the direction of rotation according to the sign of the value (Y in step S201, Y in S202, N in steps S204 to S214, S215).
その後、プレイヤキャラクタが障害物Yに衝突していないと判定されると(ステップS201のN)、補正モード中であるため(ステップS216のY)、図9に示すように、移動操作指示方向Xに近づく方向(例えば移動指示方向ベクトルとPC方向ベクトルとの角度θが、角度θ1、角度θ2と0に近づいていく方向)にプレイヤキャラクタの向きが緩やかに近づくように回転されつつ、移動操作指示方向Xが示す方向にプレイヤキャラクタが移動していくようになる(ステップS216のY,S217〜S220,S221のN)。 Thereafter, when it is determined that the player character has not collided with the obstacle Y (N in Step S201), since it is in the correction mode (Y in Step S216), as shown in FIG. Moving while the player character is rotated so that the direction of the player character approaches gradually (for example, the angle θ between the movement instruction direction vector and the PC direction vector approaches the angle θ 1 and the angle θ 2 and 0). The player character moves in the direction indicated by the operation instruction direction X (Y in step S216, S217 to S220, N in S221).
そして、移動操作指示方向Xとプレイヤキャラクタの向きを示す方向との角度が所定値以内となったときに(ステップS221のY)、補正モードを終了し(ステップS222)、プレイヤキャラクタが移動操作指示方向Xに向いて移動操作指示方向Xに移動していく通常状態(非補正モード状態)に戻ることとなる。 When the angle between the movement operation instruction direction X and the direction indicating the direction of the player character is within a predetermined value (Y in step S221), the correction mode is terminated (step S222), and the player character instructs the movement operation. It will return to the normal state (non-correction mode state) which moves to the direction X in the movement operation instruction | indication direction X.
次に、図10及び図11を参照して、本例のビデオゲーム装置100におけるプレイヤキャラクタ(PC)が障害物である壁Zaと柱Zbに衝突した場合の移動態様について説明する。ここでは、方向キーによる移動操作指示方向Xは、継続して同一方向であるものとする。また、上述した図3及び図4の処理では特に言及していないが、補正モード中に新たな障害物に衝突した場合には、一旦補正モードが終了し、新たにステップS203にて補正モードが開始されるものとする。 Next, with reference to FIG. 10 and FIG. 11, the movement mode when the player character (PC) in the video game apparatus 100 of this example collides with the wall Za and the pillar Zb which are obstacles will be described. Here, it is assumed that the movement operation instruction direction X by the direction key is continuously the same direction. Although not particularly mentioned in the processing of FIGS. 3 and 4 described above, when a collision with a new obstacle occurs during the correction mode, the correction mode is temporarily ended, and the correction mode is newly set in step S203. Shall be started.
先ず、図10に示すように、障害物に衝突していないときは、プレイヤキャラクタは、方向キーによる移動操作指示方向Xを進行方向として移動していく(ステップS104〜S107,S115参照)。その後、プレイヤキャラクタが壁Zaに衝突すると(ステップS201のY)、補正モードが開始され(ステップS203)、移動指示方向ベクトルと配置方向ベクトルとの内積値の正負に従った回転方向に回転しながら、壁Zaに沿った方向に移動していく(ステップS204〜S210)。プレイヤキャラクタが壁Zaに衝突したと判定されている間(ステップS201にてYと判定されている間)は、進行方向ベクトルと配置方向ベクトルとの内積値の正負に従った回転方向に回転しながら、壁Zaに沿った方向に移動していく動作が継続される(ステップS201のY,S202のY,S211〜S214,ステップS209〜S210,S215のN)。 First, as shown in FIG. 10, when the vehicle does not collide with an obstacle, the player character moves with the movement operation instruction direction X by the direction key as the traveling direction (see steps S104 to S107, S115). Thereafter, when the player character collides with the wall Za (Y in step S201), the correction mode is started (step S203), while rotating in the rotation direction according to the positive / negative of the inner product value of the movement instruction direction vector and the arrangement direction vector. Then, it moves in the direction along the wall Za (steps S204 to S210). While it is determined that the player character has collided with the wall Za (while it is determined as Y in step S201), the player character rotates in the rotation direction according to the sign of the inner product value of the traveling direction vector and the arrangement direction vector. However, the operation of moving in the direction along the wall Za is continued (Y in Step S201, Y in S202, S211 to S214, Steps S209 to S210, N in S215).
そして、プレイヤキャラクタが柱Zbに衝突すると(ステップS201のY)、図11に示すように、移動指示方向ベクトルと配置方向ベクトルとの内積値の正負に従った回転方向に回転しながら、柱Zbに沿った方向に移動していく(ステップS204〜S210)。プレイヤキャラクタが柱Zbに衝突したと判定されている間(ステップS201にてYと判定されている間)は、移動指示方向ベクトルと配置方向ベクトルとの内積値の正負に従った回転方向に回転しながら、柱Zbに沿った方向に移動していく動作が継続される(ステップS201のY,S202のY,S211〜S214,ステップS209〜S210,S215のN)。 When the player character collides with the column Zb (Y in step S201), as shown in FIG. 11, the column Zb rotates in the rotation direction according to the positive / negative of the inner product value of the movement instruction direction vector and the arrangement direction vector. (Steps S204 to S210). While it is determined that the player character has collided with the pillar Zb (while it is determined as Y in step S201), the player character rotates in the rotation direction according to the sign of the inner product value of the movement instruction direction vector and the arrangement direction vector. However, the operation | movement which moves to the direction along the pillar Zb is continued (Y of step S201, Y of S202, S211-S214, step S209-S210, N of S215).
その後、プレイヤキャラクタが柱Zbに衝突していないと判定されると(ステップS201のN)、補正モード中であるため(ステップS216のY)、図12に示すように、移動操作指示方向Xに近づく方向にプレイヤキャラクタの向きが緩やかに近づくように回転されつつ、移動操作指示方向Xに近づく方向にプレイヤキャラクタが移動していくようになる(ステップS216のY,S217〜S220,S221のN)。 Thereafter, when it is determined that the player character has not collided with the pillar Zb (N in Step S201), since it is in the correction mode (Y in Step S216), as shown in FIG. The player character moves in a direction approaching the movement operation instruction direction X while being rotated so that the direction of the player character approaches gradually in the approaching direction (Y in steps S216, S217 to S220, and N in S221). .
そして、移動操作指示方向Xとプレイヤキャラクタの進行方向との角度が所定値以内となったときに(ステップS221のY)、補正モードを終了し(ステップS222)、移動操作指示方向Xにプレイヤキャラクタが移動していく通常状態(非補正モード状態)に戻ることとなる。 When the angle between the movement operation instruction direction X and the player character's traveling direction is within a predetermined value (Y in step S221), the correction mode is terminated (step S222), and the player character is moved in the movement operation instruction direction X. It will return to the normal state (non correction | amendment mode state) which moves.
なお、非補正モード状態に戻ったあとは、さらに壁Zaに衝突するので、柱Zb沿いを移動したあとさらに壁Za沿いを移動することになる。 In addition, after returning to the non-correction mode state, it further collides with the wall Za, so that it moves along the wall Za after moving along the column Zb.
以上に説明したように、上述した一実施の形態では、制御部11が、プレイヤによる方向キーの移動指示操作に応じたプレイヤキャラクタの移動方向の指定を受け付け、プレイヤキャラクタが移動する位置を決定し、ビデオゲームで用いられるゲームフィールド上に配置されている障害物にプレイヤキャラクタが衝突したか否かを判定し、衝突したと判定したときにプレイヤキャラクタの移動位置を補正する補正モードに設定されていなければ補正モードに設定し、補正モードに設定されていないときに衝突したと判定したときは障害物の配置方向ベクトルと移動指示方向ベクトルとの内積値を算出し、補正モードに設定されているときに衝突したと判定したときは障害物の配置方向ベクトルと前回配置方向ベクトル(前回衝突時配置方向ベクトル)との内積値を算出する構成とされている。そして、制御部11が、プレイヤキャラクタが移動する位置を決定するにあたって、補正モードが設定されていないときは、プレイヤによる方向キーの移動指示操作に応じた移動方向に移動させるためのプレイヤキャラクタの移動位置を決定し、補正モードに設定されていないときに衝突したと判定したときは算出した配置方向ベクトルと進行方向ベクトルとの内積値に基づく移動方向で障害物に沿った移動方向に移動させるためのプレイヤキャラクタの移動位置を決定し、補正モードに設定されているときに衝突したと判定したときは配置方向ベクトルと前回配置方向ベクトルとの内積値に基づく移動方向で障害物に沿った移動方向に移動させるためのプレイヤキャラクタの移動位置を決定し、補正モードが設定されているときに衝突していないと判定したときはプレイヤによる方向キーの移動指示操作に応じた移動方向に向かう方向に移動させるためのプレイヤキャラクタの移動位置を決定する構成とされている。このような構成としたことで、プレイヤキャラクタの移動位置をスムーズに補正することが可能となり、ゲームにおけるフィールド上に障害物が配置されている場合であっても、プレイヤによる移動指示操作を厳格に要求することなく簡単な操作でプレイヤキャラクタをスムーズに移動させることができ、プレイヤキャラクタの移動操作に関わるプレイヤのストレスを低減させることができるようになる。
As described above, in the above-described embodiment, the
また、上述した実施の形態では、制御部11が、補正モードが設定されていないときはプレイヤによる方向キーの移動指示操作に応じた移動方向に向かせるためのプレイヤキャラクタの向きを決定し、衝突したと判定したときは算出した内積値に基づく回転方向で障害物に沿った方向に所定角度回転させた方向に向かせるためのプレイヤキャラクタの向きを決定し、補正モードが設定されているときに衝突していないと判定したときはプレイヤによる方向キーの移動指示操作に応じた移動方向に特定角度回転させた方向に向かせるためのプレイヤキャラクタの向きを決定する構成としたので、プレイヤキャラクタの向きをスムーズに補正することが可能となり、ゲームにおけるフィールド上に障害物が配置されている場合であっても、プレイヤによる移動指示操作を厳格に要求することなく簡単な操作でプレイヤキャラクタをスムーズに移動させることができ、プレイヤキャラクタの移動操作に関わるプレイヤのストレスを低減させることができるようになる。
Further, in the above-described embodiment, when the correction mode is not set, the
また、上述した実施の形態では、制御部11が、決定した移動位置に決定した向きでプレイヤキャラクタを表示する構成としたので、プレイヤキャラクタの移動位置と向きとがスムーズに補正されたゲーム画面を表示することができる。
In the above-described embodiment, since the
また、上述した実施の形態では、制御部11が、プレイヤによる方向キーの移動指示操作に応じた移動方向が変更したか否かを監視し、補正モードに設定されているときに移動方向が変更したと判定された場合には、補正モードの設定を解除する構成としているので、プレイヤによる方向キーの移動指示操作が変更されたときに速やかに補正モードを解除することが可能となる。
In the above-described embodiment, the
また、上述した実施の形態では、制御部11が、補正モードが設定されているときに衝突していないと判定したことに応じて決定された移動位置にプレイヤキャラクタが移動されたあと、プレイヤによる方向キーの移動指示操作に応じた移動方向とプレイヤキャラクタの進行方向との角度があらかじめ定められた補正モード解除値以下であるか否か判定し、補正モード解除値以下であると判定したときに、補正モードの設定を解除する構成としているので、プレイヤによる方向キーの移動指示操作に応じた移動方向とプレイヤキャラクタの移動方向とが近づいたときに、速やかに補正モードを解除することが可能となる。よって、プレイヤキャラクタをスムーズに移動させることが可能となる。
In the above-described embodiment, after the player character is moved to the movement position determined according to the determination that the
また、上述した実施の形態では、制御部11が、プレイヤキャラクタの現在位置と進行方向ベクトルとに基づき移動予定位置を算出し、算出した移動予定位置が障害物の配置領域内であるか否かを確認することによって障害物にプレイヤキャラクタが衝突したか否かを判定する構成としているので、簡単な演算処理によって衝突判定を行うことが可能となる。すなわち、障害物とプレイヤキャラクタとの距離を計測したりする必要がなく、衝突するか否かを簡単な演算によって判定するようにしているので、制御部11における衝突判定の負荷を抑制させることができる。
In the above-described embodiment, the
本発明によれば、プレイヤによる移動指示操作を厳格に要求することなく簡単な操作でプレイヤキャラクタをスムーズに移動させることができるビデオゲーム装置に適用するのに有用である。 INDUSTRIAL APPLICABILITY According to the present invention, the present invention is useful for application to a video game apparatus that can smoothly move a player character with a simple operation without strictly requesting a movement instruction operation by a player.
10 ビデオゲーム装置本体
11 制御部
12 RAM
13 HDD
14 サウンド処理部
15 グラフィック処理部
16 DVD/CD−ROM
17 通信インターフェイス
18 インターフェイス部
19 フレームメモリ
20 メモリーカードスロット
21 入力インターフェイス部
22 内部バス
30 キーパッド
50 表示装置
51 画像表示部
60 サウンド出力装置
70 記憶媒体
80 通信ネットワーク
90 メモリーカード
100 ビデオゲーム装置
10 Video
13 HDD
14
DESCRIPTION OF
Claims (8)
プレイヤによる入力装置の移動指示操作に応じた前記プレイヤキャラクタの移動方向の指定を受け付ける移動方向受付手段と、
前記プレイヤキャラクタが移動する位置を決定する移動位置決定手段と、
前記ビデオゲームで用いられるゲームフィールド上に配置されている障害物に前記プレイヤキャラクタが衝突したか否かを判定する衝突判定手段と、
該衝突判定手段により衝突したと判定されたときに、前記プレイヤキャラクタの移動位置を補正する補正モードに設定されていなければ、当該補正モードに設定する補正モード設定手段と、
前記補正モードに設定されていないときに前記衝突判定手段により衝突したと判定されたときは、前記障害物の配置方向ベクトルと前記移動指示操作に応じた移動指示方向ベクトルとの内積値を算出する第1内積算出手段と、
前記補正モードに設定されているときに前記衝突判定手段により衝突したと判定されたときは、前記障害物の配置方向ベクトルと当該障害物の前回衝突時の配置方向ベクトルである前回配置方向ベクトルとの内積値を算出する第2内積算出手段と、
前記移動方向受付手段が受け付けた移動方向が変更したか否かを判定する変更判定手段と、
前記補正モードに設定されているときに、前記変更判定手段により移動方向が変更したと判定された場合には、前記補正モードの設定を解除する操作判定補正モード解除手段と、を含み、
前記移動位置決定手段は、
前記補正モードが設定されていないときは、前記移動方向受付手段が受け付けた移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードに設定されていないときに前記衝突判定手段により衝突したと判定されたときは、前記第1内積算出手段により算出された内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードに設定されているときに前記衝突判定手段により衝突したと判定されたときは、前記第2内積算出手段により算出された内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードが設定されているときに前記衝突判定手段により衝突していないと判定されたときは、前記移動方向受付手段が受け付けた移動方向に向かう移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定する
ことを特徴とするビデオゲーム処理装置。 A video for controlling the progress of a video game by displaying a player character on a display screen of an image display device and controlling an action including movement of the player character displayed on the display screen according to an operation of the player. A game processing device,
A moving direction receiving means for receiving designation of a moving direction of the player character in response to a movement instruction operation of the input device by the player;
Moving position determining means for determining a position where the player character moves;
Collision determination means for determining whether or not the player character has collided with an obstacle arranged on a game field used in the video game;
A correction mode setting means for setting the correction mode if the collision determination means determines that the player character has collided and the correction mode for correcting the movement position of the player character is not set;
When it is determined that the collision determination unit has collided when the correction mode is not set, an inner product value between the obstacle arrangement direction vector and the movement instruction direction vector corresponding to the movement instruction operation is calculated. First inner product calculating means;
When it is determined that the collision determination unit has collided when the correction mode is set, the obstacle arrangement direction vector and the previous arrangement direction vector which is the arrangement direction vector at the time of the previous collision of the obstacle, Second inner product calculating means for calculating the inner product value of
Change determination means for determining whether or not the movement direction received by the movement direction reception means has changed;
An operation determination correction mode canceling unit that cancels the setting of the correction mode when the change determination unit determines that the moving direction has been changed when the correction mode is set,
The moving position determining means includes
When the correction mode is not set, the moving position of the player character for moving in the moving direction received by the moving direction receiving means is determined;
When it is determined that the collision determination unit has collided when the correction mode is not set, the movement direction based on the inner product value calculated by the first inner product calculation unit is changed to the movement direction along the obstacle. Determining the movement position of the player character for movement;
When it is determined that the collision has been made by the collision determination unit when the correction mode is set, the movement direction based on the inner product value calculated by the second inner product calculation unit is changed to the movement direction along the obstacle. Determining the movement position of the player character for movement;
The movement of the player character for moving in the moving direction toward the moving direction received by the moving direction receiving means when the collision determining means determines that there is no collision when the correction mode is set A video game processing device characterized by determining a position.
プレイヤによる入力装置の移動指示操作に応じた前記プレイヤキャラクタの移動方向の指定を受け付ける移動方向受付手段と、
前記プレイヤキャラクタが移動する位置を決定する移動位置決定手段と、
前記ビデオゲームで用いられるゲームフィールド上に配置されている障害物に前記プレイヤキャラクタが衝突したか否かを判定する衝突判定手段と、
該衝突判定手段により衝突したと判定されたときに、前記プレイヤキャラクタの移動位置を補正する補正モードに設定されていなければ、当該補正モードに設定する補正モード設定手段と、
前記補正モードに設定されていないときに前記衝突判定手段により衝突したと判定されたときは、前記障害物の配置方向ベクトルと前記移動指示操作に応じた移動指示方向ベクトルとの内積値を算出する第1内積算出手段と、
前記補正モードに設定されているときに前記衝突判定手段により衝突したと判定されたときは、前記障害物の配置方向ベクトルと当該障害物の前回衝突時の配置方向ベクトルである前回配置方向ベクトルとの内積値を算出する第2内積算出手段と、を含み、
前記移動位置決定手段は、
前記補正モードが設定されていないときは、前記移動方向受付手段が受け付けた移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードに設定されていないときに前記衝突判定手段により衝突したと判定されたときは、前記第1内積算出手段により算出された内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードに設定されているときに前記衝突判定手段により衝突したと判定されたときは、前記第2内積算出手段により算出された内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードが設定されているときに前記衝突判定手段により衝突していないと判定されたときは、前記移動方向受付手段が受け付けた移動方向に向かう移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定する構成とされ、
前記補正モードが設定されているときに前記衝突判定手段により衝突していないと判定されたことに応じて前記移動位置決定手段によって決定された移動位置にプレイヤキャラクタが移動されたあと、前記移動方向受付手段が受け付けた移動方向と前記プレイヤキャラクタの進行方向との角度があらかじめ定められた補正モード解除値以下であるか否か判定する角度判定手段と、
該角度判定手段により前記補正モード解除値以下であると判定されたときに、前記補正モードの設定を解除する角度判定補正モード解除手段とを含む
ことを特徴とするビデオゲーム処理装置。 A video for controlling the progress of a video game by displaying a player character on a display screen of an image display device and controlling an action including movement of the player character displayed on the display screen according to an operation of the player. A game processing device,
A moving direction receiving means for receiving designation of a moving direction of the player character in response to a movement instruction operation of the input device by the player;
Moving position determining means for determining a position where the player character moves;
Collision determination means for determining whether or not the player character has collided with an obstacle arranged on a game field used in the video game;
A correction mode setting means for setting the correction mode if the collision determination means determines that the player character has collided and the correction mode for correcting the movement position of the player character is not set;
When it is determined that the collision determination unit has collided when the correction mode is not set, an inner product value between the obstacle arrangement direction vector and the movement instruction direction vector corresponding to the movement instruction operation is calculated. First inner product calculating means;
When it is determined that the collision determination unit has collided when the correction mode is set, the obstacle arrangement direction vector and the previous arrangement direction vector which is the arrangement direction vector at the time of the previous collision of the obstacle, Second inner product calculating means for calculating the inner product value of
The moving position determining means includes
When the correction mode is not set, the moving position of the player character for moving in the moving direction received by the moving direction receiving means is determined;
When it is determined that the collision determination unit has collided when the correction mode is not set, the movement direction based on the inner product value calculated by the first inner product calculation unit is changed to the movement direction along the obstacle. Determining the movement position of the player character for movement;
When it is determined that the collision has been made by the collision determination unit when the correction mode is set, the movement direction based on the inner product value calculated by the second inner product calculation unit is changed to the movement direction along the obstacle. Determining the movement position of the player character for movement;
The movement of the player character for moving in the moving direction toward the moving direction received by the moving direction receiving means when the collision determining means determines that there is no collision when the correction mode is set It is configured to determine the position,
The movement direction after the player character has been moved to the movement position determined by the movement position determination means in response to the collision determination means determining that no collision has occurred when the correction mode is set Angle determination means for determining whether or not an angle between the movement direction received by the reception means and the traveling direction of the player character is equal to or less than a predetermined correction mode release value;
A video game processing apparatus comprising: an angle determination correction mode canceling unit that cancels the setting of the correction mode when the angle determination unit determines that the correction mode cancel value is equal to or less than the correction mode cancel value.
前記方向決定手段は、
前記補正モードが設定されていないときは、前記移動方向受付手段が受け付けた移動方向に向かせるための前記プレイヤキャラクタの向きを決定し、
前記衝突判定手段により衝突したと判定されたときは、前記第1内積算出手段により算出された内積値に基づく回転方向で前記障害物に沿った方向に所定角度回転させた方向に向かせるための前記プレイヤキャラクタの向きを決定し、
前記補正モードが設定されているときに前記衝突判定手段により衝突していないと判定されたときは、前記移動方向受付手段が受け付けた移動方向に特定角度回転させた方向に向かせるための前記プレイヤキャラクタの向きを決定する
請求項1または請求項2記載のビデオゲーム処理装置。 Direction determining means for determining the direction of the player character;
The direction determining means includes
When the correction mode is not set, the direction of the player character to be directed in the moving direction received by the moving direction receiving means is determined,
When the collision determination means determines that the vehicle has collided, the rotation direction based on the inner product value calculated by the first inner product calculation means is directed to a direction rotated by a predetermined angle in the direction along the obstacle. Determine the orientation of the player character,
When the correction mode is set and the collision determination means determines that there is no collision, the player is directed to a direction rotated by a specific angle in the movement direction received by the movement direction reception means. The video game processing apparatus according to claim 1, wherein the direction of the character is determined.
請求項3記載のビデオゲーム処理装置。 The video game processing device according to claim 3, further comprising player character display means for displaying the player character in the direction determined by the direction determination means at the movement position determined by the movement position determination means.
請求項3または請求項4記載のビデオゲーム処理装置。 The video game processing apparatus according to claim 3, wherein the predetermined angle is set in advance to an angle larger than the specific angle.
請求項1から請求項5のうちいずれかに記載のビデオゲーム処理装置。 The collision determination unit calculates a planned movement position based on the current position of the player character and the movement direction received by the movement direction reception unit, and whether or not the calculated planned movement position is within the obstacle arrangement region. The video game processing device according to claim 1, wherein it is determined whether or not the player character collides with the obstacle.
コンピュータに、
プレイヤによる入力装置の移動指示操作に応じた前記プレイヤキャラクタの移動方向の指定を受け付ける移動方向受付ステップと、
前記プレイヤキャラクタが移動する位置を決定する移動位置決定ステップと、
前記ビデオゲームで用いられるゲームフィールド上に配置されている障害物に前記プレイヤキャラクタが衝突したか否かを判定する衝突判定ステップと、
該衝突判定ステップにて衝突したと判定したときに、前記プレイヤキャラクタの移動位置を補正する補正モードに設定されていなければ、当該補正モードに設定する補正モード設定ステップと、
前記補正モードに設定されていないときに前記衝突判定ステップにて衝突したと判定したときは、前記障害物の配置方向ベクトルと前記移動指示操作に応じた移動指示方向ベクトルとの内積値を算出する第1内積算出ステップと、
前記補正モードに設定されているときに前記衝突判定ステップにて衝突したと判定したときは、前記障害物の配置方向ベクトルと当該障害物の前回衝突時の配置方向ベクトルである前回配置方向ベクトルとの内積値を算出する第2内積算出ステップと、
前記移動方向受付ステップにて受け付けた移動方向が変更したか否かを判定する変更判定ステップと、
前記補正モードに設定されているときに、前記変更判定ステップにて移動方向が変更したと判定した場合に、前記補正モードの設定を解除する操作判定補正モード解除ステップと、を実行させ、
前記移動位置決定ステップでは、
前記補正モードが設定されていないときは、前記移動方向受付ステップにて受け付けた移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードに設定されていないときに前記衝突判定ステップにて衝突したと判定したときは、前記第1内積算出ステップにて算出した内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードに設定されているときに前記衝突判定ステップにて衝突したと判定したときは、前記第2内積算出ステップにて算出した内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードが設定されているときに前記衝突判定ステップにて衝突していないと判定したときは、前記移動方向受付ステップにて受け付けた移動方向に向かう移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定する処理を
実行させるためのビデオゲーム処理プログラム。 A video game processing program for controlling the progress of a video game by controlling an action including movement of a player character displayed on a display screen of an image display device according to an operation of the player,
On the computer,
A moving direction receiving step of receiving designation of the moving direction of the player character in response to a movement instruction operation of the input device by the player;
A moving position determining step for determining a position where the player character moves;
A collision determination step for determining whether or not the player character has collided with an obstacle arranged on a game field used in the video game;
A correction mode setting step for setting the correction mode if it is not set in the correction mode for correcting the movement position of the player character when it is determined in the collision determination step;
When it is determined that the collision has occurred in the collision determination step when the correction mode is not set, an inner product value of the obstacle arrangement direction vector and the movement instruction direction vector corresponding to the movement instruction operation is calculated. A first inner product calculating step;
When it is determined that the collision has occurred in the collision determination step when the correction mode is set, the obstacle arrangement direction vector and the previous arrangement direction vector which is the arrangement direction vector at the time of the previous collision of the obstacle, A second inner product calculating step for calculating an inner product value of
A change determination step for determining whether or not the movement direction received in the movement direction reception step has changed;
When it is determined that the movement direction has been changed in the change determination step when the correction mode is set, an operation determination correction mode release step for canceling the setting of the correction mode is executed,
In the moving position determining step,
When the correction mode is not set, the moving position of the player character for moving in the moving direction received in the moving direction receiving step is determined,
When it is determined that the collision has occurred in the collision determination step when the correction mode is not set, the movement direction based on the inner product value calculated in the first inner product calculation step is the movement direction along the obstacle. Determining the movement position of the player character for movement;
When it is determined that the collision has occurred in the collision determination step when the correction mode is set, the movement direction based on the inner product value calculated in the second inner product calculation step is changed to the movement direction along the obstacle. Determining the movement position of the player character for movement;
If it is determined in the collision determination step that there is no collision when the correction mode is set, the player character for moving in the movement direction toward the movement direction received in the movement direction reception step A video game processing program for executing a process for determining a moving position.
コンピュータに、
プレイヤによる入力装置の移動指示操作に応じた前記プレイヤキャラクタの移動方向の指定を受け付ける移動方向受付ステップと、
前記プレイヤキャラクタが移動する位置を決定する移動位置決定ステップと、
前記ビデオゲームで用いられるゲームフィールド上に配置されている障害物に前記プレイヤキャラクタが衝突したか否かを判定する衝突判定ステップと、
該衝突判定ステップにて衝突したと判定したときに、前記プレイヤキャラクタの移動位置を補正する補正モードに設定されていなければ、当該補正モードに設定する補正モード設定ステップと、
前記補正モードに設定されていないときに前記衝突判定ステップにて衝突したと判定したときは、前記障害物の配置方向ベクトルと前記移動指示操作に応じた移動指示方向ベクトルとの内積値を算出する第1内積算出ステップと、
前記補正モードに設定されているときに前記衝突判定ステップにて衝突したと判定したときは、前記障害物の配置方向ベクトルと当該障害物の前回衝突時の配置方向ベクトルである前回配置方向ベクトルとの内積値を算出する第2内積算出ステップと、を実行させ、
前記移動位置決定ステップでは、
前記補正モードが設定されていないときは、前記移動方向受付ステップにて受け付けた移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードに設定されていないときに前記衝突判定ステップにて衝突したと判定したときは、前記第1内積算出ステップにて算出した内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードに設定されているときに前記衝突判定ステップにて衝突したと判定したときは、前記第2内積算出ステップにて算出した内積値に基づく移動方向で前記障害物に沿った移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定し、
前記補正モードが設定されているときに前記衝突判定ステップにて衝突していないと判定したときは、前記移動方向受付ステップにて受け付けた移動方向に向かう移動方向に移動させるための前記プレイヤキャラクタの移動位置を決定する処理を実行させ、
さらに、前記補正モードが設定されているときに前記衝突判定ステップにて衝突していないと判定したことに応じて前記移動位置決定ステップにて決定した移動位置にプレイヤキャラクタが移動されたあと、前記移動方向受付ステップにて受け付けた移動方向と前記プレイヤキャラクタの進行方向との角度があらかじめ定められた補正モード解除値以下であるか否か判定する角度判定ステップと、
該角度判定ステップにて前記補正モード解除値以下であると判定したときに、前記補正モードの設定を解除する角度判定補正モード解除ステップとを
実行させるためのビデオゲーム処理プログラム。 A video game processing program for controlling the progress of a video game by controlling an action including movement of a player character displayed on a display screen of an image display device according to an operation of the player,
On the computer,
A moving direction receiving step of receiving designation of the moving direction of the player character in response to a movement instruction operation of the input device by the player;
A moving position determining step for determining a position where the player character moves;
A collision determination step for determining whether or not the player character has collided with an obstacle arranged on a game field used in the video game;
A correction mode setting step for setting the correction mode if it is not set in the correction mode for correcting the movement position of the player character when it is determined in the collision determination step;
When it is determined that the collision has occurred in the collision determination step when the correction mode is not set, an inner product value of the obstacle arrangement direction vector and the movement instruction direction vector corresponding to the movement instruction operation is calculated. A first inner product calculating step;
When it is determined that the collision has occurred in the collision determination step when the correction mode is set, the obstacle arrangement direction vector and the previous arrangement direction vector which is the arrangement direction vector at the time of the previous collision of the obstacle, A second inner product calculating step of calculating an inner product value of
In the moving position determining step,
When the correction mode is not set, the moving position of the player character for moving in the moving direction received in the moving direction receiving step is determined,
When it is determined that the collision has occurred in the collision determination step when the correction mode is not set, the movement direction based on the inner product value calculated in the first inner product calculation step is the movement direction along the obstacle. Determining the movement position of the player character for movement;
When it is determined that the collision has occurred in the collision determination step when the correction mode is set, the movement direction based on the inner product value calculated in the second inner product calculation step is changed to the movement direction along the obstacle. Determining the movement position of the player character for movement;
If it is determined in the collision determination step that there is no collision when the correction mode is set, the player character for moving in the movement direction toward the movement direction received in the movement direction reception step Execute the process to determine the movement position,
Furthermore, after the player character has been moved to the movement position determined in the movement position determination step in response to the determination that the collision has not occurred in the collision determination step when the correction mode is set, An angle determination step for determining whether or not an angle between the movement direction received in the movement direction reception step and the advance direction of the player character is equal to or less than a predetermined correction mode release value;
A video game processing program for executing an angle determination correction mode canceling step for canceling the setting of the correction mode when it is determined that the correction mode cancel value is equal to or less than the correction mode cancel value in the angle determination step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007189314A JP4566221B2 (en) | 2007-07-20 | 2007-07-20 | Video game processing apparatus and video game processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007189314A JP4566221B2 (en) | 2007-07-20 | 2007-07-20 | Video game processing apparatus and video game processing program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009022553A JP2009022553A (en) | 2009-02-05 |
JP4566221B2 true JP4566221B2 (en) | 2010-10-20 |
Family
ID=40394955
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007189314A Active JP4566221B2 (en) | 2007-07-20 | 2007-07-20 | Video game processing apparatus and video game processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4566221B2 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5687826B2 (en) * | 2009-05-29 | 2015-03-25 | 任天堂株式会社 | GAME PROGRAM AND GAME DEVICE |
JP5372116B2 (en) * | 2011-11-18 | 2013-12-18 | 株式会社スクウェア・エニックス | Character movement control device and program |
JP5456819B2 (en) * | 2012-03-28 | 2014-04-02 | 株式会社スクウェア・エニックス | Game device |
JP6301813B2 (en) * | 2014-11-05 | 2018-03-28 | 任天堂株式会社 | GAME PROGRAM AND GAME DEVICE |
JP6483056B2 (en) | 2016-06-10 | 2019-03-13 | 任天堂株式会社 | GAME DEVICE, GAME CONTROL METHOD, AND GAME PROGRAM |
JP6663458B2 (en) * | 2018-08-03 | 2020-03-11 | 株式会社コーエーテクモゲームス | Information processing apparatus, placement method, and placement program |
CN114949858B (en) * | 2022-06-06 | 2024-10-11 | 厦门飞信网络科技有限公司 | Collision detection method for character movement in game |
CN116036601B (en) * | 2023-01-28 | 2023-06-09 | 腾讯科技(深圳)有限公司 | Game processing method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001056870A (en) * | 1999-08-20 | 2001-02-27 | Koei:Kk | Group character moving method, recording medium, and game device |
JP2003038851A (en) * | 2001-07-27 | 2003-02-12 | Namco Ltd | Game information, information storage medium, and game device |
JP2004062676A (en) * | 2002-07-30 | 2004-02-26 | Koei:Kk | Program, recording medium, three-dimensional character group controlling method and game machine |
JP2006024236A (en) * | 1996-06-05 | 2006-01-26 | Sega Corp | Image processing for game |
JP2007072915A (en) * | 2005-09-08 | 2007-03-22 | Sega Corp | Image processing program, image processing method, and image processing device |
-
2007
- 2007-07-20 JP JP2007189314A patent/JP4566221B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006024236A (en) * | 1996-06-05 | 2006-01-26 | Sega Corp | Image processing for game |
JP2001056870A (en) * | 1999-08-20 | 2001-02-27 | Koei:Kk | Group character moving method, recording medium, and game device |
JP2003038851A (en) * | 2001-07-27 | 2003-02-12 | Namco Ltd | Game information, information storage medium, and game device |
JP2004062676A (en) * | 2002-07-30 | 2004-02-26 | Koei:Kk | Program, recording medium, three-dimensional character group controlling method and game machine |
JP2007072915A (en) * | 2005-09-08 | 2007-03-22 | Sega Corp | Image processing program, image processing method, and image processing device |
Also Published As
Publication number | Publication date |
---|---|
JP2009022553A (en) | 2009-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4566221B2 (en) | Video game processing apparatus and video game processing program | |
JP4125760B2 (en) | Video game processing apparatus, video game processing method, and video game processing program | |
JP4124475B2 (en) | Video game processing apparatus, video game processing method, and video game processing program | |
JP3795856B2 (en) | Video game apparatus, video game progress control method, program, and recording medium | |
EP1722334B1 (en) | A method, an apparatus and a computer program product for generating an image | |
JP4651604B2 (en) | Video game processing apparatus and video game processing program | |
EP1454663A1 (en) | Virtual camera control method in three-dimensional video game | |
US20070206003A1 (en) | Method, an apparatus and a computer program product for generating an image | |
JP2010273987A (en) | Program, information storage medium and image forming system | |
JP3843246B2 (en) | PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE | |
EP3482806B1 (en) | Operation input system, operation input device, and game system | |
JP4617797B2 (en) | Game program | |
JP5687826B2 (en) | GAME PROGRAM AND GAME DEVICE | |
JP5367954B2 (en) | GAME PROGRAM, GAME DEVICE, AND STORAGE MEDIUM | |
JP7138085B2 (en) | Information processing program, information processing method, and game device | |
EP1854520B1 (en) | Game program and game apparatus | |
JP6559185B2 (en) | GAME PROGRAM AND GAME DEVICE | |
JP6301813B2 (en) | GAME PROGRAM AND GAME DEVICE | |
JP4458989B2 (en) | GAME DEVICE, GAME DEVICE CONTROL METHOD, AND PROGRAM | |
JP2005342120A (en) | Game device, game controlling method and program | |
JP4025802B2 (en) | PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE | |
US6860812B2 (en) | Video game having smooth character control | |
JP2003325968A (en) | Game machine and game program | |
JP4467590B2 (en) | Drawing apparatus, drawing method, and drawing program | |
JP2006268818A (en) | Program, information storage medium and image generation system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090115 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20090223 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20090223 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20091020 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091221 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100420 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100531 |
|
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: 20100803 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100803 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4566221 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130813 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130813 Year of fee payment: 3 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130813 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
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 |
|
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 |
|
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 |
|
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 |