JP2016146864A - Game program and game device - Google Patents

Game program and game device Download PDF

Info

Publication number
JP2016146864A
JP2016146864A JP2015023949A JP2015023949A JP2016146864A JP 2016146864 A JP2016146864 A JP 2016146864A JP 2015023949 A JP2015023949 A JP 2015023949A JP 2015023949 A JP2015023949 A JP 2015023949A JP 2016146864 A JP2016146864 A JP 2016146864A
Authority
JP
Japan
Prior art keywords
player object
game
player
obstacle
virtual camera
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
Application number
JP2015023949A
Other languages
Japanese (ja)
Other versions
JP6122047B2 (en
Inventor
幸悦 松田
Koetsu Matsuda
幸悦 松田
明広 樫本
Akihiro Kashimoto
明広 樫本
鈴木 良太
Ryota Suzuki
良太 鈴木
祥行 藤川
Yoshiyuki Fujikawa
祥行 藤川
憲正 三小田
Norimasa Mikota
憲正 三小田
廣樹 向井
Hiroki Mukai
廣樹 向井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Capcom Co Ltd
Original Assignee
Capcom Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Capcom Co Ltd filed Critical Capcom Co Ltd
Priority to JP2015023949A priority Critical patent/JP6122047B2/en
Priority to PCT/JP2016/053854 priority patent/WO2016129603A1/en
Publication of JP2016146864A publication Critical patent/JP2016146864A/en
Application granted granted Critical
Publication of JP6122047B2 publication Critical patent/JP6122047B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

PROBLEM TO BE SOLVED: To readily determine an obstacle to a player object when viewed from a virtual camera.SOLUTION: A game program 1 causes a computer to function as: a player object controller 14 for controlling a player object to act in a game space on the basis of operational information input from a player; a non-player object controller 15 for generating and disposing a non-player object in the game space; and a rendering part 20 for converting the game space into image data as viewed from a virtual camera provided in the game space and rendering the converted data. The rendering part 20 includes an obstacle determiner 21 for determining the non-player object to be an obstacle, if the player object is opposed to the non-player object and if an angle of a normal line of the belly of the player object and a line of sight of the virtual camera is larger than a predetermined angle.SELECTED DRAWING: Figure 1

Description

本発明は、仮想のゲーム空間においてオブジェクトを描画するゲームプログラムおよびゲーム装置に関する。   The present invention relates to a game program and a game apparatus for drawing an object in a virtual game space.

三次元の仮想のゲーム空間に配置されるプレイヤオブジェクトをプレイヤが操作するゲームにおいて、仮想のゲーム空間に仮想カメラが配設され、仮想カメラから見たゲーム空間が、二次元画像データ変換され描画される。このとき、仮想カメラをプレイヤオブジェクトの上後方に配置して、仮想カメラから見るゲーム空間を描画する方法が知られている。この方法においてプレイヤは、プレイヤキャラクタの周囲を確認しやすく、プレイヤキャラクタに近い視点で臨場感のあるゲームをすることができる。また、ゲーム空間の臨場感を高めるために、仮想カメラは、プレイヤオブジェクトの上後方に限らず、様々な場所に配設される場合がある。   In a game in which a player operates a player object placed in a three-dimensional virtual game space, a virtual camera is provided in the virtual game space, and the game space viewed from the virtual camera is converted into two-dimensional image data and rendered. The At this time, a method is known in which a virtual camera is arranged above and behind the player object and a game space viewed from the virtual camera is drawn. In this method, the player can easily check the surroundings of the player character and can play a game with a sense of presence from a viewpoint close to the player character. In addition, in order to increase the sense of presence in the game space, the virtual camera is not limited to the upper and rear sides of the player object, and may be disposed in various places.

しかしながら、プレイヤオブジェクトと仮想カメラの間に、敵キャラクタなどの障害物が存在する場合、この障害物に邪魔されて、プレイヤは、プレイヤオブジェクトを確認できず、操作しづらい問題がある。   However, when an obstacle such as an enemy character exists between the player object and the virtual camera, the obstacle prevents the player from confirming the player object, which makes it difficult to operate.

そこで、仮想カメラとプレイヤオブジェクトの間に障害物が存在する場合、この障害物を透過してプレイヤオブジェクトを見やすくする方法がある(例えば、特許文献1参照。)。この特許文献1に記載の方法は、仮想カメラとプレイヤオブジェクトを結ぶ線上に、障害物のオブジェクトが存在している場合に、この障害物を透過して描画する。   Therefore, when there is an obstacle between the virtual camera and the player object, there is a method of making the player object easy to see through the obstacle (see, for example, Patent Document 1). In the method described in Patent Document 1, when an obstacle object exists on the line connecting the virtual camera and the player object, the obstacle is transmitted and drawn.

特許3141737号公報Japanese Patent No. 3141737

しかしながら特許文献1に記載の方法では、仮想カメラ、プレイヤオブジェクトおよび障害物の3つの位置関係を比較する必要があり、処理が煩雑になる場合がある。   However, in the method described in Patent Document 1, it is necessary to compare the three positional relationships of the virtual camera, the player object, and the obstacle, and the processing may be complicated.

従って本発明の目的は、仮想のゲーム空間において、仮想カメラから見た場合のプレイヤにとっての障害物を容易に判定するゲームプログラムおよびゲーム装置を提供することである。   Accordingly, an object of the present invention is to provide a game program and a game apparatus that easily determine an obstacle for a player when viewed from a virtual camera in a virtual game space.

上記課題を解決するために、本発明の特徴に係るゲームプログラムは、コンピュータを、仮想のゲーム空間内にプレイヤオブジェクトを生成するとともに、プレイヤが入力した操作情報に基づいてプレイヤオブジェクトをゲーム空間内で活動させるプレイヤオブジェクト制御手段と、ゲーム空間内に非プレイヤオブジェクトを生成し、配置する非プレイヤオブジェクト制御手段と、ゲーム空間を、ゲーム空間に設けられる仮想カメラから見た画像データに変換して、描画する描画手段として機能させる。描画手段は、プレイヤオブジェクトが非プレイヤオブジェクトに対して、対向しており、かつ、プレイヤオブジェクトの腹部の法線と仮想カメラの視線とがなす角が、所定の角度より大きい場合、非プレイヤオブジェクトが障害物であると判定する障害物判定手段を備える。   In order to solve the above problems, a game program according to a feature of the present invention generates a player object in a virtual game space using a computer, and places the player object in the game space based on operation information input by the player. A player object control means to be activated, a non-player object control means for generating and arranging a non-player object in the game space, and the game space is converted into image data viewed from a virtual camera provided in the game space and rendered. Function as a drawing means. When the player object faces the non-player object and the angle formed by the normal line of the abdomen of the player object and the line of sight of the virtual camera is larger than a predetermined angle, the drawing means An obstacle determination unit that determines that the object is an obstacle is provided.

本発明によれば、仮想のゲーム空間において、仮想カメラから見た場合のプレイヤにとっての障害物を容易に判定するゲームプログラムおよびゲーム装置を提供することができる。   According to the present invention, it is possible to provide a game program and a game apparatus that easily determine an obstacle for a player when viewed from a virtual camera in a virtual game space.

図1は、本発明の実施の形態に係るゲーム装置の機能ブロック図である。FIG. 1 is a functional block diagram of the game device according to the embodiment of the present invention. 図2は、本発明の実施の形態に係るゲーム装置のハードウエア構成を説明する図である。FIG. 2 is a diagram for explaining a hardware configuration of the game device according to the embodiment of the present invention. 図3は、本発明の実施の形態に係る仮想のゲーム空間の座標系を説明する図である。FIG. 3 is a diagram for explaining a coordinate system of the virtual game space according to the embodiment of the present invention. 図4は、仮想のゲーム空間におけるプレイヤオブジェクトの腹部の法線と、仮想カメラの視線とがなす角度を説明する図である。FIG. 4 is a diagram for explaining an angle formed by the normal line of the abdomen of the player object in the virtual game space and the line of sight of the virtual camera. 図5は、プレイヤオブジェクトの腹部の法線とカメラの視線とが、同じ方向を向いている場合を説明する図である。FIG. 5 is a diagram illustrating a case where the normal line of the abdomen of the player object and the line of sight of the camera are facing the same direction. 図6は、プレイヤオブジェクトの腹部の法線とカメラの視線とが、同じ方向を向いている場合のゲーム画面の一例を説明する図である。FIG. 6 is a diagram illustrating an example of a game screen when the normal line of the abdomen of the player object and the line of sight of the camera are facing the same direction. 図7は、プレイヤオブジェクトの腹部の法線とカメラの視線とが、対向する場合を説明する図である。FIG. 7 is a diagram illustrating a case where the normal line of the abdomen of the player object and the line of sight of the camera face each other. 図8は、プレイヤオブジェクトの腹部の法線とカメラの視線とが、対向する場合のゲーム画面の一例を説明する図である。FIG. 8 is a diagram for explaining an example of a game screen when the normal line of the abdomen of the player object and the line of sight of the camera are opposed to each other. 図9は、プレイヤオブジェクトの腹部の法線とカメラの視線とが対向し、仮想カメラが非プレイヤオブジェクトの内部に位置する場合を説明する図である。FIG. 9 is a diagram illustrating a case where the normal line of the abdomen of the player object and the line of sight of the camera face each other, and the virtual camera is located inside the non-player object. 図10は、プレイヤオブジェクトの腹部の法線とカメラの視線とが対向し、仮想カメラが非プレイヤオブジェクトの内部に位置する場合のゲーム画面の一例を説明する図である。FIG. 10 is a diagram for explaining an example of the game screen when the normal line of the abdomen of the player object and the line of sight of the camera face each other and the virtual camera is located inside the non-player object. 図11は、非プレイヤオブジェクト描画部による非プレイヤオブジェクト描画処理の一例を説明するフローチャートである。FIG. 11 is a flowchart for explaining an example of the non-player object drawing process by the non-player object drawing unit.

次に、図面を参照して、本発明の実施の形態を説明する。以下の図面の記載において、同一または類似の部分には同一または類似の符号を付している。   Next, embodiments of the present invention will be described with reference to the drawings. In the following description of the drawings, the same or similar parts are denoted by the same or similar reference numerals.

本発明の実施の形態に係るゲームプログラム1は、CPU31を含むゲーム装置3等のコンピュータによって実行されることにより、プレイヤにゲームを提供するものである。コンピュータが、ゲームプログラム1を実行することにより、CPU31に、図1に示す各部が実装される。   The game program 1 according to the embodiment of the present invention is executed by a computer such as the game apparatus 3 including the CPU 31 to provide a game to the player. When the computer executes the game program 1, each unit shown in FIG. 1 is mounted on the CPU 31.

本発明の実施の形態に係るゲームプログラム1は、仮想のゲーム空間に配置されるプレイヤオブジェクトが、非プレイヤオブジェクトと相関するゲームを進行する。ゲームプログラム1は、プレイヤに、仮想のゲーム空間に設けられた仮想カメラから見た画像データを元に、ゲーム装置3に操作内容を入力させる。ゲームプログラム1は、仮想カメラから見た画像データにおいて、非プレイヤオブジェクトが、仮想カメラからプレイヤオブジェクトを見る際の障害物になる場合、非プレイヤオブジェクトを透過して描画させる。   In the game program 1 according to the embodiment of the present invention, a game in which a player object arranged in a virtual game space correlates with a non-player object proceeds. The game program 1 causes the player to input operation contents to the game apparatus 3 based on image data viewed from a virtual camera provided in a virtual game space. In the image data viewed from the virtual camera, the game program 1 causes the non-player object to be drawn transparently when the non-player object becomes an obstacle when the player object is viewed from the virtual camera.

本発明の実施の形態に係るゲームプログラム1は、戦闘ゲーム、アクションゲーム、アドベンチャーゲームなどを想定するが、これに限られるものではない。本発明の実施の形態において、ゲームプログラム1は、一人のプレイヤが操作する場合を説明するが、二人のプレイヤが操作するゲームに適用されても良い。二人のプレイヤが操作するゲームにおいて、各プレイヤのゲーム画面には、それぞれ、各プレイヤオブジェクトに対応して設けられた各仮想カメラからのゲーム空間が描画される。   Although the game program 1 which concerns on embodiment of this invention assumes a battle game, an action game, an adventure game, etc., it is not restricted to this. In the embodiment of the present invention, the case where the game program 1 is operated by one player is described, but the game program 1 may be applied to a game operated by two players. In a game operated by two players, a game space from each virtual camera provided corresponding to each player object is drawn on the game screen of each player.

(ハードウエア構成)
図2を参照して、本発明の実施の形態に係るゲーム装置3のハードウエア構成を説明する。ゲーム装置3は、バス30に、CPU31、RAM32、ROM33、ストレージ34、画像処理ユニット35、入力インタフェース36、音声処理ユニット37および通信ユニット38を接続する。RAM32、ROM33およびストレージ34には、本発明の実施の形態に係るゲームプログラム1や、ゲームの進行や表示に関するデータが記憶される。画像処理ユニット35には、液晶ディスプレイなどの表示装置40が接続される。表示装置40は、画像処理ユニット35により生成されたゲーム画面を表示する。入力インタフェース36には、ボタン、マウス、キーボードなどの入力装置41が接続される。入力装置41は、プレイヤの操作内容を入力インタフェース36に渡す。音声処理ユニット37には、スピーカ42が接続される。スピーカ42は、音声処理ユニット37によりアナログ信号に変換されて増幅された効果音やBGM等の音声を出力する。
(Hardware configuration)
With reference to FIG. 2, a hardware configuration of game device 3 according to the embodiment of the present invention will be described. The game apparatus 3 connects a CPU 31, a RAM 32, a ROM 33, a storage 34, an image processing unit 35, an input interface 36, a sound processing unit 37, and a communication unit 38 to the bus 30. The RAM 32, the ROM 33, and the storage 34 store the game program 1 according to the embodiment of the present invention and data related to the progress and display of the game. A display device 40 such as a liquid crystal display is connected to the image processing unit 35. The display device 40 displays the game screen generated by the image processing unit 35. An input device 41 such as a button, a mouse, and a keyboard is connected to the input interface 36. The input device 41 passes the operation content of the player to the input interface 36. A speaker 42 is connected to the sound processing unit 37. The speaker 42 outputs sound such as sound effects and BGM that are converted into analog signals by the sound processing unit 37 and amplified.

ゲーム装置3は、通信ユニット38を介して、有線または無線で、ほかのゲーム装置やゲームサーバ装置に接続しても良い。通信ユニット38は、CPU31による処理データをほかの装置に送信したり、他の装置から受信した処理データを、CPU31に入力したりする。   The game apparatus 3 may be connected to another game apparatus or game server apparatus via the communication unit 38 in a wired or wireless manner. The communication unit 38 transmits processing data from the CPU 31 to other devices, and inputs processing data received from other devices to the CPU 31.

なお、図2に示す例では、表示装置40および入力装置41が個別に設けられる場合を説明したが、表示装置40および入力装置41の代わりに、あるいは追加して、タッチパネル(図示せず)が設けられても良い。タッチパネルは、画像処理ユニット35により生成されるゲーム画面を表示するとともに、プレイヤがタッチパネルに接触した接触座標を入力インタフェース36へ渡す。   In the example illustrated in FIG. 2, the case where the display device 40 and the input device 41 are individually provided has been described. However, instead of or in addition to the display device 40 and the input device 41, a touch panel (not illustrated) is provided. It may be provided. The touch panel displays a game screen generated by the image processing unit 35 and passes the contact coordinates where the player touches the touch panel to the input interface 36.

(機能構成)
図1に示すように、CPU31は、制御部10および描画部20を備える。制御部10は、制御部10が備える各部と連携して、ゲームの進行を制御し、描画部20にゲーム画面を描画する指示を出力する。描画部20は、制御部10からの指示に従ってゲーム画面を描画し、画像処理ユニット35を介して、表示装置40に表示する。
(Functional configuration)
As shown in FIG. 1, the CPU 31 includes a control unit 10 and a drawing unit 20. The control unit 10 controls the progress of the game in cooperation with each unit included in the control unit 10, and outputs an instruction to draw the game screen to the drawing unit 20. The drawing unit 20 draws a game screen according to an instruction from the control unit 10 and displays the game screen on the display device 40 via the image processing unit 35.

制御部10は、操作検出部11、仮想空間生成部12、仮想カメラ制御部13、プレイヤオブジェクト制御部14および非プレイヤオブジェクト制御部15を備える。   The control unit 10 includes an operation detection unit 11, a virtual space generation unit 12, a virtual camera control unit 13, a player object control unit 14, and a non-player object control unit 15.

操作検出部11は、プレイヤの操作内容を入力インタフェース36から取得して、操作内容を制御部10に渡す。   The operation detection unit 11 acquires the operation content of the player from the input interface 36 and passes the operation content to the control unit 10.

仮想空間生成部12は、予め定められたゲーム進行に従って、三次元の仮想のゲーム空間を生成する。仮想のゲーム空間において、プレイヤが操作して制御するプレイヤオブジェクトと、コンピュータが制御する非プレイヤオブジェクトが配置される。   The virtual space generation unit 12 generates a three-dimensional virtual game space according to a predetermined game progress. In the virtual game space, a player object operated and controlled by a player and a non-player object controlled by a computer are arranged.

仮想カメラ制御部13は、仮想のゲーム空間に設けられる仮想カメラCを制御する。仮想カメラCから撮影されたゲーム空間、プレイヤオブジェクトおよび非プレイヤオブジェクト等が、後述する描画部2によって二次元の画像データに変換されて、表示装置40に表示される。本発明の実施の形態において仮想カメラ制御部13は、ゲームの進行に応じて、プレイヤオブジェクトの上後方に限らず、プレイヤオブジェクトの正面やサイドなどの様々な位置に、仮想カメラCを設けるように制御される。また、仮想カメラCの位置や方向は、プレイヤの操作によって制御されても良い。   The virtual camera control unit 13 controls the virtual camera C provided in the virtual game space. A game space, a player object, a non-player object, and the like photographed from the virtual camera C are converted into two-dimensional image data by the drawing unit 2 described later and displayed on the display device 40. In the embodiment of the present invention, the virtual camera control unit 13 is configured to provide the virtual camera C at various positions such as the front and sides of the player object, not only above and behind the player object, according to the progress of the game. Be controlled. Further, the position and direction of the virtual camera C may be controlled by a player's operation.

プレイヤオブジェクト制御部14は、ゲーム空間内にプレイヤオブジェクトを生成するとともに、プレイヤが入力した操作情報に基づいてプレイヤオブジェクトをゲーム空間内で活動させる。非プレイヤオブジェクト制御部15は、ゲーム空間内に非プレイヤオブジェクトを生成し、配置する。非プレイヤオブジェクトは、岩や木などの静物であっても良いし、敵キャラクタなどの動物であっても良い。非プレイヤオブジェクトが動物である場合、非プレイヤオブジェクト制御部15は、所定の処理情報に基づいて、非プレイヤオブジェクトをゲーム空間内で活動させてもよい。「所定の処理情報」は、AI(Artificial Intelligence)などの所定のアルゴリズムであって、プレイヤが入力する操作情報とは非同期に、かつ、プレイヤオブジェクトの動きと相関を持って、非プレイヤオブジェクトを活動させる。   The player object control unit 14 generates a player object in the game space and activates the player object in the game space based on operation information input by the player. The non-player object control unit 15 generates and arranges non-player objects in the game space. The non-player object may be a still life such as a rock or a tree, or may be an animal such as an enemy character. When the non-player object is an animal, the non-player object control unit 15 may activate the non-player object in the game space based on predetermined processing information. The “predetermined processing information” is a predetermined algorithm such as AI (Artificial Intelligence), and the non-player object is activated asynchronously with the operation information input by the player and correlated with the movement of the player object. Let

本発明の実施の形態において非プレイヤオブジェクトは、プレイヤオブジェクトの動作対象である。プレイヤオブジェクトおよび非プレイヤオブジェクトが互いに相関しながら、ゲームは進行される。このとき、制御部10は、プレイヤオブジェクトの動作対象の非プレイヤオブジェクトの識別子、プレイヤオブジェクトの動作種別等を対応づけて記憶し、描画部20に、動作対象の非プレイヤオブジェクトの識別子、動作種別等を入力する。   In the embodiment of the present invention, the non-player object is a motion object of the player object. The game progresses while the player object and the non-player object are correlated with each other. At this time, the control unit 10 stores the identifier of the non-player object that is the movement target of the player object, the action type of the player object, and the like in association with each other. Enter.

描画部20は、ゲーム空間を、ゲーム空間に設けられる仮想カメラから見た画像データに変換して、描画する。描画部20は、仮想カメラCから見た仮想のゲーム空間、プレイヤオブジェクトおよび非プレイヤオブジェクトを、投影変換により、二次元の画像データに変換して描画する。描画部20は、所定の非プレイヤオブジェクトが、障害物であるか否かを判定する障害物判定部21と、非プレイヤオブジェクトを描画する非プレイヤオブジェクト描画部22を備える。非プレイヤオブジェクト描画部22は、障害物判定部21によって、非プレイヤオブジェクトが障害物であると判定された場合、この非プレイヤオブジェクトを透過処理して、描画する。   The drawing unit 20 converts the game space into image data viewed from a virtual camera provided in the game space, and draws the image data. The drawing unit 20 draws the virtual game space, the player object, and the non-player object viewed from the virtual camera C by converting them into two-dimensional image data by projection conversion. The drawing unit 20 includes an obstacle determination unit 21 that determines whether or not a predetermined non-player object is an obstacle, and a non-player object drawing unit 22 that draws the non-player object. When the obstacle determination unit 21 determines that the non-player object is an obstacle, the non-player object drawing unit 22 performs transparent processing on the non-player object and draws it.

障害物判定部21は、(i)プレイヤオブジェクトが非プレイヤオブジェクトに対して、対向しているか、(ii)プレイヤオブジェクトの腹部の法線Hと仮想カメラCの視線Vとがなす角が、所定の角度より大きいか、をそれぞれ判定する。障害物判定部21は、(i)および(ii)の条件を満たす場合、動作対象の非プレイヤオブジェクトが障害物であると判定する。   The obstacle determination unit 21 determines whether (i) the player object is facing the non-player object, or (ii) the angle formed by the normal line H of the abdomen of the player object and the line of sight V of the virtual camera C is predetermined. It is determined whether the angle is larger than the angle. The obstacle determination unit 21 determines that the non-player object to be operated is an obstacle when the conditions (i) and (ii) are satisfied.

まず、条件「(i)プレイヤオブジェクトが非プレイヤオブジェクトに対して、対向している」について説明する。   First, the condition “(i) the player object faces the non-player object” will be described.

本発明の実施の形態において、「対向する」とは、プレイヤオブジェクトが非プレイヤオブジェクト側を向いていることを意味し、非プレイヤオブジェクトは、プレイヤオブジェクトの腹部の法線方向に位置する。本発明の実施の形態において「対向する」は、プレイヤオブジェクトと非プレイヤオブジェクトが互いに正面で向き合う状態のみならず、非プレイヤオブジェクトの向きに関係なく、プレイヤオブジェクトの前面の少なくとも一部が、非プレイヤオブジェクトの方向に向いている状態を含んでも良い。また「対向する」は、プレイヤオブジェクトと非プレイヤオブジェクトとが、接触する場合のみならず、接触しない場合を含んでも良い。   In the embodiment of the present invention, “opposing” means that the player object faces the non-player object side, and the non-player object is located in the normal direction of the abdomen of the player object. In the embodiment of the present invention, “opposing” means not only the state in which the player object and the non-player object face each other in front but also at least a part of the front surface of the player object regardless of the orientation of the non-player object. It may include a state in which the object is oriented. Further, “opposing” may include not only a case where the player object and the non-player object are in contact but also a case where the player object and the non-player object are not in contact.

本発明の実施の形態において障害物判定部21は、プレイヤオブジェクトが非プレイヤオブジェクトに対して、「対向する動作」をしている場合に、「対向している」と判断する。「対向する動作」は、プレイヤオブジェクトや非プレイヤオブジェクトの種類やゲームの種類等によって、適宜設定される。例えば、プレイヤオブジェクトと非プレイヤオブジェクトとが戦闘するアクションゲームの場合、非プレイヤオブジェクトは、敵オブジェクトであると考えられる。この場合、「対向する動作」は、プレイヤオブジェクトが、敵オブジェクトと格闘する、プレイヤオブジェクトが敵オブジェクトによじのぼるなど、プレイヤオブジェクトが敵オブジェクトに接触して対向する動作や、敵オブジェクトに武器を向ける、敵オブジェクトに武器を投げるなど、プレイヤオブジェクトが敵オブジェクトに接触することなく対向する動作が考えられる。   In the embodiment of the present invention, the obstacle determination unit 21 determines that the player object is “opposing” when the player object is “opposing” the non-player object. The “opposing action” is appropriately set depending on the type of player object or non-player object, the type of game, and the like. For example, in the case of an action game in which a player object and a non-player object battle, the non-player object is considered to be an enemy object. In this case, the “opposing action” means an action in which the player object comes into contact with the enemy object, such as a player object wrestling with an enemy object, or a player object climbing on the enemy object, or a weapon is directed to the enemy object. It is conceivable that the player object faces the enemy object without touching the enemy object, such as throwing a weapon at the enemy object.

一方プレイヤオブジェクトが非プレイヤオブジェクトを利用して活動するアドベンチャーゲームの場合、非プレイヤオブジェクトは、岩や木などの静物オブジェクトであると考えられる。この場合、「対向する動作」は、プレイヤオブジェクトが静物オブジェクトによじのぼる、静物オブジェクトを抱える、静物オブジェクトの背後に隠れるなど、プレイヤオブジェクトが静物オブジェクトに接触して対向する動作や、プレイヤオブジェクトが静物オブジェクトに、ほかのオブジェクトを投げる、魔法を使うなど、プレイヤオブジェクトが静物オブジェクトに接触することなく対向する動作が考えられる。   On the other hand, in the case of an adventure game in which a player object is active using a non-player object, the non-player object is considered to be a still life object such as a rock or a tree. In this case, the “opposing motion” means a motion in which the player object comes into contact with the still-life object, such as the player object climbing on the still-life object, holding the still-life object, or hiding behind the still-life object, In addition, it is conceivable that the player object opposes without touching the still life object, such as throwing another object or using magic.

次に、条件「(ii)プレイヤオブジェクトの腹部の法線Hと、仮想カメラCの視線Vとがなす角が、所定の角度より大きい」について説明する。   Next, the condition “(ii) the angle formed by the normal line H of the abdomen of the player object and the line of sight V of the virtual camera C is greater than a predetermined angle” will be described.

腹部の法線Hは、プレイヤオブジェクトの生成時に得られる腹部のボーンに対する法線であって、法線の方向は、プレイヤオブジェクトの腹部位置の前方向に対応する。仮想カメラCの視線Vは、仮想カメラの撮影方向であって、描画部20による投影変換処理のパラメータとなる。所定の角度は、180度ないし91度の範囲内で設定され、より好ましくは、180度ないし120度の範囲内で設定される。この所定の角度は、プレイヤキャラクタの形状によって適宜設定されても良いし、プレイヤキャラクタの動作種別等によって、可変に設定されても良い。   The abdomen normal H is a normal to the abdomen bone obtained when the player object is generated, and the direction of the normal corresponds to the forward direction of the abdomen position of the player object. The line of sight V of the virtual camera C is the shooting direction of the virtual camera, and is a parameter for projection conversion processing by the drawing unit 20. The predetermined angle is set within a range of 180 degrees to 91 degrees, and more preferably within a range of 180 degrees to 120 degrees. This predetermined angle may be appropriately set according to the shape of the player character, or may be variably set according to the action type of the player character.

図3を参照して、本発明の実施の形態における仮想のゲーム空間の座標系を説明する。仮想カメラCの視線V方向をZ軸方向とする。Z軸方向に対して垂直に交わる面(スクリーン)において、スクリーンの縦方向(図3の上下方向)をY軸方向とし、スクリーンの横方向(図3の手前ないし奥方向)をX軸方向とする。   With reference to FIG. 3, the coordinate system of the virtual game space in the embodiment of the present invention will be described. The line of sight V direction of the virtual camera C is taken as the Z-axis direction. On the plane (screen) perpendicular to the Z-axis direction, the vertical direction of the screen (vertical direction in FIG. 3) is the Y-axis direction, and the horizontal direction (front or back direction in FIG. 3) is the X-axis direction. To do.

図4に示す図は、仮想のゲーム空間におけるプレイヤオブジェクトPの腹部の法線Hと、仮想カメラCの視線Vとがなす角度を説明する。図4に示す図は、図3に示すゲーム空間において、仮想カメラCおよびプレイヤオブジェクトをYZ平面に投影した状態を示す。   The diagram shown in FIG. 4 illustrates the angle formed by the normal line H of the abdomen of the player object P and the line of sight V of the virtual camera C in the virtual game space. 4 shows a state in which the virtual camera C and the player object are projected on the YZ plane in the game space shown in FIG.

図4(a)は、法線Hと視線Vとが同じ方向を向いている場合、すなわち、図4(b)に示すように、法線Hと視線Vとがなす角αが0度の場合を示す。プレイヤオブジェクトPが非プレイヤオブジェクトO(図示せず)に対して対向している場合、非プレイヤオブジェクトOは、プレイヤオブジェクトPの法線Hの先(図4(a)の右側)に位置する。このとき、仮想カメラCからみると、ゲーム空間の手前にプレイヤオブジェクトPが位置し、奥に非プレイヤオブジェクトOが位置する。従って、非プレイヤオブジェクトOは、仮想カメラCから見たゲーム空間を変換した画像データにおいて障害物とならない。従って、非プレイヤオブジェクトOが透過処理されなくとも、プレイヤは、プレイヤオブジェクトPを確認することができる。   4A shows a case where the normal H and the line of sight V are in the same direction, that is, as shown in FIG. 4B, the angle α formed between the normal H and the line of sight V is 0 degree. Show the case. When the player object P faces the non-player object O (not shown), the non-player object O is located at the tip of the normal line H of the player object P (on the right side in FIG. 4A). At this time, when viewed from the virtual camera C, the player object P is positioned in front of the game space, and the non-player object O is positioned in the back. Therefore, the non-player object O does not become an obstacle in the image data obtained by converting the game space viewed from the virtual camera C. Therefore, even if the non-player object O is not transparently processed, the player can confirm the player object P.

図4(c)は、法線Hと視線Vとが反対方向(対向する方向)を向いている場合、すなわち、図4(d)に示すように、法線Hと視線Vとがなす角αが180度の場合を示す。プレイヤオブジェクトPが非プレイヤオブジェクトOに対して対向している場合、非プレイヤオブジェクトOは、プレイヤオブジェクトPの法線Hの先(図4(c)の左側)に位置する。このとき、仮想カメラCからみると、ゲーム空間の手前に非プレイヤオブジェクトOが位置し、奥にプレイヤオブジェクトPが位置するので、非プレイヤオブジェクトOは、仮想カメラCから見たゲーム空間を変換した画像データにおいて障害物となる。従って、非プレイヤオブジェクトOが透過処理されることにより、プレイヤは、プレイヤオブジェクトPを確認することができる。   FIG. 4C shows the case where the normal H and the line of sight V are directed in opposite directions (opposite directions), that is, the angle formed between the normal H and the line of sight V as shown in FIG. The case where α is 180 degrees is shown. When the player object P faces the non-player object O, the non-player object O is located at the tip of the normal line H of the player object P (left side in FIG. 4C). At this time, when viewed from the virtual camera C, the non-player object O is positioned in front of the game space and the player object P is positioned in the back, so the non-player object O has transformed the game space viewed from the virtual camera C. It becomes an obstacle in image data. Therefore, the player can confirm the player object P by the non-player object O being transparently processed.

図4(e)は、法線Hが視線Vに対して斜め上を向いている場合、すなわち、図4(f)に示すように、法線Hと視線Vとがなす角αが、91度以上180度未満である場合を示す。プレイヤオブジェクトPが非プレイヤオブジェクトOに対して対向している場合、非プレイヤオブジェクトOは、プレイヤオブジェクトPの法線Hの先(図4(e)の左上側)に位置する。このとき、仮想カメラCからみると、ゲーム空間の手前に非プレイヤオブジェクトOが位置し、奥にプレイヤオブジェクトPが位置するので、非プレイヤオブジェクトOは、仮想カメラCから見たゲーム空間を変換した画像データにおいて障害物となる。従って、非プレイヤオブジェクトOが透過処理されることにより、プレイヤは、プレイヤオブジェクトPを確認することができる。   FIG. 4E shows a case where the normal H is obliquely upward with respect to the line of sight V, that is, as shown in FIG. 4F, the angle α formed between the normal H and the line of sight V is 91. A case where the angle is not less than 180 degrees and less than 180 degrees is shown. When the player object P faces the non-player object O, the non-player object O is located at the tip of the normal line H of the player object P (upper left side in FIG. 4E). At this time, when viewed from the virtual camera C, the non-player object O is positioned in front of the game space and the player object P is positioned in the back, so the non-player object O has transformed the game space viewed from the virtual camera C. It becomes an obstacle in image data. Therefore, the player can confirm the player object P by the non-player object O being transparently processed.

図4(g)は、法線Hが視線Vの上方向を向いている場合、すなわち図4(h)に示すように、法線Hと視線Vとがなす角αが90度である場合を示す。プレイヤオブジェクトPが非プレイヤオブジェクトOに対して対向している場合、非プレイヤオブジェクトOは、プレイヤオブジェクトPの法線Hの先(図4(e)の上側)に位置する。このとき、仮想カメラCからみると、ゲーム空間の上に非プレイヤオブジェクトOが位置し、非プレイヤオブジェクトOの下にプレイヤオブジェクトPが位置するので、非プレイヤオブジェクトOは、仮想カメラCから見たゲーム空間を変換した画像データにおいて障害物とならない。従って、非プレイヤオブジェクトOが透過処理されていなくとも、プレイヤは、プレイヤオブジェクトPを確認することができる。   FIG. 4G shows the case where the normal H is directed upward of the line of sight V, that is, the angle α formed by the normal H and the line of sight V is 90 degrees as shown in FIG. Indicates. When the player object P faces the non-player object O, the non-player object O is located at the tip of the normal line H of the player object P (upper side in FIG. 4E). At this time, when viewed from the virtual camera C, the non-player object O is positioned above the game space, and the player object P is positioned below the non-player object O. Therefore, the non-player object O is viewed from the virtual camera C. It does not become an obstacle in the image data converted from the game space. Therefore, even if the non-player object O is not transparently processed, the player can confirm the player object P.

図5ないし図10を参照して、本発明の実施の形態に係る描画部20の処理を説明する。図5、図7および図9は、図3に示す座標系において、仮想カメラCおよびプレイヤオブジェクトをYZ平面に投影した状態を示す。図6、図8および図10は、描画部20が、ゲーム空間、プレイヤオブジェクトPおよび非プレイヤオブジェクトOを投影変換して得た、二次元の画像データである。図5ないし図10において、障害物により確認できないプレイヤオブジェクトPは、点線で示され、透過処理された非プレイヤオブジェクトOは、二点鎖線で示される。図5ないし図10に示す例において、プレイヤオブジェクトPは、非プレイヤオブジェクトOに対して、「しがみつく」という対向する動作をしている場合を説明する。   Processing of the drawing unit 20 according to the embodiment of the present invention will be described with reference to FIGS. 5, 7 and 9 show a state in which the virtual camera C and the player object are projected onto the YZ plane in the coordinate system shown in FIG. 6, 8, and 10 are two-dimensional image data obtained by projecting and transforming the game space, the player object P, and the non-player object O by the drawing unit 20. In FIG. 5 to FIG. 10, the player object P that cannot be confirmed by the obstacle is indicated by a dotted line, and the non-player object O that has been subjected to the transparent process is indicated by a two-dot chain line. In the example shown in FIGS. 5 to 10, a case will be described in which the player object P is performing an opposing action of “clamping” against the non-player object O.

図5は、プレイヤオブジェクトPの法線Hと、仮想カメラCの視線Vとが、同じ方向を向いており、法線Hと視線Vのなす角が0度の場合を示す。この場合、視線Vの手前にプレイヤオブジェクトPが位置し、奥に非プレイヤオブジェクトOが位置するので、図6に示すように、仮想カメラCからプレイヤオブジェクトPを確認できる。   FIG. 5 shows a case where the normal line H of the player object P and the line of sight V of the virtual camera C are in the same direction, and the angle formed by the normal line H and the line of sight V is 0 degrees. In this case, since the player object P is positioned in front of the line of sight V and the non-player object O is positioned in the back, the player object P can be confirmed from the virtual camera C as shown in FIG.

図7(a)は、プレイヤオブジェクトPの法線Hと、仮想カメラCの視線Vとが、反対方向(対向する方向)を向いており、法線Hと視線Vのなす角が180度の場合を示す。この場合、視線Vの手前に非プレイヤオブジェクトOが位置し、奥にプレイヤオブジェクトPが位置するので、図8(a)に示すように、仮想カメラCからプレイヤオブジェクトPを確認できない。従って、図7(b)および図8(b)に示すように、非プレイヤオブジェクトOを透過処理することにより、仮想カメラCからの視線V上に、プレイヤオブジェクトPを確認できる。   In FIG. 7A, the normal line H of the player object P and the line of sight V of the virtual camera C are directed in opposite directions (opposite directions), and the angle formed between the normal line H and the line of sight V is 180 degrees. Show the case. In this case, since the non-player object O is positioned in front of the line of sight V and the player object P is positioned in the back, the player object P cannot be confirmed from the virtual camera C as shown in FIG. Accordingly, as shown in FIGS. 7B and 8B, the player object P can be confirmed on the line of sight V from the virtual camera C by performing the transparent process on the non-player object O.

図9(a)は、仮想カメラCが、非プレイヤオブジェクトOの内部に設けられ、プレイヤオブジェクトPの法線Hと、仮想カメラCの視線Vとが、反対方向(対向する方向)を向いており、法線Hと視線Vのなす角が180度の場合を示す。この場合、視線Vの手前に、プレイヤオブジェクトPがしがみつく非プレイヤオブジェクトOの表面が位置し、奥にプレイヤオブジェクトPが位置するので、図10(a)に示すように、プレイヤオブジェクトPと非プレイヤオブジェクトOが重なる胴体部分および右足部分は、仮想カメラCからの視線Vにより、プレイヤオブジェクトPを確認できない。従って、図9(b)および図10(b)に示すように、非プレイヤオブジェクトOを透過処理することにより、仮想カメラCからの視線V上に、プレイヤオブジェクトPを確認できる。   In FIG. 9A, the virtual camera C is provided inside the non-player object O, and the normal line H of the player object P and the line of sight V of the virtual camera C face in opposite directions (opposite directions). The angle between the normal H and the line of sight V is 180 degrees. In this case, since the surface of the non-player object O to which the player object P clings is positioned in front of the line of sight V and the player object P is positioned in the back, the player object P and the non-player are positioned as shown in FIG. The body part and the right foot part where the object O overlaps cannot confirm the player object P by the line of sight V from the virtual camera C. Therefore, as shown in FIG. 9B and FIG. 10B, the player object P can be confirmed on the line of sight V from the virtual camera C by performing the transparent process on the non-player object O.

非プレイヤオブジェクト描画部22は、障害物判定部21が、非プレイヤオブジェクトが障害物であると判定した場合、非プレイヤオブジェクトの透過度を段階的に上げて、非プレイヤオブジェクトを描画する処理を繰り返す。非プレイヤオブジェクトの透過度が所定の透過度に到達した後、障害物判定部21が、非プレイヤオブジェクトについて障害物であるか否かを判定する。非プレイヤオブジェクトが障害物である場合、非プレイヤオブジェクト描画部22は、所定の透過度で、非プレイヤオブジェクトを透過処理して描画する。一方、非プレイヤオブジェクトが障害物でない場合、非プレイヤオブジェクトの透過度を段階的に下げて、非プレイヤオブジェクトを描画する処理を繰り返す。   When the obstacle determining unit 21 determines that the non-player object is an obstacle, the non-player object drawing unit 22 repeats the process of increasing the transparency of the non-player object in stages and drawing the non-player object. . After the transparency of the non-player object reaches a predetermined transparency, the obstacle determination unit 21 determines whether the non-player object is an obstacle. When the non-player object is an obstacle, the non-player object drawing unit 22 performs the transparent process on the non-player object and draws it with a predetermined transparency. On the other hand, when the non-player object is not an obstacle, the transparency of the non-player object is lowered stepwise and the process of drawing the non-player object is repeated.

本発明の実施の形態において非プレイヤオブジェクト描画部22は、非プレイヤオブジェクトの透過度を、例えば、デフォルト値(例えば0%)から最大値(例えば60%)の範囲で、透過度を徐々に上げたり下げたりして、非プレイヤオブジェクトを描画する。   In the embodiment of the present invention, the non-player object drawing unit 22 gradually increases the transparency of the non-player object, for example, within a range from a default value (for example, 0%) to a maximum value (for example, 60%). A non-player object is drawn by lowering or lowering.

障害物判定部21が、非プレイヤオブジェクトが障害物であると判定すると、非プレイヤオブジェクト描画部22は、所定の透過度まで徐々に透過度を上げて、連続した複数のフレーム画像を描画する。例えば、最大値が60%で1秒あたり30枚のフレーム画像を描画する場合、非プレイヤオブジェクト描画部22は、フレーム画像1枚あたり2%ずつ透過度を上げる。非プレイヤオブジェクト描画部22は、1秒かけて、透過度0%から透過度60%まで2%刻みで変化するフレーム画像を描画する。その間、非プレイヤオブジェクトが障害物でない状態が発生したとしても、非プレイヤオブジェクト描画部22は、非プレイヤオブジェクトの透過度を、最大値まで段階的に上げて描画する処理を継続する。   When the obstacle determining unit 21 determines that the non-player object is an obstacle, the non-player object drawing unit 22 draws a plurality of continuous frame images by gradually increasing the transparency to a predetermined transparency. For example, when the maximum value is 60% and 30 frame images are drawn per second, the non-player object drawing unit 22 increases the transparency by 2% per frame image. The non-player object drawing unit 22 draws a frame image that changes in units of 2% from 0% transparency to 60% transparency over 1 second. In the meantime, even if a state where the non-player object is not an obstacle occurs, the non-player object drawing unit 22 continues the process of drawing the non-player object by increasing the transparency of the non-player object up to the maximum value.

その後、透過度が最大値まで上がると、障害物判定部21が、非プレイヤオブジェクトが障害物であるか否かを判定する。障害物である場合、非プレイヤオブジェクト描画部22は、最大値の透過度で描画を継続する。障害物でない場合、非プレイヤオブジェクト描画部22は、非プレイヤオブジェクトの透過度を下げる処理を開始する。例えば、最大値が60%で1秒あたり30枚のフレーム画像を描画する場合、非プレイヤオブジェクト描画部22は、フレーム画像1枚あたり2%ずつ下げる。非プレイヤオブジェクト描画部22は、1秒かけて、透過度60%から透過度0%まで2%刻みで変化するフレーム画像を描画する。その間、非プレイヤオブジェクトが障害物となる状態が発生したとしても、非プレイヤオブジェクト描画部22は、非プレイヤオブジェクトの透過度を、デフォルト値まで段階的に下げて描画する処理を継続する。   Thereafter, when the transparency increases to the maximum value, the obstacle determination unit 21 determines whether or not the non-player object is an obstacle. In the case of an obstacle, the non-player object drawing unit 22 continues drawing with the maximum transparency. If it is not an obstacle, the non-player object drawing unit 22 starts a process of reducing the transparency of the non-player object. For example, when the maximum value is 60% and 30 frame images are drawn per second, the non-player object drawing unit 22 decreases the frame image by 2% per frame image. The non-player object drawing unit 22 draws a frame image that changes in units of 2% from 60% transparency to 0% transparency over 1 second. In the meantime, even if a state in which the non-player object becomes an obstacle occurs, the non-player object drawing unit 22 continues the process of drawing the non-player object with the transparency of the non-player object lowered stepwise to the default value.

ここで、透過処理や非透過処理における透過度の最大値や、透過度の変化に要するフレーム数、1フレームあたりの透過度の変化量等は、適宜設定される。   Here, the maximum value of the transparency in the transparency process and the non-transparency process, the number of frames required to change the transparency, the amount of change in the transparency per frame, and the like are set as appropriate.

このように本発明の実施の形態に係る非プレイヤオブジェクト描画部22は、非プレイヤオブジェクトを透過処理または非透過処理を開始して完了するまでの間、障害物判定部21による障害物判定処理を実行することなく、透過処理または非透過処理を継続する。これにより、非プレイヤオブジェクトの透過度が急に切り替えられ、プレイヤが見づらくなることを回避するとともに、CPU31の処理負荷を軽減することができる。   As described above, the non-player object drawing unit 22 according to the embodiment of the present invention performs the obstacle determination process by the obstacle determination unit 21 until the non-player object starts or completes the transparent process or the non-transparent process. Continue the transparent or non-transparent process without executing it. Thereby, the transparency of the non-player object is suddenly switched, and it is possible to avoid the player from being difficult to see, and to reduce the processing load on the CPU 31.

次に、図11を参照して、非プレイヤオブジェクト描画部22による非プレイヤオブジェクト描画処理を説明する。図11に示す処理は一例であって、これと異なる処理により非プレイヤオブジェクト描画処理が実行されても良い。   Next, non-player object drawing processing by the non-player object drawing unit 22 will be described with reference to FIG. The process shown in FIG. 11 is an example, and the non-player object drawing process may be executed by a process different from this.

ステップS1において、障害物判定部21によって非プレイヤオブジェクトが障害物であると判定されると、ステップS2に進み、非プレイヤオブジェクト描画部22は、透過度が最大値であるかを判定する。透過度が最大値である場合、すなわち非プレイヤオブジェクトの透過処理が既に完了している場合、ステップS1に戻り、再び、障害物判定部21による判定処理が行われる。   In step S1, when the obstacle determination unit 21 determines that the non-player object is an obstacle, the process proceeds to step S2, and the non-player object drawing unit 22 determines whether the transparency is the maximum value. If the transparency is the maximum value, that is, if the transparency process of the non-player object has already been completed, the process returns to step S1, and the determination process by the obstacle determination unit 21 is performed again.

ステップS2において、透過度が最大値でない場合、すなわち、非プレイヤオブジェクトが非障害物から障害物になった場合、ステップS2において、透過処理を開始する。透過処理においては、非プレイヤオブジェクトの透過度が最大値(例えば60%)になるまで、非プレイヤオブジェクトの透過度を段階的に上げて描画する処理を繰り返す。   If the transparency is not the maximum value in step S2, that is, if the non-player object is changed from a non-obstacle to an obstacle, a transparency process is started in step S2. In the transparency process, until the transparency of the non-player object reaches a maximum value (for example, 60%), the process of drawing with the transparency of the non-player object increased stepwise is repeated.

ステップS1において、障害物判定部21によって非プレイヤオブジェクトが障害物でないと判定されると、ステップS4に進み、非プレイヤオブジェクト描画部22は、透過度がデフォルト値(例えば0%)であるかを判定する。透過度がデフォルト値である場合、すなわち非プレイヤオブジェクトの非透過処理が既に完了している場合、ステップS1に戻り、再び、障害物判定部21による判定処理が行われる。   In step S1, when the obstacle determination unit 21 determines that the non-player object is not an obstacle, the process proceeds to step S4, and the non-player object drawing unit 22 determines whether the transparency is a default value (for example, 0%). judge. When the transparency is the default value, that is, when the non-transparency process of the non-player object has already been completed, the process returns to step S1, and the determination process by the obstacle determination unit 21 is performed again.

ステップS4において、透過度がデフォルト値でない場合、すなわち、非プレイヤオブジェクトが障害物から非障害物になった場合、ステップS5において、非透過処理を開始する。非透過処理においては、非プレイヤオブジェクトの透過度がデフォルト値になるまで、非プレイヤオブジェクトの透過度を段階的に下げて描画する処理を繰り返す。   If the transparency is not the default value in step S4, that is, if the non-player object is changed from an obstacle to a non-obstacle, a non-transparency process is started in step S5. In the non-transparency process, the process of drawing with the transparency of the non-player object lowered stepwise is repeated until the transparency of the non-player object reaches the default value.

このような本発明の実施の形態に係るゲームプログラム1によれば、仮想のゲーム空間において、仮想カメラから見た場合のプレイヤオブジェクトの障害物を容易に判定し、プレイヤに見やすい画面を提供することができる。   According to such a game program 1 according to the embodiment of the present invention, it is possible to easily determine an obstacle of a player object when viewed from a virtual camera in a virtual game space, and to provide an easy-to-view screen for the player. Can do.

(その他の実施の形態)
上記のように、本発明の実施の形態によって記載したが、この開示の一部をなす論述および図面はこの発明を限定するものであると理解すべきではない。この開示から当業者には様々な代替実施の形態、実施例および運用技術が明らかとなる。
(Other embodiments)
As described above, the embodiments of the present invention have been described. However, it should not be understood that the descriptions and drawings constituting a part of this disclosure limit the present invention. From this disclosure, various alternative embodiments, examples, and operational techniques will be apparent to those skilled in the art.

例えば、プレイヤオブジェクトの腹部の法線と、仮想カメラの視線とがなす角度に応じて、透過度を変更させても良い。例えば、この角度が大きいほど、非プレイヤオブジェクトの透過度が大きくなるように制御されても良い。   For example, the transparency may be changed according to the angle formed by the normal line of the abdomen of the player object and the line of sight of the virtual camera. For example, the greater the angle, the greater the non-player object transparency may be controlled.

本発明はここでは記載していない様々な実施の形態等を含むことは勿論である。従って、本発明の技術的範囲は上記の説明から妥当な特許請求の範囲に係る発明特定事項によってのみ定められるものである。   It goes without saying that the present invention includes various embodiments not described herein. Therefore, the technical scope of the present invention is defined only by the invention specifying matters according to the scope of claims reasonable from the above description.

1 ゲームプログラム
3 ゲーム装置
10 制御部
11 操作検出部
12 仮想空間生成部
13 仮想カメラ制御部
14 プレイヤオブジェクト制御部
15 非プレイヤオブジェクト制御部
20 描画部
21 障害物判定部
22 非プレイヤオブジェクト描画部
31 CPU
32 RAM
33 ROM
34 ストレージ
35 画像処理ユニット
36 入力インタフェース
37 音声処理ユニット
38 通信ユニット
40 表示装置
41 入力装置
42 スピーカ
C 仮想カメラ
H 法線
O 非プレイヤオブジェクト
P プレイヤオブジェクト
V 視線
DESCRIPTION OF SYMBOLS 1 Game program 3 Game device 10 Control part 11 Operation detection part 12 Virtual space production | generation part 13 Virtual camera control part 14 Player object control part 15 Non-player object control part 20 Drawing part 21 Obstacle determination part 22 Non-player object drawing part 31 CPU
32 RAM
33 ROM
34 Storage 35 Image processing unit 36 Input interface 37 Audio processing unit 38 Communication unit 40 Display device 41 Input device 42 Speaker C Virtual camera H Normal line O Non-player object P Player object V Line of sight

Claims (6)

コンピュータを、
仮想のゲーム空間内にプレイヤオブジェクトを生成するとともに、プレイヤが入力した操作情報に基づいて前記プレイヤオブジェクトを前記ゲーム空間内で活動させるプレイヤオブジェクト制御手段と、
前記ゲーム空間内に非プレイヤオブジェクトを生成し、配置する非プレイヤオブジェクト制御手段と、
前記ゲーム空間を、前記ゲーム空間に設けられる仮想カメラから見た画像データに変換して、描画する描画手段として機能させ、
前記描画手段は、
前記プレイヤオブジェクトが前記非プレイヤオブジェクトに対して、対向しており、かつ、前記プレイヤオブジェクトの腹部の法線と前記仮想カメラの視線とがなす角が、所定の角度より大きい場合、前記非プレイヤオブジェクトが障害物であると判定する障害物判定手段を備える
ことを特徴とするゲームプログラム。
Computer
Player object control means for generating a player object in a virtual game space and causing the player object to be activated in the game space based on operation information input by the player;
Non-player object control means for generating and arranging a non-player object in the game space;
The game space is converted into image data viewed from a virtual camera provided in the game space and functions as a drawing means for drawing,
The drawing means includes
When the player object is opposed to the non-player object and an angle formed by a normal line of the abdomen of the player object and the line of sight of the virtual camera is larger than a predetermined angle, the non-player object The game program characterized by including the obstacle determination means which determines that is an obstacle.
前記非プレイヤオブジェクト制御手段は、所定の処理情報に基づいて、前記非プレイヤオブジェクトを前記ゲーム空間内で活動させる
ことを特徴とする請求項1に記載のゲームプログラム。
The game program according to claim 1, wherein the non-player object control means activates the non-player object in the game space based on predetermined processing information.
前記描画手段は、
前記障害物判定手段が、前記非プレイヤオブジェクトが障害物であると判定した場合、前記非プレイヤオブジェクトの透過度を上げる
ことを特徴とする請求項1または2に記載のゲームプログラム。
The drawing means includes
The game program according to claim 1 or 2, wherein when the obstacle determination unit determines that the non-player object is an obstacle, the transparency of the non-player object is increased.
前記描画手段は、
前記非プレイヤオブジェクトの透過度を段階的に上げて、前記非プレイヤオブジェクトを描画する処理を繰り返し、
前記非プレイヤオブジェクトの透過度が所定の透過度に到達した後、前記障害物判定手段が、前記非プレイヤオブジェクトについて障害物であるか否かを判定し、
前記非プレイヤオブジェクトが障害物である場合、前記所定の透過度で、前記非プレイヤオブジェクトを透過処理して描画する
ことを特徴とする請求項3に記載のゲームプログラム。
The drawing means includes
Increasing the transparency of the non-player object in stages and repeating the process of drawing the non-player object;
After the transparency of the non-player object reaches a predetermined transparency, the obstacle determination means determines whether the non-player object is an obstacle,
The game program according to claim 3, wherein when the non-player object is an obstacle, the non-player object is rendered by being transparently processed with the predetermined transparency.
前記対向する動作は、前記プレイヤオブジェクトが、前記非プレイヤオブジェクトに接触する動作である
ことを特徴とする請求項1ないし4のいずれか1項に記載のゲームプログラム。
The game program according to any one of claims 1 to 4, wherein the opposing action is an action in which the player object contacts the non-player object.
請求項1ないし請求項5のいずれか1項に記載のゲームプログラムを記憶したプログラム記憶部と、前記プログラム記憶部に記憶されたゲームプログラムを実行するコンピュータと、を備えたゲーム装置。   A game device comprising: a program storage unit that stores the game program according to claim 1; and a computer that executes the game program stored in the program storage unit.
JP2015023949A 2015-02-10 2015-02-10 GAME PROGRAM AND GAME DEVICE Active JP6122047B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2015023949A JP6122047B2 (en) 2015-02-10 2015-02-10 GAME PROGRAM AND GAME DEVICE
PCT/JP2016/053854 WO2016129603A1 (en) 2015-02-10 2016-02-09 Game device, control method, and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015023949A JP6122047B2 (en) 2015-02-10 2015-02-10 GAME PROGRAM AND GAME DEVICE

Publications (2)

Publication Number Publication Date
JP2016146864A true JP2016146864A (en) 2016-08-18
JP6122047B2 JP6122047B2 (en) 2017-04-26

Family

ID=56614696

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015023949A Active JP6122047B2 (en) 2015-02-10 2015-02-10 GAME PROGRAM AND GAME DEVICE

Country Status (2)

Country Link
JP (1) JP6122047B2 (en)
WO (1) WO2016129603A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020189064A (en) * 2019-05-24 2020-11-26 株式会社カプコン Game program and game device
CN117994181A (en) * 2024-04-03 2024-05-07 成都力比科技有限公司 Full-screen-based 2D illumination rendering method and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7369556B2 (en) * 2018-09-06 2023-10-26 株式会社バンダイナムコエンターテインメント Program, game device, server device, and game providing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11306383A (en) * 1998-04-24 1999-11-05 Namco Ltd Picture generator and information storage medium
JP2000348217A (en) * 1995-08-10 2000-12-15 Sega Enterp Ltd Device and method for generating virtual image
JP2003044868A (en) * 2001-07-30 2003-02-14 Namco Ltd System for generating image, program and information storage medium
JP2007164557A (en) * 2005-12-15 2007-06-28 Namco Bandai Games Inc Program, information recording medium and image generation system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000348217A (en) * 1995-08-10 2000-12-15 Sega Enterp Ltd Device and method for generating virtual image
JPH11306383A (en) * 1998-04-24 1999-11-05 Namco Ltd Picture generator and information storage medium
JP2003044868A (en) * 2001-07-30 2003-02-14 Namco Ltd System for generating image, program and information storage medium
JP2007164557A (en) * 2005-12-15 2007-06-28 Namco Bandai Games Inc Program, information recording medium and image generation system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020189064A (en) * 2019-05-24 2020-11-26 株式会社カプコン Game program and game device
JP6993585B2 (en) 2019-05-24 2022-01-13 株式会社カプコン Game programs and game equipment
CN117994181A (en) * 2024-04-03 2024-05-07 成都力比科技有限公司 Full-screen-based 2D illumination rendering method and system
CN117994181B (en) * 2024-04-03 2024-06-11 成都力比科技有限公司 Full-screen-based 2D illumination rendering method and system

Also Published As

Publication number Publication date
JP6122047B2 (en) 2017-04-26
WO2016129603A1 (en) 2016-08-18

Similar Documents

Publication Publication Date Title
US7753785B2 (en) Game apparatus, storing medium that stores control program of virtual camera, and control method of virtual camera
US10719978B2 (en) Storage medium, image processing system, image processing apparatus and image processing method for target object detection
JP2021515348A (en) Distance information display method in a virtual scene and its terminal computer device and computer program
US8655015B2 (en) Image generation system, image generation method, and information storage medium
EP2394717A2 (en) Image generation system, image generation method, and information storage medium for video games
US9199164B2 (en) Image display device, computer readable storage medium, and game control method
US20160354692A1 (en) Image processing program, image processing device and image processing method
US20120154311A1 (en) Information storage medium, terminal, and input determination method
JP6246310B1 (en) Method, program, and apparatus for providing virtual space
JP2006331109A (en) Image processing program moving display area and image processor
US20180357747A1 (en) Adaptive mesh skinning in a foveated rendering system
JP6122047B2 (en) GAME PROGRAM AND GAME DEVICE
JP6684746B2 (en) Information processing method, computer and program
JP2017144158A (en) Program and game device
JP2009061161A (en) Program, information storage medium and game system
JP2024513744A (en) Methods, devices, equipment and computer programs for marking objects in virtual environments
JP5767682B2 (en) Game program and game system
JP2019000138A (en) Game program, game device, and server device
JP6313937B2 (en) Game program and game system
JP4330412B2 (en) Game device and program for causing computer to function
JP4662271B2 (en) Program, information storage medium, and image generation system
JP3786671B1 (en) Program, information storage medium, and image generation system
CN113041616B (en) Method, device, electronic equipment and storage medium for controlling skip word display in game
JP2012063958A (en) Game program and game device
JP2009061159A (en) Program, information storage medium and game system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161124

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20161124

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20170228

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: 20170307

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170330

R150 Certificate of patent or registration of utility model

Ref document number: 6122047

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S802 Written request for registration of partial abandonment of right

Free format text: JAPANESE INTERMEDIATE CODE: R311802

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