JP7177218B2 - Terminal device, control method and control program - Google Patents

Terminal device, control method and control program Download PDF

Info

Publication number
JP7177218B2
JP7177218B2 JP2021097184A JP2021097184A JP7177218B2 JP 7177218 B2 JP7177218 B2 JP 7177218B2 JP 2021097184 A JP2021097184 A JP 2021097184A JP 2021097184 A JP2021097184 A JP 2021097184A JP 7177218 B2 JP7177218 B2 JP 7177218B2
Authority
JP
Japan
Prior art keywords
terminal device
game medium
game
player
route
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
Application number
JP2021097184A
Other languages
Japanese (ja)
Other versions
JP2021142354A (en
Inventor
幸司 柿澤
翔大 下田
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.)
GREE Inc
Original Assignee
GREE Inc
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
Priority claimed from JP2019112873A external-priority patent/JP6898385B2/en
Application filed by GREE Inc filed Critical GREE Inc
Priority to JP2021097184A priority Critical patent/JP7177218B2/en
Publication of JP2021142354A publication Critical patent/JP2021142354A/en
Priority to JP2022180072A priority patent/JP7442106B2/en
Application granted granted Critical
Publication of JP7177218B2 publication Critical patent/JP7177218B2/en
Priority to JP2024017807A priority patent/JP2024036642A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Description

本発明は、端末装置、制御方法及び制御プログラムに関する。 The present invention relates to a terminal device, control method and control program.

従来、プレイヤが仮想空間内に位置するキャラクタを操作するゲームが普及している。このようなゲームでは、キャラクタは、プレイヤによる、移動方向を指定する操作により仮想空間内を移動する。そして、プレイヤは、キャラクタが遭遇した敵キャラクタと対戦したり、発生したイベントを攻略したりしてゲームを進行させる。 2. Description of the Related Art Conventionally, games in which a player operates a character located in a virtual space have become popular. In such a game, the character moves in the virtual space by the player's operation of designating the direction of movement. Then, the player advances the game by playing against enemy characters that the character encounters and capturing events that have occurred.

このようなゲームでは、プレイヤは、所定の目的位置までキャラクタを操作することによって、敵キャラクタと遭遇し、又は、イベントを発生させる。そして、目的位置を所定の順序で訪れることによってゲームが進行する。このようなプレイヤによるキャラクタの操作を支援する方法として、特許文献1には、プレイヤが指定した目的位置までキャラクタを自動的に移動させる移動制御方法が記載されている。 In such a game, the player encounters an enemy character or causes an event by operating the character to a predetermined target position. The game progresses by visiting the target positions in a predetermined order. As a method for assisting the player's operation of the character, Patent Document 1 describes a movement control method for automatically moving the character to a target position designated by the player.

特開2005-176878号公報JP 2005-176878 A

特許文献1に記載の移動制御方法では、プレイヤは、目的位置までキャラクタを移動させるために、目的位置を指定する。しかしながら、目的位置を指定する操作は、移動方向を指定してキャラクタを移動させる操作と比較すると、プレイヤにとって直感的な操作とはいい難かった。また、特許文献1に記載の移動制御方法では、プレイヤは、目的位置を指定するために、あらかじめ目的位置を把握する必要があった。しかしながら、プレイヤは、目的位置を訪れたことがない場合や、目的位置の方角のみを把握しているが正確な位置を把握していない場合等、目的位置についての正確な知識を有していない場合があった。このような場合、プレイヤは、目的位置を指定することができず、特許文献1に記載の移動制御方法は、プレイヤによるキャラクタの操作を支援することができなかった。 In the movement control method described in Patent Literature 1, the player designates a target position in order to move the character to the target position. However, it is difficult to say that the operation of designating the target position is an intuitive operation for the player compared to the operation of designating the movement direction and moving the character. Further, in the movement control method described in Patent Literature 1, the player needs to grasp the target position in advance in order to specify the target position. However, the player does not have accurate knowledge of the target position, such as when the target position has never been visited, or when the target position is known only in the direction but the exact position is not known. there was a case. In such a case, the player cannot specify the target position, and the movement control method described in Patent Document 1 cannot assist the player in operating the character.

本発明は、上述した課題を解決すべくなされたものであり、プレイヤにとって直感的な操作により、プレイヤによるキャラクタの操作を支援することを目的とする。 SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and it is an object of the present invention to assist the player in operating a character through intuitive operations for the player.

上述した課題を解決するために、本発明に係る端末装置は、仮想空間内に位置するゲーム媒体を表示する表示部と、仮想空間における所定位置に関する情報を記憶する記憶部と、プレイヤによる、移動方向を含む移動指示を取得する取得部と、仮想空間内のゲーム媒体の位置から所定位置への経路を算出する算出部と、算出された経路が移動方向に関する所定条件を満たすか否かを判定する判定部と、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が所定位置まで移動するように、ゲーム媒体の表示を制御する表示制御部と、を備える。 In order to solve the above-described problems, a terminal device according to the present invention includes a display unit that displays game media positioned in a virtual space, a storage unit that stores information about a predetermined position in the virtual space, and a player that moves the game content. An acquisition unit that acquires a movement instruction including a direction, a calculation unit that calculates a route from the position of the game medium in the virtual space to a predetermined position, and a determination as to whether the calculated route satisfies a predetermined condition regarding the movement direction. and a display control unit that controls the display of the game content so that the game content moves to a predetermined position along the route when it is determined that the route satisfies a predetermined condition.

また、本発明に係る端末装置において、経路は、複数の要素経路によって構成され、所定条件は、移動方向と、ゲーム媒体の位置と接続する要素経路の方向とがなす角の大きさが所定角度以下であることである、ことが好ましい。 Further, in the terminal device according to the present invention, the path is composed of a plurality of element paths, and the predetermined condition is that the size of the angle formed by the moving direction and the direction of the element path connecting to the position of the game medium is a predetermined angle. It is preferred that:

また、本発明に係る端末装置において、移動指示は、操作位置に関する情報を含み、算出部は、操作位置に関する情報が所定範囲内である場合に、経路を算出しない、ことが好ましい。 Also, in the terminal device according to the present invention, it is preferable that the movement instruction includes information about the operation position, and the calculation unit does not calculate the route when the information about the operation position is within a predetermined range.

また、本発明に係る端末装置において、表示制御部は、経路が所定条件を満たさないと判定された場合、ゲーム媒体が移動方向に移動するように、ゲーム媒体の表示を制御する、ことが好ましい。 Further, in the terminal device according to the present invention, it is preferable that the display control unit controls the display of the game content so that the game content moves in the moving direction when it is determined that the route does not satisfy the predetermined condition. .

また、本発明に係る端末装置において、表示制御部は、経路が所定条件を満たすと判定された場合、経路の少なくとも一部を仮想空間に表示する、ことが好ましい。 Moreover, in the terminal device according to the present invention, it is preferable that the display control unit displays at least part of the route in the virtual space when it is determined that the route satisfies the predetermined condition.

また、本発明に係る端末装置において、表示制御部は、経路に従って移動しているゲーム媒体が所定位置に到達する前に停止した場合、プレイヤに移動指示の入力を促す情報を表示部に表示する、ことが好ましい。 In addition, in the terminal device according to the present invention, the display control unit displays on the display unit information prompting the player to input a movement instruction when the game content that is moving along the path stops before reaching a predetermined position. , is preferred.

また、本発明に係る端末装置は、プレイヤによる接触を検出する操作部を備え、取得部は、プレイヤが操作部に接触している接触位置を所定時間間隔で取得し、移動方向は、取得部が最後に取得した接触位置の、その直前に取得した接触位置を基準とする方向である、ことが好ましい。 Further, the terminal device according to the present invention includes an operation unit that detects contact by the player, the acquisition unit acquires the contact position where the player is in contact with the operation unit at predetermined time intervals, and the movement direction is obtained by the acquisition unit. is the direction of the last acquired contact position with reference to the immediately preceding acquired contact position.

また、本発明に係る端末装置において、算出部は、ゲーム媒体の位置からの複数の経路と、複数の経路のそれぞれに係るパラメータとを算出する、ことが好ましい。 Also, in the terminal device according to the present invention, it is preferable that the calculation unit calculates a plurality of routes from the position of the game content and parameters related to each of the plurality of routes.

また、本発明に係る端末装置において、表示制御部は、複数の経路が所定条件を満たすと判定された場合、所定条件を満たすと判定された経路のうち、パラメータが最も小さい経路に従ってゲーム媒体が移動するように、ゲーム媒体の表示を制御する、ことが好ましい。 Further, in the terminal device according to the present invention, when it is determined that a plurality of routes satisfy the predetermined condition, the display control unit causes the game content to be displayed along the route having the smallest parameter among the routes determined to satisfy the predetermined condition. Preferably, the display of game media is controlled to move.

また、本発明に係る端末装置において、算出部は、ゲーム媒体の位置との関係が所定関係である所定位置への経路を算出する、ことが好ましい。 Also, in the terminal device according to the present invention, it is preferable that the calculation unit calculates a route to a predetermined position having a predetermined relationship with the position of the game medium.

上述した課題を解決するために、本発明に係る制御方法は、記憶部と、仮想空間内に位置するゲーム媒体を表示する表示部と、を備える端末装置の制御方法であって、仮想空間における所定位置に関する情報を記憶部に記憶し、プレイヤによる、移動方向を含む移動指示を取得し、仮想空間内のゲーム媒体の位置から所定位置への経路を算出し、算出された経路が移動方向に関する所定条件を満たすか否かを判定し、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が所定位置まで移動するように、ゲーム媒体の表示を制御する、ことを含む。 In order to solve the above-described problems, a control method according to the present invention is a control method for a terminal device that includes a storage unit and a display unit that displays a game content positioned in a virtual space. Information about a predetermined position is stored in a storage unit, a movement instruction including a movement direction is obtained from a player, a route from the position of the game medium in the virtual space to the predetermined position is calculated, and the calculated route is related to the movement direction. It includes determining whether or not a predetermined condition is satisfied, and controlling the display of game media so that the game media moves to a predetermined position along the route when it is determined that the route satisfies the predetermined condition.

上述した課題を解決するために、本発明に係る制御プログラムは、記憶部と、仮想空間内に位置するゲーム媒体を表示する表示部と、を備える端末装置の制御プログラムであって、仮想空間における所定位置に関する情報を記憶部に記憶し、プレイヤによる、移動方向を含む移動指示を取得し、仮想空間内のゲーム媒体の位置から所定位置への経路を算出し、算出された経路が移動方向に関する所定条件を満たすか否かを判定し、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が所定位置まで移動するように、ゲーム媒体の表示を制御する、ことを含むことを端末装置に実行させる。 In order to solve the above-described problems, a control program according to the present invention is a control program for a terminal device that includes a storage unit and a display unit that displays a game content located in a virtual space. Information about a predetermined position is stored in a storage unit, a movement instruction including a movement direction is obtained from a player, a route from the position of the game medium in the virtual space to the predetermined position is calculated, and the calculated route is related to the movement direction. determining whether or not a predetermined condition is satisfied, and if it is determined that the route satisfies the predetermined condition, controlling display of the game content so that the game content moves to a predetermined position along the route. Let the device do it.

本発明に係る端末装置、制御方法及び制御プログラムによって、プレイヤにとって直感的な操作により、プレイヤによるキャラクタの操作を支援することが可能となる。 With the terminal device, control method, and control program according to the present invention, it is possible to support the player's operation of the character by an intuitive operation for the player.

端末装置によって提供されるゲームの概略について説明するための模式図である。FIG. 2 is a schematic diagram for explaining an outline of a game provided by a terminal device; FIG. 端末装置によって提供されるゲームの概略について説明するための模式図である。FIG. 2 is a schematic diagram for explaining an outline of a game provided by a terminal device; FIG. 端末装置1の概略構成の一例を示す図である。1 is a diagram showing an example of a schematic configuration of a terminal device 1; FIG. (a)は、端末装置1の表示部13に表示されるフィールド画面410の一例を示す図であり、(b)は、端末装置1の表示部13に表示されるフィールド画面420の一例を示す図である。(a) is a diagram showing an example of a field screen 410 displayed on the display unit 13 of the terminal device 1, and (b) shows an example of a field screen 420 displayed on the display unit 13 of the terminal device 1. It is a diagram. (a)は、端末装置1の表示部13に表示されるフィールド画面510の一例を示す図であり、(b)は、端末装置1の表示部13に表示されるフィールド画面520の一例を示す図である。(a) shows an example of a field screen 510 displayed on the display unit 13 of the terminal device 1, and (b) shows an example of a field screen 520 displayed on the display unit 13 of the terminal device 1. It is a diagram. (a)は、操作部12を上面にした端末装置1を側面から見た模式図であり、(b)は、操作部12を上面にした端末装置1を上面から見た場合の模式図である。(a) is a schematic side view of the terminal device 1 with the operating unit 12 facing upward, and (b) is a schematic top view of the terminal device 1 with the operating unit 12 facing upward. be. 操作部12を上面にした端末装置1を上面から見た場合の模式図である。FIG. 2 is a schematic diagram of the terminal device 1 with the operation unit 12 facing upward when viewed from above. (a)は、端末装置1が、移動可能領域413を分割する処理の一例を示す図であり、(b)は、端末装置1が、経路算出用グラフを生成し、経路算出用グラフにおいて、ゲーム媒体411の位置から目的位置への経路を算出する処理の一例を示す図である。(a) is a diagram showing an example of a process in which the terminal device 1 divides the movable area 413, and (b) is a diagram in which the terminal device 1 generates a route calculation graph, and in the route calculation graph, FIG. 10 is a diagram showing an example of processing for calculating a route from the position of the game medium 411 to the target position; 算出された経路と移動方向とをフィールド画面910に表示した図である。9 is a diagram showing the calculated route and moving direction displayed on the field screen 910. FIG. (a)領域テーブル1010のデータ構造の一例を示す図であり、(b)は、目的位置テーブル1020のデータ構造の一例を示す図である。(a) is a diagram showing an example of the data structure of an area table 1010, and (b) is a diagram showing an example of the data structure of a destination position table 1020. FIG. 端末装置1における移動処理の一例を示すフロー図である。4 is a flowchart showing an example of movement processing in the terminal device 1; FIG. 端末装置1における移動指示取得処理の一例を示すフロー図である。4 is a flow diagram showing an example of movement instruction acquisition processing in the terminal device 1. FIG. 端末装置1における経路算出処理の一例を示すフロー図である。4 is a flowchart showing an example of route calculation processing in the terminal device 1; FIG.

以下、図面を参照しつつ、本発明の様々な実施形態について説明する。ただし、本発明の技術的範囲はそれらの実施形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶ点に留意されたい。 Various embodiments of the present invention will now be described with reference to the drawings. However, it should be noted that the technical scope of the present invention is not limited to those embodiments, but extends to the invention described in the claims and equivalents thereof.

(本実施形態の概要)
図1及び図2は、端末装置によって提供されるゲームの概略について説明するための模式図である。
(Outline of this embodiment)
1 and 2 are schematic diagrams for explaining an outline of a game provided by a terminal device.

まず、図1について説明する。端末装置は、仮想空間内に位置するゲーム媒体を表示し、仮想空間における目的位置に関する情報を記憶する(図1の(1))。図1の(1)に示す例では、ゲーム媒体は、プレイヤによって操作されるキャラクタである。ゲーム媒体は、ゲーム装置によって提供される各種ゲーム又は各種サービス等において使用される電子データであり、例えば、カード又はアバターであってよい。 First, FIG. 1 will be described. A terminal device displays a game content located in a virtual space and stores information about a target position in the virtual space ((1) in FIG. 1). In the example shown in (1) of FIG. 1, the game content is a character operated by the player. Game media are electronic data used in various games or various services provided by the game device, and may be, for example, cards or avatars.

ゲーム媒体は、アイテム、ポイント、仮想通貨、チケット又はパラメータであってよい。また、ゲーム媒体は、レベル情報、ステータス情報、パラメータ情報(体力値及び攻撃力等)又は能力情報(スキル、アビリティ、呪文、ジョブ等)であってよい。ゲーム媒体は、プレイヤによって、ゲーム内で取得、保有、使用、管理、交換、合成、強化、売却、廃棄及び/又は贈与等され得る任意の電子データであってよい。また、ゲーム媒体の利用態様は本明細書で明示されるものに限られない。 Game media may be items, points, virtual currency, tickets, or parameters. Also, the game media may be level information, status information, parameter information (physical strength, attack power, etc.) or ability information (skills, abilities, spells, jobs, etc.). Game media may be any electronic data that can be acquired, possessed, used, managed, traded, combined, enhanced, sold, discarded, and/or gifted, etc., by a player within a game. Also, the mode of use of the game media is not limited to what is specified in this specification.

目的位置は、プレイヤがゲーム媒体を操作して到達させるべき仮想空間における位置を表す。目的位置は、例えば、敵ゲーム媒体の位置、又は、イベントが発生する位置である。目的位置は、ゲーム媒体のパラメータを変更させるためのパラメータ変更位置、仮想空間内に設けられた通路の分岐点、仮想空間内に設けられたモニュメント等のオブジェクトの設置位置であってもよい。また、目的位置は、仮想空間内においてゲーム媒体が到達可能な任意の位置であってもよい。目的位置は、プレイヤによって任意に設定可能であってよい。また、目的位置は、ゲームの進行状況に応じて新たに追加されたり、削除されたりしてもよい。 The target position represents a position in the virtual space that the player should reach by operating the game medium. The target position is, for example, the position of an enemy game medium or the position where an event occurs. The target position may be a parameter change position for changing game media parameters, a branch point of a passage provided in the virtual space, or an installation position of an object such as a monument provided in the virtual space. Also, the target position may be any position that the game medium can reach within the virtual space. The target position may be arbitrarily set by the player. Also, the target position may be newly added or deleted according to the progress of the game.

ゲーム媒体が目的位置に到達することによって、プレイヤは、敵ゲーム媒体との対戦ゲームや、その他のイベントを進行することができる。なお、図1の(1)に示す例では、目的位置が表示されているが、端末装置は、目的位置を表示しなくてもよい。なお、目的位置は、所定位置の一例である。 When the game media reaches the target position, the player can proceed with a battle game against enemy game media or other events. Although the target position is displayed in the example shown in (1) of FIG. 1, the terminal device does not have to display the target position. Note that the target position is an example of a predetermined position.

