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

Terminal device, control method and control program Download PDF

Info

Publication number
JP6545345B1
JP6545345B1 JP2018198565A JP2018198565A JP6545345B1 JP 6545345 B1 JP6545345 B1 JP 6545345B1 JP 2018198565 A JP2018198565 A JP 2018198565A JP 2018198565 A JP2018198565 A JP 2018198565A JP 6545345 B1 JP6545345 B1 JP 6545345B1
Authority
JP
Japan
Prior art keywords
game medium
terminal device
player
unit
display
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
JP2018198565A
Other languages
Japanese (ja)
Other versions
JP2020065604A (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
Application filed by GREE Inc filed Critical GREE Inc
Priority to JP2018198565A priority Critical patent/JP6545345B1/en
Priority to JP2019112873A priority patent/JP6898385B2/en
Application granted granted Critical
Publication of JP6545345B1 publication Critical patent/JP6545345B1/en
Priority to US16/658,300 priority patent/US11628362B2/en
Publication of JP2020065604A publication Critical patent/JP2020065604A/en
Priority to US18/183,456 priority patent/US20230219001A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

【課題】直感的な操作により、プレイヤによるキャラクタの操作を支援する。【解決手段】本発明に係る端末装置は、仮想空間内に位置するゲーム媒体を表示する表示部と、仮想空間における所定位置に関する情報を記憶する記憶部と、プレイヤによる、移動方向を含む移動指示を取得する取得部と、仮想空間内のゲーム媒体の位置から所定位置への経路を算出する算出部と、算出された経路が移動方向に関する所定条件を満たすか否かを判定する判定部と、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が所定位置まで移動するように、ゲーム媒体の表示を制御する表示制御部と、を備える。【選択図】図1An object of the present invention is to support a player's operation of a character by an intuitive operation. A terminal device according to the present invention includes a display unit for displaying a game medium located in a virtual space, a storage unit for storing information on a predetermined position in the virtual space, and a movement instruction including a movement direction by a player. An acquisition unit for acquiring the information, a calculation unit for calculating a route from the position of the game medium in the virtual space to a predetermined position, a determination unit for determining whether the calculated route satisfies the predetermined condition regarding the movement direction, A display control unit that controls display of the game medium so that the game medium moves to a predetermined position according to the path when it is determined that the path satisfies the predetermined condition; [Selected figure] Figure 1

Description

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

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

このようなゲームでは、プレイヤは、所定の目的位置までキャラクタを操作することによって、敵キャラクタと遭遇し、又は、イベントを発生させる。そして、目的位置を所定の順序で訪れることによってゲームが進行する。このようなプレイヤによるキャラクタの操作を支援する方法として、特許文献1には、プレイヤが指定した目的位置までキャラクタを自動的に移動させる移動制御方法が記載されている。   In such a game, the player encounters an enemy character or generates an event by operating the character to a predetermined target position. Then, the game progresses by visiting the target position in a predetermined order. As a method of supporting such a player's operation of a character, Patent Document 1 describes a movement control method of automatically moving a 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 Document 1, the player specifies a target position in order to move the character to the target position. However, the operation of designating the target position is difficult for the player to be an intuitive operation as compared with the operation of designating the moving direction and moving the character. Further, in the movement control method described in Patent Document 1, in order to specify the target position, the player needs to grasp the target position in advance. However, the player does not have an accurate knowledge of the target position, for example, when the player has never visited the target position or when the player knows only the direction of the target position but does not know the correct position. There was a case. In such a case, the player can not specify the target position, and the movement control method described in Patent Document 1 can not support the operation of the character by the player.

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

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

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

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

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

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

また、本発明に係る端末装置において、表示制御部は、経路に従って移動しているゲーム媒体が所定位置に到達する前に停止した場合、プレイヤに移動指示の入力を促す情報を表示部に表示する、ことが好ましい。   Further, 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 medium moving along the route stops before reaching the predetermined position. Is preferred.

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

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

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

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

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

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

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

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

以下、図面を参照しつつ、本発明の様々な実施形態について説明する。ただし、本発明の技術的範囲はそれらの実施形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶ点に留意されたい。   Hereinafter, various embodiments of the present invention will 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 the equivalents thereof.

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

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

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

目的位置は、プレイヤがゲーム媒体を操作して到達させるべき仮想空間における位置を表す。目的位置は、例えば、敵ゲーム媒体の位置、又は、イベントが発生する位置である。目的位置は、ゲーム媒体のパラメータを変更させるためのパラメータ変更位置、仮想空間内に設けられた通路の分岐点、仮想空間内に設けられたモニュメント等のオブジェクトの設置位置であってもよい。また、目的位置は、仮想空間内においてゲーム媒体が到達可能な任意の位置であってもよい。目的位置は、プレイヤによって任意に設定可能であってよい。また、目的位置は、ゲームの進行状況に応じて新たに追加されたり、削除されたりしてもよい。   The target position represents a position in the virtual space to be reached by the player 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 the parameter of the game medium, 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 can be reached by the game medium in the virtual space. The target position may be arbitrarily set by the player. In addition, the destination position may be newly added or deleted according to the progress of the game.

ゲーム媒体が目的位置に到達することによって、プレイヤは、敵ゲーム媒体との対戦ゲームや、その他のイベントを進行することができる。なお、図1の(1)に示す例では、目的位置が表示されているが、端末装置は、目的位置を表示しなくてもよい。なお、目的位置は、所定位置の一例である。   When the game medium reaches the target position, the player can progress a battle game with the enemy game medium and other events. Although the target position is displayed in the example illustrated in (1) of FIG. 1, the terminal device may not display the target position. 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 by the player ((2) in FIG. 1). The movement instruction is an instruction for automatically moving the game medium to the target position. Also, the movement direction is a direction input by the player, which the game medium should move first to reach the target position. That is, the movement instruction including the movement direction is an instruction for moving the game medium to the target position in the virtual space. In the example illustrated in (2) of FIG. 1, the movement instruction including the movement direction is acquired by the terminal device by the player touching the operation unit that is the touch panel and performing an operation to change the contact position. .

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

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

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

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

(端末装置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.

端末装置1は、多機能携帯電話(所謂「スマートフォン」)等の通信端末であってよい。端末装置1は、携帯電話(所謂「スマートフォン」)、携帯情報端末(Personal Digital Assistant,PDA)、タブレット端末又はタブレットPC(Personal Computer)等であってよい。端末装置1は、携帯ゲーム機、携帯音楽プレイヤ又はノートPC等であってよい。   The terminal device 1 may be a communication terminal such as a multi-function mobile phone (so-called "smart phone"). The terminal device 1 may be a mobile phone (a so-called “smart phone”), 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 progressed by the player operating the character. To that end, 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, a semiconductor memory device such as a read only memory (ROM) or a random access memory (RAM). 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 program stored in the storage unit 11 is an input device driver program that controls the operation unit 12 and an output device driver program that controls the display unit 13. The application program stored in the storage unit 11 is a control program or the like that controls the progress of the game. The data stored in the storage unit 11 is various data (for example, information on a game medium, etc.) used at the time of execution of the game. In addition, the storage unit 11 may temporarily store data related to a predetermined process.

操作部12は、タッチパネル等のポインティングデバイスである。なお、操作部12は、入力キー等でもよい。プレイヤは、操作部12を用いて、文字、数字及び記号、若しくは、表示部13の表示画面上の位置等を入力することができる。操作部12は、プレイヤにより操作されると、その操作に対応する信号を発生する。そして、発生した信号は、プレイヤの指示として、処理部14に供給される。   The operation unit 12 is a pointing device such as a touch panel. 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, or a position on the display screen of the display unit 13 or the like. When operated by the player, the operation unit 12 generates a signal corresponding to the operation. Then, the generated signal is supplied to the processing unit 14 as an instruction of 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 according to the video data supplied from the processing unit 14, an image according 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 operating according to a computer program, one or more dedicated hardware circuits executing at least a part of various processes, or a combination thereof. It can be configured. The processing unit 14 controls the overall operation of the terminal device 1 in an integrated manner, and is, for example, a CPU (Central Processing Unit). The processing unit 14 executes various information processing according to an appropriate procedure based on the program stored in the storage unit 11 and various instructions input according to the operation of the operation unit 12 by the player, etc. Control the operation. The processing unit 14 executes various information processing based on the operating system program, the driver program, and the 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, with reference to FIG.4 and FIG.5, an example of the various screens displayed on the display part 13 of the terminal device 1 is demonstrated.

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

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

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

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

例えば、目的位置412は、敵ゲーム媒体が配置された位置であってよい。この場合、ゲーム媒体411が目的位置412に到達すると、図示しない敵ゲーム媒体との対戦ゲーム画面が表示され、プレイヤは、敵ゲーム媒体との対戦ゲームをプレイすることができる。また、例えば、目的位置412は、イベントの発生位置として設定された位置であってよい。この場合、ゲーム媒体411が目的位置412に到達すると、図示しないイベント画面が表示され、プレイヤは、イベントに対応するシナリオを閲覧することができる。   For example, the target position 412 may be a position where an enemy game medium is placed. 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 view a scenario corresponding to the event.

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

移動可能領域413は、仮想空間内においてゲーム媒体411が移動することができる領域である。移動可能領域413は、プレイヤのゲームの進行状況に応じてその形状が変化するように設定されてよい。例えば、所定のイベントが発生したことに応じて、移動可能領域413が広がり、ゲーム媒体411が新たな目的位置412に到達できるように設定されてよい。これにより、プレイヤは、適切な順序でゲームを進行することができるようになる。   The movable area 413 is an area where the game medium 411 can move in the virtual space. The movable area 413 may be set to change its shape in accordance with the progress of the game of the player. For example, in response to the occurrence of a predetermined event, the movable area 413 may expand, and the game medium 411 may be set to reach the new destination position 412. This allows the player to progress 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 a player to input a manual operation instruction for operating the game medium 411. When the player operates the operation unit 12 and inputs an input position in the display area of the operation instruction object 414, the terminal device 1 acquires a manual operation instruction including a direction according to the input position as the operation direction. The terminal device 1 having acquired the manual operation instruction controls the display of the game medium 411 so that the game medium 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 operate the game medium 411 manually with the operation instruction object 414.

なお、以降では、プレイヤが操作部12を操作し、オブジェクトの表示領域内を入力位置とする入力をすることを、プレイヤがオブジェクトを選択すると称することがある。   Hereinafter, when the player operates the operation unit 12 and makes an input position in the display area of the object, the player may be referred to as selecting 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 the 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 having acquired the menu screen display instruction displays a menu screen (not shown). The menu screen displays information useful for the player to advance the game. For example, the menu screen displays information on the game medium 411, information on the position of the game medium 411, information on the target position, information on the movable area 413, information on the progress of the game, and the like.

図4(b)は、端末装置1の表示部13に表示されるフィールド画面420の一例を示す図である。フィールド画面420は、フィールド画面410において、端末装置1が移動方向を含む移動指示を取得した場合に表示される画面である。なお、上述した説明と同一の構成については同一の符号を付し、説明を省略する。また、移動方向を含む移動指示は、例えば、プレイヤがタッチパネルである操作部12に接触し、その接触位置を変化させる操作をすることによって、端末装置1によって取得される。移動方向を含む移動指示の詳細は後述する。   FIG. 4B is a view showing an example of the field screen 420 displayed on the display unit 13 of the terminal device 1. The field screen 420 is a screen displayed on the field screen 410 when the terminal device 1 acquires a movement instruction including the movement direction. The same components as those described above are denoted by the same reference numerals, and the description thereof is omitted. Further, the movement instruction including the movement direction is acquired by the terminal device 1 by, for example, the player touching the operation unit 12 which is a touch panel and performing an operation of changing the contact 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 movement instruction acquisition effect 421. The movement instruction acquisition effect 421 is a display effect indicating that the movement instruction input by the player is 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 illustrated in FIG. 4B, the movement instruction acquisition effect 421 displays the movement direction by an arrow. Thereby, the player can confirm whether the input movement instruction has been acquired by the terminal device 1 or not. Also, the player can confirm which movement direction the input movement instruction includes. Then, the player can recognize early that the game medium 411 moves to the target position not intended by the player due to the player's erroneous operation.

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

図5(a)は、端末装置1の表示部13に表示されるフィールド画面510の一例を示す図である。フィールド画面510は、端末装置1が、経路に従ってゲーム媒体411が目的位置412まで移動するように、ゲーム媒体411の表示を制御している場合に表示される画面である。   FIG. 5A is a view showing an example of the field screen 510 displayed on the display unit 13 of the terminal device 1. The field screen 510 is a screen displayed when the display of the game medium 411 is controlled such that the terminal device 1 moves the game medium 411 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 the movement direction is input on the field screen 420, the terminal device 1 calculates a path from the position of the game medium 411 to the target position 412. Subsequently, the terminal device 1 determines whether the calculated route satisfies the predetermined condition regarding the moving direction. Subsequently, when it is determined that the path satisfies the predetermined condition, the terminal device 1 controls the display of the game medium 411 so that the game medium 411 moves to the target position 412 along the path. Details of the process of calculating the route by the terminal device 1 and the process of determining whether or not the predetermined condition is satisfied 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 a route display effect 511. The route display effect 511 is a display effect of displaying at least a part of the route determined to satisfy the predetermined condition in the virtual space. The route display effect 511 is displayed when the game medium 411 moves to the target position along the route. Thereby, the player can confirm that the game medium 411 is moving toward the target position. In addition, the player can confirm which path the game medium 411 is moving.

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

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

また、ゲーム媒体411が経路に従って移動している場合であっても、端末装置1は、新たに移動方向を含む移動指示を取得することができる。この場合、端末装置1は、移動指示が入力された時点におけるゲーム媒体411の位置から目的位置412のそれぞれに対応する経路を算出する。続いて、フィールド画面420において移動指示が入力された場合と同様の処理を行う。これにより、プレイヤは、ゲーム媒体411が目的位置412に移動しているときに他の目的位置412にゲーム媒体411を移動させたくなった場合に、簡易な操作でゲーム媒体411を他の目的位置412に移動させることができる。   In addition, even when the game medium 411 moves along the route, the terminal device 1 can newly acquire a movement instruction including the movement direction. In this case, the terminal device 1 calculates a route corresponding to each of the target positions 412 from the position of the game medium 411 at the time when the movement instruction is input. Subsequently, the same processing as in the case where the movement instruction is input on the field screen 420 is performed. As a result, when it is desired for the player to move the game medium 411 to another target position 412 while the game medium 411 is moved to the target position 412, the player can easily move the game medium 411 to another target position. It can be moved to 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 view showing an example of the field screen 520 displayed on the display unit 13 of the terminal device 1. The field screen 520 is a screen displayed on the field screen 510 when the game medium 411 moving along the route contacts the obstacle object before reaching the target position 412. It should be noted that with the movement of the game medium 411, the field screen 520 includes an image obtained by projecting a three-dimensional virtual space at a viewpoint position that is different from the field screen 510 and in the vicinity of the game medium 411. The obstacle object is, for example, an enemy game medium. When the game medium 411 moving along the route contacts the obstacle object before reaching the target position 412, the terminal device 1 controls the display of the game medium 411 so that the game medium 411 stops. The case where the game medium 411 contacts the obstacle object includes the case where the game medium 411 is included in a predetermined range from the obstacle object.

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

なお、経路に従って移動しているゲーム媒体411が目的位置に到達する前に敵ゲーム媒体である障害物オブジェクト521に接触した場合、敵ゲーム媒体との対戦ゲームが開始されてよい。対戦ゲームは、端末装置1の表示部13に図示しない対戦ゲーム画面が表示されることによって進行されてもよく、フィールド画面520において進行されてもよい。この場合、対戦ゲームが終了した後に、端末装置1は、ゲーム媒体411が停止するように、ゲーム媒体411の表示を制御する。   When the game medium 411 moving along the route contacts the obstacle object 521 which is the enemy game medium before reaching the target position, the battle game with the enemy game medium may be started. The battle game may be progressed by displaying a battle 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, after the match game is over, the terminal device 1 controls the display of the game medium 411 so that the game medium 411 is stopped.

また、移動指示入力指示効果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 a movement direction, a direction on a route that has been moving immediately before the game medium 411 stops. For example, the movement instruction input instruction effect 522 may be a display effect including an arrow pointing a direction on a path which has been moved immediately before the game medium 411 stops. Thereby, the player can recognize the moving direction in which the game medium 411 can reach the desired target position. When the game medium 411 stops at a position not on the route, the direction indicated by the movement instruction input instructing effect 522 may be a direction for the game medium 411 to return to the position on the route. When the game medium 411 is stopped at a position not on the route, for example, the game medium 411 contacts the obstacle object 521, and the game game 411 is started on the route by starting the battle game, an event, etc. When moving from the position of.

(端末装置が移動指示を取得する処理の説明)
以下では、図6及び図7を参照して、端末装置1がプレイヤによる移動指示を取得する処理について説明する。
(Description of the process in which the terminal device acquires the movement instruction)
Below, with reference to FIG.6 and FIG.7, the process in 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 view of the terminal device 1 with the operation unit 12 at the top, viewed from the side. FIG. 6B is a schematic view of the terminal device 1 with the operation unit 12 at the top, as viewed from the top. Below, when the operation part 12 is a touch panel, an example of a process which the terminal device 1 acquires the movement instruction | indication by a player is demonstrated using FIG. 6 (a) and FIG.6 (b).

まず、端末装置1は、操作部12が、プレイヤの操作部12に対する接触を検出したか否かを判定する。図6(a)に示した例では、プレイヤは、操作部12の位置611aに接触している。したがって、端末装置1は、操作部12が、プレイヤの操作部12に対する接触を検出したと判定する。   First, the terminal device 1 determines whether the operation unit 12 has detected a touch on the operation unit 12 of the player. In the example shown in FIG. 6A, the player is in contact with the position 611 a of the operation unit 12. Therefore, the terminal device 1 determines that the operation unit 12 detects a touch on the operation unit 12 of 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 detects a touch, the terminal device 1 sets the contact position where the player is in contact with the operation unit 12 as an input position at predetermined time intervals (for example, 1/30 seconds). get. In the example shown in FIG. 6A, the player changes the contact position from the position 611a to the position 611d. Then, the terminal device 1 acquires the position 611a, the position 611b, the position 611c, and the position 611d, which are touched by the player 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 the operation unit 12 has detected the end of the touch on the operation unit 12 by the player. In the example shown in FIG. 6A, after the player touches the position 611d of the operation unit 12, the touch ends. Therefore, after acquiring the position 611 d as the input position, the terminal device 1 determines that the operation unit 12 has detected the end of the contact of the player with the operation unit 12.

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

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

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

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

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

このようにすることで、プレイヤは、移動指示に含まれる操作位置の座標に応じて異なるゲーム操作を入力することができ、端末装置1は、多様性なゲーム操作を提供することが可能となる。なお、操作位置の座標が横側領域711cに含まれないと判定された場合、端末装置1は、操作指示を視点移動指示として取得してもよい。視点移動指示を取得した端末装置1は、移動指示に含まれる移動方向に応じて、視点位置及び視線方向の少なくとも何れかが移動するようにフィールド画面の表示を変更する。   By doing this, 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. . When it is determined that the coordinates of the operation position are not included in the horizontal area 711c, the terminal device 1 may acquire the operation instruction as a 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 sight line direction moves according to the movement direction included in the movement instruction.

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

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

図8(a)は、端末装置1が、移動可能領域413を分割する処理の一例を示す図である。また、図8(b)は、端末装置1が、経路算出用グラフを生成し、経路算出用グラフにおいて、ゲーム媒体411の位置から目的位置への経路を算出する処理の一例を示す図である。   FIG. 8A is a diagram illustrating an example of processing in which the terminal device 1 divides the movable area 413. FIG. 8B is a diagram showing an example of a process 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 having acquired the movement instruction specifies a polygon area including the position of the game medium 411 among the plurality of polygon areas obtained by dividing the movable area 413. In the example shown in FIG. 8A, the terminal device 1 is a polygonal area including the position of the game medium in the polygonal area 413a to the polygonal area 413e obtained by dividing the movable area 413. I have identified.

なお、移動可能領域413を分割した複数の多角形領域は、あらかじめ記憶部11に記憶されていてもよく、移動指示に含まれる操作位置の座標が所定範囲内であると判定されたことに応じて端末装置1によって算出されてもよい。例えば、端末装置1は、ドロネー(Delaunay)のアルゴリズム等の公知のアルゴリズムを用いて、移動可能領域413を分割した複数の多角形領域を算出してよい。   Note that the plurality of polygonal areas obtained by dividing the movable area 413 may be stored in advance in the storage unit 11, and it is determined that the coordinates of the operation position included in the movement instruction are within the predetermined range. It may be calculated by the terminal device 1. For example, the terminal device 1 may calculate a plurality of polygon 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 a target position 412 having a predetermined relation with the position of the game medium 411 among the target positions 412. For example, the predetermined relationship with the position of the game medium 411 means that the distance from the position of the game medium 411 in the virtual space is equal to or less than a predetermined distance. In the example shown in FIG. 8A, it is assumed that the target position 412a and the target position 412b are extracted as a target position 412 having a predetermined relation with the position of the game medium 411.

続いて、端末装置1は、抽出された目的位置412のそれぞれを含む多角形領域を特定する。図8(a)に示す例では、多角形領域413bが、目的位置412aを含む多角形領域として特定されている。また、多角形領域413cが、目的位置412bを含む多角形領域として特定されている。   Subsequently, the terminal device 1 specifies a polygon area including each of the extracted target positions 412. In the example shown in FIG. 8A, the polygon area 413b is specified as a polygon area including the target position 412a. In addition, the polygon area 413c is specified as a polygon 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 path calculation graph including a plurality of nodes and at least one link connecting the plurality of nodes. The nodes of the path calculation graph include the position of the game medium, the target position, and the vertices of a plurality of polygon areas. In the example shown in FIG. 8B, the nodes of the route calculation graph correspond to the vertexes 822 of the polygonal areas 413a to 413e, the node 823 corresponding to the position of the game medium 411, and the target position 412a and the target position 412b. Node 824 a and node 824 b. Further, the links for the route calculation graph are a straight line connecting the sides of a plurality of polygon areas, the vertexes of the polygon area including the position of the game medium or the target position, and the node corresponding to the position or the target position of the game medium including. In the example shown in FIG. 8B, the links for the route calculation graph correspond to the sides of the polygon areas 413a to 413e, the vertices of the polygon area 413a including the position of the game medium 411, and the position of the game medium 411. And a straight line connecting the node 823. Similarly, the link of the path calculation graph includes a straight line connecting the vertex of the polygonal area 413b and the node 824a, and a straight line connecting the vertex of the polygonal area 413c and the node 824b. As described above, by setting the route calculation graph as a graph including only the target position extracted as a node, it is possible to suppress the load of calculation processing required to calculate the route.

続いて、端末装置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 path to each of the target position 412 extracted from the position of the game medium 411. 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 Dijkstra's algorithm or A * algorithm. In the example illustrated in FIG. 8B, the terminal device 1 includes a path 825a from the node 823 corresponding to the position of the game medium 411 to the node 824a corresponding to the target position 412a, and a node corresponding to the target position 412b from the node 823. The path 825 b to 824 b is calculated.

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

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

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

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

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

(経路が所定条件を満たすか否かを端末装置が判定する処理の説明)
以下、図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 processing in which the terminal device determines whether or not the route satisfies the predetermined condition)
Hereinafter, the process of the terminal device 1 determining whether or not the calculated route satisfies the predetermined condition regarding the moving direction will be described using FIG. 9. FIG. 9 is a diagram showing the calculated route and movement direction displayed on the field screen 910. FIG. 9 shows a field screen 910, a moving direction 911, a path 912a from the position of the game medium to the target position 412a, and a path 912b from the position of the game medium to the target position 412b. The path 912a includes an element path 912a1 connected to the position of the game medium and an element path 912a2 connected to the element path 912a1. The path 912 b includes an element path 912 b 1 connected to the position of the game medium and an element path 912 b 2 connected to the element path 912 b 1. Here, the element path means a straight portion constituting the path, and corresponds to one link in the path calculation graph. Also, in the following, among the element paths constituting the path, an element path connected to the position of the game medium is referred to as a first element path. In the example shown in FIG. 9, among the element paths constituting the path 912a, the first element path is the element path 912a1. Further, among the element paths constituting the path 912b, the first element path is an element path 912b1. The moving direction 911, the path 912 a and the path 912 b are illustrated for the purpose of explanation, and may not be displayed on the field screen 910.

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

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

続いて、端末装置1は、角の大きさが所定角度以下であると判定された経路に従ってゲーム媒体が目的位置まで移動するように、ゲーム媒体の表示を制御する。これにより、移動指示に含まれる移動方向とゲーム媒体が最初に移動する方向との差が小さくなり、直感的な操作が可能となる。   Subsequently, the terminal device 1 controls the display of the game medium so that the game medium moves to the target position along the route determined that the size of the corner is equal to or less 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 first moves is reduced, and intuitive operation is possible.

なお、複数の経路が、移動方向と第1要素経路の方向とがなす角の大きさが所定角度以下であると判定された場合、端末装置1は、経路コストが最も小さい経路に従ってゲーム媒体が目的位置まで移動するように、ゲーム媒体411の表示を制御する。これにより、同一方向に複数の目的位置が存在する場合、ゲーム媒体411は、最も近い目的位置に移動するようになるため、移動時間を小さくすることができる。   When it is determined that the size of the angle formed by the moving direction and the direction of the first element path is less than or equal to the predetermined angle, the terminal device 1 follows the path with the smallest path cost. The display of the game medium 411 is controlled to move to the target position. Thus, 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 moving time can be reduced.

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

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

図10(a)は、多角形領域に関する情報を管理する領域テーブル1010のデータ構造の一例を示す図である。領域テーブル1010には、領域ID1011、頂点1012、及び、隣接領域ID1013等が関連付けて記憶されている。   FIG. 10A is a view showing an example of the data structure of the area table 1010 that manages information on polygonal areas. In the area table 1010, an area ID 1011, a vertex 1012, an adjacent area ID 1013 and the like are stored 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 polygon area. The vertex 1012 is information that can uniquely identify the vertex of the polygon area. In the example shown in FIG. 10A, the vertex 1012 is the coordinates of the vertex of the polygon area. In the example shown in FIG. 10A, three coordinates are stored in the vertex 1012. That is, in the example shown in FIG. 10A, the polygonal area is a triangle. Further, in the example shown in FIG. 10A, the coordinates of each vertex are described in a two-dimensional coordinate system, but may be described in a three-dimensional coordinate system or may be described in another coordinate system. . The adjacent area ID 1013 is identification information of another polygon area adjacent to the polygon area. Adjacent polygon areas refer to polygon areas sharing at least one side.

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

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

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

図3に示されるように、処理部14は、取得部141と、算出部142と、判定部143と、表示制御部144とをその機能ブロックとして備える。これらの各部は、処理部14が備えるプロセッサで実行されるプログラムにより実現される機能モジュールである。これらの各部は、ファームウェアとして端末装置1に実装されてもよい。   As illustrated 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 its functional blocks. Each of these units is a functional module realized by a program executed by a processor included in the processing unit 14. These units may be mounted on the terminal device 1 as firmware.

取得部141は、プレイヤによる、移動方向を含む移動指示を取得する。例えば、取得部141は、操作部12が、プレイヤの操作部12に対する接触を検出したか否かを判定する。接触を検出したと判定された場合、取得部141は、プレイヤが操作部12に接触している接触位置を所定時間間隔で入力位置として取得する。   The acquisition unit 141 acquires a movement instruction from the player including the movement direction. For example, the acquisition unit 141 determines whether the operation unit 12 has detected a touch on the operation unit 12 of the player. When it is determined that the contact is detected, the acquisition unit 141 acquires the contact position where the player is in contact with 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 the operation unit 12 has detected the end of the touch on the operation unit 12 by the player. If it is determined that the end of the touch is detected, the acquisition unit 141 determines whether the input position acquired last and the input position acquired immediately before it are separated by a predetermined distance or more. When it is determined that the predetermined distance or more is left, the acquisition unit 141 acquires an operation instruction. The operation instruction includes, as coordinates of the operation position, position coordinates of the input position acquired at first in the operation unit 12. In addition, the operation instruction includes, as a movement direction, a direction with respect to the input position acquired immediately before the input position acquired last.

続いて、取得部141は、操作指示に含まれる操作位置の座標が所定範囲内であるか否かを判定する。操作位置の座標が所定範囲内でないと判定された場合、取得部141は、操作指示を移動指示として取得する。操作位置の座標が所定範囲内であると判定された場合、取得部141は、移動指示を取得しない。なお、操作位置の座標が所定範囲内であると判定された場合、取得部141は、操作指示を視点移動指示として取得してよい。   Subsequently, the acquisition 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 an 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. In addition, 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 a viewpoint movement instruction.

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

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

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

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

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

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

表示制御部144は、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が目的位置まで移動するように、ゲーム媒体の表示を制御する。例えば、表示制御部144は、ゲーム媒体が移動方向に向かって歩行しているような画像を表示するための表示データを表示部13に供給することによって、ゲーム媒体の表示を制御する。   When it is determined that the path satisfies the predetermined condition, the display control unit 144 controls display of the game medium so that the game medium moves to the target position along the path. For example, the display control unit 144 controls the display of the game medium by supplying the display unit 13 with display data for displaying an image such that the game medium is 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 a part of the route in the virtual space. For example, the display control unit 144 may display, in the virtual space, only a part of the route from the current position of the game medium 411 to the target position 412.

また、表示制御部144は、複数の経路が所定条件を満たすと判定された場合、所定条件を満たすと判定された経路のうち、経路コストが最も小さい経路に従ってゲーム媒体が移動するように、ゲーム媒体の表示を制御する。   In addition, when it is determined that the plurality of routes satisfy the predetermined condition, the display control unit 144 causes the game medium to move along the route having the smallest 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 medium so that the game medium is stopped when the game medium moving along the route contacts the obstacle object before reaching the target position.

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

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

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

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

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

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

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

まず、端末装置1の記憶部11は、仮想空間における目的位置に関する情報を記憶する(S1101)。続いて、端末装置1の表示部13は、仮想空間内に位置するゲーム媒体を表示する(S1103)。続いて、端末装置1の取得部141は、移動指示取得処理を実行する(S1105)。移動指示取得処理の詳細は後述する。続いて、端末装置1の算出部142は、経路算出処理を実行する(S1107)。経路算出処理の詳細は後述する。   First, the storage unit 11 of the terminal device 1 stores information on a target position in the virtual space (S1101). Subsequently, the display unit 13 of the terminal device 1 displays the game medium located in the virtual space (S1103). Subsequently, the acquisition unit 141 of the terminal device 1 executes a movement instruction acquisition process (S1105). Details of the movement instruction acquisition process will be described later. Subsequently, the calculation unit 142 of the terminal device 1 executes a route calculation process (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 an angle between the movement direction included in the movement instruction and the direction of the first element path connected to the position of the game medium among the element paths constituting the calculated path. It is determined whether or not the size of is smaller than a predetermined angle (S1109). If it is determined that the size of the corner 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 medium to move the game medium along the route (S1111). ). Subsequently, the display control unit 144 determines whether the game medium moving along the route 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 route 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. If it is determined that the size of the corner is not less than the predetermined angle (S1109-N), the display control unit 144 controls the display of the game medium so that the game medium travels 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 the movement instruction acquisition process in the terminal device 1. First, the acquisition unit 141 of the terminal device 1 determines whether the operation unit 12 has detected a touch on the operation unit 12 of the player (S1201). If it is determined that the contact is not detected (S1201-N), the process proceeds to S1201. When it is determined that the contact is detected (S1201-Y), the acquisition unit 141 acquires a contact position where the player is in contact with the operation unit as an input position at predetermined time intervals (S1203). Subsequently, the acquisition unit 141 determines whether the operation unit 12 has detected the end of the contact of the player with the operation unit 12 (S1205). If it is determined that the end of the touch is not detected (S1205-N), the process proceeds to S1203. When it is determined that the end of the touch is detected (S1205-Y), the acquisition unit 141 determines whether the input position acquired last and the input position acquired immediately before it are separated by a predetermined distance or more. (S1207). If it is determined that the user is separated by a predetermined distance or more (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 predetermined distance is not exceeded (S1207-N), the process proceeds to S1201. Subsequently, the acquisition unit 141 determines whether the coordinates of the operation position included in the operation instruction are within a predetermined range (S1211). If it is determined that the coordinates of the operation position are not within the predetermined range (S1211-N), the acquisition unit 141 acquires an operation instruction as a movement instruction (S1213), and ends the series of processing. 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 flowchart showing an example of the flow of the route calculation process in the terminal device 1. First, the calculation unit 142 of the terminal device 1 specifies a polygon area including the position of the game medium (S1301). Subsequently, the calculation unit 142 extracts a target position having a predetermined relation with the position of the game medium 411 among the target positions (S1303). Subsequently, the calculation unit 142 specifies a polygon area including each of the extracted target positions (S1305). Subsequently, the calculation unit 142 generates a path calculation graph (S1307). Subsequently, the calculating unit 142 calculates the shortest path to each of the target positions extracted from the position of the game medium and the path cost for each path (S1309), and ends the series of processing.

以上説明したように、本発明に係る端末装置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 includes the display unit 13 that displays game media located in the virtual space. Moreover, the terminal device 1 which concerns on this invention is provided with the memory | storage part 11 which memorize | stores the information regarding the target position in virtual space. Moreover, the terminal device 1 which concerns on this invention is provided with the acquisition part 141 which acquires the movement instruction | indication which includes the movement direction by a player. The terminal device 1 according to the present invention further includes a calculation unit 142 that calculates a route from the position of the game medium in the virtual space to the target position. In addition, the terminal device 1 according to the present invention includes the determination unit 143 that determines whether the calculated route satisfies the predetermined condition regarding the moving direction. In addition, the terminal device 1 according to the present invention includes the display control unit 144 that controls the display of the game medium so that the game medium moves to the target position along the path when it is determined that the path satisfies the predetermined condition. By providing such a configuration, the terminal device 1 according to the present invention can support the player's operation of the character.

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

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

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

また、本発明に係る端末装置1において、表示制御部144は、経路が所定条件を満たすと判定された場合、経路の少なくとも一部を仮想空間に表示してよい。このようにすることで、プレイヤは、ゲーム媒体がこれから移動する経路を容易に確かめることができる。   In addition, in the terminal device 1 according to the present invention, the display control unit 144 may display at least a part of the route in the virtual space when it is determined that the route satisfies the predetermined condition. By doing this, the player can easily confirm the path along which the game medium 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 a move instruction by the player, when the game medium moving along the route stops before reaching the predetermined position. You may By doing this, the player can further recognize that the operation unit 12 has to be operated.

また、本発明に係る端末装置1は、プレイヤによる接触を検出する操作部12を備えてよい。また、本発明に係る端末装置1において、取得部141は、プレイヤが操作部12に接触している接触位置を所定時間間隔で取得してよい。また、移動方向は、取得部141が最後に取得した接触位置の、その直前に取得した接触位置を基準とする方向であってよい。このようにすることで、プレイヤは、ゲーム媒体を移動させたい方向に接触位置を変化させることでゲーム媒体を移動させることができるようになり、より直感的な操作が可能となる。   Moreover, the terminal device 1 which concerns on this invention may be equipped with the operation part 12 which detects the contact by a 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 is in contact with the operation unit 12 at predetermined time intervals. In addition, the movement direction may be a direction based on the contact position acquired immediately before the contact position acquired by the acquisition unit 141 last. By doing this, the player can move the game medium by changing the contact position in the direction in which the game medium is moved, 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 the plurality of routes satisfy the predetermined condition, the display control unit 144 follows the route having the smallest route cost among the routes determined to satisfy the predetermined condition. The display of the game medium may be controlled to move out of the game medium. By doing this, when there are a plurality of target positions in the same direction, the game medium moves to the closest target position, so the moving time can be reduced.

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

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

また、本発明に係る、記憶部11と、仮想空間内に位置するゲーム媒体を表示する表示部13と、を備える端末装置1の制御プログラムは、仮想空間における所定位置に関する情報を記憶部11に記憶することを含むことを端末装置1に実行させる。また、本発明に係る制御方法は、プレイヤによる、移動方向を含む移動指示を取得することを含むことを端末装置1に実行させる。また、本発明に係る制御方法は、仮想空間内のゲーム媒体の位置から目的位置への経路を算出することを含むことを端末装置1に実行させる。また、本発明に係る制御方法は、算出された経路が移動方向に関する所定条件を満たすか否かを判定することを含むことを端末装置1に実行させる。また、本発明に係る制御方法は、経路が所定条件を満たすと判定された場合、経路に従ってゲーム媒体が所定位置まで移動するように、ゲーム媒体の表示を制御することを含むことを端末装置1に実行させる。このような構成を備えることにより、本発明に係る制御プログラムは、プレイヤによるキャラクタの操作を支援することを可能とする。   Further, the control program of the terminal device 1 including the storage unit 11 and the display unit 13 for displaying the game medium located in the virtual space according to the present invention stores the information on the predetermined position in the virtual space in the storage unit 11 Having the terminal device 1 execute including including storing. In addition, the control method according to the present invention causes the terminal device 1 to execute acquisition of a movement instruction including the movement direction by the player. In addition, the control method according to the present invention causes the terminal device 1 to execute calculating the path from the position of the game medium in the virtual space to the target position. In addition, the control method according to the present invention causes the terminal device 1 to execute determining whether the calculated route satisfies the predetermined condition regarding the moving direction. In addition, the control method according to the present invention includes controlling the display of the game medium so that the game medium moves to the predetermined position along the path when it is determined that the path satisfies the predetermined condition. Make it run. By providing such a configuration, the control program according to the present invention can support the player's operation of 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, after calculating the route from the position of the game medium to all the target positions and the route cost in the route calculation graph, the calculation unit 142 may extract the target position having the route cost equal to or less than a predetermined value. In addition, when a value other than the link length is used as the cost of the link, the calculation unit 142 may extract a target 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 polygon 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 polygon area associated with the area group associated with the polygon area including the position of the game medium. In this case, the storage unit 11 stores, in the area table 1010, identification information for identifying an area group in association with each polygon area. Then, after specifying the polygon area including the position of the game medium, the calculation unit 142 refers to the area table 1010 and acquires identification information of the area group associated with the specified polygon area. Subsequently, the calculation unit 142 acquires the area ID 1011 of another polygon area associated with the acquired identification information of the area group. Subsequently, the calculation unit 142 extracts the target position by acquiring the target position ID 1021 of the target position associated with the acquired area ID 1023 with reference to the target position table 1020. By doing this, it is possible to flexibly set the target position where the game medium can move automatically and the target position where the game medium can not move automatically.

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

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

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

(変形例3)
上述した説明では、経路を構成する要素経路のうち、ゲーム媒体の位置と接続する要素経路である第1要素経路の方向と移動指示に含まれる移動方向とがなす角の大きさが所定角度以下であるときに経路が所定条件を満たすと判定したが、これに限られない。所定条件を満たすか否かは、第1要素経路と、プレイヤが入力した移動指示との乖離度が所定値以下であるか否かによって判定されてもよい。
(Modification 3)
In the above description, among the element paths constituting the path, the magnitude of the angle formed by the direction of the first element path which is the element path connecting with the position of the game medium and the movement direction included in the movement instruction is a predetermined angle or less When it is determined that the route satisfies the predetermined condition, it is not limited thereto. Whether or not the predetermined condition is satisfied may be determined based on whether or not the degree of deviation 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 respective coordinates of the acquired series of input positions. Subsequently, the determination unit 143 calculates the degree of deviation by averaging the calculated distances. Subsequently, the determination unit 143 determines whether or not the route satisfies the predetermined condition by determining whether the deviation degree is equal to or less than a predetermined value. As a result, the game medium first moves along the input position included in the movement instruction input by the player, so that a more intuitive operation for the player is realized.

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

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

また、判定部143は、算出された経路のうち、経路を構成する第1要素経路と移動指示との乖離度が最も小さい経路、又は、経路を構成する第1要素経路と移動指示との一致度が最も大きい経路のみを所定条件を満たす経路と判定してもよい。   In addition, the determination unit 143 determines, among the calculated routes, a route with the smallest divergence between the first element route forming the route and the movement instruction, or a match between the first element route forming the route and the movement instruction. Only the route with the largest 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 with respect to the input position acquired immediately before that, but it is not limited to this. For example, the movement direction may be the direction of the input position acquired last, with respect to the input position acquired first. In addition, the movement direction may be the direction of a straight line 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 total value of the distances from the coordinates of the acquired series of input positions (or a value based on the distance, such as the square of the distance).

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

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

このようにすることで、ゲーム媒体は、移動指示に含まれる移動方向との差が最も小さくなるような経路に従って移動することとなるため、プレイヤにとってより直感的な操作が実現する。   By doing this, the game medium moves along a path that minimizes the difference from the movement direction 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, when determining whether or not the size of the angle formed by the direction of the first element path forming the path and the movement direction included in the movement instruction is equal to or less than a predetermined angle, the determination unit 143 differs for each path. The predetermined angle may be determined. For example, the determination unit 143 may determine the predetermined angle so that the predetermined angle increases as the route cost increases. In addition, the determination unit 143 may determine the predetermined angle so that the predetermined angle increases as the distance in the virtual space between the position of the game medium and the target position reached by the route increases. Further, the determination unit 143 may determine the predetermined angle so that the predetermined angle increases as the length of the first element path increases.

プレイヤが遠方の目的位置にゲーム媒体を移動させようとする場合、プレイヤにとって最短経路を予測するのが困難となるため、移動指示に含まれる移動方向と第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 are likely to be different. 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 between the first element path and the movement direction is likely to be equal to or less than the 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 of 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. And a part of the function in the terminal device 1 is provided by the server apparatus. For example, the processing unit 14 of the terminal device 1 obtains a signal corresponding to the movement instruction by the player, and transmits the signal to the server device via the communication unit. Then, the server device generates display data to be displayed such that the game medium is moved 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 medium so as to move based on the received display data. By doing this, the game according to the present invention can be provided regardless of the processing capability of the terminal device 1.

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

Claims (10)

仮想空間内に位置するゲーム媒体を表示する表示部と、
前記仮想空間における所定位置に関する情報を記憶する記憶部と、
プレイヤによる、移動方向を含む移動指示を取得する取得部と、
前記仮想空間内の前記ゲーム媒体の位置から前記所定位置への、複数の要素経路から構成される経路を算出する算出部と、
前記移動方向と、前記ゲーム媒体の位置と接続する前記要素経路の方向とがなす角の大きさが所定角度以下であるか否かを判定する判定部と
前記角の大きさが所定角度以下であると判定された場合、前記経路に従って前記ゲーム媒体が前記所定位置まで移動するように、前記ゲーム媒体の表示を制御し、前記角の大きさが所定角度以下でないと判定された場合、前記ゲーム媒体が前記移動方向に移動するように、前記ゲーム媒体の表示を制御する表示制御部と、
を備える、端末装置。
A display unit for displaying game media located in the virtual space;
A storage unit storing information on a predetermined position in the virtual space;
An acquisition unit for acquiring a movement instruction including a movement direction by the player;
A calculation unit that calculates a path composed of a plurality of 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 the magnitude of an angle formed by the movement direction and the direction of the element path connected to the position of the game medium is equal to or less than a predetermined angle; If it is determined that there is, the display of the game medium is controlled such that the game medium moves to the predetermined position along the path, and if it is determined that the size of the corner is not less than the predetermined angle, the game A display control unit that controls display of the game medium so that the medium moves in the movement direction ;
A terminal device comprising
前記移動指示は、操作位置に関する情報を含み、
前記算出部は、前記操作位置に関する情報が所定範囲内である場合に、前記経路を算出しない、
請求項に記載の端末装置。
The movement instruction includes information on the operation position,
The calculation unit does not calculate the route when the information on the operation position is within a predetermined range.
The terminal device according to claim 1 .
前記表示制御部は、前記角の大きさが所定角度以下であると判定された場合、前記経路の少なくとも一部を前記仮想空間に表示する、
請求項1又は2に記載の端末装置。
The display control unit displays at least a part of the path in the virtual space when it is determined that the size of the corner is equal to or less than a predetermined angle .
The terminal device according to claim 1 or 2 .
前記表示制御部は、前記経路に従って移動している前記ゲーム媒体が前記所定位置に到達する前に停止した場合、プレイヤに前記移動指示の入力を促す情報を前記表示部に表示する、
請求項1〜の何れか一項に記載の端末装置。
The display control unit displays, on the display unit, information prompting the player to input the movement instruction when the game medium moving according to the path is stopped before reaching the predetermined position.
The terminal device according to any one of claims 1 to 3 .
プレイヤによる接触を検出する操作部を備え、
前記取得部は、プレイヤが前記操作部に接触している接触位置を所定時間間隔で取得し、
前記移動方向は、前記取得部が最後に取得した接触位置の、その直前に取得した接触位置を基準とする方向である、
請求項1〜の何れか一項に記載の端末装置。
An operation unit for detecting a touch by the player;
The acquisition unit acquires contact positions at which the player is in contact with the operation unit at predetermined time intervals,
The movement direction is a direction based on the contact position acquired immediately before the contact position acquired last by the acquisition unit.
The terminal device according to any one of claims 1 to 4 .
前記算出部は、前記ゲーム媒体の位置からの複数の経路と、複数の前記経路のそれぞれに係るパラメータとを算出する、
請求項1〜の何れか一項に記載の端末装置。
The calculation unit calculates a plurality of routes from the position of the game medium and parameters relating to each of the plurality of routes.
The terminal device according to any one of claims 1 to 5 .
前記表示制御部は、複数の前記経路について前記角の大きさが所定角度以下であると判定された場合、前記角の大きさが所定角度以下であると判定された経路のうち、前記パラメータが最も小さい経路に従って前記ゲーム媒体が移動するように、前記ゲーム媒体の表示を制御する、
請求項に記載の端末装置。
When it is determined that the size of the corner is less than or equal to a predetermined angle for a plurality of the paths, the display control unit determines that the parameter is one of the paths determined that the size of the corner is less than or equal to the predetermined angle. Controlling the display of the game medium such that the game medium moves along the smallest path,
The terminal device according to claim 6 .
前記算出部は、前記ゲーム媒体の位置との関係が所定関係である前記所定位置への経路を算出する、
請求項1〜の何れか一項に記載の端末装置。
The calculation unit calculates a route to the predetermined position, which has a predetermined relation with the position of the game medium.
The terminal device according to any one of claims 1 to 7 .
記憶部と、仮想空間内に位置するゲーム媒体を表示する表示部と、を備える端末装置の制御方法であって、
前記仮想空間における所定位置に関する情報を前記記憶部に記憶し、
プレイヤによる、移動方向を含む移動指示を取得し、
前記仮想空間内の前記ゲーム媒体の位置から前記所定位置への、複数の要素経路から構成される経路を算出し、
前記移動方向と、前記ゲーム媒体の位置と接続する前記要素経路の方向とがなす角の大きさが所定角度以下であるか否かを判定し、
前記角の大きさが所定角度以下であると判定された場合、前記経路に従って前記ゲーム媒体が前記所定位置まで移動するように、前記ゲーム媒体の表示を制御
前記角の大きさが所定角度以下でないと判定された場合、前記ゲーム媒体が前記移動方向に移動するように、前記ゲーム媒体の表示を制御する、
ことを含む、制御方法。
A control method of a terminal device, comprising: a storage unit; and a display unit for displaying a game medium located in a virtual space, the terminal device comprising:
Storing information on a predetermined position in the virtual space in the storage unit;
Obtain a movement instruction including the movement direction by the player,
Calculating a path composed of a plurality of element paths from the position of the game medium in the virtual space to the predetermined position;
It is determined whether or not the size of an angle formed by the movement direction and the direction of the element path connected to the position of the game medium is equal to or less than a predetermined angle .
If the magnitude of the angle is determined to be a predetermined angle or less, so that the game medium is moved to the predetermined position according to the route, control the display of the game medium,
When it is determined that the size of the corner is not equal to or less than a predetermined angle, the display of the game medium is controlled so that the game medium moves in the movement direction.
Control methods, 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 on a predetermined position in the virtual space in the storage unit;
Obtain a movement instruction including the movement direction by the player,
Calculating a path composed of a plurality of element paths from the position of the game medium in the virtual space to the predetermined position;
It is determined whether or not the size of an angle formed by the movement direction and the direction of the element path connected to the position of the game medium is equal to or less than a predetermined angle .
If the magnitude of the angle is determined to be a predetermined angle or less, so that the game medium is moved to the predetermined position according to the route, control the display of the game medium,
When it is determined that the size of the corner is not equal to or less than a predetermined angle, the display of the game medium is controlled so that the game medium moves in the movement direction.
A control program that causes the terminal device to execute including.
JP2018198565A 2018-10-22 2018-10-22 Terminal device, control method and control program Active JP6545345B1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2018198565A JP6545345B1 (en) 2018-10-22 2018-10-22 Terminal device, control method and control program
JP2019112873A JP6898385B2 (en) 2018-10-22 2019-06-18 Terminal device, control method and control program
US16/658,300 US11628362B2 (en) 2018-10-22 2019-10-21 Terminal apparatus, control method, and control program
US18/183,456 US20230219001A1 (en) 2018-10-22 2023-03-14 Terminal apparatus, control method, and control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018198565A JP6545345B1 (en) 2018-10-22 2018-10-22 Terminal device, control method and control program

Related Child 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

Publications (2)

Publication Number Publication Date
JP6545345B1 true JP6545345B1 (en) 2019-07-17
JP2020065604A JP2020065604A (en) 2020-04-30

Family

ID=67297534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018198565A Active JP6545345B1 (en) 2018-10-22 2018-10-22 Terminal device, control method and control program

Country Status (1)

Country Link
JP (1) JP6545345B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113559508A (en) * 2021-07-27 2021-10-29 网易(杭州)网络有限公司 Orientation prompting method, device, equipment and storage medium of virtual object

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5467168B1 (en) * 2013-07-31 2014-04-09 株式会社 ディー・エヌ・エー GAME PROGRAM AND INFORMATION PROCESSING DEVICE
JP5727655B1 (en) * 2014-09-17 2015-06-03 株式会社Pgユニバース Information processing apparatus, 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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113559508A (en) * 2021-07-27 2021-10-29 网易(杭州)网络有限公司 Orientation prompting method, device, equipment and storage medium of virtual object

Also Published As

Publication number Publication date
JP2020065604A (en) 2020-04-30

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
JP4358181B2 (en) GAME PROGRAM AND GAME DEVICE
US9901821B2 (en) Video game processing apparatus and video game processing program product
JP6185123B1 (en) Program, control method, and information processing apparatus
JP2008125536A (en) Video game processor and video game processing program
JP6206854B2 (en) GAME CONTROL DEVICE AND PROGRAM
JP2014161722A (en) Video game processing device and video game processing program
US9333419B2 (en) Information storage medium, game device, and server
JP2017051493A (en) Program and game system
JP5160680B1 (en) Image processing apparatus, image processing apparatus control method, and program
JP5953418B1 (en) Program, electronic apparatus, system and method for improving user input operability
JP6523111B2 (en) Program and game system
JP6545345B1 (en) Terminal device, control method and control program
US20230219001A1 (en) Terminal apparatus, control method, and control program
JP7442106B2 (en) Terminal device, control method and control program
JP6166191B2 (en) Video game processing apparatus and video game processing program
JP5325248B2 (en) Video game processing apparatus and video game processing program
JP6641041B2 (en) Display control program, display control method, and display control system
JP5933069B2 (en) Game providing device
JP2015061616A (en) Game program and game device
JP2017159149A (en) Video game processing device, and video game processing program
JP6480520B2 (en) Program, control method, and information processing apparatus
JP2009154023A (en) Game program and game machine
JP2017012732A (en) Program, control method and information processing device
JP5945355B1 (en) Program, control method, and information processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181022

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20181022

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20181212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190115

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190314

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190618

R150 Certificate of patent or registration of utility model

Ref document number: 6545345

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250