CN113262489A - Game route generation method, game route generation device, nonvolatile storage medium, and electronic device - Google Patents

Game route generation method, game route generation device, nonvolatile storage medium, and electronic device Download PDF

Info

Publication number
CN113262489A
CN113262489A CN202110466970.0A CN202110466970A CN113262489A CN 113262489 A CN113262489 A CN 113262489A CN 202110466970 A CN202110466970 A CN 202110466970A CN 113262489 A CN113262489 A CN 113262489A
Authority
CN
China
Prior art keywords
game
touch operation
game map
marking
mark
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.)
Pending
Application number
CN202110466970.0A
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110466970.0A priority Critical patent/CN113262489A/en
Publication of CN113262489A publication Critical patent/CN113262489A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • A63F13/5372Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for tagging characters, objects or locations in the game scene, e.g. displaying a circle under the character controlled by the player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/303Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display
    • A63F2300/306Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display for displaying a marker associated to an object or location in the game field
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a game route generation method and device, a nonvolatile storage medium and an electronic device. The method comprises the following steps: acquiring the current position of the virtual character in a game map; responding to a first touch operation acting on the game map, determining an initial marking position in the game map based on the first touch operation, and generating a marking control at the initial marking position; responding to a second touch operation acting on the game map, and determining a target mark position in the game map based on the position relation between the second touch operation and the mark control; and generating a game route according to at least the current position and the target mark position. The invention solves the technical problem that the route planning mode provided by the related technology in the hand tour is difficult to give consideration to flexibility and accuracy.

Description

