CN113082698B - Game display control method and device, electronic equipment and readable storage medium - Google Patents

Game display control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113082698B
CN113082698B CN202110407745.XA CN202110407745A CN113082698B CN 113082698 B CN113082698 B CN 113082698B CN 202110407745 A CN202110407745 A CN 202110407745A CN 113082698 B CN113082698 B CN 113082698B
Authority
CN
China
Prior art keywords
moving object
moving
point
pair
mobile
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
CN202110407745.XA
Other languages
Chinese (zh)
Other versions
CN113082698A (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.)
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 CN202110407745.XA priority Critical patent/CN113082698B/en
Priority to CN202410030340.2A priority patent/CN117815658A/en
Publication of CN113082698A publication Critical patent/CN113082698A/en
Application granted granted Critical
Publication of CN113082698B publication Critical patent/CN113082698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/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
    • 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/308Details of the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a game display control method, a game display control device, an electronic device and a readable storage medium, wherein the game display control method comprises the following steps: displaying a travel track of at least one moving object in a map at a first scale; and responding to switching from a first scale to a second scale, and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the traveling track of the at least one mobile object, wherein the first scale is larger than the second scale. The method realizes flexible display of the traveling information matched with the map scale under the maps with different scales, so that the method can be well applied to scenes of map scaling.

Description

Game display control method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of game technologies, and in particular, to a game display control method, device, electronic apparatus, and readable storage medium.
Background
With the continuous development of internet technology, the application of real-time map display is becoming wider and wider. For example, in some application scenarios, an icon of a moving object (e.g., an airplane, a ship, a vehicle, etc.) and its travel track may be displayed on a map in real time, and the map and the position of the moving object may be updated in real time as the moving object moves. In this application scenario, how to display the moving object and its travel track is a problem to be solved.
In the prior art, the moving object and the travelling track thereof can be displayed. If a single moving object is taken as a main body, the icon of each moving object and the travelling track thereof are respectively displayed.
However, the track display mode in the prior art cannot reflect the overall advancing trend of a plurality of moving objects, and is a single fixed display mode, and cannot be suitable for a scene with a map flexibly scaled.
Disclosure of Invention
The present invention aims to provide a game display control method, a game display control device, an electronic device and a readable storage medium, which solve the problem that in the prior art, moving object drawing cannot be applied to map flexible zoom scenes.
In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
in a first aspect, the application provides a display control method for a game, including:
displaying a travel track of at least one moving object in a map at a first scale;
and responding to switching from a first scale to a second scale, and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the traveling track of the at least one mobile object, wherein the first scale is larger than the second scale.
As an optional implementation manner, the drawing and displaying, on the map, a travel trend graph of a mobile object set formed by the at least one mobile object according to a travel track of the at least one mobile object includes:
and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the position and the traveling track of the at least one mobile object.
As an optional implementation manner, the travel track is presented in a line form, and the travel trend graph is a graph drawn according to the line of the travel track, and is used for representing the overall movement trend of the moving object set.
As an alternative implementation manner, the number of the moving objects is a plurality; and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the position and the traveling track of the at least one mobile object, wherein the traveling trend graph comprises the following components:
determining at least one moving object pair according to the travelling tracks of a plurality of moving objects, wherein each moving object pair comprises two moving objects, and the travelling tracks of the two moving objects are intersected;
Taking the intersection point of the travelling tracks of two moving objects in each moving object pair as the point of the direction mark of each moving object pair;
and drawing and displaying a traveling trend graph of a mobile object set formed by a plurality of mobile objects on the map according to the points of the direction marks of each mobile object pair and the positions of the mobile objects in each mobile object pair.
As an alternative implementation manner, the number of the moving objects is greater than or equal to 3; and drawing and displaying a traveling trend graph of a mobile object set formed by a plurality of mobile objects on the map according to the points of the direction marks of each mobile object pair and the positions of the mobile objects in each mobile object pair, wherein the traveling trend graph comprises the following steps:
respectively taking the point of the direction mark of each moving object pair and the position of the moving object in each moving object pair as vertexes to construct a moving triangle corresponding to each moving object pair;
determining overlapping points between the moving triangles corresponding to the moving object pairs;
and drawing and displaying a traveling trend graph of a moving object set formed by a plurality of moving objects on the map according to the points of the direction marks of the moving object pairs and the overlapping points between the moving triangles corresponding to the moving object pairs.
As an optional implementation manner, the drawing and displaying, on the map, a travel trend graph of a moving object set formed by a plurality of moving objects according to a point of a direction indicator of each moving object pair and an overlapping point between moving triangles corresponding to each moving object pair includes:
drawing travelling direction marks on the points of the direction marks of the moving object pairs on the map respectively, wherein the travelling direction marks comprise: arrows;
drawing a first curve which starts from the first starting point and passes through the first passing point by taking the point of the direction mark of the first moving object pair as the first starting point and taking one of the positions of the two moving objects in the first moving object pair as the first passing point;
drawing a second curve which starts with the second starting point and passes through the second passing point by taking the point of the direction mark of the second moving object pair as a second starting point and taking one of the positions of two moving objects in the second moving object pair as a second passing point, wherein the first moving object pair and the second moving object pair respectively comprise one edge moving object in the moving object set;
and respectively taking points of the direction marks of the two moving object pairs as a third starting point and a third ending point, drawing at least one third curve from the third starting point to the third ending point, and displaying a graph formed by the travelling direction mark, the first curve, the second curve and each third curve as the travelling trend graph, wherein if an overlapping point exists in the two moving object pairs, the third curve passes through the overlapping point.
As an optional implementation manner, the determining an overlapping point between the moving triangles corresponding to each moving object pair includes:
if a plurality of intersection points exist between the first moving triangle corresponding to the first moving object pair and the second moving triangle corresponding to the second moving object pair, determining an overlapping point between the first moving triangle and the second moving triangle according to the distance between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair.
As an optional implementation manner, the determining the overlapping point between the first moving triangle and the second moving triangle according to the distance between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair includes:
respectively calculating the sum of the distances between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair;
and taking the intersection point with the smallest sum of the distances as an overlapping point between the first moving triangle and the second moving triangle.
As an alternative implementation manner, the number of the moving objects is 2, and the number of the moving object pairs is one; and drawing and displaying a traveling trend graph of a mobile object set formed by a plurality of mobile objects on the map according to the points of the direction marks of each mobile object pair and the positions of the mobile objects in each mobile object pair, wherein the traveling trend graph comprises the following steps:
Drawing a traveling direction mark on a point of a direction mark of the mobile object pair on the map, wherein the traveling direction mark comprises the following components: arrows;
drawing a fourth curve and a fifth curve which start from the starting point to and pass through the passing points respectively by taking the point of the direction mark of the moving object pair as the starting point and the positions of two moving objects in the moving object pair as the passing points;
and displaying a graph formed by the travelling direction mark, the fourth curve and the fifth curve as the travelling trend graph.
As an optional implementation manner, the determining at least one moving object pair according to the travelling tracks of the plurality of moving objects includes:
determining at least one to-be-selected moving object intersected with the third moving object and an intersection point corresponding to each to-be-selected moving object according to the advancing track of each moving object;
and determining a mobile object pair corresponding to the third mobile object according to the distance between the position of the third mobile object and the intersection point corresponding to each candidate mobile object and the distance between the position of each candidate mobile object and the intersection point corresponding to each candidate mobile object.
As an optional implementation manner, the determining, according to the distance between the position of the third moving object and the intersection point corresponding to each candidate moving object and the distance between the position of each candidate moving object and the intersection point corresponding to each candidate moving object, the moving object pair corresponding to the third moving object includes:
Respectively calculating the distance between the position of the third moving object and the intersection point corresponding to each to-be-selected moving object and the sum of the distance between the position of each to-be-selected moving object and the intersection point corresponding to each to-be-selected moving object;
and forming a moving object pair corresponding to the third moving object by the to-be-selected moving object with the smallest sum of the distances and the third moving object.
As an optional implementation manner, before the drawing and displaying the travel trend graph of the mobile object set formed by the at least one mobile object on the map according to the travel track of the at least one mobile object, the method further includes:
and forming the at least one moving object in the range of the preset area in the map into the moving object set.
In a second aspect, the present application provides a display control apparatus for a game, including:
the display module is used for displaying the travelling track of at least one moving object in the map at a first scale;
and the drawing module is used for responding to switching from a first scale to a second scale, and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the traveling track of the at least one mobile object, wherein the first scale is larger than the second scale.
As an optional implementation manner, the drawing module is specifically configured to:
and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the position and the traveling track of the at least one mobile object.
As an optional implementation manner, the travel track is presented in a line form, and the travel trend graph is a graph drawn according to the line of the travel track, and is used for representing the overall movement trend of the moving object set.
As an alternative implementation manner, the number of the moving objects is a plurality; the drawing module is specifically configured to:
determining at least one moving object pair according to the travelling tracks of a plurality of moving objects, wherein each moving object pair comprises two moving objects, and the travelling tracks of the two moving objects are intersected;
taking the intersection point of the travelling tracks of two moving objects in each moving object pair as the point of the direction mark of each moving object pair;
and drawing and displaying a traveling trend graph of a mobile object set formed by a plurality of mobile objects on the map according to the points of the direction marks of each mobile object pair and the positions of the mobile objects in each mobile object pair.
As an alternative implementation manner, the number of the moving objects is greater than or equal to 3; the drawing module is specifically configured to:
respectively taking the point of the direction mark of each moving object pair and the position of the moving object in each moving object pair as vertexes to construct a moving triangle corresponding to each moving object pair;
determining overlapping points between the moving triangles corresponding to the moving object pairs;
and drawing and displaying a traveling trend graph of a moving object set formed by a plurality of moving objects on the map according to the points of the direction marks of the moving object pairs and the overlapping points between the moving triangles corresponding to the moving object pairs.
As an optional implementation manner, the drawing module is specifically configured to:
drawing travelling direction marks on the points of the direction marks of the moving object pairs on the map respectively, wherein the travelling direction marks comprise: arrows;
drawing a first curve which starts from the first starting point and passes through the first passing point by taking the point of the direction mark of the first moving object pair as the first starting point and taking one of the positions of the two moving objects in the first moving object pair as the first passing point;
Drawing a second curve which starts with the second starting point and passes through the second passing point by taking the point of the direction mark of the second moving object pair as a second starting point and taking one of the positions of two moving objects in the second moving object pair as a second passing point, wherein the first moving object pair and the second moving object pair respectively comprise one edge moving object in the moving object set;
and respectively taking points of the direction marks of the two moving object pairs as a third starting point and a third ending point, drawing at least one third curve from the third starting point to the third ending point, and displaying a graph formed by the travelling direction mark, the first curve, the second curve and each third curve as the travelling trend graph, wherein if an overlapping point exists in the two moving object pairs, the third curve passes through the overlapping point.
As an optional implementation manner, the drawing module is specifically configured to:
if a plurality of intersection points exist between the first moving triangle corresponding to the first moving object pair and the second moving triangle corresponding to the second moving object pair, determining an overlapping point between the first moving triangle and the second moving triangle according to the distance between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair.
As an optional implementation manner, the drawing module is specifically configured to:
respectively calculating the sum of the distances between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair;
and taking the intersection point with the smallest sum of the distances as an overlapping point between the first moving triangle and the second moving triangle.
As an alternative implementation manner, the number of the moving objects is 2, and the number of the moving object pairs is one; the drawing module is specifically configured to:
drawing a traveling direction mark on a point of a direction mark of the mobile object pair on the map, wherein the traveling direction mark comprises the following components: arrows;
drawing a fourth curve and a fifth curve which start from the starting point to and pass through the passing points respectively by taking the point of the direction mark of the moving object pair as the starting point and the positions of two moving objects in the moving object pair as the passing points;
and displaying a graph formed by the travelling direction mark, the fourth curve and the fifth curve as the travelling trend graph.
As an optional implementation manner, the drawing module is specifically configured to:
Determining at least one to-be-selected moving object intersected with the third moving object and an intersection point corresponding to each to-be-selected moving object according to the advancing track of each moving object;
and determining a mobile object pair corresponding to the third mobile object according to the distance between the position of the third mobile object and the intersection point corresponding to each candidate mobile object and the distance between the position of each candidate mobile object and the intersection point corresponding to each candidate mobile object.
As an optional implementation manner, the drawing module is specifically configured to:
respectively calculating the distance between the position of the third moving object and the intersection point corresponding to each to-be-selected moving object and the sum of the distance between the position of each to-be-selected moving object and the intersection point corresponding to each to-be-selected moving object;
and forming a moving object pair corresponding to the third moving object by the to-be-selected moving object with the smallest sum of the distances and the third moving object.
As an alternative implementation, the drawing module is further configured to:
and forming the at least one moving object in the range of the preset area in the map into the moving object set.
In a third aspect, the present application provides an electronic device, comprising: a processor, a storage medium, and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the display control method of a game as described in the first aspect above when executed.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the display control method of the game of the first aspect described above.
According to the game display control method, the game display control device, the electronic equipment and the readable storage medium, the system can draw and display the travel trend graph of the moving object set formed by the moving objects on the map according to the travel track of the moving objects in the map in response to the map being switched from the first scale to the second scale, so that travel information matched with the map scale is flexibly displayed under the map with different scales, and the game display control method, the electronic equipment and the readable storage medium can be well suitable for scenes of map scaling.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view showing a travel locus of each moving object in a map, respectively;
FIG. 2 is a flow chart of a method for controlling display of a game according to an embodiment of the present application;
FIG. 3 is a drawing flow chart of a game display control method provided in an embodiment of the present application;
fig. 4 is a drawing flowchart when moving objects are greater than or equal to 3 in the display control method of a game provided in the embodiment of the present application;
FIG. 5 is a schematic diagram of a travel trajectory when 6 moving objects are included in a set of moving objects;
FIG. 6 is a schematic drawing of a travel trend graph based on the points of the direction indicators and overlapping points;
FIG. 7 is a schematic diagram showing a transition from displaying a travel track to displaying a travel trend graph when the number of moving objects is greater than or equal to 3;
FIG. 8 is a flow chart of drawing a traveling trend graph based on overlapping points and points of a direction indicator in the display control method of a game according to the embodiment of the present application, wherein the number of moving objects is greater than or equal to 3;
fig. 9 is a drawing flowchart when the number of moving objects is equal to 2 in the display control method of a game provided in the embodiment of the present application;
FIG. 10 is a schematic diagram of a switch from displaying travel tracks to displaying travel trend graphs when the number of moving objects equals 2;
FIG. 11 is a block diagram of a display control apparatus for a game according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device 120 according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the accompanying drawings in the present application are only for the purpose of illustration and description, and are not intended to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this application, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to the flow diagrams and one or more operations may be removed from the flow diagrams as directed by those skilled in the art.
In addition, the described embodiments are only some, but not all, of the embodiments of the present application. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
In order to enable one skilled in the art to use the present disclosure, the following embodiments are presented in connection with a specific application scenario "game scenario". It will be apparent to those having ordinary skill in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present application. Although the present application is described primarily around a gaming scenario, it should be understood that this is but one exemplary embodiment.
It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features stated hereinafter, but not to exclude the addition of other features.
In a game scene, it is generally involved to display a map, and to display icons of moving objects (e.g., airplanes, ships, vehicles, etc.) in the game scene and their traveling trajectories in real time in the map. Currently, for displaying a travel track of a moving object in a map, for example, a single moving object is taken as a main body, and an icon of each moving object and the travel track thereof are respectively displayed, so that the overall travel trend cannot be reflected. Fig. 1 is a schematic diagram showing the travel track of each moving object in the map, and after the system acquires the travel track of each moving object, the travel track of each moving object is displayed. The mode of displaying the travel track is a single fixed display mode, and cannot be suitable for a scene with a map flexibly zoomed. For example, when a map in a game scene is displayed on a large scale, the moving objects are distant from each other in the map at this time, and thus, it is suitable to display the respective travel tracks of the moving objects. When the map is scaled to a small scale, the moving objects in the map may be relatively close to each other, so that the map is suitable for displaying the overall travelling trend of the moving objects relatively close to each other, and the current single fixed display mode cannot meet the actual requirement in the scene.
Based on the above-mentioned problems, the embodiment of the present application provides a game display control method, when a map is scaled from a large scale to a small scale, the overall travel trend of a set formed by each moving object can be obtained in real time by using the travel track of each moving object, so that the travel track display method of the moving object can be flexibly switched in a map scaling scene, and the game display control method is suitable for maps with different scales.
Fig. 2 is a flow chart of a game display control method according to an embodiment of the present application, where an execution subject of the method may be an electronic device that executes a game program, for example, a mobile phone, a desktop computer, a notebook computer, or the like. For ease of understanding and description, the execution body will be referred to as a "system" in the following embodiments. As shown in fig. 2, the method includes:
s201, displaying a travel track of at least one moving object on a first scale in the map.
Alternatively, in a game, a zoomed display of the map at different scales may be involved. For example, in one case, the system may present a complete game scene for the player to operate, the complete game scene including a map of a large scale and various moving objects and their travel tracks displayed in the map. The first scale may represent the large scale. It should be understood that the large scale indicated by the first scale is relative to the second scale described below, and a comparison will be made in step S202 described below. In another case, the system would display a thumbnail of the game scene and a map of small scale in that thumbnail, for practical purposes.
For example, as in the first case described above, when the system needs to present a complete game scene, this step may be performed by displaying the travel track of at least one moving object in a map at a first scale. For example, after a player logs in, the system may first perform this step to present the player with a map of a first scale and display the respective travel tracks of the moving objects in the map.
S202, responding to switching from the first scale to the second scale, and drawing and displaying a traveling trend graph of a moving object set formed by the at least one moving object on the map according to the traveling track of the at least one moving object.
Wherein, the first scale is larger than the second scale.
The scale of a map is a scale representing the ratio of the length of a line segment on the map to the actual length of the corresponding line segment on the ground. The larger the scale, the more detailed the content in the map is represented, and the higher the geometric accuracy. The smaller the scale, the larger the actual geographical range that can be represented, and correspondingly, the lower the geometric accuracy. In the embodiment of the application, the first scale is larger than the second scale, which means that the map can display more detailed contents such as buildings, roads and the like under the first scale, so that the system can display the respective travelling tracks of the moving objects in the map under the first scale.
Optionally, specific values of the first scale and the second scale may be preset values.
Alternatively, under some trigger conditions, the system may be triggered to scale the map from the first scale to the second scale. The system is shown in the first scale, and the player is shown in the second scale, and the system is triggered to zoom the map to the second scale.
Meanwhile, in response to the map scaling from the first scale to the second scale, the system performs the procedure of this step of drawing and displaying on the map a travel trend image of a set of moving objects composed of the at least one moving object according to the travel locus of the at least one moving object.
Optionally, based on the running data of the game scene, the system may acquire the travel track of each moving object in the map in real time. Further, the system can draw and display a travel trend graph of a moving object set composed of the moving objects on a map based on the travel track of each moving object.
After the system starts to display the travelling trend graph, the system correspondingly updates the travelling trend graph in real time by using the travelling track after the travelling track of each moving object is changed continuously so as to ensure the continuous updating and adjustment of the travelling trend graph.
It should be noted that, after the system displays the travel trend graph in the map, the system does not draw and display the travel track of each moving object any more, however, the system background may continuously acquire the travel track of each moving object in real time, so after the map is switched back from the second scale to the first scale again, the system may continue to display the travel track of each moving object in real time on the map based on the travel track of each moving object acquired in real time, and does not draw and display the travel trend graph any more.
In this embodiment, in response to the map being switched from the first scale to the second scale, the system may draw and display, on the map, a travel trend graph of a set of moving objects formed by the moving objects according to a travel track of each moving object in the map, so as to flexibly display travel information matched with the map scale under the map of different scales, so that the system is better suitable for a scene of map scaling.
As described above, when the travel tendency graph is drawn and displayed, the overall travel tendency of the moving object set composed of at least one moving object is drawn. In the implementation process, the number of moving objects displayed in the map may be more, and accordingly, in the application, the moving objects may be first formed into a moving object set in a plurality of ways, and the travelling trend graph of the moving object set may be drawn.
In one mode, at least one moving object within a preset area in the map can be formed into the moving object set.
The preset area range can be flexibly set according to requirements. For example, a certain mark point in the map may be taken as a center, and the mark point and a moving object whose distance from the mark point is smaller than a certain threshold may be combined into one moving object set.
In another manner, at least one moving object within the preset area within the preset period may be formed into the moving object set.
In this manner, time factors are taken into account in addition to the regional scope. For example, moving objects within 5 minutes of entering a preset area range may be formed into one moving object set.
In still another manner, the moving objects smaller than or equal to the preset number in the preset area range in the map may be formed into the moving object set.
In this manner, the number of moving objects is taken into consideration in addition to the regional scope. For example, when the number of moving objects within the preset range is large, the moving objects may be divided into different moving object sets according to the distance between the moving objects, so that the number of moving objects in each moving object set is less than or equal to the above-mentioned preset number.
As an optional implementation manner, the travel track of each moving object is presented in a line form, and the travel trend graph of the moving object set formed by each moving object is a graph drawn according to the line of the travel track, and the travel trend graph is used for representing the overall movement trend of the moving object set.
Referring to fig. 1 described above, the travel track of each moving object may be in a line format illustrated in fig. 1. For example, the line of the travel track of the same moving object may be divided into a solid line and a broken line, wherein a track indicating that the moving object has passed is implemented and a broken line indicates a track through which the moving object has not passed.
The travel tendency graph is a graph representing the overall travel tendency of a plurality of moving objects. In the present application, the travel trend graph is drawn based on the line of the travel locus. The specific drawing process will be described in detail in the following examples.
In the above step S202, when the system draws the travel trend graph of the moving object set based on the travel track of each moving object, in one embodiment, the system may draw the travel trend graph based only on the travel track of each moving object. For example, the intersection point of the travel tracks of the moving objects is set as the top end of the travel trend graph, and the travel trend graph is drawn to extend along the direction opposite to the travel track of the moving objects. In another embodiment, the drawing may be performed based on the position of each moving object and the travel track at the same time. Compared with the first mode, the travel trend graph drawn by the mode can more accurately represent the overall travel trend of each moving object. The following examples of the present application describe in detail such a way of drawing based on both position and travel locus.
In the following embodiments, a description will be given of a case where a plurality of moving objects are included in a moving object set, and a travel trend graph of the moving object set may be drawn based on the following embodiments. In the case that the moving object is only one, the moving object can be directly drawn along the moving track, and the arrow shape thicker than the line of the moving track is required, and the application is not repeated.
Fig. 3 is a drawing flowchart of a game display control method according to an embodiment of the present application, and as shown in fig. 3, an alternative way of drawing a travel trend image according to a position of a moving object and a travel estimation includes:
s301, determining at least one moving object pair according to the travelling tracks of a plurality of moving objects, wherein each moving object pair comprises two moving objects, and the travelling tracks of the two moving objects are intersected.
For example, the travel track of each moving object may be represented by a series of position points, and if there are position points in the travel tracks of two moving objects that are the same or different by less than a certain threshold value, it may be determined that the travel tracks of the two moving objects intersect, and the two moving objects may be formed into one moving object pair.
S302, taking an intersection point of the travelling tracks of two moving objects in each moving object pair as a point of a direction mark of each moving object pair.
For example, if there is the same position point in the travel locus of both moving objects in the moving object pair, the position point may be directly taken as the point of the direction indicator of the moving object pair. If there are no identical position points but position points having a difference smaller than a certain threshold value in the travel trajectories of the two moving objects in the pair of moving objects, one of the position points having a difference smaller than a certain threshold value may be taken as a point of the direction indicator, or one of the position points having a difference smaller than a certain threshold value may be taken as a point of the direction indicator.
S303, drawing and displaying a traveling trend graph of a moving object set formed by a plurality of moving objects on the map according to the points of the direction marks of each moving object pair and the positions of the moving objects in each moving object pair.
Optionally, the determined point of the direction indicator can represent a common travelling trend of the moving objects where the two travelling tracks intersect, so that the travelling trend graph is drawn based on the point of the direction indicator and the positions of the moving objects, and the travelling trend graph can more accurately represent an actual travelling trend.
As an alternative embodiment, an alternative manner of the step S301 includes:
first, at least one candidate mobile object intersecting with the third mobile object and an intersection point corresponding to each candidate mobile object are determined according to the travel track of each mobile object. And determining a pair of moving objects corresponding to the third moving object according to the distance between the position of the third moving object and the intersection point corresponding to each candidate moving object and the distance between the position of each candidate moving object and the intersection point corresponding to each candidate moving object.
The third moving object may refer to any moving object in the moving object set.
For the third moving object, there may be one or more moving objects intersecting with the travelling track thereof, and when there is one, the pair of moving objects may be directly composed. When there are a plurality of moving objects, the moving objects are first taken as the candidate moving objects of the third moving object. And determining a moving object pair corresponding to the third moving object according to the distance between the position of the third moving object and the intersection point corresponding to each candidate moving object and the distance between the position of each candidate moving object and the intersection point corresponding to each candidate moving object.
The intersection point corresponding to each candidate mobile object may refer to an intersection point of each candidate mobile object and a third mobile object.
Optionally, when determining the pair of moving objects corresponding to the third moving object according to the distance between the position of the third moving object and the intersection point corresponding to each candidate moving object and the distance between the position of each candidate moving object and the intersection point corresponding to each candidate moving object, the following may be performed:
first, the distance between the position of the third moving object and the intersection point corresponding to each candidate moving object and the sum of the distances between the position of each candidate moving object and the intersection point corresponding to each candidate moving object are calculated respectively. And forming a moving object pair corresponding to the third moving object by the to-be-selected moving object and the third moving object when the sum of the distances is minimum.
The moving object pair corresponding to the third moving object refers to a moving object pair including the third moving object.
For example, assuming that the third moving object is an object a, the candidate moving objects intersecting with the object a include an object B, an object C, and an object D, and the intersection point of the object a and the object B is an intersection point B, the intersection point of the object C and the object D is an intersection point C, the following information is calculated respectively:
1. the distance B1 from the position of the object a to the intersection point B is calculated, and the distance B2 from the position of the object B to the intersection point B is calculated, and the sum B0 of B1 and B2 is calculated.
2. The distance C1 from the position of the object a to the intersection C is calculated, and the distance C2 from the position of the object C to the intersection C is calculated, and the sum C0 of C1 and C2 is calculated.
3. The distance D1 from the position of the object a to the intersection point D is calculated, and the distance D2 from the position of the object D to the intersection point D is calculated, and the sum D0 of D1 and D2 is calculated.
4. And selecting the minimum value of b0, c0 and D0, and forming the object A and the object D into a moving object pair on the premise that the minimum value is D0.
Next, a method of drawing a travel trend graph from the points of the direction marks and the positions of the moving objects in step S303 will be described.
The moving object set comprises 2 moving objects, and when the moving object set comprises more than or equal to 3 moving objects, the drawing can be performed in different modes. The following description will be given separately.
First, when the number of moving objects in the moving object set is greater than or equal to 3, the traveling trend graph may be plotted as follows.
Fig. 4 is a drawing flowchart when the number of moving objects is greater than or equal to 3 in the display control method for a game according to the embodiment of the present application, as shown in fig. 4, the drawing process may include:
s401, respectively taking the point of the direction mark of each moving object pair and the position of the moving object in each moving object pair as vertexes to construct a moving triangle corresponding to each moving object pair.
Fig. 5 is a schematic view of a travel track when 6 moving objects are included in the moving object set, and referring to fig. 5, the moving object set includes object 1, object 2, object 3, object 4, object 5, and object 6, and according to the foregoing method, a point D1 of the direction indicator of object 1 and object 2, a point D2 of the direction indicator of object 3 and object 4, and a point D3 of the direction indicator of object 5 and object 6 can be determined, and at the same time, the respective positions of object 1, object 2, object 3, object 4, object 5, and object 6 can be known. Taking a moving object pair formed by the object 1 and the object 2 as an example, taking the position of the object 1, the position of the object 2 and the point D1 of the direction indicator as vertexes, a moving triangle can be constructed, and the moving triangle can be called a moving triangle corresponding to the object 1 and the object 2. Similarly, the moving triangles corresponding to the object 3, the object 4, the object 5 and the object 6 can be obtained.
S402, determining overlapping points between the moving triangles corresponding to the moving object pairs.
With continued reference to fig. 5, based on the moving triangle composed of the object 3 and the object 4 and the moving triangle composed of the object 5 and the object 6, the overlapping point between the two moving triangles can be determined as J1.
The specific procedure for determining the overlap point will be described in detail in the following examples.
S403, drawing and displaying a traveling trend graph of a mobile object set formed by a plurality of mobile objects on the map according to the points of the direction marks of the mobile object pairs and the overlapping points between the mobile triangles corresponding to the mobile object pairs.
Through the foregoing steps, the points of the direction marks of each moving object pair and the overlapping points between the moving triangles can be determined, and as described above, the points of the direction marks of the moving object pair represent the common traveling trend of the two moving objects, whereas the overlapping points determined in the present embodiment represent the common positions between the moving object pairs, and therefore, the traveling trend graph consistent with the actual traveling trend can be drawn more accurately based on the two position points.
Fig. 6 is a schematic diagram of drawing a travel trend graph based on the points of the direction marks and the overlapping points, and referring to fig. 6, a travel trend graph having smooth edges may be drawn after the points of the direction marks and the overlapping points are determined.
Fig. 7 is a schematic diagram showing a transition from displaying a travel track to displaying a travel trend graph when the number of moving objects is greater than or equal to 3, and as shown in fig. 7, the moving object set includes 6 moving objects as shown in fig. 5, and after the processing in the above embodiment, the transition is made to displaying the overall travel trend graph of the 6 moving objects on the map.
The manner of determining the overlapping point of the moving triangle in step S402 described above is explained below.
For two moving triangles, there may be one or more intersection points if any. If one exists, the intersection point is directly taken as the overlapping point of the two moving triangles. If there are a plurality, the overlapping point may be determined as follows.
Optionally, if there are multiple intersections of the first moving triangle corresponding to the first moving object pair and the second moving triangle corresponding to the second moving object pair, determining an overlapping point between the first moving triangle and the second moving triangle according to a distance between each intersection and a point of the direction indicator of the first moving object pair and a distance between each intersection and a point of the direction indicator of the second moving object pair.
Wherein the first moving object pair and the second moving object pair may refer to any two moving object pairs of the moving object pairs determined using the foregoing procedure.
Alternatively, when determining the overlapping point between the first moving triangle and the second moving triangle according to the distance between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair, the sum of the distances between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair may be calculated, and then, the intersection point with the smallest sum of the distances may be used as the overlapping point between the first moving triangle and the second moving triangle.
Taking the moving object illustrated in fig. 5 as an example, assuming that the moving triangle corresponding to the object 3 and the object 4 is a first moving triangle and the moving triangle corresponding to the object 5 and the object 6 is a second moving triangle, the total number of intersection points of the first moving triangle and the second moving triangle is 4. In this embodiment, for each intersection point, the distance from the intersection point to the target point D2 and the distance from the intersection point to the target point D3 are calculated, and the sum of these 2 distances is calculated, and each intersection point may calculate a sum of distances, and if the sum of distances corresponding to a certain intersection point is minimum, the intersection point is taken as the overlapping point of the first moving triangle and the second moving triangle.
The following describes the process of drawing the travel trend graph based on the points of the direction marks of the respective pairs of moving objects and the overlapping points between the moving triangles corresponding to the respective pairs of moving objects in the above-described step S403.
Fig. 8 is a schematic flow chart of drawing a travel trend graph based on overlapping points and points of a direction indicator in the display control method of a game provided in the embodiment of the present application, where the drawing process includes:
s801, drawing a travel direction identifier on a point of a direction indicator of each moving object pair on the map, where the travel direction identifier includes: arrows.
Referring to fig. 6, arrows may be respectively drawn on points of the direction marks of each moving object pair as travel direction marks, and specifically, 3 points of the direction marks are illustrated in fig. 6, and then 3 arrows are correspondingly drawn as travel direction marks.
S802, a first curve which starts from a first starting point and passes through a first passing point is drawn by taking a point of a direction mark of a first moving object pair as a first starting point and taking one position of positions of two moving objects in the first moving object pair as a first passing point.
S803, a second curve is drawn by taking a point of a direction mark of the second moving object pair as a second starting point, taking one of positions of two moving objects in the second moving object pair as a second passing point, and starting from the second starting point and passing through the second passing point.
Wherein the first moving object pair and the second moving object pair each include one edge moving object in the moving object set.
Wherein, an edge moving object in a moving object set may refer to that no other moving object in the moving object set exists above or below the moving object. Taking fig. 5 as an example, object 1 and object 6 are edge moving objects in a moving object set.
Through the above steps S802 to S803, a first curve and a second curve may be drawn, which may be used as edge lines in the traveling trend graph.
S804, respectively taking the points of the direction marks of the two moving object pairs as a third starting point and a third ending point, drawing at least one third curve from the third starting point to the third ending point, and displaying a graph formed by the travelling direction mark, the first curve, the second curve and each third curve as the travelling trend graph, wherein if the two moving object pairs have overlapping points, the third curve passes through the overlapping points.
With continued reference to fig. 5, there is no overlapping point for the two moving object pairs corresponding to the target points D1 and D2, and thus, a third curve from D1 to D2 may be directly drawn, and the completeness of the curve may use a preset value. Two moving object pairs corresponding to D2 and D3 have overlapping points, and thus, a third curve can be drawn via the overlapping points.
The following describes a method of drawing a travel trend graph when the number of moving objects in the moving object set is 2.
When the number of moving objects in the moving object set is 2, the number of moving object pairs is one.
Fig. 9 is a drawing flowchart when the number of moving objects is equal to 2 in the display control method for a game according to the embodiment of the present application, where, as shown in fig. 9, the drawing process includes:
s901, drawing a travel direction identifier on a point of a direction indicator of a moving object pair on a map, where the travel direction identifier includes: arrows.
The processing procedure of this step may refer to the aforementioned step S801, and will not be described herein.
S902, respectively drawing a fourth curve and a fifth curve which start from a point of a direction mark of the moving object pair and pass through a transit point by taking the positions of two moving objects in the moving object pair as the transit point.
And S903, displaying a graph formed by the travelling direction mark, the fourth curve and the fifth curve as the travelling trend graph.
When the number of moving objects in the moving object set is 2, an arrow can be drawn on the points of the direction marks of the two moving objects, and curves can be drawn along the positions of the two moving objects respectively, so that a traveling trend graph can be drawn.
Fig. 10 is a schematic diagram showing a transition from displaying a travel track to displaying a travel trend graph when 2 moving objects are equal to each other, and as shown in fig. 10, the moving object set includes 2 moving objects, and after the processing in the above embodiment, the transition is made to displaying the overall travel trend graph of the 2 moving objects on the map.
Based on the same inventive concept, the embodiment of the present application further provides a game display control device corresponding to the game display control method, and since the principle of solving the problem by the device in the embodiment of the present application is similar to that of the game display control method in the embodiment of the present application, the implementation of the device may refer to the implementation of the method, and the repetition is omitted.
Fig. 11 is a block diagram of a display control device for a game according to an embodiment of the present application, and as shown in fig. 12, the device includes:
the display module 1101 is configured to display a travel track of at least one moving object on a first scale in the map.
And a drawing module 1102, configured to draw and display, on the map, a travel trend graph of a set of moving objects formed by the at least one moving object according to a travel track of the at least one moving object in response to switching from a first scale to a second scale, where the first scale is greater than the second scale.
As an alternative embodiment, the drawing module 1102 is specifically configured to:
and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the position and the traveling track of the at least one mobile object.
As an optional implementation manner, the travel track is drawn to be presented in a line form, and the travel trend graph is a graph drawn according to the line of the travel track and is used for representing the overall movement trend of the moving object set.
As an alternative embodiment, the number of the moving objects is a plurality; the drawing module 1102 is specifically configured to:
determining at least one moving object pair according to the travelling tracks of a plurality of moving objects, wherein each moving object pair comprises two moving objects, and the travelling tracks of the two moving objects are intersected;
taking the intersection point of the travelling tracks of two moving objects in each moving object pair as the point of the direction mark of each moving object pair;
and drawing and displaying a traveling trend graph of a mobile object set formed by a plurality of mobile objects on the map according to the points of the direction marks of each mobile object pair and the positions of the mobile objects in each mobile object pair.
As an alternative embodiment, the number of the moving objects is greater than or equal to 3; the drawing module 1102 is specifically configured to:
respectively taking the point of the direction mark of each moving object pair and the position of the moving object in each moving object pair as vertexes to construct a moving triangle corresponding to each moving object pair;
determining overlapping points between the moving triangles corresponding to the moving object pairs;
and drawing and displaying a traveling trend graph of a moving object set formed by a plurality of moving objects on the map according to the points of the direction marks of the moving object pairs and the overlapping points between the moving triangles corresponding to the moving object pairs.
As an alternative embodiment, the drawing module 1102 is specifically configured to:
drawing travelling direction marks on the points of the direction marks of the moving object pairs on the map respectively, wherein the travelling direction marks comprise: arrows;
drawing a first curve which starts from the first starting point and passes through the first passing point by taking the point of the direction mark of the first moving object pair as the first starting point and taking one of the positions of the two moving objects in the first moving object pair as the first passing point;
drawing a second curve which starts with the second starting point and passes through the second passing point by taking the point of the direction mark of the second moving object pair as a second starting point and taking one of the positions of two moving objects in the second moving object pair as a second passing point, wherein the first moving object pair and the second moving object pair respectively comprise one edge moving object in the moving object set;
And respectively taking points of the direction marks of the two moving object pairs as a third starting point and a third ending point, drawing at least one third curve from the third starting point to the third ending point, and displaying a graph formed by the travelling direction mark, the first curve, the second curve and each third curve as the travelling trend graph, wherein if an overlapping point exists in the two moving object pairs, the third curve passes through the overlapping point.
As an alternative embodiment, the drawing module 1102 is specifically configured to:
if a plurality of intersection points exist between the first moving triangle corresponding to the first moving object pair and the second moving triangle corresponding to the second moving object pair, determining an overlapping point between the first moving triangle and the second moving triangle according to the distance between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair.
As an alternative embodiment, the drawing module 1102 is specifically configured to:
respectively calculating the sum of the distances between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair;
And taking the intersection point with the smallest sum of the distances as an overlapping point between the first moving triangle and the second moving triangle.
As an alternative embodiment, the number of the moving objects is 2, and the number of the moving object pairs is one; the drawing module 1102 is specifically configured to:
drawing a traveling direction mark on a point of a direction mark of the mobile object pair on the map, wherein the traveling direction mark comprises the following components: arrows;
drawing a fourth curve and a fifth curve which start from the starting point to and pass through the passing points respectively by taking the point of the direction mark of the moving object pair as the starting point and the positions of two moving objects in the moving object pair as the passing points;
and displaying a graph formed by the travelling direction mark, the fourth curve and the fifth curve as the travelling trend graph.
As an alternative embodiment, the drawing module 1102 is specifically configured to:
determining at least one to-be-selected moving object intersected with the third moving object and an intersection point corresponding to each to-be-selected moving object according to the advancing track of each moving object;
and determining a mobile object pair corresponding to the third mobile object according to the distance between the position of the third mobile object and the intersection point corresponding to each candidate mobile object and the distance between the position of each candidate mobile object and the intersection point corresponding to each candidate mobile object.
As an alternative embodiment, the drawing module 1102 is specifically configured to:
respectively calculating the distance between the position of the third moving object and the intersection point corresponding to each to-be-selected moving object and the sum of the distance between the position of each to-be-selected moving object and the intersection point corresponding to each to-be-selected moving object;
and forming a moving object pair corresponding to the third moving object by the to-be-selected moving object with the smallest sum of the distances and the third moving object.
As an alternative embodiment, the drawing module 1102 is further configured to:
and forming the at least one moving object in the range of the preset area in the map into the moving object set.
The embodiment of the present application further provides an electronic device 120, as shown in fig. 12, which is a schematic structural diagram of the electronic device 120 provided in the embodiment of the present application, including: a processor 121, a memory 122, and a bus 123. The memory 122 stores machine-readable instructions executable by the processor 121 (e.g., execution instructions corresponding to the display module 1101 and the drawing module 1102 in the apparatus of fig. 11, etc.), and when the electronic device 120 is running, the processor 121 communicates with the memory 122 through the bus 123, and the machine-readable instructions are executed by the processor 121 to perform the method steps described in the method embodiments above.
The embodiments of the present application also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the display control method of a game described above.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the method embodiments, which are not described in detail in this application. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform 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 removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered in the protection scope of the present application.

Claims (14)

1. A display control method of a game, comprising:
displaying a travel track of at least one moving object in a map at a first scale;
in response to switching from a first scale to a second scale, drawing and displaying a traveling trend graph of a moving object set formed by the at least one moving object on the map according to the traveling track of the at least one moving object, wherein the first scale is larger than the second scale;
and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the traveling track of the at least one mobile object, wherein the traveling trend graph comprises the following steps:
and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the position and the traveling track of the at least one mobile object.
2. The method of claim 1, wherein the travel track is presented in the form of a line, and the travel trend graph is a graph drawn from the line of the travel track, and the travel trend graph is used to characterize the overall movement trend of the set of moving objects.
3. The method of claim 1, wherein the number of moving objects is a plurality; and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the position and the traveling track of the at least one mobile object, wherein the traveling trend graph comprises the following components:
determining at least one moving object pair according to the travelling tracks of a plurality of moving objects, wherein each moving object pair comprises two moving objects, and the travelling tracks of the two moving objects are intersected;
taking the intersection point of the travelling tracks of two moving objects in each moving object pair as the point of the direction mark of each moving object pair;
and drawing and displaying a traveling trend graph of a mobile object set formed by a plurality of mobile objects on the map according to the points of the direction marks of each mobile object pair and the positions of the mobile objects in each mobile object pair.
4. A method according to claim 3, wherein the number of moving objects is greater than or equal to 3; and drawing and displaying a traveling trend graph of a mobile object set formed by a plurality of mobile objects on the map according to the points of the direction marks of each mobile object pair and the positions of the mobile objects in each mobile object pair, wherein the traveling trend graph comprises the following steps:
Respectively taking the point of the direction mark of each moving object pair and the position of the moving object in each moving object pair as vertexes to construct a moving triangle corresponding to each moving object pair;
determining overlapping points between the moving triangles corresponding to the moving object pairs;
and drawing and displaying a traveling trend graph of a moving object set formed by a plurality of moving objects on the map according to the points of the direction marks of the moving object pairs and the overlapping points between the moving triangles corresponding to the moving object pairs.
5. The method according to claim 4, wherein the drawing and displaying a travel trend graph of a moving object set composed of a plurality of moving objects on the map according to points of the direction marks of each moving object pair and overlapping points between the moving triangles corresponding to each moving object pair comprises:
drawing travelling direction marks on the points of the direction marks of the moving object pairs on the map respectively, wherein the travelling direction marks comprise: arrows;
drawing a first curve which starts from the first starting point and passes through the first passing point by taking the point of the direction mark of the first moving object pair as the first starting point and taking one of the positions of the two moving objects in the first moving object pair as the first passing point;
Drawing a second curve which starts with the second starting point and passes through the second passing point by taking the point of the direction mark of the second moving object pair as a second starting point and taking one of the positions of two moving objects in the second moving object pair as a second passing point, wherein the first moving object pair and the second moving object pair respectively comprise one edge moving object in the moving object set;
and respectively taking points of the direction marks of the two moving object pairs as a third starting point and a third ending point, drawing at least one third curve from the third starting point to the third ending point, and displaying a graph formed by the travelling direction mark, the first curve, the second curve and each third curve as the travelling trend graph, wherein if an overlapping point exists in the two moving object pairs, the third curve passes through the overlapping point.
6. The method of claim 4, wherein determining the overlap point between the corresponding moving triangles of each moving object pair comprises:
if a plurality of intersection points exist between the first moving triangle corresponding to the first moving object pair and the second moving triangle corresponding to the second moving object pair, determining an overlapping point between the first moving triangle and the second moving triangle according to the distance between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair.
7. The method of claim 6, wherein determining the overlap point between the first moving triangle and the second moving triangle based on the distance between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair comprises:
respectively calculating the sum of the distances between each intersection point and the point of the direction indicator of the first moving object pair and the distance between each intersection point and the point of the direction indicator of the second moving object pair;
and taking the intersection point with the smallest sum of the distances as an overlapping point between the first moving triangle and the second moving triangle.
8. A method according to claim 3, wherein the number of moving objects is 2 and the number of moving object pairs is one; and drawing and displaying a traveling trend graph of a mobile object set formed by a plurality of mobile objects on the map according to the points of the direction marks of each mobile object pair and the positions of the mobile objects in each mobile object pair, wherein the traveling trend graph comprises the following steps:
drawing a traveling direction mark on a point of a direction mark of the mobile object pair on the map, wherein the traveling direction mark comprises the following components: arrows;
Drawing a fourth curve and a fifth curve which start from the starting point to and pass through the passing points respectively by taking the point of the direction mark of the moving object pair as the starting point and the positions of two moving objects in the moving object pair as the passing points;
and displaying a graph formed by the travelling direction mark, the fourth curve and the fifth curve as the travelling trend graph.
9. The method of any of claims 3-8, wherein determining at least one moving object pair from the travel trajectories of the plurality of moving objects comprises:
determining at least one to-be-selected moving object intersected with the third moving object and an intersection point corresponding to each to-be-selected moving object according to the advancing track of each moving object;
and determining a mobile object pair corresponding to the third mobile object according to the distance between the position of the third mobile object and the intersection point corresponding to each candidate mobile object and the distance between the position of each candidate mobile object and the intersection point corresponding to each candidate mobile object.
10. The method of claim 9, wherein the determining the pair of moving objects corresponding to the third moving object according to the distance between the intersection point of the position of the third moving object and the corresponding to each candidate moving object and the distance between the intersection point of the position of each candidate moving object and the corresponding to each candidate moving object comprises:
Respectively calculating the distance between the position of the third moving object and the intersection point corresponding to each to-be-selected moving object and the sum of the distance between the position of each to-be-selected moving object and the intersection point corresponding to each to-be-selected moving object;
and forming a moving object pair corresponding to the third moving object by the to-be-selected moving object with the smallest sum of the distances and the third moving object.
11. The method of claim 1, wherein the drawing the travel trend graph of the set of moving objects comprising the at least one moving object on the map based on the travel track of the at least one moving object further comprises:
and forming the at least one moving object in the range of the preset area in the map into the moving object set.
12. A display control apparatus for a game, comprising:
the display module is used for displaying the travelling track of at least one moving object in the map at a first scale;
the drawing module is used for responding to switching from a first scale to a second scale, and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the traveling track of the at least one mobile object, wherein the first scale is larger than the second scale;
The drawing module is specifically configured to:
and drawing and displaying a traveling trend graph of a mobile object set formed by the at least one mobile object on the map according to the position and the traveling track of the at least one mobile object.
13. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the display control method of a game as claimed in any one of claims 1 to 11 when executed.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the display control method of a game as claimed in any one of claims 1 to 11.
CN202110407745.XA 2021-04-15 2021-04-15 Game display control method and device, electronic equipment and readable storage medium Active CN113082698B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110407745.XA CN113082698B (en) 2021-04-15 2021-04-15 Game display control method and device, electronic equipment and readable storage medium
CN202410030340.2A CN117815658A (en) 2021-04-15 2021-04-15 Game display control method, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110407745.XA CN113082698B (en) 2021-04-15 2021-04-15 Game display control method and device, electronic equipment and readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410030340.2A Division CN117815658A (en) 2021-04-15 2021-04-15 Game display control method, electronic device, and readable storage medium

Publications (2)

Publication Number Publication Date
CN113082698A CN113082698A (en) 2021-07-09
CN113082698B true CN113082698B (en) 2024-02-23

Family

ID=76678029

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110407745.XA Active CN113082698B (en) 2021-04-15 2021-04-15 Game display control method and device, electronic equipment and readable storage medium
CN202410030340.2A Pending CN117815658A (en) 2021-04-15 2021-04-15 Game display control method, electronic device, and readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202410030340.2A Pending CN117815658A (en) 2021-04-15 2021-04-15 Game display control method, electronic device, and readable storage medium

Country Status (1)

Country Link
CN (2) CN113082698B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006280480A (en) * 2005-03-31 2006-10-19 Sega Corp Game apparatus, game program, and game system
CN106683037A (en) * 2015-11-06 2017-05-17 阿里巴巴集团控股有限公司 Method and equipment for three-dimensional visualized movement of track data
CN111510553A (en) * 2020-03-25 2020-08-07 华为技术有限公司 Motion trail display method and device and readable storage medium
CN111729298A (en) * 2020-06-22 2020-10-02 网易(杭州)网络有限公司 Map control method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006280480A (en) * 2005-03-31 2006-10-19 Sega Corp Game apparatus, game program, and game system
CN106683037A (en) * 2015-11-06 2017-05-17 阿里巴巴集团控股有限公司 Method and equipment for three-dimensional visualized movement of track data
CN111510553A (en) * 2020-03-25 2020-08-07 华为技术有限公司 Motion trail display method and device and readable storage medium
CN111729298A (en) * 2020-06-22 2020-10-02 网易(杭州)网络有限公司 Map control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN117815658A (en) 2024-04-05
CN113082698A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN111623795B (en) Live-action navigation icon display method, device, equipment and medium
US10372319B2 (en) Method, apparatus and computer program product for enabling scrubbing of a media file
JP4333704B2 (en) Navigation device
US9925916B2 (en) Linear projection-based navigation
CN111767360B (en) Method and device for marking virtual lane at intersection
CN111121815B (en) Path display method, system and computer storage medium based on AR-HUD navigation
TWI676784B (en) Method of and non-transitory machine readable medium for presenting a de-clutterred navigation presentation
US9026359B2 (en) Visually representing a three-dimensional environment
CN109774720A (en) High-precision map visualization method, device and storage medium
EP3521758A1 (en) Navigation route generating method and device
CN113158349A (en) Vehicle lane change simulation method and device, electronic equipment and storage medium
CN113223113A (en) Lane line processing method and device, electronic equipment and cloud control platform
US9146111B2 (en) Method and apparatus for a transit timeline
CN114506343A (en) Trajectory planning method, device, equipment, storage medium and automatic driving vehicle
US9568333B2 (en) Method and system for selectively blending buildings to improve route visibility in a 3D navigation system
CN110017840B (en) Navigation data processing method and device, electronic equipment and computer readable medium
CN113082698B (en) Game display control method and device, electronic equipment and readable storage medium
US20160042722A1 (en) Dynamic label arrangement device, display device, dynamic label arrangement method, and display method
CN111401229B (en) Automatic labeling method and device for small visual targets and electronic equipment
CN115267666B (en) Positioning method and device for assisting mine moving target ranging
CN107329680A (en) The resident method and apparatus of information based on smart machine
CN113566836A (en) Road guiding method, device, electronic equipment and storage medium
CN112414428A (en) Navigation information display method and device, electronic equipment and storage medium
JP2013114352A (en) Map image display system, map image display method and program
WO2024066881A1 (en) Map navigation method and apparatus, and computer device and storage medium

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
GR01 Patent grant
GR01 Patent grant