続いて、端末装置は、プレイヤによる、移動方向を含む移動指示を取得する(図1の(2))。移動指示は、ゲーム媒体を目的位置に自動的に移動させるための指示である。また、移動方向は、プレイヤによって入力された、ゲーム媒体が目的位置に到達するために最初に移動すべき方向である。すなわち、移動方向を含む移動指示は、仮想空間内において、目的位置までゲーム媒体を移動させるための指示である。なお、図1の(2)に示す例では、移動方向を含む移動指示は、プレイヤがタッチパネルである操作部に接触し、その接触位置を変化させる操作をすることによって、端末装置によって取得される。 Subsequently, the terminal device acquires a movement instruction including the movement direction from the player ((2) in FIG. 1). The movement instruction is an instruction for automatically moving the game medium to the target position. Also, the moving direction is the direction in which the game medium should first move to reach the target position, which is input by the player. That is, the movement instruction including the movement direction is an instruction for moving the game medium to the target position within the virtual space. In the example shown in (2) of FIG. 1, the movement instruction including the movement direction is acquired by the terminal device when the player touches the operation unit, which is a touch panel, and performs an operation to change the touch position. .

続いて、図2について説明する。端末装置は、仮想空間内のゲーム媒体の位置から目的位置への経路を算出する(図2の(3))。経路は、ゲーム媒体が目的位置に到達することができる任意の経路である。例えば、経路は、最短経路であってよい。 Next, FIG. 2 will be described. The terminal device calculates a route from the position of the game medium in the virtual space to the target position ((3) in FIG. 2). A path is any path by which game media can reach a destination. For example, the path may be the shortest path.

続いて、端末装置は、算出された経路が移動方向に関する所定条件を満たすか否かを判定し、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が目的位置まで移動するように、ゲーム媒体の表示を制御する(図2の(4))。例えば、所定条件は、算出された経路に従ってゲーム媒体が最初に移動する方向と、移動指示に含まれる移動方向とがなす角の大きさが所定角度以下であることである。 Subsequently, the terminal device determines whether or not the calculated route satisfies a predetermined condition regarding the movement direction, and if it is determined that the route satisfies the predetermined condition, causes the game medium to move along the route to the target position. , controls the display of game media ((4) in FIG. 2). For example, the predetermined condition is that the angle formed by the direction in which the game medium initially moves along the calculated path and the direction of movement included in the movement instruction is less than or equal to a predetermined angle.

以上、図1及び図2を参照しつつ説明したとおり、端末装置は、仮想空間内に位置するゲーム媒体を表示し、仮想空間における目的位置に関する情報を記憶する。また、端末装置は、プレイヤによる、移動方向を含む移動指示を取得する。また、端末装置は、仮想空間内のゲーム媒体の位置から目的位置への経路を算出する。また、端末装置は、算出された経路が移動方向に関する所定条件を満たすか否かを判定し、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が目的位置まで移動するように、ゲーム媒体の表示を制御する。これにより、端末装置は、プレイヤが目的位置を正確に把握していない場合であっても、直感的な操作によりプレイヤがゲーム媒体を目的位置まで自動的に移動させることを可能とし、プレイヤによるゲーム媒体の操作を支援する。 As described above with reference to FIGS. 1 and 2, the terminal device displays the game content positioned in the virtual space and stores information regarding the target position in the virtual space. Also, the terminal device acquires a movement instruction including a movement direction from the player. Also, the terminal device calculates a route from the position of the game medium in the virtual space to the target position. In addition, the terminal device determines whether or not the calculated route satisfies a predetermined condition regarding the movement direction, and if it is determined that the route satisfies the predetermined condition, the terminal device causes the game medium to move to the target position along the route. Controls the display of game media. As a result, even if the player does not accurately grasp the target position, the terminal device enables the player to automatically move the game medium to the target position by an intuitive operation. Assist in media manipulation.

なお、上述した図1及び図2の説明は、本発明の内容への理解を深めるための説明に過ぎない。本発明は、具体的には、次に説明する各実施形態において実施され、且つ、本発明の原則を実質的に超えずに、さまざまな変形例によって実施されてもよい。このような変形例はすべて、本発明および本明細書の開示範囲に含まれる。 1 and 2 are merely explanations for deepening the understanding of the contents of the present invention. The present invention is embodied in particular in each of the embodiments described below, and may be embodied in various modifications without substantially departing from the principles of the invention. All such variations are included within the scope of the present invention and the disclosure herein.

(端末装置1の構成)
図3は、端末装置1の概略構成の一例を示す図である。
(Configuration of terminal device 1)
FIG. 3 is a diagram showing an example of a schematic configuration of the terminal device 1. As shown in FIG.

端末装置1は、多機能携帯電話(所謂「スマートフォン」)等の通信端末であってよい。端末装置1は、携帯電話(所謂「スマートフォン」)、携帯情報端末(Personal Digital Assistant,PDA)、タブレット端末又はタブレットPC(Personal Computer)等であってよい。端末装置1は、携帯ゲーム機、携帯音楽プレイヤ又はノートPC等であってよい。 The terminal device 1 may be a communication terminal such as a multifunctional mobile phone (so-called "smartphone"). The terminal device 1 may be a mobile phone (so-called “smartphone”), a personal digital assistant (PDA), a tablet terminal, a tablet PC (Personal Computer), or the like. The terminal device 1 may be a portable game machine, a portable music player, a notebook PC, or the like.

端末装置1は、プレイヤがキャラクタを操作することによって進行するゲームを提供する。そのために、端末装置1は、記憶部11と、操作部12と、表示部13と、処理部14と、を備える。 The terminal device 1 provides a game that progresses as the player operates characters. For this purpose, the terminal device 1 includes a storage unit 11 , an operation unit 12 , a display unit 13 and a processing unit 14 .

記憶部11は、例えば、ROM(Read Only Memory)、RAM(Random Access Memory)等の半導体メモリ装置を備える。記憶部11は、処理部14での処理に用いられるオペレーティングシステムプログラム、ドライバプログラム、アプリケーションプログラム及びデータ等を記憶する。記憶部11に記憶されるドライバプログラムは、操作部12を制御する入力デバイスドライバプログラム、及び、表示部13を制御する出力デバイスドライバプログラム等である。記憶部11に記憶されるアプリケーションプログラムは、ゲームの進行を制御する制御プログラム等である。記憶部11に記憶されるデータは、ゲームの実行時において使用される各種データ(例えば、ゲーム媒体に関する情報等)等である。また、記憶部11は、所定の処理に係るデータを一時的に記憶してもよい。 The storage unit 11 includes, for example, semiconductor memory devices such as ROM (Read Only Memory) and RAM (Random Access Memory). The storage unit 11 stores an operating system program, a driver program, an application program, data, and the like used for processing in the processing unit 14 . The driver programs stored in the storage unit 11 include an input device driver program that controls the operation unit 12, an output device driver program that controls the display unit 13, and the like. The application programs stored in the storage unit 11 are control programs and the like that control the progress of the game. The data stored in the storage unit 11 are various data (for example, information about game media, etc.) used when the game is executed. The storage unit 11 may also temporarily store data related to predetermined processing.

操作部12は、タッチパネル等のポインティングデバイスである。なお、操作部12は、入力キー等でもよい。プレイヤは、操作部12を用いて、文字、数字及び記号、若しくは、表示部13の表示画面上の位置等を入力することができる。操作部12は、プレイヤにより操作されると、その操作に対応する信号を発生する。そして、発生した信号は、プレイヤの指示として、処理部14に供給される。 The operation unit 12 is a pointing device such as a touch panel. Note that the operation unit 12 may be an input key or the like. The player can use the operation unit 12 to input characters, numbers and symbols, positions on the display screen of the display unit 13, and the like. When operated by the player, the operation unit 12 generates a signal corresponding to the operation. The generated signal is then supplied to the processing section 14 as an instruction from the player.

表示部13は、液晶ディスプレイである。なお、表示部13は、有機EL(Electro-Luminescence)ディスプレイ等でもよい。表示部13は、処理部14から供給された映像データに応じた映像や、画像データに応じた画像等を表示する。 The display unit 13 is a liquid crystal display. The display unit 13 may be an organic EL (Electro-Luminescence) display or the like. The display unit 13 displays a video corresponding to the video data supplied from the processing unit 14, an image corresponding to the image data, and the like.

処理部14は、コンピュータプログラムに従って動作する一又は複数のプロセッサ、各種処理のうち少なくとも一部の処理を実行する一又は複数の専用のハードウェア回路、あるいはそれらの組み合わせ、を含む回路(Circuitry)として構成し得る。処理部14は、端末装置1の全体的な動作を統括的に制御するものであり、例えば、CPU(Central Processing Unit)である。処理部14は、記憶部11に記憶されているプログラム及びプレイヤによる操作部12の操作に応じて入力された各種指示等に基づいて、各種情報処理を適切な手順で実行し、表示部13の動作を制御する。処理部14は、記憶部11に記憶されているオペレーティングシステムプログラム、ドライバプログラム及びアプリケーションプログラムに基づいて各種情報処理を実行する。また、処理部14は、複数のプログラムを並列に実行することができる。 The processing unit 14 is a circuit (circuitry) including one or more processors that operate according to a computer program, one or more dedicated hardware circuits that execute at least part of various processes, or a combination thereof. can be configured. The processing unit 14 controls overall operations of the terminal device 1, and is, for example, a CPU (Central Processing Unit). The processing unit 14 executes various types of information processing in an appropriate procedure based on the programs stored in the storage unit 11 and various instructions input in response to the operation of the operation unit 12 by the player. control behavior. The processing unit 14 executes various information processing based on the operating system program, driver program, and application program stored in the storage unit 11 . Also, the processing unit 14 can execute a plurality of programs in parallel.

(各種画面の説明)
以下、図4及び図5を参照して、端末装置1の表示部13に表示される各種画面の一例について説明する。
(Description of various screens)
Hereinafter, examples of various screens displayed on the display unit 13 of the terminal device 1 will be described with reference to FIGS. 4 and 5. FIG.

図4(a)は、端末装置1の表示部13に表示されるフィールド画面410の一例を示す図である。フィールド画面410は、プレイヤが仮想空間内に位置するゲーム媒体を操作して、ゲームを進行させるための画面である。図4(a)に示す例では、フィールド画面410は、仮想空間内の所定の視点位置及び所定の視線方向において3次元仮想空間を所定の2次元スクリーン面に投影した場合における2次元スクリーン面の画像を含む。例えば、所定の視点位置は、ゲーム媒体の近傍である。また、例えば、所定の視線方向は、所定の視点位置を基準とするゲーム媒体の位置の方向である。 FIG. 4A is a diagram showing an example of a field screen 410 displayed on the display unit 13 of the terminal device 1. FIG. The field screen 410 is a screen for the player to operate the game media located in the virtual space to advance the game. In the example shown in FIG. 4(a), the field screen 410 is a two-dimensional screen surface when the three-dimensional virtual space is projected onto a predetermined two-dimensional screen surface at a predetermined viewpoint position and a predetermined line-of-sight direction in the virtual space. Contains images. For example, the predetermined viewpoint position is near the game media. Also, for example, the predetermined line-of-sight direction is the direction of the position of the game medium with respect to the predetermined viewpoint position.

フィールド画面410は、端末装置1が、図示しないメインメニュー画面において、プレイヤによるゲーム開始指示を取得したときに表示されてよい。メインメニュー画面は、プレイヤによる操作部12の操作により、ゲームを実行するためのアプリケーションプログラムが起動されたときに、所定のタイトル画面等に続いて表示されてよい。 The field screen 410 may be displayed when the terminal device 1 acquires a game start instruction from the player on a main menu screen (not shown). The main menu screen may be displayed following a predetermined title screen or the like when an application program for executing the game is activated by the player's operation of the operation unit 12 .

フィールド画面410は、ゲーム媒体411と、目的位置412aと、目的位置412bと、移動可能領域413と、操作指示オブジェクト414と、メニュー画面表示指示オブジェクト415と、を含む。なお、以降では、目的位置412aと目的位置412bとは、併せて目的位置412と称されることがある。 Field screen 410 includes game media 411 , target position 412 a , target position 412 b , movable area 413 , operation instruction object 414 , and menu screen display instruction object 415 . Note that the target position 412a and the target position 412b may be collectively referred to as the target position 412 hereinafter.

ゲーム媒体411は、プレイヤによって操作される、仮想空間内に位置するゲーム媒体である。プレイヤは、操作部12を介して、ゲーム媒体411を操作し、ゲームを進行する。 A game medium 411 is a game medium located in a virtual space operated by a player. The player operates the game medium 411 via the operation unit 12 to progress the game.

目的位置412は、プレイヤがゲーム媒体を操作して到達させるべき仮想空間における位置を表す。図4(a)に示す例では、目的位置412は、所定のオブジェクトによってプレイヤがその位置を視認できるように表示されている。目的位置412は、プレイヤが視認できるように表示されなくてもよい。これにより、3Dゲームなどの、よりリアリティのある表現が含まれるゲームにおいて、現実に近い状況を表現しつつ、ユーザの操作性を向上することができる。また、目的位置412は、プレイヤのゲームの進行状況に応じて表示されるか否かが変更されてもよい。例えば、目的位置412は、所定のイベントが発生するまでは表示されなくてよい。これにより、プレイヤは、目的位置412を把握することができなくなるため、目的位置412に基づいてイベントの内容を予測することができなくなり、ゲームをより楽しむことができるようになる。 The target position 412 represents a position in the virtual space that the player should operate the game medium to reach. In the example shown in FIG. 4A, the target position 412 is displayed so that the player can visually recognize the position by means of a predetermined object. The target position 412 does not have to be displayed so that it can be visually recognized by the player. As a result, in a game such as a 3D game that includes expressions with more reality, it is possible to improve user operability while expressing situations close to reality. Further, whether or not the target position 412 is displayed may be changed according to the progress of the game by the player. For example, destination location 412 may not be displayed until a predetermined event occurs. As a result, since the player cannot grasp the target position 412, the player cannot predict the content of the event based on the target position 412, and can enjoy the game more.

例えば、目的位置412は、敵ゲーム媒体が配置された位置であってよい。この場合、ゲーム媒体411が目的位置412に到達すると、図示しない敵ゲーム媒体との対戦ゲーム画面が表示され、プレイヤは、敵ゲーム媒体との対戦ゲームをプレイすることができる。また、例えば、目的位置412は、イベントの発生位置として設定された位置であってよい。この場合、ゲーム媒体411が目的位置412に到達すると、図示しないイベント画面が表示され、プレイヤは、イベントに対応するシナリオを閲覧することができる。 For example, target location 412 may be a location where enemy game media is located. In this case, when the game medium 411 reaches the target position 412, a battle game screen with an enemy game medium (not shown) is displayed, and the player can play a battle game with the enemy game medium. Also, for example, the target position 412 may be a position set as an event occurrence position. In this case, when the game medium 411 reaches the target position 412, an event screen (not shown) is displayed, and the player can browse the scenario corresponding to the event.

また、目的位置412は、仮想空間内の任意の位置であってよい。例えば、目的位置412は、仮想空間内に設けられた通路の分岐点であってよい。これにより、ゲーム媒体411は、通路の分岐点で停止することとなるため、プレイヤは、いずれの分岐を選択するかを自ら判断することができ、プレイヤ自身の選択でゲームを進行している感覚を味わうことができる。 Also, the target position 412 may be any position in the virtual space. For example, the destination location 412 may be a branch point of a passage provided in the virtual space. As a result, since the game medium 411 stops at the branch point of the passage, the player can decide by himself/herself which branch to choose. can taste

移動可能領域413は、仮想空間内においてゲーム媒体411が移動することができる領域である。移動可能領域413は、プレイヤのゲームの進行状況に応じてその形状が変化するように設定されてよい。例えば、所定のイベントが発生したことに応じて、移動可能領域413が広がり、ゲーム媒体411が新たな目的位置412に到達できるように設定されてよい。これにより、プレイヤは、適切な順序でゲームを進行することができるようになる。 The movable area 413 is an area in which the game medium 411 can move within the virtual space. The movable area 413 may be set so that its shape changes according to the progress of the game by the player. For example, it may be set so that the movable area 413 expands and the game medium 411 can reach a new target position 412 in response to the occurrence of a predetermined event. This allows the player to progress through the game in an appropriate order.

操作指示オブジェクト414は、プレイヤがゲーム媒体411を操作するための手動操作指示を入力するためのオブジェクトである。プレイヤが操作部12を操作し、操作指示オブジェクト414の表示領域内を入力位置とする入力をした場合、端末装置1は、入力位置に応じた方向を操作方向として含む手動操作指示を取得する。手動操作指示を取得した端末装置1は、フィールド画面410においてゲーム媒体411が操作方向に移動するように、ゲーム媒体411の表示を制御する。入力位置に応じた方向とは、入力位置の、操作指示オブジェクト414の表示領域の中心に対する方向である。プレイヤは、操作指示オブジェクト414により、手動でゲーム媒体411を操作することができる。 The operation instruction object 414 is an object for the player to input a manual operation instruction for operating the game medium 411 . When the player operates the operation unit 12 and makes an input whose input position is within the display area of the operation instruction object 414, the terminal device 1 acquires a manual operation instruction including a direction corresponding to the input position as an operation direction. The terminal device 1 that has acquired the manual operation instruction controls the display of the game media 411 so that the game media 411 moves in the operation direction on the field screen 410 . The direction according to the input position is the direction of the input position with respect to the center of the display area of the operation instruction object 414 . The player can manually operate the game medium 411 using the operation instruction object 414 .

なお、以降では、プレイヤが操作部12を操作し、オブジェクトの表示領域内を入力位置とする入力をすることを、プレイヤがオブジェクトを選択すると称することがある。 Note that hereinafter, the player's selection of an object may be referred to as the player's operation of the operation unit 12 to input an input position within the display area of the object.

メニュー画面表示指示オブジェクト415は、メニュー画面を表示するためのメニュー画面表示指示をプレイヤが入力するためのオブジェクトである。プレイヤがメニュー画面表示指示オブジェクト415を選択すると、端末装置1は、メニュー画面を表示するためのメニュー画面表示指示を取得する。メニュー画面表示指示を取得した端末装置1は、図示しないメニュー画面を表示する。メニュー画面は、プレイヤがゲームを進行するために有用な情報を表示する。例えば、メニュー画面は、ゲーム媒体411に関する情報、ゲーム媒体411の位置に関する情報、目的位置に関する情報、移動可能領域413に関する情報、及び、ゲームの進行状況に関する情報等を表示する。 The menu screen display instruction object 415 is an object for the player to input a menu screen display instruction for displaying a menu screen. When the player selects the menu screen display instruction object 415, the terminal device 1 acquires a menu screen display instruction for displaying the menu screen. The terminal device 1 that has acquired the menu screen display instruction displays a menu screen (not shown). The menu screen displays useful information for the player to progress through the game. For example, the menu screen displays information about the game medium 411, information about the position of the game medium 411, information about the target position, information about the movable area 413, information about the progress of the game, and the like.

図4(b)は、端末装置1の表示部13に表示されるフィールド画面420の一例を示す図である。フィールド画面420は、フィールド画面410において、端末装置1が移動方向を含む移動指示を取得した場合に表示される画面である。なお、上述した説明と同一の構成については同一の符号を付し、説明を省略する。また、移動方向を含む移動指示は、例えば、プレイヤがタッチパネルである操作部12に接触し、その接触位置を変化させる操作をすることによって、端末装置1によって取得される。移動方向を含む移動指示の詳細は後述する。 FIG. 4B is a diagram showing an example of a field screen 420 displayed on the display section 13 of the terminal device 1. As shown in FIG. The field screen 420 is a screen displayed when the terminal device 1 acquires a movement instruction including a movement direction on the field screen 410 . In addition, the same code|symbol is attached|subjected about the structure same as the description mentioned above, and description is abbreviate|omitted. Further, the movement instruction including the movement direction is obtained by the terminal device 1, for example, when the player touches the operation unit 12, which is a touch panel, and performs an operation to change the touch position. Details of the movement instruction including the movement direction will be described later.

フィールド画面420は、移動指示取得効果421を含む。移動指示取得効果421は、プレイヤが入力した移動指示が端末装置1によって取得されたことを示す表示効果である。移動指示取得効果421は、移動指示に含まれる移動方向を表示してよい。図4(b)に示す例では、移動指示取得効果421は、矢印によって移動方向を表示している。これにより、プレイヤは、入力された移動指示が端末装置1によって取得されたか否かを確かめることができる。また、プレイヤは、入力された移動指示が如何なる移動方向を含むかを確かめることができる。そして、プレイヤは、プレイヤの誤操作によってゲーム媒体411がプレイヤの意図しない目的位置に移動していくことを、早期に認識することができる。 The field screen 420 includes a move instruction acquisition effect 421 . The movement instruction acquisition effect 421 is a display effect indicating that the movement instruction input by the player has been acquired by the terminal device 1 . The movement instruction acquisition effect 421 may display the movement direction included in the movement instruction. In the example shown in FIG. 4B, the movement instruction acquisition effect 421 displays the movement direction with an arrow. Thereby, the player can confirm whether or not the input movement instruction has been acquired by the terminal device 1 . Also, the player can confirm what direction of movement the input movement instruction includes. Then, the player can quickly recognize that the game medium 411 will move to a target position not intended by the player due to an erroneous operation by the player.

また、移動指示取得効果421は、所定時間経過後に消滅するような表示効果であってよい。これにより、移動指示取得効果421によってフィールド画面420の視認性が低下することを防ぐことができる。 Also, the movement instruction acquisition effect 421 may be a display effect that disappears after a predetermined period of time has elapsed. Accordingly, it is possible to prevent the visibility of the field screen 420 from deteriorating due to the movement instruction acquisition effect 421 .

図5(a)は、端末装置1の表示部13に表示されるフィールド画面510の一例を示す図である。フィールド画面510は、端末装置1が、経路に従ってゲーム媒体411が目的位置412まで移動するように、ゲーム媒体411の表示を制御している場合に表示される画面である。 FIG. 5A is a diagram showing an example of a field screen 510 displayed on the display unit 13 of the terminal device 1. FIG. The field screen 510 is displayed when the terminal device 1 controls display of the game media 411 so that the game media 411 moves to the target position 412 along the route.

フィールド画面420において移動方向を含む移動指示が入力されると、端末装置1は、ゲーム媒体411の位置から目的位置412への経路を算出する。続いて、端末装置1は、算出された経路が移動方向に関する所定条件を満たすか否かを判定する。続いて、経路が所定条件を満たすと判定された場合、端末装置1は、経路に従ってゲーム媒体411が目的位置412まで移動するように、ゲーム媒体411の表示を制御する。端末装置1が経路を算出する処理と所定条件を満たすか否かを判定する処理との詳細は後述する。なお、図5(a)に示す例では、目的位置412aへの経路が所定条件を満たすと判定されている。 When a movement instruction including a movement direction is input on the field screen 420 , the terminal device 1 calculates a route from the position of the game medium 411 to the target position 412 . Subsequently, the terminal device 1 determines whether or not the calculated route satisfies a predetermined condition regarding the movement direction. Subsequently, when it is determined that the route satisfies the predetermined condition, the terminal device 1 controls display of the game content 411 so that the game content 411 moves to the target position 412 along the route. Details of the process of calculating the route and the process of determining whether or not the predetermined condition is satisfied by the terminal device 1 will be described later. In the example shown in FIG. 5A, it is determined that the route to the target position 412a satisfies the predetermined condition.

フィールド画面510は、経路表示効果511を含む。経路表示効果511は、所定条件を満たすと判定された経路の少なくとも一部を仮想空間に表示する表示効果である。経路表示効果511は、ゲーム媒体411が経路に従って目的位置まで移動している場合に表示される。これにより、プレイヤは、ゲーム媒体411が目的位置に向かって移動していることを確かめることができる。また、プレイヤは、ゲーム媒体411がどのような経路に従って移動しているかを確かめることができる。 Field screen 510 includes route display effect 511 . The route display effect 511 is a display effect for displaying in virtual space at least part of a route determined to satisfy a predetermined condition. The route display effect 511 is displayed when the game medium 411 is moving to the target position along the route. This allows the player to confirm that the game medium 411 is moving toward the target position. In addition, the player can confirm what route the game medium 411 is moving.

また、経路表示効果511は、経路のうち、現在のゲーム媒体411の位置から目的位置に至る箇所のみを仮想空間に表示してよい。これにより、経路表示効果511によってフィールド画面420の視認性が低下することを防ぐことができる。 Further, the route display effect 511 may display only a portion of the route from the current position of the game medium 411 to the target position in the virtual space. This can prevent the visibility of the field screen 420 from deteriorating due to the route display effect 511 .

なお、ゲーム媒体411が経路に従って移動している場合であっても、端末装置1は、操作方向を含む手動操作指示を取得することができる。この場合、端末装置1は、経路に従ってゲーム媒体411が移動するようにゲーム媒体の表示を制御することを中断する。続いて、端末装置1は、フィールド画面510においてゲーム媒体411が操作方向に移動するように、ゲーム媒体411の表示を制御する。 Note that even when the game media 411 is moving along the path, the terminal device 1 can acquire the manual operation instruction including the operation direction. In this case, the terminal device 1 stops controlling the display of the game content so that the game content 411 moves along the path. Subsequently, the terminal device 1 controls the display of the game media 411 so that the game media 411 moves in the operation direction on the field screen 510 .

また、ゲーム媒体411が経路に従って移動している場合であっても、端末装置1は、新たに移動方向を含む移動指示を取得することができる。この場合、端末装置1は、移動指示が入力された時点におけるゲーム媒体411の位置から目的位置412のそれぞれに対応する経路を算出する。続いて、フィールド画面420において移動指示が入力された場合と同様の処理を行う。これにより、プレイヤは、ゲーム媒体411が目的位置412に移動しているときに他の目的位置412にゲーム媒体411を移動させたくなった場合に、簡易な操作でゲーム媒体411を他の目的位置412に移動させることができる。 Further, even when the game medium 411 is moving along the path, the terminal device 1 can acquire a new movement instruction including the movement direction. In this case, the terminal device 1 calculates a route corresponding to each target position 412 from the position of the game medium 411 at the time when the movement instruction is input. Subsequently, the same processing as when a movement instruction is input on the field screen 420 is performed. As a result, when the player wants to move the game medium 411 to another target position 412 while the game medium 411 is moving to the target position 412, the player can move the game medium 411 to the other target position 411 with a simple operation. 412.

図5(b)は、端末装置1の表示部13に表示されるフィールド画面520の一例を示す図である。フィールド画面520は、フィールド画面510において、経路に従って移動しているゲーム媒体411が目的位置412に到達する前に障害物オブジェクトに接触した場合に表示される画面である。なお、ゲーム媒体411が移動したことに伴い、フィールド画面520は、フィールド画面510とは異なる、ゲーム媒体411の近傍である視点位置において3次元仮想空間を投影した画像を含む。障害物オブジェクトは、例えば、敵ゲーム媒体である。経路に従って移動しているゲーム媒体411が目的位置412に到達する前に障害物オブジェクトに接触した場合、端末装置1は、ゲーム媒体411が停止するように、ゲーム媒体411の表示を制御する。なお、ゲーム媒体411が障害物オブジェクトに接触した場合とは、ゲーム媒体411が障害物オブジェクトから所定範囲内に含まれた場合を含む。 FIG. 5B is a diagram showing an example of a field screen 520 displayed on the display section 13 of the terminal device 1. As shown in FIG. The field screen 520 is a screen displayed when the game medium 411 moving along the path contacts an obstacle object before reaching the target position 412 on the field screen 510 . As the game medium 411 moves, the field screen 520 includes an image obtained by projecting the three-dimensional virtual space at a viewpoint position near the game medium 411 , which is different from the field screen 510 . An obstacle object is, for example, an enemy game medium. When the game media 411 moving along the path contacts the obstacle object before reaching the target position 412, the terminal device 1 controls the display of the game media 411 so that the game media 411 stops. Note that the case where the game medium 411 contacts the obstacle object includes the case where the game medium 411 is within a predetermined range from the obstacle object.

フィールド画面520は、障害物オブジェクト521と、移動指示入力指示効果522とを含む。障害物オブジェクト521は、ゲーム媒体411が通過して移動することができないように設定されたオブジェクトである。なお、障害物オブジェクト521は、端末装置1の制御によって仮想空間内を移動してもよい。移動指示入力指示効果522は、プレイヤに移動指示の入力を促す情報である。図5(b)に示す例では、移動指示入力指示効果522は、矢印と指を用いて、タッチパネルである操作部12に接触し、その接触位置を変化させる操作をプレイヤに促す情報が表示されている。これにより、プレイヤは、さらに操作部12を操作しなければならないことを認識することができる。 A field screen 520 includes an obstacle object 521 and a movement instruction input instruction effect 522 . The obstacle object 521 is an object set so that the game medium 411 cannot move through it. Note that the obstacle object 521 may move within the virtual space under the control of the terminal device 1 . The movement instruction input instruction effect 522 is information prompting the player to input a movement instruction. In the example shown in FIG. 5B, the movement instruction input instruction effect 522 displays information prompting the player to perform an operation of touching the operation unit 12, which is a touch panel, with an arrow and a finger and changing the touch position. ing. This allows the player to recognize that the operation unit 12 must be operated further.

なお、経路に従って移動しているゲーム媒体411が目的位置に到達する前に敵ゲーム媒体である障害物オブジェクト521に接触した場合、敵ゲーム媒体との対戦ゲームが開始されてよい。対戦ゲームは、端末装置1の表示部13に図示しない対戦ゲーム画面が表示されることによって進行されてもよく、フィールド画面520において進行されてもよい。この場合、対戦ゲームが終了した後に、端末装置1は、ゲーム媒体411が停止するように、ゲーム媒体411の表示を制御する。 Note that if the game medium 411 moving along the path contacts the obstacle object 521, which is the enemy game medium, before reaching the target position, a battle game against the enemy game medium may be started. The competitive game may be progressed by displaying a competitive game screen (not shown) on the display unit 13 of the terminal device 1 or may be progressed on the field screen 520 . In this case, the terminal device 1 controls display of the game media 411 so that the game media 411 stop after the battle game ends.

また、移動指示入力指示効果522は、ゲーム媒体411が停止する直前に移動していた経路上の方向を移動方向として含む移動指示の入力を促す表示効果であってよい。例えば、移動指示入力指示効果522は、ゲーム媒体411が停止する直前に移動していた経路上の方向を指す矢印を含む表示効果であってよい。これにより、プレイヤは、ゲーム媒体411を所望の目的位置に到達させることができる移動方向を認識することができる。また、ゲーム媒体411が経路上でない位置に停止した場合、移動指示入力指示効果522が示す方向は、ゲーム媒体411が経路上の位置に戻るための方向であってもよい。ゲーム媒体411が経路上でない位置に停止する場合とは、例えば、ゲーム媒体411が障害物オブジェクト521に接触するなどして、対戦ゲームやイベント等が開始されたことによって、ゲーム媒体411が経路上の位置から移動した場合である。 In addition, the movement instruction input instruction effect 522 may be a display effect that prompts the input of a movement instruction including, as the movement direction, the direction on the route along which the game medium 411 was moving immediately before it stopped. For example, the movement instruction input instruction effect 522 may be a display effect that includes an arrow pointing in the direction on the path along which the game medium 411 was moving immediately before it stopped. This allows the player to recognize the moving direction that allows the game medium 411 to reach the desired target position. Further, when the game medium 411 stops at a position not on the path, the direction indicated by the movement instruction input instruction effect 522 may be the direction for the game medium 411 to return to the position on the path. The case where the game medium 411 stops at a position not on the path is, for example, when the game medium 411 comes into contact with the obstacle object 521 and a competition game or event is started, causing the game medium 411 to stop on the path. This is the case of moving from the position of

(端末装置が移動指示を取得する処理の説明)
以下では、図6及び図7を参照して、端末装置1がプレイヤによる移動指示を取得する処理について説明する。
(Description of the processing in which the terminal device acquires the movement instruction)
Below, with reference to FIG.6 and FIG.7, the process which the terminal device 1 acquires the movement instruction|indication by a player is demonstrated.

図6(a)は、操作部12を上面にした端末装置1を側面から見た模式図である。図6(b)は、操作部12を上面にした端末装置1を上面から見た場合の模式図である。以下では、図6(a)及び図6(b)を用いて、操作部12がタッチパネルである場合において、端末装置1がプレイヤによる移動指示を取得する処理の一例について説明する。 FIG. 6A is a schematic side view of the terminal device 1 with the operation unit 12 facing upward. FIG. 6B is a schematic view of the terminal device 1 with the operation unit 12 facing upward, as viewed from above. An example of a process in which the terminal device 1 acquires a movement instruction from the player when the operation unit 12 is a touch panel will be described below with reference to FIGS. 6(a) and 6(b).

まず、端末装置1は、操作部12が、プレイヤの操作部12に対する接触を検出したか否かを判定する。図6(a)に示した例では、プレイヤは、操作部12の位置611aに接触している。したがって、端末装置1は、操作部12が、プレイヤの操作部12に対する接触を検出したと判定する。 First, the terminal device 1 determines whether or not the operation unit 12 has detected contact with the operation unit 12 by the player. In the example shown in FIG. 6A, the player touches the position 611a of the operation unit 12. In the example shown in FIG. Therefore, the terminal device 1 determines that the operation unit 12 has detected contact with the operation unit 12 by the player.

続いて、操作部12が接触を検出したと判定された場合、端末装置1は、プレイヤが操作部12に接触している接触位置を所定時間間隔(例えば、1/30秒)で入力位置として取得する。図6(a)に示した例では、プレイヤは、位置611aから位置611dまで接触位置を変化させている。そして、端末装置1は、プレイヤが接触位置を変化させる過程で接触した位置611aと位置611bと位置611cと位置611dとを所定時間間隔で入力位置として取得している。 Subsequently, when it is determined that the operation unit 12 has detected a contact, the terminal device 1 sets the contact position where the player touches the operation unit 12 as an input position at predetermined time intervals (for example, 1/30 second). get. In the example shown in FIG. 6A, the player changes the contact position from position 611a to position 611d. Then, the terminal device 1 acquires the positions 611a, 611b, 611c, and 611d that the player touched in the process of changing the contact position as input positions at predetermined time intervals.

続いて、端末装置1は、操作部12が、プレイヤの操作部12に対する接触の終了を検出したか否かを判定する。図6(a)に示した例では、プレイヤは、操作部12の位置611dに接触した後、接触を終了している。したがって、端末装置1は、位置611dを入力位置として取得した後、操作部12が、プレイヤの操作部12に対する接触の終了を検出したと判定する。 Subsequently, the terminal device 1 determines whether or not the operation unit 12 has detected the end of the player's contact with the operation unit 12 . In the example shown in FIG. 6( a ), the player ends the contact after touching the position 611 d of the operation unit 12 . Therefore, after acquiring the position 611d as the input position, the terminal device 1 determines that the operation unit 12 has detected the end of the contact with the operation unit 12 by the player.

続いて、端末装置1は、最後に取得した入力位置と、その直前に取得した入力位置とが所定距離以上離れているか否かを判定する。図6(b)に示した例では、端末装置1が最後に取得した入力位置は、位置611dである。また、端末装置1が位置611dを取得する直前に取得した入力位置は、位置611cである。したがって、端末装置1は、位置611dと位置611cとが所定距離以上離れているか否かを判定する。判定は、位置611dの操作部12における位置座標と位置611cの操作部12における位置座標に基づいて行われてよい。 Subsequently, the terminal device 1 determines whether or not the last acquired input position is separated from the previously acquired input position by a predetermined distance or more. In the example shown in FIG. 6B, the last input position acquired by the terminal device 1 is position 611d. Also, the input position acquired immediately before the terminal device 1 acquires the position 611d is the position 611c. Therefore, the terminal device 1 determines whether or not the position 611d and the position 611c are separated by a predetermined distance or more. The determination may be made based on the position coordinates on the operation unit 12 at the position 611d and the position coordinates on the operation unit 12 at the position 611c.

続いて、最後に取得した入力位置と、その直前に取得した入力位置とが所定距離以上離れていると判定された場合、端末装置1は、操作指示を取得する。操作指示は、最初に取得した入力位置の操作部12における位置座標を操作位置の座標として含む。また、操作指示は、最後に取得した入力位置の、その直前に取得した入力位置を基準とする方向を移動方向として含む。図6(b)に示した例では、操作位置の座標は、位置611aの操作部12における位置座標である。また、移動方向は、位置611dの位置611cを基準とする方向である。なお、操作位置の座標は、操作位置に関する情報の一例である。 Subsequently, when it is determined that the last acquired input position and the immediately preceding acquired input position are separated by a predetermined distance or more, the terminal device 1 acquires an operation instruction. The operation instruction includes the position coordinates of the first acquired input position on the operation unit 12 as the coordinates of the operation position. Further, the operation instruction includes, as a movement direction, the direction of the last acquired input position with reference to the input position acquired immediately before that. In the example shown in FIG. 6B, the coordinates of the operation position are the position coordinates of the operation unit 12 at the position 611a. Also, the moving direction is the direction with the position 611c of the position 611d as a reference. Note that the coordinates of the operation position are an example of information regarding the operation position.

なお、最後に取得した入力位置と、その直前に取得した入力位置とが所定距離以上離れていないと判定された場合、端末装置1は、操作指示を取得しない。これにより、プレイヤが接触している位置を変化させる速度が大きいときにゲーム媒体411は目的位置まで自動的に移動することとなるため、プレイヤにとって直感的な操作が可能となる。また、プレイヤは、接触している位置を変化させる速度に応じて異なるゲーム操作を入力することが可能となる。そして、端末装置1は、多様なゲーム操作を提供することが可能となる。 If it is determined that the last acquired input position and the immediately preceding acquired input position are not separated by a predetermined distance or more, the terminal device 1 does not acquire the operation instruction. As a result, the game medium 411 automatically moves to the target position when the speed at which the position touched by the player is changed is high, allowing intuitive operation for the player. Also, the player can input different game operations according to the speed at which the contact position is changed. Then, the terminal device 1 can provide various game operations.

続いて、端末装置1は、プレイヤによる操作指示を取得したことに応じて、操作指示に含まれる操作位置の座標が所定範囲内であるか否かを判定する。 Subsequently, the terminal device 1 determines whether or not the coordinates of the operation position included in the operation instruction are within a predetermined range in response to acquiring the operation instruction from the player.

図7は、操作部12を上面にした端末装置1を上面から見た場合の模式図である。以下では、図7を用いて、端末装置1が操作指示に含まれる操作位置の座標が所定範囲内であるか否かを判定する処理について説明する。図7に示す例では、四角形である操作部12は、2本の対角線の上側である上側領域711aと、2本の対角線の下側である下側領域711bと、上側領域711aと下側領域711bに含まれない横側領域711cとに分割されている。 FIG. 7 is a schematic diagram of the terminal device 1 viewed from above with the operation unit 12 facing upward. A process of determining whether or not the coordinates of the operation position included in the operation instruction by the terminal device 1 are within a predetermined range will be described below with reference to FIG. 7 . In the example shown in FIG. 7, the rectangular operation unit 12 has an upper area 711a above the two diagonal lines, a lower area 711b below the two diagonal lines, and an upper area 711a and a lower area. 711b and a lateral region 711c that is not included in 711b.

端末装置1は、操作指示に含まれる操作位置の座標が横側領域711cに含まれるか否かを判定する。例えば、端末装置1は、操作位置の座標が操作部12の対角線の1本の上側に位置し、且つ、他の1本の下側に位置するか否かを判定することで、操作位置の座標が横側領域711cに含まれるか否かを判定する。操作位置の座標が横側領域711cに含まれないと判定された場合、端末装置1は、操作指示が移動指示であると判定する。すなわち、端末装置1は、操作指示を、操作位置の座標と移動方向とを含む移動指示として取得する。操作位置の座標が横側領域711cに含まれると判定された場合、端末装置1は、操作指示を移動指示として取得しない。なお、操作位置の座標が横側領域711cに含まれることは、操作位置の座標が所定範囲内であることの一例である。 The terminal device 1 determines whether or not the coordinates of the operation position included in the operation instruction are included in the lateral area 711c. For example, the terminal device 1 determines whether or not the coordinates of the operation position are located above one diagonal line of the operation unit 12 and below another diagonal line. It is determined whether or not the coordinates are included in the lateral area 711c. When it is determined that the coordinates of the operation position are not included in the lateral region 711c, the terminal device 1 determines that the operation instruction is a movement instruction. That is, the terminal device 1 acquires the operation instruction as a movement instruction including the coordinates of the operation position and the movement direction. When it is determined that the coordinates of the operation position are included in the lateral region 711c, the terminal device 1 does not acquire the operation instruction as the movement instruction. The fact that the coordinates of the operation position are included in the lateral area 711c is an example of the coordinates of the operation position being within a predetermined range.

このようにすることで、プレイヤは、移動指示に含まれる操作位置の座標に応じて異なるゲーム操作を入力することができ、端末装置1は、多様性なゲーム操作を提供することが可能となる。なお、操作位置の座標が横側領域711cに含まれないと判定された場合、端末装置1は、操作指示を視点移動指示として取得してもよい。視点移動指示を取得した端末装置1は、移動指示に含まれる移動方向に応じて、視点位置及び視線方向の少なくとも何れかが移動するようにフィールド画面の表示を変更する。 By doing so, the player can input different game operations according to the coordinates of the operation position included in the movement instruction, and the terminal device 1 can provide various game operations. . Note that, when it is determined that the coordinates of the operation position are not included in the lateral region 711c, the terminal device 1 may acquire the operation instruction as the viewpoint movement instruction. The terminal device 1 that has acquired the viewpoint movement instruction changes the display of the field screen so that at least one of the viewpoint position and the line-of-sight direction moves according to the movement direction included in the movement instruction.

(端末装置が経路を算出する処理の説明)
以下では、図8を参照して、端末装置1が仮想空間内のゲーム媒体の位置から目的位置への経路を算出する処理について説明する。
(Description of the process of calculating the route by the terminal device)
Below, with reference to FIG. 8, the process of calculating the route from the position of the game content in the virtual space to the target position by the terminal device 1 will be described.

まず、端末装置1は、プレイヤによる移動指示を取得したことに応じて、後述するように、仮想空間内のゲーム媒体の位置から目的位置への経路を算出する。 First, the terminal device 1 calculates a route from the position of the game medium in the virtual space to the target position in response to obtaining the movement instruction from the player, as will be described later.

図8(a)は、端末装置1が、移動可能領域413を分割する処理の一例を示す図である。また、図8(b)は、端末装置1が、経路算出用グラフを生成し、経路算出用グラフにおいて、ゲーム媒体411の位置から目的位置への経路を算出する処理の一例を示す図である。 FIG. 8A is a diagram showing an example of a process of dividing the movable area 413 by the terminal device 1. FIG. FIG. 8B is a diagram showing an example of processing in which the terminal device 1 generates a route calculation graph and calculates a route from the position of the game medium 411 to the target position in the route calculation graph. .

移動指示を取得した端末装置1は、移動可能領域413を分割した複数の多角形領域のうち、ゲーム媒体411の位置を含む多角形領域を特定する。図8(a)に示す例では、端末装置1は、移動可能領域413を分割した多角形領域413aから多角形領域413eのうち、多角形領域413aがゲーム媒体の位置を含む多角形領域であると特定している。 The terminal device 1 that has acquired the movement instruction specifies a polygonal area including the position of the game medium 411 among the plurality of polygonal areas obtained by dividing the movable area 413 . In the example shown in FIG. 8( a ), the terminal device 1 has polygonal areas 413 a to 413 e obtained by dividing the movable area 413 , and the polygonal area 413 a is the polygonal area including the position of the game medium. I have specified.

なお、移動可能領域413を分割した複数の多角形領域は、あらかじめ記憶部11に記憶されていてもよく、移動指示に含まれる操作位置の座標が所定範囲内であると判定されたことに応じて端末装置1によって算出されてもよい。例えば、端末装置1は、ドロネー(Delaunay)のアルゴリズム等の公知のアルゴリズムを用いて、移動可能領域413を分割した複数の多角形領域を算出してよい。 Note that the plurality of polygonal regions into which the movable region 413 is divided may be stored in the storage unit 11 in advance, and may be displayed in response to determination that the coordinates of the operation position included in the movement instruction are within a predetermined range. may be calculated by the terminal device 1. For example, the terminal device 1 may calculate a plurality of polygonal areas obtained by dividing the movable area 413 using a known algorithm such as the Delaunay algorithm.

続いて、端末装置1は、目的位置412のうち、ゲーム媒体411の位置との関係が所定関係である目的位置412を抽出する。例えば、ゲーム媒体411の位置との関係が所定関係であるとは、ゲーム媒体411の位置からの仮想空間における距離が所定距離以下であることである。図8(a)に示す例では、目的位置412aと目的位置412bとが、ゲーム媒体411の位置との関係が所定関係である目的位置412として抽出されたものとする。 Subsequently, the terminal device 1 extracts target positions 412 having a predetermined relationship with the position of the game medium 411 from the target positions 412 . For example, a predetermined relationship with the position of the game medium 411 means that the distance in the virtual space from the position of the game medium 411 is a predetermined distance or less. In the example shown in FIG. 8A, it is assumed that target positions 412a and 412b are extracted as the target position 412 having a predetermined relationship with the position of the game medium 411. In the example shown in FIG.

続いて、端末装置1は、抽出された目的位置412のそれぞれを含む多角形領域を特定する。図8(a)に示す例では、多角形領域413bが、目的位置412aを含む多角形領域として特定されている。また、多角形領域413cが、目的位置412bを含む多角形領域として特定されている。 Subsequently, the terminal device 1 identifies a polygonal area including each of the extracted target positions 412 . In the example shown in FIG. 8A, a polygonal area 413b is specified as a polygonal area including the target position 412a. Also, a polygonal area 413c is specified as a polygonal area including the target position 412b.

続いて、端末装置1は、複数のノードと、複数のノードの間を接続する少なくとも一のリンクとを含む経路算出用グラフを生成する。経路算出用グラフのノードは、ゲーム媒体の位置と目的位置と、複数の多角形領域の頂点とを含む。図8(b)に示す例では、経路算出用グラフのノードは、多角形領域413a~413eの頂点822と、ゲーム媒体411の位置に対応するノード823と、目的位置412a及び目的位置412bに対応するノード824a及びノード824bとを含んでいる。また、経路算出用グラフのリンクは、複数の多角形領域の辺と、ゲーム媒体の位置又は目的位置を含む多角形領域の頂点とゲーム媒体の位置又は目的位置に対応するノードとを結ぶ直線とを含む。図8(b)に示す例では、経路算出用グラフのリンクは、多角形領域413a~413eの辺と、ゲーム媒体411の位置を含む多角形領域413aの頂点と、ゲーム媒体411の位置に対応するノード823とを結ぶ直線とを含んでいる。同様に、経路算出用グラフのリンクは、多角形領域413bの頂点とノード824aとを結ぶ直線と、多角形領域413cの頂点とノード824bとを結ぶ直線とを含んでいる。このように、経路算出用グラフを抽出された目的位置のみをノードとして含むグラフとすることで、経路の算出に要する計算処理の負荷を抑えることができる。 Subsequently, the terminal device 1 generates a route calculation graph including a plurality of nodes and at least one link connecting the plurality of nodes. A node of the path calculation graph includes the position of the game medium, the target position, and the vertices of a plurality of polygonal areas. In the example shown in FIG. 8B, the nodes of the path calculation graph correspond to the vertices 822 of the polygonal areas 413a to 413e, the node 823 corresponding to the position of the game medium 411, and the target positions 412a and 412b. includes a node 824a and a node 824b. In addition, the links of the path calculation graph are straight lines connecting the sides of the plurality of polygonal areas, the vertices of the polygonal area including the position of the game medium or the target position, and the nodes corresponding to the position of the game medium or the target position. including. In the example shown in FIG. 8B, the links of the path calculation graph correspond to the sides of polygonal areas 413a to 413e, the vertices of polygonal area 413a including the position of game medium 411, and the position of game medium 411. and a straight line connecting the node 823 that Similarly, the links of the path calculation graph include straight lines connecting the vertices of the polygonal area 413b and the node 824a and straight lines connecting the vertices of the polygonal area 413c and the node 824b. In this way, by using the route calculation graph as a graph that includes only the extracted target positions as nodes, it is possible to suppress the load of calculation processing required for route calculation.

続いて、端末装置1は、ゲーム媒体411の位置から抽出された目的位置412のそれぞれへの最短経路を算出する。例えば、端末装置1は、ダイクストラ(Dijkstra)のアルゴリズム又はA*アルゴリズム等の最短経路を求めるための公知のアルゴリズムを用いて、ゲーム媒体の位置から目的位置への最短経路を算出してよい。図8(b)に示す例では、端末装置1は、ゲーム媒体411の位置に対応するノード823から目的位置412aに対応するノード824aへの経路825aと、ノード823から目的位置412bに対応するノード824bへの経路825bとを算出している。 Subsequently, the terminal device 1 calculates the shortest route from the position of the game media 411 to each of the extracted target positions 412 . For example, the terminal device 1 may calculate the shortest path from the position of the game medium to the target position using a known algorithm for obtaining the shortest path, such as the Dijkstra's algorithm or the A* algorithm. In the example shown in FIG. 8B, the terminal device 1 connects a route 825a from a node 823 corresponding to the position of the game medium 411 to a node 824a corresponding to the target position 412a, and a node 825a from the node 823 to the target position 412b. A route 825b to 824b is calculated.

なお、最短経路は、経路コストが最も小さい経路である。経路コストは、経路に含まれるリンクのコストを合計した値である。リンクのコストは、リンクの両端のノードの間の仮想空間における直線距離(リンクの長さ)である。このようにすることで、ゲーム媒体411が目的位置まで移動するために要する時間を短くすることができ、プレイヤのゲームに対する継続意欲を維持向上することができる。なお、経路コストは、経路に係るパラメータの一例である。 The shortest route is the route with the lowest route cost. A route cost is the sum of the costs of the links included in the route. The cost of a link is the straight-line distance (length of the link) in virtual space between nodes at both ends of the link. By doing so, the time required for the game medium 411 to move to the target position can be shortened, and the player's desire to continue playing the game can be maintained and improved. Note that the route cost is an example of a parameter related to the route.

また、上述したような最短経路を求めるための公知のアルゴリズムを用いることによって、端末装置1は、ゲーム媒体411の位置からの複数の経路と、複数の経路のそれぞれに係る経路コストを算出する。 Also, by using a known algorithm for obtaining the shortest route as described above, the terminal device 1 calculates a plurality of routes from the position of the game content 411 and the route costs associated with each of the plurality of routes.

なお、端末装置1は、経路コストが所定のコスト以下である経路のみを算出するように構成されてもよい。例えば、端末装置1は、算出された、抽出された目的位置のそれぞれへの最短経路のうち、経路コストが所定のコスト以下である経路のみを抽出することで、経路コストが所定のコスト以下である経路のみを算出してよい。このようにすることで、後述する、経路が所定条件を満たすか否かを判定する処理の処理負荷や処理時間を低減することができる。 Note that the terminal device 1 may be configured to calculate only routes whose route cost is equal to or less than a predetermined cost. For example, the terminal device 1 extracts, from among the calculated shortest routes to each of the extracted target positions, only routes whose route cost is equal to or less than a predetermined cost, and Only certain routes may be calculated. By doing so, it is possible to reduce the processing load and the processing time of the process of determining whether or not the route satisfies the predetermined condition, which will be described later.

なお、リンクのコストは、リンクの長さ以外の値であってよい。例えば、リンクのコストは、リンクの長さに所定の係数を乗じた値であってよい。また、所定の係数は、リンクの両端のノードの間をゲーム媒体411が移動するときに生じるイベント又はゲーム効果等に応じて定められてよい。例えば、ノードの間をゲーム媒体411が移動するときに、プレイヤにとって不利な効果が生じる場合に、所定の係数は1よりも大きい値に定められてよい。プレイヤにとって不利な効果とは、例えば、ゲーム媒体411の体力値等のパラメータが減少したり、ゲーム媒体の移動速度が減少したり、敵ゲーム媒体と接触したりするような効果である。また、ノードの間をゲーム媒体411が移動するときに、プレイヤにとって有利な効果が生じる場合に、所定の係数は1より小さい値に定められてよい。プレイヤにとって有利な効果とは、例えば、ゲーム媒体のパラメータが増加したり、ゲーム媒体の移動速度が増加したり、アイテム等のゲーム媒体を獲得できたりするような効果である。このようにすることで、ゲーム媒体411はプレイヤにとって有利な経路に従って目的位置まで移動することとなるため、プレイヤが移動指示を入力する動機づけとなる。 Note that the cost of the link may be a value other than the length of the link. For example, the cost of a link may be the length of the link multiplied by a predetermined factor. Also, the predetermined coefficient may be determined according to an event, game effect, or the like that occurs when the game medium 411 moves between nodes at both ends of the link. For example, the predetermined coefficient may be set to a value greater than 1 when the movement of the game media 411 between nodes has a disadvantageous effect on the player. Effects that are disadvantageous to the player are, for example, effects such as a decrease in parameters such as physical strength of the game medium 411, a decrease in the movement speed of the game medium, and contact with enemy game medium. Also, the predetermined coefficient may be set to a value smaller than 1 if an advantageous effect is produced for the player when the game medium 411 moves between nodes. Advantageous effects for the player are, for example, effects such as an increase in the parameters of the game media, an increase in the movement speed of the game media, and the acquisition of game media such as items. By doing so, the game content 411 moves to the target position along a route that is advantageous to the player, which motivates the player to input the movement instruction.

なお、上述した説明により算出された経路は、経路算出用グラフにおける最短経路である。端末装置1は、算出された経路にさらに平滑化処理を施すことにより、移動可能領域413における最短経路を算出してよい。 Note that the route calculated by the above description is the shortest route in the route calculation graph. The terminal device 1 may calculate the shortest route in the movable area 413 by further smoothing the calculated route.

(経路が所定条件を満たすか否かを端末装置が判定する処理の説明)
以下、図9を用いて、算出された経路が移動方向に関する所定条件を満たすか否かを端末装置1が判定する処理について説明する。図9は、算出された経路と移動方向とをフィールド画面910に表示した図である。図9には、フィールド画面910と、移動方向911と、ゲーム媒体の位置から目的位置412aへの経路912aと、ゲーム媒体の位置から目的位置412bへの経路912bとが示されている。経路912aは、ゲーム媒体の位置と接続する要素経路912a1と、要素経路912a1と接続する要素経路912a2とを含む。経路912bは、ゲーム媒体の位置と接続する要素経路912b1と、要素経路912b1と接続する要素経路912b2とを含む。なお、要素経路とは、経路を構成する直線部分をいい、経路算出用グラフにおける一つのリンクに相当するものである。なお、また、以下では、経路を構成する要素経路のうち、ゲーム媒体の位置と接続する要素経路を第1要素経路と称する。図9に示される例では、経路912aを構成する要素経路のうち、第1要素経路は、要素経路912a1である。また、経路912bを構成する要素経路のうち、第1要素経路は、要素経路912b1である。なお、移動方向911と経路912aと経路912bとは、説明のために図示したものであり、フィールド画面910において表示されなくてもよい。
(Description of the process by which the terminal device determines whether or not the route satisfies a predetermined condition)
A process of determining whether or not the calculated route satisfies a predetermined condition regarding the movement direction by the terminal device 1 will be described below with reference to FIG. FIG. 9 is a diagram showing the calculated route and moving direction displayed on the field screen 910. As shown in FIG. FIG. 9 shows a field screen 910, a movement direction 911, a path 912a from the game medium position to the target position 412a, and a route 912b from the game medium position to the target position 412b. The path 912a includes an element path 912a1 that connects with the position of the game medium, and an element path 912a2 that connects with the element path 912a1. The path 912b includes an element path 912b1 that connects with the position of the game media, and an element path 912b2 that connects with the element path 912b1. Note that an elemental path is a straight line portion that constitutes a path, and corresponds to one link in a path calculation graph. In addition, hereinafter, among the element paths forming the path, the element path connecting to the position of the game medium will be referred to as the first element path. In the example shown in FIG. 9, the first element path among the element paths forming the path 912a is the element path 912a1. Also, the first element path among the element paths forming the path 912b is the element path 912b1. Note that the moving direction 911, the route 912a, and the route 912b are illustrated for explanation, and may not be displayed on the field screen 910. FIG.

まず、端末装置1は、移動指示に含まれる移動方向911と、算出された経路を構成する要素経路のうち、第1要素経路の方向とがなす角の大きさを算出する。図9に示される例では、端末装置1は、移動方向911と要素経路912a1の方向とがなす角913aの大きさを算出する。同様に、端末装置1は、移動方向911と要素経路912b1の方向とがなす角913bの大きさを算出する。 First, the terminal device 1 calculates the magnitude of the angle formed by the movement direction 911 included in the movement instruction and the direction of the first element path among the element paths forming the calculated path. In the example shown in FIG. 9, the terminal device 1 calculates the size of the angle 913a formed by the movement direction 911 and the direction of the element path 912a1. Similarly, the terminal device 1 calculates the size of the angle 913b formed by the movement direction 911 and the direction of the element path 912b1.

続いて、端末装置1は、算出された角の大きさが所定角度以下であるか否かを判定する。図9に示される例では、端末装置1は、角913aの大きさは所定角度以下であり、角913bの大きさは所定角度以下ではないと判定されたものとする。このようにすることで、端末装置1は、移動方向と、第1要素経路の方向とがなす角の大きさが所定角度以下であるか否かを判定する。なお、移動方向と、第1要素経路の方向とがなす角の大きさが所定角度以下であることは、移動方向に関する所定条件を満たすことの一例である。 Subsequently, the terminal device 1 determines whether or not the calculated size of the angle is equal to or less than a predetermined angle. In the example shown in FIG. 9, it is assumed that the terminal device 1 has determined that the size of the corner 913a is equal to or smaller than the predetermined angle and that the size of the corner 913b is not equal to or smaller than the predetermined angle. By doing so, the terminal device 1 determines whether or not the size of the angle formed by the movement direction and the direction of the first element path is equal to or less than the predetermined angle. It should be noted that the fact that the magnitude of the angle formed by the moving direction and the direction of the first element path is equal to or less than a predetermined angle is an example of satisfying a predetermined condition regarding the moving direction.

続いて、端末装置1は、角の大きさが所定角度以下であると判定された経路に従ってゲーム媒体が目的位置まで移動するように、ゲーム媒体の表示を制御する。これにより、移動指示に含まれる移動方向とゲーム媒体が最初に移動する方向との差が小さくなり、直感的な操作が可能となる。 Subsequently, the terminal device 1 controls the display of the game content so that the game content moves to the target position along the path determined to have an angle equal to or smaller than the predetermined angle. As a result, the difference between the movement direction included in the movement instruction and the direction in which the game medium initially moves is reduced, and intuitive operation becomes possible.

なお、複数の経路が、移動方向と第1要素経路の方向とがなす角の大きさが所定角度以下であると判定された場合、端末装置1は、経路コストが最も小さい経路に従ってゲーム媒体が目的位置まで移動するように、ゲーム媒体411の表示を制御する。これにより、同一方向に複数の目的位置が存在する場合、ゲーム媒体411は、最も近い目的位置に移動するようになるため、移動時間を小さくすることができる。 Note that if it is determined that the angle formed by the direction of movement and the direction of the first element path is equal to or less than a predetermined angle for a plurality of paths, the terminal device 1 causes the game content to be generated according to the path with the lowest path cost. The display of the game medium 411 is controlled so as to move to the target position. As a result, when there are a plurality of target positions in the same direction, the game medium 411 moves to the closest target position, so that the movement time can be shortened.

また、上述した説明において、第1要素経路の方向とは、3次元仮想空間において定められた第1要素経路を、所定の視点位置及び所定の視線方向において2次元スクリーンに投影した際の、2次元スクリーンにおける第1要素経路の方向である。すなわち、第1要素経路の方向とは、3次元仮想空間における方向ではなく、表示部13に表示されたフィールド画面における第1要素経路の方向である。このように定めることで、プレイヤは、表示部13に表示されている方向に基づいて移動指示を入力すればよいため、より直感的な操作が可能となる。 Further, in the above description, the direction of the first element path refers to the direction of the first element path determined in the three-dimensional virtual space, when projected onto the two-dimensional screen at a predetermined viewpoint position and a predetermined line-of-sight direction. The direction of the first element path in the dimensional screen. That is, the direction of the first elemental path is not the direction in the three-dimensional virtual space, but the direction of the first elemental path on the field screen displayed on the display unit 13 . By defining in this way, the player only needs to input a movement instruction based on the direction displayed on the display unit 13, so that a more intuitive operation is possible.

(各種データの説明)
以下、図10を用いて、記憶部11に記憶される各種データについて説明する。
(Explanation of various data)
Various data stored in the storage unit 11 will be described below with reference to FIG.

図10(a)は、多角形領域に関する情報を管理する領域テーブル1010のデータ構造の一例を示す図である。領域テーブル1010には、領域ID1011、頂点1012、及び、隣接領域ID1013等が関連付けて記憶されている。 FIG. 10A is a diagram showing an example of the data structure of an area table 1010 that manages information about polygonal areas. The area table 1010 stores area IDs 1011, vertices 1012, adjacent area IDs 1013, and the like in association with each other.

領域ID1011は、多角形領域を一意に特定可能な識別情報である。頂点1012は、多角形領域の頂点を一意に特定可能な情報である。図10(a)に示す例では、頂点1012は、多角形領域の頂点の座標である。なお、図10(a)に示す例では、頂点1012には、3つの座標が記憶されている。すなわち、図10(a)に示す例では、多角形領域は、三角形である。また、図10(a)に示す例では、それぞれの頂点の座標は2次元座標系で記述されているが、3次元座標系で記述されてもよく、他の座標系で記述されてもよい。隣接領域ID1013は、多角形領域に隣接する他の多角形領域の識別情報である。隣接する多角形領域とは、少なくとも1つの辺を共有する多角形領域をいう。 The area ID 1011 is identification information that can uniquely identify a polygonal area. The vertex 1012 is information that can uniquely identify the vertex of the polygonal area. In the example shown in FIG. 10A, vertices 1012 are the coordinates of the vertices of the polygonal area. In the example shown in FIG. 10A, the vertex 1012 stores three coordinates. That is, in the example shown in FIG. 10(a), the polygonal area is a triangle. Also, in the example shown in FIG. 10A, the coordinates of each vertex are described in a two-dimensional coordinate system, but they may be described in a three-dimensional coordinate system or in another coordinate system. . The adjacent area ID 1013 is identification information of other polygonal areas adjacent to the polygonal area. Adjacent polygonal regions are polygonal regions that share at least one side.

図10(b)は、目的位置に関する情報を管理する目的位置テーブル1020のデータ構造の一例を示す図である。目的位置テーブル1020には、目的位置ID1021、位置1022、及び、領域ID1023等が関連付けて記憶されている。なお、目的位置テーブル1020に記憶されているデータは、仮想空間における目的位置に関する情報の一例である。 FIG. 10(b) is a diagram showing an example of the data structure of the destination position table 1020 that manages information about destination positions. The target position table 1020 stores a target position ID 1021, a position 1022, an area ID 1023, and the like in association with each other. Note that the data stored in the target position table 1020 is an example of information regarding the target position in the virtual space.

目的位置ID1021は、目的位置を一意に特定可能な識別情報である。位置1022は、目的位置の位置を表す座標である。領域ID1023は、目的位置を内部に含む多角形領域の識別情報である。 The target position ID 1021 is identification information that can uniquely identify the target position. A position 1022 is coordinates representing the position of the target position. The area ID 1023 is identification information of a polygonal area containing the target position.

(処理部14の説明)
以下、端末装置1の処理部14について説明する。
(Description of the processing unit 14)
The processing unit 14 of the terminal device 1 will be described below.

図3に示されるように、処理部14は、取得部141と、算出部142と、判定部143と、表示制御部144とをその機能ブロックとして備える。これらの各部は、処理部14が備えるプロセッサで実行されるプログラムにより実現される機能モジュールである。これらの各部は、ファームウェアとして端末装置1に実装されてもよい。 As shown in FIG. 3, the processing unit 14 includes an acquisition unit 141, a calculation unit 142, a determination unit 143, and a display control unit 144 as functional blocks. Each of these units is a functional module implemented by a program executed by a processor included in the processing unit 14 . Each of these units may be implemented in the terminal device 1 as firmware.

取得部141は、プレイヤによる、移動方向を含む移動指示を取得する。例えば、取得部141は、操作部12が、プレイヤの操作部12に対する接触を検出したか否かを判定する。接触を検出したと判定された場合、取得部141は、プレイヤが操作部12に接触している接触位置を所定時間間隔で入力位置として取得する。 The acquisition unit 141 acquires a movement instruction including a movement direction from the player. For example, the acquisition unit 141 determines whether the operation unit 12 has detected contact with the operation unit 12 by the player. When it is determined that the contact has been detected, the acquisition unit 141 acquires the contact position where the player touches the operation unit 12 as the input position at predetermined time intervals.

続いて、取得部141は、操作部12が、プレイヤの操作部12に対する接触の終了を検出したか否かを判定する。接触の終了を検出したと判定された場合、取得部141は、最後に取得した入力位置と、その直前に取得した入力位置とが所定距離以上離れているか否かを判定する。所定距離以上離れていると判定された場合、取得部141は、操作指示を取得する。操作指示は、最初に取得した入力位置の操作部12における位置座標を操作位置の座標として含む。また、操作指示は、最後に取得した入力位置の、その直前に取得した入力位置に対する方向を移動方向として含む。 Subsequently, the acquisition unit 141 determines whether or not the operation unit 12 has detected the end of the player's contact with the operation unit 12 . When it is determined that the end of contact has been detected, the acquiring unit 141 determines whether or not the last acquired input position and the immediately preceding acquired input position are separated by a predetermined distance or more. If it is determined that the distance is greater than or equal to the predetermined distance, the acquisition unit 141 acquires the operation instruction. The operation instruction includes the position coordinates of the first acquired input position on the operation unit 12 as the coordinates of the operation position. Further, the operation instruction includes the direction of the last acquired input position relative to the immediately preceding acquired input position as the movement direction.

続いて、取得部141は、操作指示に含まれる操作位置の座標が所定範囲内であるか否かを判定する。操作位置の座標が所定範囲内でないと判定された場合、取得部141は、操作指示を移動指示として取得する。操作位置の座標が所定範囲内であると判定された場合、取得部141は、移動指示を取得しない。なお、操作位置の座標が所定範囲内であると判定された場合、取得部141は、操作指示を視点移動指示として取得してよい。 Subsequently, the obtaining unit 141 determines whether the coordinates of the operation position included in the operation instruction are within a predetermined range. When it is determined that the coordinates of the operation position are not within the predetermined range, the acquisition unit 141 acquires the operation instruction as a movement instruction. When it is determined that the coordinates of the operation position are within the predetermined range, the acquisition unit 141 does not acquire the movement instruction. Note that when it is determined that the coordinates of the operation position are within the predetermined range, the acquisition unit 141 may acquire the operation instruction as the viewpoint movement instruction.

また、取得部141は、プレイヤによる、ゲーム媒体411を操作するための手動操作指示を取得する。例えば、取得部141は、プレイヤが操作部12を操作し、フィールド画面410において操作指示オブジェクト414の表示領域内を入力位置とする入力をした場合、入力位置に応じた方向を操作方向として含む手動操作指示を取得する。 The acquisition unit 141 also acquires a manual operation instruction for operating the game medium 411 by the player. For example, when the player operates the operation unit 12 and performs an input position within the display area of the operation instruction object 414 on the field screen 410, the acquisition unit 141 sets the direction corresponding to the input position as the operation direction. Get operating instructions.

また、取得部141は、プレイヤによる、メニュー画面を表示するためのメニュー画面表示指示を取得する。例えば、取得部141は、プレイヤが操作部12を操作し、フィールド画面410においてメニュー画面表示オブジェクトを選択したことに応じて、メニュー画面表示指示を取得する。 The acquisition unit 141 also acquires a menu screen display instruction for displaying a menu screen from the player. For example, the acquisition unit 141 acquires a menu screen display instruction in response to the player operating the operation unit 12 and selecting a menu screen display object on the field screen 410 .

算出部142は、取得部141がプレイヤによる移動指示を取得したことに応じて、移動可能領域413を分割した複数の多角形領域のうち、ゲーム媒体411の位置を含む多角形領域を特定する。続いて、算出部142は、目的位置テーブル1020を参照して、ゲーム媒体の位置からの仮想空間における距離が所定距離以下である目的位置412を抽出する。続いて、算出部142は、目的位置テーブル1020を参照して、抽出された目的位置412のそれぞれを含む多角形領域を特定する。続いて、算出部142は、経路算出用グラフを生成する。続いて、算出部142は、ゲーム媒体411の位置から抽出された目的位置412のそれぞれへの経路を算出する。また、算出部142は、それぞれの経路に係る経路コストを算出する。 The calculating unit 142 identifies a polygonal area including the position of the game medium 411 among the plurality of polygonal areas obtained by dividing the movable area 413 in response to the acquiring unit 141 acquiring the movement instruction from the player. Subsequently, the calculation unit 142 refers to the target position table 1020 and extracts target positions 412 whose distance in the virtual space from the position of the game medium is equal to or less than a predetermined distance. Subsequently, the calculation unit 142 refers to the target position table 1020 to specify a polygonal area including each of the extracted target positions 412 . Subsequently, the calculator 142 generates a route calculation graph. Subsequently, the calculation unit 142 calculates a route from the position of the game medium 411 to each of the target positions 412 extracted. The calculation unit 142 also calculates the route cost for each route.

また、算出部142は、抽出された目的位置412への経路のうち、経路コストが所定のコスト以下である経路のみを算出してよい。例えば、算出部142は、算出された、抽出された目的位置のそれぞれへの最短経路のうち、経路コストが所定のコスト以下である経路のみを抽出することで、経路コストが所定のコスト以下である経路のみを算出する。 Further, the calculation unit 142 may calculate only the routes whose route cost is equal to or less than a predetermined cost among the extracted routes to the destination position 412 . For example, the calculation unit 142 extracts only the routes whose route cost is equal to or less than a predetermined cost from among the calculated shortest routes to each of the extracted destination positions. Calculate only certain routes.

以上説明したように、算出部142は、プレイヤによる移動指示に含まれる操作位置の座標が所定範囲内である場合に、ゲーム媒体411の位置から抽出された目的位置412のそれぞれへの経路を算出しない。 As described above, the calculation unit 142 calculates a route to each of the target positions 412 extracted from the position of the game medium 411 when the coordinates of the operation position included in the movement instruction by the player are within a predetermined range. do not do.

判定部143は、算出された経路が移動方向に関する所定条件を満たすか否かを判定する。例えば、所定条件は、移動方向と、経路を構成する要素経路のうち、ゲーム媒体411の位置と接続する第1要素経路の方向とがなす角の大きさが所定角度(例えば、60度)以下であることである。なお、算出部142によって複数の経路が算出された場合、判定部143は、算出された複数の経路のそれぞれについて、移動方向に関する所定条件を満たすか否かを判定する。 The determination unit 143 determines whether the calculated route satisfies a predetermined condition regarding the movement direction. For example, the predetermined condition is that the size of the angle formed by the movement direction and the direction of the first element path connecting to the position of the game medium 411 among the element paths constituting the path is less than or equal to a predetermined angle (for example, 60 degrees). is to be In addition, when a plurality of routes are calculated by the calculation unit 142, the determination unit 143 determines whether or not each of the calculated routes satisfies a predetermined condition regarding the moving direction.

表示制御部144は、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が目的位置まで移動するように、ゲーム媒体の表示を制御する。例えば、表示制御部144は、ゲーム媒体が移動方向に向かって歩行しているような画像を表示するための表示データを表示部13に供給することによって、ゲーム媒体の表示を制御する。 The display control unit 144 controls the display of the game media so that the game media move to the target position along the route when it is determined that the route satisfies the predetermined condition. For example, the display control unit 144 controls the display of game media by supplying the display unit 13 with display data for displaying an image in which the game media are walking in the moving direction.

また、表示制御部144は、経路が所定条件を満たすと判定された場合、表示部13を制御して、経路の少なくとも一部を仮想空間に表示する。例えば、表示制御部144は、経路のうち、現在のゲーム媒体411の位置から目的位置412に至る箇所のみを仮想空間に表示してよい。 Further, when it is determined that the route satisfies the predetermined condition, the display control unit 144 controls the display unit 13 to display at least part of the route in the virtual space. For example, the display control unit 144 may display only a portion of the route from the current position of the game medium 411 to the target position 412 in the virtual space.

また、表示制御部144は、複数の経路が所定条件を満たすと判定された場合、所定条件を満たすと判定された経路のうち、経路コストが最も小さい経路に従ってゲーム媒体が移動するように、ゲーム媒体の表示を制御する。 Further, when it is determined that a plurality of routes satisfy the predetermined condition, the display control unit 144 causes the game content to move along the route with the lowest route cost among the routes determined to satisfy the predetermined condition. Control the display of media.

また、表示制御部144は、経路に従って移動しているゲーム媒体が目的位置に到達する前に障害物オブジェクトに接触した場合、ゲーム媒体が停止するように、ゲーム媒体の表示を制御する。 In addition, the display control unit 144 controls the display of the game media so that the game media stop when the game media moving along the path contacts the obstacle object before reaching the target position.

また、表示制御部144は、経路に従って移動しているゲーム媒体が目的位置に到達する前に停止した場合、プレイヤによる移動指示の入力を促す情報を前記表示部に表示する。 Further, when the game medium moving along the path stops before reaching the target position, the display control unit 144 displays information prompting the player to input a movement instruction on the display unit.

また、表示制御部144は、経路が所定条件を満たさないと判定された場合、表示部13を制御して、ゲーム媒体がプレイヤによって入力された移動指示に含まれる移動方向に直進するように、ゲーム媒体の表示を制御する。これにより、移動方向に目的位置が存在しない場合であっても、プレイヤは移動方向にゲーム媒体を移動させることができ、プレイヤにとってより直感的な操作を提供することができる。表示制御部144は、直進しているゲーム媒体が移動可能領域の外縁に到達した場合、ゲーム媒体が停止するように、ゲーム媒体の表示を制御する。 Further, when it is determined that the route does not satisfy the predetermined condition, the display control unit 144 controls the display unit 13 so that the game medium advances straight in the movement direction included in the movement instruction input by the player. Controls the display of game media. As a result, the player can move the game medium in the movement direction even when the target position does not exist in the movement direction, and a more intuitive operation can be provided for the player. The display control unit 144 controls the display of the game media so that the game media stop when the game media traveling straight reaches the outer edge of the movable area.

また、表示制御部144は、取得部141がプレイヤによる手動操作指示を取得したことに応じ、ゲーム媒体が手動操作指示に含まれる操作方向に移動するように、ゲーム媒体の表示を制御する。 Further, the display control unit 144 controls the display of the game media so that the game media moves in the operation direction included in the manual operation instruction when the acquisition unit 141 acquires the manual operation instruction from the player.

また、表示制御部144は、取得部141がプレイヤによるメニュー画面表示指示を取得したことに応じ、表示部13を制御して、メニュー画面を表示する。例えば、表示制御部144は、メニュー画面を表示するための表示データを、記憶部11から取得し、表示部13に供給する。 Further, the display control unit 144 controls the display unit 13 to display the menu screen in response to the acquisition unit 141 acquiring the menu screen display instruction from the player. For example, the display control unit 144 acquires display data for displaying a menu screen from the storage unit 11 and supplies it to the display unit 13 .

また、表示制御部144は、取得部141がプレイヤによる視点移動指示を取得したことに応じ、表示部13を制御して、視点位置及び視線方向の少なくとも一方が移動するようにフィールド画面の表示を変更する。例えば、表示制御部144は、視点位置を視点移動指示に含まれる移動方向に移動させるとともに、移動後の視点位置を基準としたゲーム媒体の方向を視点方向とするように、フィールド画面の表示を変更する。 Further, in response to the acquisition unit 141 acquiring the viewpoint movement instruction from the player, the display control unit 144 controls the display unit 13 to display the field screen so that at least one of the viewpoint position and the line-of-sight direction moves. change. For example, the display control unit 144 moves the viewpoint position in the movement direction included in the viewpoint movement instruction, and displays the field screen so that the direction of the game medium based on the viewpoint position after movement is the viewpoint direction. change.

(端末装置による処理の流れの説明)
以下、図11から図13を参照して、端末装置1による処理の流れについて説明する。
(Explanation of the flow of processing by the terminal device)
Hereinafter, the flow of processing by the terminal device 1 will be described with reference to FIGS. 11 to 13. FIG.

図11は、端末装置1による移動処理の流れの一例を示したフロー図である。 FIG. 11 is a flowchart showing an example of the flow of movement processing by the terminal device 1. As shown in FIG.

まず、端末装置1の記憶部11は、仮想空間における目的位置に関する情報を記憶する(S1101)。続いて、端末装置1の表示部13は、仮想空間内に位置するゲーム媒体を表示する(S1103)。続いて、端末装置1の取得部141は、移動指示取得処理を実行する(S1105)。移動指示取得処理の詳細は後述する。続いて、端末装置1の算出部142は、経路算出処理を実行する(S1107)。経路算出処理の詳細は後述する。 First, the storage unit 11 of the terminal device 1 stores information about the target position in the virtual space (S1101). Subsequently, the display unit 13 of the terminal device 1 displays the game content positioned within the virtual space (S1103). Subsequently, the acquisition unit 141 of the terminal device 1 executes movement instruction acquisition processing (S1105). Details of the movement instruction acquisition process will be described later. Subsequently, the calculation unit 142 of the terminal device 1 executes route calculation processing (S1107). Details of the route calculation process will be described later.

続いて、端末装置1の判定部143は、移動指示に含まれる移動方向と、算出された経路を構成する要素経路のうち、ゲーム媒体の位置に接続する第1要素経路の方向とがなす角の大きさが所定角度以下であるか否かを判定する(S1109)。角の大きさが所定角度以下であると判定された場合(S1109-Y)、端末装置1の表示制御部144は、経路に従ってゲーム媒体を移動するように、ゲーム媒体の表示を制御する(S1111)。続いて、表示制御部144は、経路に従って移動しているゲーム媒体が目的位置に到達したか否かを判定する(S1113)。目的位置に到達していないと判定された場合、すなわち、経路に従って移動しているゲーム媒体が目的位置に到達する前に停止したと判定された場合(S1113-N)、表示制御部144は、プレイヤに移動指示の入力を指示する情報を表示し(S1115)、S1105に進む。目的位置に到達したと判定された場合(S1113-Y)、一連の処理を終了する。また、角の大きさが所定角度以下でないと判定された場合(S1109-N)、表示制御部144は、ゲーム媒体が移動指示に含まれる移動方向に直進するように、ゲーム媒体の表示を制御し(S1117)、一連の処理を終了する。 Subsequently, the determination unit 143 of the terminal device 1 determines the angle formed by the movement direction included in the movement instruction and the direction of the first element path connecting to the position of the game medium among the element paths forming the calculated path. is equal to or less than a predetermined angle (S1109). When it is determined that the size of the angle is equal to or less than the predetermined angle (S1109-Y), the display control unit 144 of the terminal device 1 controls the display of the game content so that the game content moves along the route (S1111 ). Subsequently, the display control unit 144 determines whether or not the game medium moving along the path has reached the target position (S1113). When it is determined that the target position has not been reached, that is, when it is determined that the game medium moving along the path has stopped before reaching the target position (S1113-N), the display control unit 144 Information for instructing the player to input a movement instruction is displayed (S1115), and the process proceeds to S1105. If it is determined that the target position has been reached (S1113-Y), the series of processing ends. Further, when it is determined that the angle is not equal to or smaller than the predetermined angle (S1109-N), the display control unit 144 controls the display of the game medium so that the game medium advances straight in the movement direction included in the movement instruction. (S1117), and the series of processing ends.

図12は、端末装置1における移動指示取得処理の流れの一例を示すフロー図である。まず、端末装置1の取得部141は、操作部12が、プレイヤの操作部12に対する接触を検出したか否かを判定する(S1201)。接触を検出していないと判定された場合(S1201-N)、S1201に進む。接触を検出したと判定された場合(S1201-Y)、取得部141は、プレイヤが操作部に接触している接触位置を所定時間間隔で入力位置として取得する(S1203)。続いて、取得部141は、操作部12が、プレイヤの操作部12に対する接触の終了を検出したか否かを判定する(S1205)。接触の終了を検出していないと判定された場合(S1205-N)、S1203に進む。接触の終了を検出したと判定された場合(S1205-Y)、取得部141は、最後に取得した入力位置と、その直前に取得した入力位置とが所定距離以上離れているか否かを判定する(S1207)。所定距離以上離れていると判定された場合(S1207-Y)、取得部141は、操作位置の座標と移動方向とを含む操作指示を取得する(S1209)。所定距離以上離れていないと判定された場合(S1207-N)、S1201に進む。続いて、取得部141は、操作指示に含まれる操作位置の座標が所定範囲内であるか否かを判定する(S1211)。操作位置の座標が所定範囲内でないと判定された場合(S1211-N)、取得部141は、操作指示を移動指示として取得し(S1213)、一連の処理を終了する。操作位置の座標が所定範囲内であると判定された場合(S1211-Y)、S1201に進む。 FIG. 12 is a flowchart showing an example of the flow of movement instruction acquisition processing in the terminal device 1. As shown in FIG. First, the acquisition unit 141 of the terminal device 1 determines whether or not the operation unit 12 has detected the player's contact with the operation unit 12 (S1201). If it is determined that contact has not been detected (S1201-N), the process proceeds to S1201. When it is determined that a contact has been detected (S1201-Y), the acquisition unit 141 acquires the contact position where the player touches the operation unit as the input position at predetermined time intervals (S1203). Subsequently, the acquisition unit 141 determines whether or not the operation unit 12 has detected the end of the player's contact with the operation unit 12 (S1205). If it is determined that the end of contact has not been detected (S1205-N), the process proceeds to S1203. When it is determined that the end of contact has been detected (S1205-Y), the acquiring unit 141 determines whether or not the last acquired input position and the immediately preceding acquired input position are separated by a predetermined distance or more. (S1207). If it is determined that the distance is greater than or equal to the predetermined distance (S1207-Y), the acquisition unit 141 acquires an operation instruction including the coordinates of the operation position and the movement direction (S1209). If it is determined that the distance is less than the predetermined distance (S1207-N), the process proceeds to S1201. Subsequently, the obtaining unit 141 determines whether or not the coordinates of the operation position included in the operation instruction are within a predetermined range (S1211). When it is determined that the coordinates of the operation position are not within the predetermined range (S1211-N), the acquisition unit 141 acquires the operation instruction as a movement instruction (S1213), and ends the series of processes. If it is determined that the coordinates of the operation position are within the predetermined range (S1211-Y), the process proceeds to S1201.

図13は、端末装置1における経路算出処理の流れの一例を示すフロー図である。まず、端末装置1の算出部142は、ゲーム媒体の位置を含む多角形領域を特定する(S1301)。続いて、算出部142は、目的位置のうち、ゲーム媒体411の位置との関係が所定関係である目的位置を抽出する(S1303)。続いて、算出部142は、抽出された目的位置のそれぞれを含む多角形領域を特定する(S1305)。続いて、算出部142は、経路算出用グラフを生成する(S1307)。続いて、算出部142は、ゲーム媒体の位置から抽出された目的位置のそれぞれへの最短経路と、それぞれの経路に係る経路コストを算出し(S1309)、一連の処理を終了する。 FIG. 13 is a flow diagram showing an example of the flow of route calculation processing in the terminal device 1. As shown in FIG. First, the calculator 142 of the terminal device 1 identifies a polygonal area including the position of the game medium (S1301). Subsequently, the calculation unit 142 extracts target positions having a predetermined relationship with the position of the game medium 411 from the target positions (S1303). Subsequently, the calculation unit 142 identifies a polygonal area including each of the extracted target positions (S1305). Subsequently, the calculator 142 generates a route calculation graph (S1307). Subsequently, the calculation unit 142 calculates the shortest route from the position of the game medium to each of the extracted target positions and the route cost associated with each route (S1309), and ends the series of processes.

以上説明したように、本発明に係る端末装置1は、仮想空間内に位置するゲーム媒体を表示する表示部13を備える。また、本発明に係る端末装置1は、仮想空間における目的位置に関する情報を記憶する記憶部11を備える。また、本発明に係る端末装置1は、プレイヤによる、移動方向を含む移動指示を取得する取得部141を備える。また、本発明に係る端末装置1は、仮想空間内のゲーム媒体の位置から目的位置への経路を算出する算出部142を備える。また、本発明に係る端末装置1は、算出された経路が移動方向に関する所定条件を満たすか否かを判定する判定部143を備える。また、本発明に係る端末装置1は、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が目的位置まで移動するようにゲーム媒体の表示を制御する表示制御部144を備える。このような構成を備えることにより、本発明に係る端末装置1は、プレイヤによるキャラクタの操作を支援することを可能とする。 As described above, the terminal device 1 according to the present invention has the display section 13 that displays the game content located in the virtual space. The terminal device 1 according to the present invention also includes a storage unit 11 that stores information about the target position in the virtual space. The terminal device 1 according to the present invention also includes an acquisition unit 141 that acquires a movement instruction including a movement direction from the player. The terminal device 1 according to the present invention also includes a calculator 142 that calculates a route from the position of the game medium in the virtual space to the target position. The terminal device 1 according to the present invention also includes a determination unit 143 that determines whether or not the calculated route satisfies a predetermined condition regarding the movement direction. The terminal device 1 according to the present invention also includes a display control unit 144 that controls the display of game media so that the game media move to the target position along the route when it is determined that the route satisfies a predetermined condition. With such a configuration, the terminal device 1 according to the present invention can assist the player in operating the character.

また、本発明に係る端末装置1において、経路は、複数の要素経路によって構成されてよい。また、所定条件は、移動方向と、ゲーム媒体の位置と接続する要素経路の方向とがなす角の大きさが所定角度以下であることであってよい。このようにすることで、ゲーム媒体は、プレイヤが入力した移動指示に含まれる移動方向に近い方向に移動することになるため、プレイヤにとって直感的な操作が実現される。 In addition, in the terminal device 1 according to the present invention, a route may be composed of a plurality of element routes. Also, the predetermined condition may be that the size of the angle formed by the moving direction and the direction of the element path connecting to the position of the game medium is equal to or less than a predetermined angle. By doing so, the game content moves in a direction close to the moving direction included in the movement instruction input by the player, so that intuitive operation for the player is realized.

また、本発明に係る端末装置1において、移動指示は、操作位置に関する情報を含んでよい。また、算出部142は、操作位置に関する情報が所定範囲内である場合に、経路を算出しなくてよい。このようにすることで、操作位置に関する情報が所定範囲内である場合に、異なるゲーム操作を割り当てることが可能となり、ゲーム操作の多様性が増す。 Moreover, in the terminal device 1 according to the present invention, the movement instruction may include information regarding the operation position. Further, the calculation unit 142 does not need to calculate the route when the information regarding the operation position is within the predetermined range. By doing so, when the information about the operation position is within a predetermined range, different game operations can be assigned, increasing the diversity of game operations.

また、本発明に係る端末装置1において、表示制御部144は、経路が所定条件を満たさないと判定された場合、ゲーム媒体が移動方向に移動するように、ゲーム媒体の表示を制御してよい。このようにすることで、経路が所定条件を満たさない場合であっても、ゲーム媒体は、プレイヤが入力した移動指示に含まれる移動方向に近い方向に移動することになるため、プレイヤにとってより直感的な操作が実現される。 Further, in the terminal device 1 according to the present invention, the display control unit 144 may control the display of the game content so that the game content moves in the moving direction when it is determined that the route does not satisfy the predetermined condition. . By doing so, even if the route does not satisfy the predetermined condition, the game content moves in a direction close to the direction of movement included in the movement instruction input by the player, which is more intuitive for the player. operation is realized.

また、本発明に係る端末装置1において、表示制御部144は、経路が所定条件を満たすと判定された場合、経路の少なくとも一部を仮想空間に表示してよい。このようにすることで、プレイヤは、ゲーム媒体がこれから移動する経路を容易に確かめることができる。 Moreover, in the terminal device 1 according to the present invention, the display control unit 144 may display at least part of the route in the virtual space when it is determined that the route satisfies the predetermined condition. By doing so, the player can easily confirm the path along which the game media will move.

また、本発明に係る端末装置1において、表示制御部144は、経路に従って移動しているゲーム媒体が所定位置に到達する前に停止した場合、プレイヤによる移動指示を促す情報を表示部に表示してよい。このようにすることで、プレイヤは、さらに操作部12を操作しなければならないことを認識することができる。 In addition, in the terminal device 1 according to the present invention, the display control unit 144 displays on the display unit information prompting the player to issue a movement instruction when the game content that is moving along the path stops before reaching a predetermined position. you can By doing so, the player can recognize that the operation unit 12 must be operated further.

また、本発明に係る端末装置1は、プレイヤによる接触を検出する操作部12を備えてよい。また、本発明に係る端末装置1において、取得部141は、プレイヤが操作部12に接触している接触位置を所定時間間隔で取得してよい。また、移動方向は、取得部141が最後に取得した接触位置の、その直前に取得した接触位置を基準とする方向であってよい。このようにすることで、プレイヤは、ゲーム媒体を移動させたい方向に接触位置を変化させることでゲーム媒体を移動させることができるようになり、より直感的な操作が可能となる。 Also, the terminal device 1 according to the present invention may include an operation unit 12 that detects contact by the player. In addition, in the terminal device 1 according to the present invention, the acquisition unit 141 may acquire the contact position where the player touches the operation unit 12 at predetermined time intervals. Further, the movement direction may be a direction based on the contact position acquired immediately before the last contact position acquired by the acquiring unit 141 as a reference. By doing so, the player can move the game medium by changing the contact position in the direction in which the player wants to move the game medium, and a more intuitive operation becomes possible.

また、本発明に係る端末装置1において、表示制御部144は、複数の経路が所定条件を満たすと判定された場合、所定条件を満たすと判定された経路のうち、経路コストが最も小さい経路に従ってゲーム媒体外移動するように、ゲーム媒体の表示を制御してよい。このようにすることで、同一方向に複数の目的位置が存在する場合、ゲーム媒体は、最も近い目的位置に移動するようになるため、移動時間を小さくすることができる。 Further, in the terminal device 1 according to the present invention, when it is determined that a plurality of routes satisfy the predetermined condition, the display control unit 144 follows the route having the lowest route cost among the routes determined to satisfy the predetermined condition. The display of game media may be controlled to move out of the game media. By doing so, when there are a plurality of target positions in the same direction, the game medium moves to the closest target position, so that the movement time can be shortened.

また、本発明に係る端末装置1において、算出部142は、ゲーム媒体の位置との関係が所定関係である目的位置への経路を算出してよい。このようにすることで、経路の算出に要する計算処理の負荷を抑えることができる。 In addition, in the terminal device 1 according to the present invention, the calculation unit 142 may calculate a route to the target position having a predetermined relationship with the position of the game content. By doing so, it is possible to reduce the load of calculation processing required for route calculation.

また、本発明に係る、記憶部11と、仮想空間内に位置するゲーム媒体を表示する表示部13と、を備える端末装置1の制御方法は、仮想空間における所定位置に関する情報を記憶部11に記憶することを含む。また、本発明に係る制御方法は、プレイヤによる、移動方向を含む移動指示を取得することを含む。また、本発明に係る制御方法は、仮想空間内のゲーム媒体の位置から目的位置への経路を算出することを含む。また、本発明に係る制御方法は、算出された経路が移動方向に関する所定条件を満たすか否かを判定することを含む。また、本発明に係る制御方法は、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が所定位置まで移動するように、ゲーム媒体の表示を制御することを含む。このような構成を備えることにより、本発明に係る制御方法は、プレイヤによるキャラクタの操作を支援することを可能とする。 Further, according to the control method of the terminal device 1 provided with the storage unit 11 and the display unit 13 for displaying the game content positioned in the virtual space, information about a predetermined position in the virtual space is stored in the storage unit 11. Including memorizing. Also, the control method according to the present invention includes obtaining a movement instruction including a movement direction from the player. Also, the control method according to the present invention includes calculating a route from the position of the game medium in the virtual space to the target position. Also, the control method according to the present invention includes determining whether or not the calculated route satisfies a predetermined condition regarding the movement direction. Further, the control method according to the present invention includes controlling the display of game media such that the game media moves to a predetermined position along the route when it is determined that the route satisfies a predetermined condition. By providing such a configuration, the control method according to the present invention makes it possible to assist the player's operation of the character.

また、本発明に係る、記憶部11と、仮想空間内に位置するゲーム媒体を表示する表示部13と、を備える端末装置1の制御プログラムは、仮想空間における所定位置に関する情報を記憶部11に記憶することを含むことを端末装置1に実行させる。また、本発明に係る制御方法は、プレイヤによる、移動方向を含む移動指示を取得することを含むことを端末装置1に実行させる。また、本発明に係る制御方法は、仮想空間内のゲーム媒体の位置から目的位置への経路を算出することを含むことを端末装置1に実行させる。また、本発明に係る制御方法は、算出された経路が移動方向に関する所定条件を満たすか否かを判定することを含むことを端末装置1に実行させる。また、本発明に係る制御方法は、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が所定位置まで移動するように、ゲーム媒体の表示を制御することを含むことを端末装置1に実行させる。このような構成を備えることにより、本発明に係る制御プログラムは、プレイヤによるキャラクタの操作を支援することを可能とする。 Further, according to the present invention, the control program of the terminal device 1 that includes the storage unit 11 and the display unit 13 that displays the game content positioned in the virtual space stores information about a predetermined position in the virtual space in the storage unit 11. Cause the terminal device 1 to perform the step including storing. Also, the control method according to the present invention causes the terminal device 1 to acquire a movement instruction including a movement direction from the player. In addition, the control method according to the present invention causes the terminal device 1 to calculate a route from the position of the game medium in the virtual space to the target position. Also, the control method according to the present invention causes the terminal device 1 to determine whether or not the calculated route satisfies a predetermined condition regarding the moving direction. Further, the control method according to the present invention includes controlling the display of the game content so that the game content moves to a predetermined position along the route when it is determined that the route satisfies a predetermined condition. to execute. With such a configuration, the control program according to the present invention can assist the player in operating the character.

(変形例1)
上述した説明において、算出部142は、ゲーム媒体の位置からの仮想空間における距離が所定距離以下である目的位置を抽出するものとしたが、これに限られない。例えば、算出部142は、経路算出用グラフにおいて、ゲーム媒体の位置からすべての目的位置への経路と経路コストとを算出した後に、経路コストが所定値以下である目的位置を抽出してよい。また、リンクのコストとしてリンクの長さ以外の値を用いている場合、算出部142は、経路に含まれるリンクの長さの合計値が所定値以下である目的位置を抽出してよい。
(Modification 1)
In the above description, the calculation unit 142 extracts the target position whose distance in the virtual space from the position of the game medium is equal to or less than a predetermined distance, but the present invention is not limited to this. For example, the calculating unit 142 may extract the target positions whose route costs are equal to or less than a predetermined value after calculating the routes from the position of the game media to all the target positions and the route costs in the route calculation graph. Moreover, when a value other than the length of the link is used as the cost of the link, the calculation unit 142 may extract the destination position where the total value of the lengths of the links included in the route is equal to or less than a predetermined value.

また、多角形領域は、複数の領域グループの何れかに関連付けられてよい。そして、算出部142は、ゲーム媒体の位置が含まれる多角形領域が関連付けられた領域グループに関連付けられた多角形領域に含まれる目的位置を抽出してよい。この場合、記憶部11は、領域テーブル1010において、多角形領域ごとに、領域グループを識別するための識別情報を関連付けて記憶する。そして、算出部142は、ゲーム媒体の位置を含む多角形領域を特定した後、領域テーブル1010を参照し、特定された多角形領域に関連付けられた領域グループの識別情報を取得する。続いて、算出部142は、取得した領域グループの識別情報に関連付けられた他の多角形領域の領域ID1011を取得する。続いて、算出部142は、目的位置テーブル1020を参照して、取得した領域ID1023に関連付けられた目的位置の目的位置ID1021を取得することで、目的位置を抽出する。このようにすることで、ゲーム媒体が自動的に移動できる目的位置と自動的に移動できない目的位置を柔軟に設定することが可能となる。 Also, a polygonal region may be associated with any of a plurality of region groups. Then, the calculation unit 142 may extract the target position included in the polygonal area associated with the area group associated with the polygonal area including the position of the game medium. In this case, the storage unit 11 stores, in the area table 1010, the identification information for identifying the area group in association with each polygonal area. Then, after identifying the polygonal area including the position of the game medium, the calculation unit 142 refers to the area table 1010 and acquires the identification information of the area group associated with the identified polygonal area. Subsequently, the calculation unit 142 acquires the region ID 1011 of another polygonal region associated with the acquired identification information of the region group. Subsequently, the calculation unit 142 extracts the target position by referring to the target position table 1020 and acquiring the target position ID 1021 of the target position associated with the acquired area ID 1023 . By doing so, it is possible to flexibly set the target position to which the game medium can be automatically moved and the target position to which the game medium cannot be automatically moved.

(変形例2)
上述した説明では、表示制御部144は、経路に従って移動しているゲーム媒体が目的位置に到達する前に障害物オブジェクトに接触した場合、ゲーム媒体が停止するようにゲーム媒体の表示を制御するものとしたが、これに限られない。例えば、ゲーム媒体は、障害物オブジェクトに接触しないようにしてもよい。
(Modification 2)
In the above description, the display control unit 144 controls the display of the game media so that the game media stop when the game media moving along the path contacts the obstacle object before reaching the target position. However, it is not limited to this. For example, the game media may avoid contact with obstacle objects.

この場合、記憶部11は、移動可能領域から障害物オブジェクトを中心とした所定範囲の領域を除いた領域を分割した複数の多角形領域を記憶する。これにより、経路に従って移動しているゲーム媒体は、目的位置に到達する前に障害物オブジェクトに接触しないようになる。 In this case, the storage unit 11 stores a plurality of polygonal areas obtained by dividing an area excluding a predetermined area around the obstacle object from the movable area. As a result, the game medium moving along the path does not come into contact with the obstacle object before reaching the target position.

また、障害物オブジェクトの種類に応じて、ゲーム媒体が障害物オブジェクトに接触するか否かが異なるように設定されてもよい。例えば、障害物オブジェクトには、ゲーム媒体と接触することで対戦ゲームが開始される敵ゲーム媒体と、ゲーム媒体と接触することでイベントが開始されるNPC(ノンプレイヤキャラクタ)とが含まれてよい。そして、記憶部11は、移動可能領域からNPCである障害物オブジェクトを中心とした所定範囲の領域を除いた領域を分割した複数の多角形領域を記憶する。これにより、経路に従って移動しているゲーム媒体は、目的位置に到達する前にNPCである障害物オブジェクトに接触せず、敵ゲーム媒体である障害物オブジェクトには接触し得るようになる。そして、プレイヤは、移動指示を入力することによって、NPCとのイベントを省略しつつ敵ゲーム媒体との対戦ゲームを楽しむことができる。また、経路に従って移動しているゲーム媒体は、敵ゲーム媒体である障害物オブジェクトに接触せず、NPCである障害物オブジェクトには接触し得るように設定されてもよい。これにより、プレイヤは、対戦ゲームを省略しつつNPCとのイベントを楽しむことができる。 Further, whether or not the game medium contacts the obstacle object may be set differently depending on the type of the obstacle object. For example, the obstacle object may include an enemy game medium with which a battle game is started by coming into contact with the game medium, and an NPC (non-player character) with which an event is started by coming into contact with the game medium. . Then, the storage unit 11 stores a plurality of polygonal areas obtained by dividing an area excluding a predetermined area around the NPC obstacle object from the movable area. As a result, the game medium moving along the path does not come into contact with the obstacle object that is the NPC before reaching the target position, but can come into contact with the obstacle object that is the enemy game medium. By inputting movement instructions, the player can enjoy a battle game against enemy game media while omitting events with NPCs. Also, the game media moving along the path may be set so as not to contact obstacle objects that are enemy game media, but to be able to contact obstacle objects that are NPCs. Thereby, the player can enjoy the event with the NPC while omitting the battle game.

(変形例3)
上述した説明では、経路を構成する要素経路のうち、ゲーム媒体の位置と接続する要素経路である第1要素経路の方向と移動指示に含まれる移動方向とがなす角の大きさが所定角度以下であるときに経路が所定条件を満たすと判定したが、これに限られない。所定条件を満たすか否かは、第1要素経路と、プレイヤが入力した移動指示との乖離度が所定値以下であるか否かによって判定されてもよい。
(Modification 3)
In the above description, the angle formed by the direction of the first element path, which is the element path connecting to the position of the game medium and the movement direction included in the movement instruction, among the element paths constituting the path is a predetermined angle or less. Although it is determined that the route satisfies the predetermined condition when , the present invention is not limited to this. Whether or not a predetermined condition is satisfied may be determined based on whether or not the degree of divergence between the first element path and the movement instruction input by the player is equal to or less than a predetermined value.

この場合、端末装置1の取得部141は、操作位置と移動方向とに代わり、取得した一連の入力位置を含む移動指示を取得する。端末装置1の判定部143は、第1要素経路を表す線分と、取得した一連の入力位置のそれぞれの座標との距離を算出する。続いて、判定部143は、算出されたそれぞれの距離を平均することで、乖離度を算出する。続いて、判定部143は、乖離度が所定値以下であるか否かを判定することによって、経路が所定条件を満たすか否かを判定する。これにより、ゲーム媒体は、プレイヤが入力した移動指示に含まれる入力位置に沿って最初に移動するようになるため、プレイヤにとってより直感的な操作が実現する。 In this case, the acquisition unit 141 of the terminal device 1 acquires a movement instruction including a series of acquired input positions instead of the operation position and the movement direction. The determination unit 143 of the terminal device 1 calculates the distance between the line segment representing the first element path and the coordinates of each of the acquired series of input positions. Subsequently, the determination unit 143 calculates the degree of divergence by averaging the calculated distances. Subsequently, the determination unit 143 determines whether the route satisfies a predetermined condition by determining whether the degree of divergence is equal to or less than a predetermined value. As a result, since the game content initially moves along the input position included in the movement instruction input by the player, a more intuitive operation for the player is realized.

なお、乖離度は上述の方法に限らず、任意の方法で算出されてよい。例えば、乖離度は、第1要素経路を表す線分と、取得した一連の入力位置のそれぞれの座標との距離の合計値であってもよい。また、判定部143は、ゲーム媒体の位置と接続する要素経路を表す線分と、取得した一連の入力位置のそれぞれの座標との距離のうち、値が小さい又は大きい所定数の距離を抽出し、それらの平均値又は合計値を乖離度としてもよい。 Note that the degree of divergence is not limited to the method described above, and may be calculated by any method. For example, the degree of divergence may be the sum of the distances between the line segment representing the first element path and the coordinates of each of the acquired series of input positions. Further, the determining unit 143 extracts a predetermined number of distances with small or large values from among the distances between the line segment representing the element path connecting the position of the game medium and the coordinates of each of the acquired series of input positions. , their average value or total value may be used as the degree of divergence.

また、所定条件を満たすか否かは、第1要素経路と、プレイヤが入力した移動指示との一致度が所定値以上であるか否かによって判定されてもよい。一致度は、例えば、第1要素経路に対応するベクトルとプレイヤが入力した移動指示に対応するベクトルとの内積であってよい。第1要素経路に対応するベクトルは、例えば、第1要素経路の2つの端点のうち、ゲーム媒体の位置である一方の端点を始点とし、他方の端点を終点とするベクトルである。プレイヤが入力した移動指示に対応するベクトルは、例えば、移動指示に含まれる入力位置のうち最後に取得された入力位置を終点とし、その直前に取得された入力位置を始点とするベクトルである。移動指示に対応するベクトルは、他の入力位置に基づいて定められるベクトルであってもよい。 Further, whether or not the predetermined condition is satisfied may be determined by whether or not the degree of matching between the first element path and the movement instruction input by the player is equal to or greater than a predetermined value. The degree of matching may be, for example, the inner product of the vector corresponding to the first element path and the vector corresponding to the movement instruction input by the player. The vector corresponding to the first element path is, for example, a vector starting at one of the two endpoints of the first element path, which is the position of the game medium, and ending at the other endpoint. The vector corresponding to the movement instruction input by the player is, for example, a vector whose end point is the input position obtained last among the input positions included in the movement instruction and whose starting point is the input position obtained immediately before that. A vector corresponding to the movement instruction may be a vector determined based on other input positions.

また、判定部143は、算出された経路のうち、経路を構成する第1要素経路と移動指示との乖離度が最も小さい経路、又は、経路を構成する第1要素経路と移動指示との一致度が最も大きい経路のみを所定条件を満たす経路と判定してもよい。 In addition, the determining unit 143 determines the path having the smallest degree of divergence between the first element path forming the route and the movement instruction, or the match between the first element path forming the route and the movement instruction. Only the route with the highest degree may be determined as the route that satisfies the predetermined condition.

(変形例4)
上述した説明では、移動指示に含まれる移動方向は、最後に取得した入力位置の、その直前に取得した入力位置に対する方向としたが、これに限られない。例えば、移動方向は、最後に取得した入力位置の、最初に取得した入力位置に対する方向であってもよい。また、移動方向は、取得した一連の入力位置に基づいて算出された直線の方向であってもよい。この場合、算出される直線は、例えば、取得した一連の入力位置の座標との距離(又は、距離の二乗など、距離に基づく値)の合計値が最小となる直線であってよい。
(Modification 4)
In the above description, the movement direction included in the movement instruction is the direction of the last acquired input position relative to the immediately preceding input position, but is not limited to this. For example, the movement direction may be the direction of the last acquired input position relative to the first acquired input position. Alternatively, the movement direction may be a linear direction calculated based on a series of acquired input positions. In this case, the calculated straight line may be, for example, a straight line that minimizes the sum of the distances (or a distance-based value such as the square of the distance) to the coordinates of the series of acquired input positions.

これにより、プレイヤが操作部12に対する接触を終了する直前に操作を誤った場合であっても、プレイヤの意図しない方向にゲーム媒体が移動する可能性を低下させ、プレイヤの意に沿った操作を実現する。 As a result, even if the player makes a mistake in the operation just before finishing touching the operation unit 12, the possibility of the game medium moving in a direction not intended by the player is reduced, and the operation can be performed in accordance with the player's intention. Realize.

(変形例5)
上述した説明では、複数の経路が移動方向に関する所定条件を満たすと判定された場合、表示制御部144は、経路コストが最も小さい経路に従ってゲーム媒体が移動するようにゲーム媒体の表示を制御したが、これに限られない。例えば、経路を構成する第1要素経路と移動方向とがなす角の大きさが所定角度以下である経路が複数存在する場合、表示制御部144は、角の大きさが最も小さい経路に従ってゲーム媒体が移動するようにゲーム媒体の表示を制御してよい。
(Modification 5)
In the above description, the display control unit 144 controls the display of the game media so that the game media move along the route with the lowest route cost when it is determined that a plurality of routes satisfy the predetermined condition regarding the movement direction. , but not limited to this. For example, if there are a plurality of paths in which the angle formed by the first element path and the moving direction forming the path is equal to or less than a predetermined angle, the display control unit 144 causes the game media to be displayed in accordance with the path having the smallest angle. may control the display of the game media such that the

このようにすることで、ゲーム媒体は、移動指示に含まれる移動方向との差が最も小さくなるような経路に従って移動することとなるため、プレイヤにとってより直感的な操作が実現する。 By doing so, the game content moves along a path that minimizes the difference from the direction of movement included in the movement instruction, so that a more intuitive operation for the player is realized.

(変形例6)
また、判定部143は、経路を構成する第1要素経路の方向と移動指示に含まれる移動方向とがなす角の大きさが所定角度以下であるか否かを判定する際、経路ごとに異なる所定角度を定めてもよい。例えば、判定部143は、経路コストが大きいほど、所定角度が大きくなるように所定角度を定めてもよい。また、判定部143は、ゲーム媒体の位置と経路によって到達する目的位置との仮想空間内における距離が大きいほど、所定角度が大きくなるように所定角度を定めてもよい。また、判定部143は、第1要素経路の長さが長いほど、所定角度が大きくなるように所定角度を定めてもよい。
(Modification 6)
In addition, the determination unit 143 determines whether or not the angle formed by the direction of the first element path configuring the path and the movement direction included in the movement instruction is equal to or less than a predetermined angle. A predetermined angle may be defined. For example, the determination unit 143 may determine the predetermined angle such that the greater the route cost, the greater the predetermined angle. Further, the determination unit 143 may determine the predetermined angle such that the greater the distance in the virtual space between the position of the game medium and the target position reached by the route, the greater the predetermined angle. Further, the determination unit 143 may determine the predetermined angle such that the longer the length of the first element path, the larger the predetermined angle.

プレイヤが遠方の目的位置にゲーム媒体を移動させようとする場合、プレイヤにとって最短経路を予測するのが困難となるため、移動指示に含まれる移動方向と第1要素経路の方向とが異なりやすい。上述したように判定部143を構成することで、遠方の目的位置にゲーム媒体を移動させる場合であっても、第1要素経路と移動方向とがなす角の大きさが所定角度以下となりやすくなるため、プレイヤは容易に遠方の目的位置にゲーム媒体を移動させることが可能となる。 When the player tries to move the game medium to a distant target position, it is difficult for the player to predict the shortest path, so the movement direction included in the movement instruction and the direction of the first element path tend to differ. By configuring the determination unit 143 as described above, even when the game medium is moved to a distant target position, the size of the angle formed by the first element path and the movement direction tends to be less than or equal to a predetermined angle. Therefore, the player can easily move the game medium to a distant target position.

(変形例7)
なお、本発明は、端末装置とサーバ装置との協働によって提供されてもよい。この場合、端末装置1は、通信部を備え、サーバ装置と通信可能に接続される。そして、端末装置1における機能の一部は、サーバ装置によって提供される。例えば、端末装置1の処理部14は、プレイヤによる移動指示に対応する信号を取得し、通信部を介してサーバ装置に送信する。そして、サーバ装置は、受信した移動指示に応じてゲーム媒体が移動するように表示する表示データを生成し、端末装置1に送信する。そして、端末装置1の処理部14は、表示部13を制御して、受信した表示データに基づいてゲーム媒体が移動するように表示する。このようにすることで、端末装置1の処理能力によらず、本発明に係るゲームを提供することができる。
(Modification 7)
Note that the present invention may be provided by cooperation between a terminal device and a server device. In this case, the terminal device 1 includes a communication unit and is communicably connected to the server device. Some of the functions of the terminal device 1 are provided by the server device. For example, the processing unit 14 of the terminal device 1 acquires a signal corresponding to the player's movement instruction, and transmits the signal to the server device via the communication unit. Then, the server device generates display data for displaying the game content to move according to the received movement instruction, and transmits the display data to the terminal device 1 . Then, the processing unit 14 of the terminal device 1 controls the display unit 13 to display the game media so as to move based on the received display data. By doing so, the game according to the present invention can be provided regardless of the processing capability of the terminal device 1 .

当業者は、本発明の精神および範囲から外れることなく、様々な変更、置換及び修正をこれに加えることが可能であることを理解されたい。例えば、本発明の精神および範囲において、上述した各部の機能は、適宜に結合又は分割されてよい。また、上述した各部の処理は、異なる順序で行われてもよい。また、上述した実施形態及び変形例は、適宜に組み合わせて実施されてもよい。 It should be understood by those skilled in the art that various changes, substitutions and modifications can be made thereto without departing from the spirit and scope of the present invention. For example, the functions of each part described above may be combined or divided as appropriate within the spirit and scope of the present invention. Further, the processing of each unit described above may be performed in a different order. Also, the above-described embodiments and modifications may be implemented in appropriate combinations.

Claims (11)

仮想空間内に位置するゲーム媒体を表示する表示部と、
前記仮想空間における所定位置に関する情報を記憶する記憶部と、
プレイヤによる、移動方向を含む移動指示を取得する取得部と、
記仮想空間内の前記ゲーム媒体の位置から前記所定位置への、一又は複数の要素経路から構成される経路を算出する算出部と、
前記移動方向と前記経路を構成する前記要素経路のうち前記ゲーム媒体の位置と接続する前記要素経路の方向とがなす角度が所定条件を満たすか否かを判定する判定部と、
前記角度が所定条件を満たすと判定された場合、前記経路に従って前記ゲーム媒体が前記所定位置まで移動するように、前記ゲーム媒体の表示を制御し、前記角度が所定条件を満たさないと判定された場合、前記ゲーム媒体が前記移動方向に移動するように、前記ゲーム媒体の表示を制御する表示制御部と、
を備える、端末装置。
a display unit that displays game media located in a virtual space;
a storage unit that stores information about a predetermined position in the virtual space;
an acquisition unit that acquires a movement instruction including a movement direction from a player;
a calculation unit that calculates a path composed of one or more element paths from the position of the game medium in the virtual space to the predetermined position;
a determination unit that determines whether or not an angle formed by the moving direction and the direction of the element path connecting to the position of the game medium among the element paths constituting the path satisfies a predetermined condition;
If it is determined that the angle satisfies a predetermined condition, the display of the game medium is controlled so that the game medium moves to the predetermined position along the route, and it is determined that the angle does not satisfy the predetermined condition. a display control unit that controls display of the game media so that the game media moves in the moving direction;
A terminal device.
前記記憶部は、前記仮想空間内における前記ゲーム媒体の移動可能領域に関する情報を記憶し、the storage unit stores information about a movable area of the game medium in the virtual space;
前記算出部は、前記移動可能領域内の複数の前記要素経路と各要素経路のパラメータとに基づいて、前記経路を算出する、請求項1に記載の端末装置。2. The terminal device according to claim 1, wherein said calculation unit calculates said route based on a plurality of said element routes within said movable area and parameters of each element route.
前記要素経路のパラメータは、前記要素経路の長さに所定係数を乗じた値である、請求項に記載の端末装置。 3. The terminal device according to claim 2 , wherein the parameter of said element path is a value obtained by multiplying the length of said element path by a predetermined coefficient. 記算出部は、前記経路を構成する一又は複数の前記要素経路のパラメータの合計に応じた前記経路を算出する、請求項に記載の端末装置。 4. The terminal device according to claim 3 , wherein said calculation unit calculates said route according to a sum of parameters of said one or more element routes constituting said route. 前記所定係数に対応する前記要素経路に従って前記ゲーム媒体が移動すると前記プレイヤにとって不利なゲーム効果が生じるような場合、所定値よりも大きい値が前記所定係数として設定され、
前記算出部は、前記経路を構成する一又は複数の前記要素経路のパラメータの合計が最小の前記経路を算出する、請求項に記載の端末装置。
If the game medium moves along the element path corresponding to the predetermined coefficient, a game effect disadvantageous to the player is produced, a value larger than a predetermined value is set as the predetermined coefficient,
5. The terminal device according to claim 4 , wherein said calculation unit calculates said route with a minimum sum of parameters of said one or more element routes constituting said route.
前記プレイヤにとって不利なゲーム効果は、前記ゲーム媒体のパラメータの減少、前記ゲーム媒体の移動速度の減少、及び前記ゲーム媒体と敵ゲーム媒体との接触、のうちの少なくとも一のゲーム効果である、請求項に記載の端末装置。 The game effect disadvantageous to the player is at least one of a decrease in a parameter of the game medium, a decrease in movement speed of the game medium, and contact between the game medium and an enemy game medium. Item 6. The terminal device according to item 5 . 前記所定係数に対応する前記要素経路に従って前記ゲーム媒体が移動すると前記プレイヤにとって有利なゲーム効果が生じるような場合、所定値よりも小さい値が前記所定係数として設定され、
前記算出部は、前記経路を構成する一又は複数の前記要素経路のパラメータの合計が最小の前記経路を算出する、請求項4~6のいずれか一項に記載の端末装置。
When the game content moves along the element path corresponding to the predetermined coefficient to produce a game effect advantageous to the player, a value smaller than a predetermined value is set as the predetermined coefficient,
7. The terminal device according to any one of claims 4 to 6 , wherein said calculation unit calculates said route with a minimum sum of parameters of said one or more elemental routes constituting said route.
前記プレイヤにとって有利なゲーム効果は、前記ゲーム媒体のパラメータの増加、前記ゲーム媒体の移動速度の増加、及び第1ゲーム媒体の獲得、のうちの少なくとも一のゲーム効果である、請求項に記載の端末装置。 8. The game effect of claim 7 , wherein the game effect beneficial to the player is at least one of an increase in a parameter of the game medium, an increase in movement speed of the game medium, and acquisition of a first game medium. terminal equipment. 前記算出部は、前記移動可能領域を複数の多角形領域に分割し、前記複数の多角形領域のそれぞれの頂点間の線分を前記要素経路とする、請求項2~8のいずれか一項に記載の端末装置。 9. The calculation unit according to any one of claims 2 to 8 , wherein the movable area is divided into a plurality of polygonal areas, and line segments between respective vertices of the plurality of polygonal areas are used as the element paths. The terminal device described in . 記憶部と、仮想空間内に位置するゲーム媒体を表示する表示部と、を備える端末装置の制御方法であって、
前記仮想空間における所定位置に関する情報を前記記憶部に記憶し、
プレイヤによる、移動方向を含む移動指示を取得し、
記仮想空間内の前記ゲーム媒体の位置から前記所定位置への、一又は複数の要素経路から構成される経路を算出し、
前記移動方向と前記経路を構成する前記要素経路のうち前記ゲーム媒体の位置と接続する前記要素経路の方向とがなす角度が所定条件を満たすか否かを判定し、
前記角度が所定条件を満たすと判定された場合、前記経路に従って前記ゲーム媒体が前記所定位置まで移動するように、前記ゲーム媒体の表示を制御し、
前記角度が所定条件を満たさないと判定された場合、前記ゲーム媒体が前記移動方向に移動するように、前記ゲーム媒体の表示を制御する、
ことを含む、制御方法。
A control method for a terminal device comprising a storage unit and a display unit for displaying game media positioned in a virtual space,
storing information about a predetermined position in the virtual space in the storage unit;
Acquire movement instructions including the direction of movement from the player,
calculating a path composed of one or more element paths from the position of the game medium in the virtual space to the predetermined position;
determining whether an angle formed by the movement direction and the direction of the element path connecting to the position of the game medium among the element paths constituting the path satisfies a predetermined condition;
controlling display of the game media so that the game media moves to the predetermined position along the path when it is determined that the angle satisfies a predetermined condition;
controlling the display of the game medium so that the game medium moves in the direction of movement when it is determined that the angle does not satisfy a predetermined condition;
control method, including
記憶部と、仮想空間内に位置するゲーム媒体を表示する表示部と、を備える端末装置の制御プログラムであって、
前記仮想空間における所定位置に関する情報を前記記憶部に記憶し、
プレイヤによる、移動方向を含む移動指示を取得し、
記仮想空間内の前記ゲーム媒体の位置から前記所定位置への、一又は複数の要素経路から構成される経路を算出し、
前記移動方向と前記経路を構成する前記要素経路のうち前記ゲーム媒体の位置と接続する前記要素経路の方向とがなす角度が所定条件を満たすか否かを判定し、
前記角度が所定条件を満たすと判定された場合、前記経路に従って前記ゲーム媒体が前記所定位置まで移動するように、前記ゲーム媒体の表示を制御し、
前記角度が所定条件を満たさないと判定された場合、前記ゲーム媒体が前記移動方向に移動するように、前記ゲーム媒体の表示を制御する、
ことを前記端末装置に実行させる、制御プログラム。
A control program for a terminal device comprising a storage unit and a display unit for displaying game media located in a virtual space,
storing information about a predetermined position in the virtual space in the storage unit;
Acquire movement instructions including the direction of movement from the player,
calculating a path composed of one or more element paths from the position of the game medium in the virtual space to the predetermined position;
determining whether an angle formed by the movement direction and the direction of the element path connecting to the position of the game medium among the element paths constituting the path satisfies a predetermined condition;
controlling display of the game media so that the game media moves to the predetermined position along the path when it is determined that the angle satisfies a predetermined condition;
controlling the display of the game medium so that the game medium moves in the direction of movement when it is determined that the angle does not satisfy a predetermined condition;
A control program that causes the terminal device to execute:
JP2021097184A 2019-06-18 2021-06-10 Terminal device, control method and control program Active JP7177218B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2021097184A JP7177218B2 (en) 2019-06-18 2021-06-10 Terminal device, control method and control program
JP2022180072A JP7442106B2 (en) 2019-06-18 2022-11-10 Terminal device, control method and control program
JP2024017807A JP2024036642A (en) 2019-06-18 2024-02-08 Terminal device, control method, and control program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019112873A JP6898385B2 (en) 2018-10-22 2019-06-18 Terminal device, control method and control program
JP2021097184A JP7177218B2 (en) 2019-06-18 2021-06-10 Terminal device, control method and control program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2019112873A Division JP6898385B2 (en) 2018-10-22 2019-06-18 Terminal device, control method and control program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2022180072A Division JP7442106B2 (en) 2019-06-18 2022-11-10 Terminal device, control method and control program

Publications (2)

Publication Number Publication Date
JP2021142354A JP2021142354A (en) 2021-09-24
JP7177218B2 true JP7177218B2 (en) 2022-11-22

Family

ID=77765522

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2021097184A Active JP7177218B2 (en) 2019-06-18 2021-06-10 Terminal device, control method and control program
JP2022180072A Active JP7442106B2 (en) 2019-06-18 2022-11-10 Terminal device, control method and control program
JP2024017807A Pending JP2024036642A (en) 2019-06-18 2024-02-08 Terminal device, control method, and control program

Family Applications After (2)

Application Number Title Priority Date Filing Date
JP2022180072A Active JP7442106B2 (en) 2019-06-18 2022-11-10 Terminal device, control method and control program
JP2024017807A Pending JP2024036642A (en) 2019-06-18 2024-02-08 Terminal device, control method, and control program

Country Status (1)

Country Link
JP (3) JP7177218B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009056181A (en) 2007-08-31 2009-03-19 Sega Corp Game machine
JP4262217B2 (en) 2005-04-26 2009-05-13 任天堂株式会社 GAME PROGRAM AND GAME DEVICE
JP2015029520A (en) 2013-07-31 2015-02-16 株式会社 ディー・エヌ・エー Game program and information processing device
JP2016059554A (en) 2014-09-17 2016-04-25 株式会社Pgユニバース Information processing device, information processing method and program
JP2017051493A (en) 2015-09-10 2017-03-16 株式会社バンダイナムコエンターテインメント Program and game system
JP6185123B1 (en) 2016-08-18 2017-08-23 グリー株式会社 Program, control method, and information processing apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007014457A (en) * 2005-07-06 2007-01-25 Sega Corp Video game control program and video game apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4262217B2 (en) 2005-04-26 2009-05-13 任天堂株式会社 GAME PROGRAM AND GAME DEVICE
JP2009056181A (en) 2007-08-31 2009-03-19 Sega Corp Game machine
JP2015029520A (en) 2013-07-31 2015-02-16 株式会社 ディー・エヌ・エー Game program and information processing device
JP2016059554A (en) 2014-09-17 2016-04-25 株式会社Pgユニバース Information processing device, information processing method and program
JP2017051493A (en) 2015-09-10 2017-03-16 株式会社バンダイナムコエンターテインメント Program and game system
JP6185123B1 (en) 2016-08-18 2017-08-23 グリー株式会社 Program, control method, and information processing apparatus

Also Published As

Publication number Publication date
JP2021142354A (en) 2021-09-24
JP7442106B2 (en) 2024-03-04
JP2024036642A (en) 2024-03-15
JP2023015259A (en) 2023-01-31

Similar Documents

Publication Publication Date Title
US10828568B2 (en) Game system, etc. performing path finding of non-player character on the basis of movement history of player
JP5480347B2 (en) Video game processing apparatus and video game processing program
JP5745559B2 (en) Video game processing apparatus and video game processing program
JP4262217B2 (en) GAME PROGRAM AND GAME DEVICE
JP4125760B2 (en) Video game processing apparatus, video game processing method, and video game processing program
JP4651604B2 (en) Video game processing apparatus and video game processing program
JP4358181B2 (en) GAME PROGRAM AND GAME DEVICE
JP2018027231A (en) Program, control method, and information processing apparatus
JP2017051493A (en) Program and game system
JP2017119043A (en) Game control device and program
JP6898385B2 (en) Terminal device, control method and control program
JP6545345B1 (en) Terminal device, control method and control program
JP7177218B2 (en) Terminal device, control method and control program
JP2005245858A (en) Game program
JP2006158862A (en) Game device, computer control method and program
JP6166191B2 (en) Video game processing apparatus and video game processing program
JP2012192134A (en) Video game processing apparatus and video game processing program
JP2022017478A (en) Program, game control method and information processor
US12083431B2 (en) Terminal apparatus, control method, and control program
JP2017064092A (en) Program, game control method and information processor
JP4979659B2 (en) GAME PROGRAM, GAME DEVICE, GAME SYSTEM, AND GAME PROCESSING METHOD
JP6731267B2 (en) Program, control method, and information processing device
JP7502646B2 (en) Terminal device, control program, information processing device, and server device program
JP2017159149A (en) Video game processing device, and video game processing program
JP6712237B2 (en) Program, game control method, and information processing device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210610

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210610

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220607

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220805

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221110

R150 Certificate of patent or registration of utility model

Ref document number: 7177218

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150