Game route generation method, game route generation device, nonvolatile storage medium, and electronic device
Technical Field
The invention relates to the field of computers, in particular to a game route generation method and device, a nonvolatile storage medium and an electronic device.
Background
In the prior sand box sports, large-escape and killing and first-person shooting type hand games, the single-point marking function is often provided for game players to assist the game players to grasp the distance and the direction of a target point and facilitate the communication among teammates. After the game player expands the map mark terminal, the advancing direction can be adjusted through the mark points on the map axis in the current game scene. In the specific implementation process, the function operation of the single-point marking is a more efficient and convenient marking mode under most conditions, but under the conditions of being far away from a target place and having a more tortuous travelling route, the single-point marking has more operation steps and stronger discontinuity sense.
To this end, the related art also provides a route marking function capable of multipoint marking to a game player, which generally includes the following two ways:
in one way, the game player may first select the current route marking mode from the route marking and the single point marking. After the current route marking mode is selected, the route mark is drawn in a mode that two continuous points determine a line segment.
However, this approach has the following technical drawbacks:
(1) cumbersome switching operations between the single point marking and the route marking are required.
The single-point mark and the route mark are usually simultaneously existed in the sandbox competitive hand game and are functions with higher use frequency. When a game player needs to switch from one route marking mode to another route marking mode, the game player needs to click a preset control in a game map to switch the marking state, and then the subsequent route marking operation can be carried out. If the touch operation cannot be executed on the preset control in time, misoperation is easily caused.
(2) The marking logics of the two route marking modes have conflict, and the operation discomfort of a user is easily caused.
When the game player makes a one-point mark, the behavior operation logic of the game player is as follows:
the current position of a virtual game character controlled by a game player in a game scene is taken as a starting point position, and the game player marks a terminal point position in a game map by executing click operation on the game map. When the game player performs the one-click operation again on the game map, the end position marked in the game map may be modified.
And when the game player makes the route mark, the behavior operation logic of the game player is as follows:
the game player marks the starting point position in the game map by performing a one-click operation on the game map. When the game player performs the click operation again on the game map, the end point position (i.e., the next turning point position) is marked in the game map.
Therefore, the two marking logics are mutually exclusive, and even if the game player adjusts the switching marking state in time, the game player is likely to feel unaccustomed and uncomfortable due to the conflict of the cognitive logics.
In the second mode, the game player can draw the route manually on the touch display screen of the mobile terminal directly.
However, this approach has the following technical drawbacks:
a game player directly adopts a hand-drawing mode to draw a route on a touch screen of the mobile terminal, so that the route is easy to lack of aesthetic feeling and poor in accuracy.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
At least some embodiments of the present invention provide a game route generation method and apparatus, a non-volatile storage medium, and an electronic apparatus, so as to at least solve the technical problem that a route planning method provided in a hand game in the related art is difficult to consider flexibility and accuracy.
According to an embodiment of the present invention, there is provided a game route generation method for providing a graphical user interface through an electronic device, where content displayed on the graphical user interface at least partially includes a game map, the game route generation method including:
acquiring the current position of the virtual character in a game map; responding to a first touch operation acting on the game map, determining an initial marking position in the game map based on the first touch operation, and generating a marking control at the initial marking position; responding to a second touch operation acting on the game map, and determining a target mark position in the game map based on the position relation between the second touch operation and the mark control; and generating a game route according to at least the current position and the target mark position.
Optionally, determining the target mark position in the game map based on the position relationship between the second touch operation and the mark control includes: judging whether the second touch operation is located in a response area of the marking control based on the position relation; and when the second touch operation is positioned in the response area, responding to a third touch operation acting on the game map, and determining the position of the target mark in the game map based on the third touch operation.
Optionally, generating the game route based on at least the current position and the target mark position comprises: and generating a game route according to the current position, the initial mark position and the target mark position.
Optionally, the game route generating method further includes: and adjusting the display position of the marking control from the initial marking position to the target marking position.
Optionally, determining the target mark position in the game map based on the position relationship between the second touch operation and the mark control includes: judging whether the second touch operation is located in a response area of the marking control based on the position relation; and when the second touch operation is positioned outside the response area, determining the position of the target mark in the game map according to the second touch operation.
Optionally, determining the target mark position in the game map according to the second touch operation includes: canceling the initial marking position in the game map according to the second touch operation, determining a target marking position and generating a marking control at the target marking position.
Optionally, the response area of the markup control is a geometric area determined geometrically centered on a target position of the markup control displayed in the game map.
According to an embodiment of the present invention, there is also provided a game route generating apparatus for providing a graphical user interface through an electronic device, where content displayed on the graphical user interface at least partially includes a game map, the game route generating apparatus including:
the acquisition module is used for acquiring the current position of the virtual character in the game map; the processing module is used for responding to a first touch operation acting on the game map, determining an initial marking position in the game map based on the first touch operation and generating a marking control at the initial marking position; the determining module is used for responding to a second touch operation acting on the game map and determining a target mark position in the game map based on the position relation between the second touch operation and the mark control; and the generating module is used for generating a game route at least according to the current position and the target mark position.
Optionally, the determining module is configured to determine whether the second touch operation is located in a response area of the mark control based on the position relationship; and when the second touch operation is positioned in the response area, responding to a third touch operation acting on the game map, and determining the position of the target mark in the game map based on the third touch operation.
Optionally, the generating module is configured to generate the game route according to the current position, the initial mark position, and the target mark position.
Optionally, the game route generating device further includes: and the adjusting module is used for adjusting the display position of the marking control from the initial marking position to the target marking position.
Optionally, the determining module is configured to determine whether the second touch operation is located in a response area of the mark control based on the position relationship; and when the second touch operation is positioned outside the response area, determining the position of the target mark in the game map according to the second touch operation.
Optionally, the determining module is configured to cancel the initial mark position in the game map according to the second touch operation, determine a target mark position, and generate a mark control at the target mark position.
Optionally, the response area of the markup control is a geometric area determined geometrically centered on a target position of the markup control displayed in the game map.
According to an embodiment of the present invention, there is further provided a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to execute the game route generation method in any one of the above items when running.
There is further provided, according to an embodiment of the present invention, a processor for executing a program, wherein the program is configured to execute the game route generation method in any one of the above when executed.
There is further provided, according to an embodiment of the present invention, an electronic device including a memory and a processor, the memory storing a computer program therein, the processor being configured to execute the computer program to perform the game route generation method in any one of the above.
In at least some embodiments of the present invention, a method of obtaining a current position of a virtual character in a game map is adopted, a first touch operation acting on the game map is responded, an initial mark position is determined in the game map based on the first touch operation and a mark control is generated at the initial mark position, a second touch operation acting on the game map is responded, a target mark position is determined in the game map based on a position relationship between the second touch operation and the mark control, and a game route is generated at least according to the current position and the target mark position, so that a purpose of flexibility and accuracy in a route planning mode provided in a hand game is achieved, thereby achieving technical effects of simplifying a switching mode between a single point mark and a route mark, unifying mark logics of the single point mark and the route mark, and improving accuracy and fault tolerance of the route mark, and the technical problem that the route planning mode provided by the related technology in the hand trip is difficult to take flexibility and accuracy into account is further solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow diagram of a game route generation method according to one embodiment of the invention;
FIG. 2 is a schematic diagram of a game route generation process according to an alternative embodiment of the invention;
FIG. 3 is a block diagram of a game route generation apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of a game route generation apparatus according to an alternative embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with one embodiment of the present invention, there is provided an embodiment of a game route generation method, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
The method embodiments may be performed in a mobile terminal, a computer terminal or a similar computing device. Taking the example of the Mobile terminal running on the Mobile terminal, the Mobile terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet device (MID for short), a PAD, and the like. The mobile terminal may include one or more processors (which may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory for storing data. Optionally, the mobile terminal may further include a transmission device, an input/output device, and a display device for a communication function. It will be understood by those skilled in the art that the foregoing structural description is only illustrative and not restrictive of the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than described above, or have a different configuration than described above.
The memory may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the game route generation method in the embodiment of the present invention, and the processor executes various functional applications and data processing by running the computer program stored in the memory, so as to implement the game route generation method described above. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the mobile terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display device may be, for example, a touch screen type Liquid Crystal Display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI) with which a user can interact by touching finger contacts and/or gestures on a touch-sensitive surface, where the human-machine interaction function optionally includes the following interactions: executable instructions for creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, emailing, call interfacing, playing digital video, playing digital music, and/or web browsing, etc., for performing the above-described human-computer interaction functions, are configured/stored in one or more processor-executable computer program products or readable storage media.
In this embodiment, a game route generating method running on the mobile terminal is provided, where an electronic device provides a graphical user interface, and content displayed on the graphical user interface at least partially includes a game map, and fig. 1 is a flowchart of a game route generating method according to an embodiment of the present invention, as shown in fig. 1, where the method includes the following steps:
step S10, acquiring the current position of the virtual character in the game map;
the virtual character may be a virtual character controlled by a game player, a virtual creature controlled by a game player, or a virtual vehicle controlled by a game player. The game map can be a game map in a sandbox competitive hand game, a game map in a large-escape hand game and a game map in a first-person shooting hand game.
Step S12, responding to a first touch operation acting on the game map, determining an initial mark position in the game map based on the first touch operation and generating a mark control at the initial mark position;
the first touch operation may include, but is not limited to: single click operation, double press operation and long press operation. Not only can an initial marking position be acquired in the game map based on the first touch operation, but also a marking control can be generated at the initial marking position. In an alternative embodiment, the initial marker position may be a marker position adjacent to the current position (which may be the starting position of the game route). The game route can be formed by splicing a plurality of road sections, and the marking control piece can be used for determining the end position of the currently generated road section in the game route and also can be used for determining the start position of the next road section to be generated in the game route.
Step S14, responding to a second touch operation acting on the game map, and determining a target mark position in the game map based on the position relation between the second touch operation and the mark control;
the second touch operation may include, but is not limited to: single click operation, double press operation and long press operation. The positional relationship between the second touch operation and the marking control may include one of: the second touch operation is located in the response area of the marking control, and the second touch operation is located outside the response area of the marking control. A target marker position may be determined in the game map based on a positional relationship between the second touch operation and the marker control.
In an alternative embodiment, the response area of the markup control is a geometric area determined by geometrically centering on a target position of the markup control displayed in the game map. The geometric figure area can be in a shape of a default set geometric figure in the game (such as a circle) or a geometric figure which is customized and configured by a game player in the game (such as an oval, a square, a rectangle and the like). In an alternative example, the geometric figure region is a circular region.
Therefore, in the related art, the control for switching the single-point mark and the route mark by the game player belongs to a fixed control far away from the high-frequency operation area of the game player, that is, the position and the size of the response area of the control are relatively fixed. However, according to the behavior characteristics of the game player, the embodiment of the present invention obtains the coordinate point position of the last operation of the game player, and generates the response area (i.e., the circular area) of the switching control by taking the coordinate point position as the center (i.e., the circle center) and the ergonomic size as the radius. Compared with a fixed response area, the response area is more consistent with the subconscious behaviors of the game player, and the game player can perform marking operation in the game map more conveniently.
In step S16, a game route is generated based on at least the current position and the target mark position.
The game route is generated by at least setting the current position as a start position of the game route and the target mark position as an end position of the game route, and connecting the current position and the target mark position. Of course, other marker positions (e.g., initial marker positions) may exist between the current position and the target marker position, and then the game route is generated by connecting the current position, the other marker positions, and the target marker position.
Through the steps, the current position of the virtual character in the game map can be obtained, the target mark position in the game map is determined based on the position relation between the second touch operation and the mark control in response to the second touch operation acting on the game map, and the game route is generated at least according to the current position and the target mark position, so that the purposes of flexibility and accuracy in the route planning mode provided in the hand trip are achieved, the switching mode between the single-point mark and the route mark is simplified, the marking logic of the single-point mark and the route mark is unified, and the technical effects of improving the accuracy and fault tolerance of the route mark are achieved, and the technical problem that the route planning mode provided by the related technology in the hand trip is difficult to take flexibility and accuracy into account is further solved.
Optionally, in step S14, determining the target mark position in the game map based on the position relationship between the second touch operation and the mark control may include the following steps:
step S140, judging whether the second touch operation is positioned in the response area of the marking control based on the position relation;
in step S141, when the second touch operation is located in the response area, a third touch operation applied to the game map is responded, and a target mark position is determined in the game map based on the third touch operation.
Whether the second touch operation is located in the response area of the marking control can be determined by utilizing the position relation. When the second touch operation is located in the response area, the second touch operation triggers automatic switching from the end position of the currently generated road segment to the start position of the next road segment to be generated. At this time, in response to a third touch operation applied to the game map, the end position (i.e., the target mark position) of the next link to be generated is determined based on the third touch operation. That is, the position in the game map corresponding to the touch point of the third touch operation is the target mark position.
Optionally, in step S16, generating the game route according to at least the current position and the target mark position may include performing the steps of:
step S160, a game route is generated according to the current position, the initial mark position and the target mark position.
When the second touch operation is located in the response area, the current position is the starting position of the currently generated road section, and the initial mark position is the ending position of the currently generated road section. In addition, the initial mark position is set as the start position of the next road segment to be generated, and the target mark position is set as the end position of the next road segment to be generated. Thus, a game route is generated by the link 1 connecting the current position and the initial mark position and the link 2 connecting the initial mark position and the target mark position.
Fig. 2 is a schematic diagram of a game route generation process according to an alternative embodiment of the present invention, and point a is a current position (i.e., a starting position) of the game route as shown in fig. 2. The point B is an initial mark position acquired in the game map based on the first touch operation, and a mark control is generated at the initial mark position. The initial mark position B point may be a mark position adjacent to the start position a point of the game route. The marking control can be used for determining the end position of the road section 1 in the game route and also can be used for determining the starting position of the road section 2 in the game route. At this time, in response to the third touch operation applied to the game map, the end position of the link 2 is determined based on the target mark position C point determined in the game map by the third touch operation.
Optionally, the game route generating method may further include the following steps:
in step S17, the display position of the mark control is adjusted from the initial mark position to the target mark position.
Since the second touch operation triggers automatic switching from the end position of the current road segment to the start position of the next road segment when the second touch operation is located in the response area, and the end position of the next road segment can be determined based on the third touch operation, the display position of the marking control needs to be adjusted from the initial marking position to the target marking position.
Still as shown in fig. 2, point a is the starting position of the game route, point B is the initial mark position acquired in the game map, and the mark control is generated at the initial mark position. After the end position of the link 2 is determined by the target mark position C point, the display position of the mark control needs to be adjusted from the initial mark position B point to the target mark position C point.
Optionally, in step S14, determining the target mark position in the game map based on the position relationship between the second touch operation and the mark control may include the following steps:
step S142, determining whether the second touch operation is located in the response area of the marking control based on the position relation;
in step S145, when the second touch operation is located outside the response area, the target mark position is determined in the game map according to the second touch operation.
Whether the second touch operation is located in the response area of the marking control can be determined by utilizing the position relation. When the second touch operation is located outside the response area (that is, the touch position of the second touch operation is any position except the response area of the mark control in the graphical user interface), the target mark position is determined in the game map according to the second touch operation. That is, the position in the game map corresponding to the touch point of the second touch operation is the target mark position. In an alternative embodiment, the initial marking position may be cancelled in the game map according to the second touch operation, the target marking position may be re-determined, and the marking control may be generated at the target marking position.
Still as shown in FIG. 2, Point A is the starting location of the game route. The point B is an initial mark position acquired in the game map based on the first touch operation, and a mark control is generated at the initial mark position. The initial mark position B point may be a mark position adjacent to the start position a point of the game route. The marking control can be used for determining the end position of the road segment 1 in the game route. When the current touch position D (i.e., the target mark position) of the second touch operation is located outside the response area of the initial mark position B, not only the initial mark position B disappears from the game map, but also the end position of the current road segment needs to be adjusted from the initial mark position B to the current touch position D of the second touch operation. At this time, the starting position a of the game route is directly connected with the current touch position D of the second touch operation, so that the game route can be generated.
When the current touch position D point of the second touch operation is located outside the response region of the initial mark position B point, the end point position of the current road segment is adjusted from the initial mark position B point to the current touch position D point of the second touch operation, and therefore, the display position of the mark control is also adjusted from the initial mark position B point to the current touch position D point of the second touch operation.
Still as shown in fig. 2, point a is the starting position of the game route, point B is the initial mark position acquired in the game map, and the mark control is generated at the initial mark position. After the end position of the road segment 3 is determined by the current touch position D point of the second touch operation, the display position of the marking control needs to be adjusted from the initial marking position B point to the current touch position D point of the second touch operation.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a game route generating device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a game route generation apparatus according to an embodiment of the present invention, in which a graphical user interface is provided by an electronic device, and content displayed on the graphical user interface at least partially includes a game map, as shown in fig. 3, the apparatus includes: the acquiring module 10 is used for acquiring the current position of the virtual character in the game map; the processing module 20 is configured to, in response to a first touch operation acting on the game map, determine an initial mark position in the game map based on the first touch operation and generate a mark control at the initial mark position; the determining module 30 is configured to respond to a second touch operation acting on the game map, and determine a target mark position in the game map based on a position relationship between the second touch operation and the mark control; and the generating module 40 is used for generating the game route at least according to the current position and the target mark position.
Optionally, the determining module 30 is configured to determine whether the second touch operation is located in a response area of the mark control based on the position relationship; and when the second touch operation is positioned in the response area, responding to a third touch operation acting on the game map, and determining the position of the target mark in the game map based on the third touch operation.
Optionally, the generating module 40 is configured to generate the game route according to the current position, the initial mark position and the target mark position.
Optionally, fig. 4 is a block diagram of a game route generating device according to an alternative embodiment of the present invention, and as shown in fig. 4, the device includes, in addition to all modules shown in fig. 3, the game route generating device further includes: and an adjusting module 50, configured to adjust the display position of the marking control from the initial marking position to the target marking position.
Optionally, the determining module 30 is configured to determine whether the second touch operation is located in a response area of the mark control based on the position relationship; and when the second touch operation is positioned outside the response area, determining the position of the target mark in the game map according to the second touch operation.
Optionally, the determining module 30 is configured to cancel the initial mark position in the game map according to the second touch operation, determine a target mark position, and generate a mark control at the target mark position.
Optionally, the response area of the markup control is a geometric area determined geometrically centered on a target position of the markup control displayed in the game map.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned nonvolatile storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring the current position of the virtual character in the game map;
s2, responding to a first touch operation acting on the game map, determining an initial mark position in the game map based on the first touch operation and generating a mark control at the initial mark position;
s3, responding to a second touch operation acting on the game map, and determining a target mark position in the game map based on the position relation between the second touch operation and the mark control;
and S4, generating a game route according to at least the current position and the target mark position.
Optionally, in this embodiment, the nonvolatile storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring the current position of the virtual character in the game map;
s2, responding to a first touch operation acting on the game map, determining an initial mark position in the game map based on the first touch operation and generating a mark control at the initial mark position;
s3, responding to a second touch operation acting on the game map, and determining a target mark position in the game map based on the position relation between the second touch operation and the mark control;
and S4, generating a game route according to at least the current position and the target mark position.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A game route generation method, wherein a graphical user interface is provided through an electronic device, content displayed by the graphical user interface at least partially includes a game map, and the game route generation method comprises:
acquiring the current position of a virtual character in the game map;
responding to a first touch operation acting on the game map, determining an initial marking position in the game map based on the first touch operation, and generating a marking control at the initial marking position;
responding to a second touch operation acting on the game map, and determining a target mark position in the game map based on a position relation between the second touch operation and the mark control;
and generating the game route according to at least the current position and the target mark position.
2. The game route generation method according to claim 1, wherein determining the target mark position in the game map based on the positional relationship between the second touch operation and the mark control includes:
judging whether the second touch operation is located in a response area of the marking control or not based on the position relation;
and when the second touch operation is located in the response area, responding to a third touch operation acting on the game map, and determining the target mark position in the game map based on the third touch operation.
3. The game route generation method according to claim 2, wherein generating the game route based on at least the current position and the target mark position includes:
generating the game route according to the current position, the initial mark position and the target mark position.
4. The game route generation method according to claim 2, characterized by further comprising:
adjusting the display position of the marking control from the initial marking position to the target marking position.
5. The game route generation method according to claim 1, wherein determining the target mark position in the game map based on the positional relationship between the second touch operation and the mark control includes:
judging whether the second touch operation is located in a response area of the marking control or not based on the position relation;
and when the second touch operation is located outside the response area, determining the position of the target mark in the game map according to the second touch operation.
6. The game route generation method according to claim 5, wherein determining the target mark position in the game map according to the second touch operation includes:
canceling the initial marking position in the game map according to the second touch operation, determining the target marking position and generating a marking control at the target marking position.
7. The game route generation method according to claim 2 or 5, wherein the response area of the marker control is a geometric area determined geometrically centered on a target position of the marker control displayed in the game map.
8. A game route generating apparatus for providing a graphical user interface through an electronic device, the content displayed by the graphical user interface at least partially including a game map, the game route generating apparatus comprising:
the acquisition module is used for acquiring the current position of the virtual character in the game map;
the processing module is used for responding to a first touch operation acting on the game map, determining an initial marking position in the game map based on the first touch operation and generating a marking control at the initial marking position;
the determining module is used for responding to a second touch operation acting on the game map and determining a target mark position in the game map based on the position relation between the second touch operation and the mark control;
and the generating module is used for generating the game route at least according to the current position and the target mark position.
9. A non-volatile storage medium, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute the game route generation method according to any one of claims 1 to 7 when running.
10. A processor for running a program, wherein the program is arranged to perform the game route generation method of any one of claims 1 to 7 when run.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the game route generation method of any one of claims 1 to 7.
CN202110466970.0A 2021-04-28 2021-04-28 Game route generation method, game route generation device, nonvolatile storage medium, and electronic device Pending CN113262489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110466970.0A CN113262489A (en) 2021-04-28 2021-04-28 Game route generation method, game route generation device, nonvolatile storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110466970.0A CN113262489A (en) 2021-04-28 2021-04-28 Game route generation method, game route generation device, nonvolatile storage medium, and electronic device

Publications (1)

Publication Number Publication Date
CN113262489A true CN113262489A (en) 2021-08-17

Family

ID=77229620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110466970.0A Pending CN113262489A (en) 2021-04-28 2021-04-28 Game route generation method, game route generation device, nonvolatile storage medium, and electronic device

Country Status (1)

Country Link
CN (1) CN113262489A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113827971A (en) * 2021-09-24 2021-12-24 网易(杭州)网络有限公司 Game map marking method and device, electronic equipment and storage medium
CN116351057A (en) * 2023-03-31 2023-06-30 广州三七极耀网络科技有限公司 Game fight prompting method, game fight prompting device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100160013A1 (en) * 2007-09-04 2010-06-24 Inertia Wrx Vehicle tracking system, method and game
CN109833624A (en) * 2017-11-29 2019-06-04 腾讯科技(成都)有限公司 The display methods and device for line information of marching on virtual map
CN109876442A (en) * 2019-04-15 2019-06-14 网易(杭州)网络有限公司 Route indicating means, equipment and storage medium in game based on map
CN110755848A (en) * 2019-11-06 2020-02-07 网易(杭州)网络有限公司 Path finding method in game, terminal and readable storage medium
CN111249722A (en) * 2020-01-17 2020-06-09 网易(杭州)网络有限公司 Control method and device of terminal equipment, storage medium and electronic equipment
CN111840989A (en) * 2020-08-05 2020-10-30 网易(杭州)网络有限公司 Method and device for processing moving route of virtual object and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100160013A1 (en) * 2007-09-04 2010-06-24 Inertia Wrx Vehicle tracking system, method and game
CN109833624A (en) * 2017-11-29 2019-06-04 腾讯科技(成都)有限公司 The display methods and device for line information of marching on virtual map
CN109876442A (en) * 2019-04-15 2019-06-14 网易(杭州)网络有限公司 Route indicating means, equipment and storage medium in game based on map
CN110755848A (en) * 2019-11-06 2020-02-07 网易(杭州)网络有限公司 Path finding method in game, terminal and readable storage medium
CN111249722A (en) * 2020-01-17 2020-06-09 网易(杭州)网络有限公司 Control method and device of terminal equipment, storage medium and electronic equipment
CN111840989A (en) * 2020-08-05 2020-10-30 网易(杭州)网络有限公司 Method and device for processing moving route of virtual object and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113827971A (en) * 2021-09-24 2021-12-24 网易(杭州)网络有限公司 Game map marking method and device, electronic equipment and storage medium
CN116351057A (en) * 2023-03-31 2023-06-30 广州三七极耀网络科技有限公司 Game fight prompting method, game fight prompting device, electronic equipment and storage medium
CN116351057B (en) * 2023-03-31 2024-03-29 广州三七极耀网络科技有限公司 Game fight prompting method, game fight prompting device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109675307B (en) In-game display control method, device, storage medium, processor and terminal
CN109939440B (en) Three-dimensional game map generation method and device, processor and terminal
CN113262489A (en) Game route generation method, game route generation device, nonvolatile storage medium, and electronic device
CN112402977A (en) Target virtual role locking method and device, processor and electronic device
CN113908550A (en) Virtual character control method, nonvolatile storage medium, and electronic apparatus
CN111844030B (en) Interpolation point generation method and device, processor and electronic device
CN110704058A (en) Page rendering method and device, storage medium, processor and electronic device
US20200364066A1 (en) Method and system for remotely controlling personal computer based on virtual input device
CN113440848B (en) In-game information marking method and device and electronic device
CN112169314A (en) Method and device for selecting target object in game
CN113262476B (en) Position adjusting method and device of operation control, terminal and storage medium
CN113262472A (en) Processing method and device of option control, processor and electronic device
CN112083858A (en) Method and device for adjusting display position of control
CN114504808A (en) Information processing method, information processing apparatus, storage medium, processor, and electronic apparatus
CN113318429B (en) Control method and device for exiting game, processor and electronic device
CN113134234B (en) Information display method, device, terminal and storage medium
CN113262471A (en) Control attribute adjusting method and device, processor and electronic device
CN113318430A (en) Virtual character posture adjusting method and device, processor and electronic device
CN115105831A (en) Virtual object switching method and device, storage medium and electronic device
CN114116105A (en) Control method and device of dynamic desktop, storage medium and electronic device
CN113952725A (en) Method and device for controlling skill control in game and electronic device
CN112807688A (en) Method and device for setting expression in game, processor and electronic device
WO2020124450A1 (en) Font setting method and device
CN113941143A (en) Virtual card processing method, nonvolatile storage medium and electronic device
CN104036133A (en) Chess game system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination