CN113082698A - 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
CN113082698A
CN113082698A CN202110407745.XA CN202110407745A CN113082698A CN 113082698 A CN113082698 A CN 113082698A CN 202110407745 A CN202110407745 A CN 202110407745A CN 113082698 A CN113082698 A CN 113082698A
Authority
CN
China
Prior art keywords
moving object
moving
point
pair
traveling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110407745.XA
Other languages
Chinese (zh)
Other versions
CN113082698B (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 CN202410030340.2A priority Critical patent/CN117815658A/en
Priority to CN202110407745.XA priority patent/CN113082698B/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

Images

Classifications

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

Abstract

The application provides a display control method, a display control device, electronic equipment and a readable storage medium of a game, wherein the method comprises the following steps: displaying a travel track of at least one moving object in a map at a first scale; and in response to switching from a first scale to a second scale, drawing and displaying a travel trend graph of a 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, wherein the first scale is larger than the second scale. The method realizes the flexible display of the travel information matched with the map scale under the maps with different scales, thereby being better suitable for the scene of map zooming.

Description

Game display control method and device, electronic equipment and readable storage medium
Technical Field
The application relates to the technical field of games, in particular to a display control method and device of a game, an electronic device and a readable storage medium.
Background
With the continuous development of internet technology, the application of map real-time display is more and more extensive. For example, in some application scenarios, an icon of a moving object (e.g., an airplane, a ship, a vehicle, etc.) and a travel track thereof may be displayed on a map in real time, and the map and the position of the moving object are updated in real time as the moving object moves. In the application scenario, how to display the moving object and the traveling track thereof is a problem to be solved.
In the prior art, a moving object and a traveling track thereof can be displayed. If a single moving object is taken as a main body, the icon of each moving object and the travel track thereof are respectively displayed.
However, the track display method in the prior art cannot reflect the overall traveling trend of a plurality of moving objects, is a single fixed display method, and cannot be applied to scenes in which the map is zoomed flexibly.
Disclosure of Invention
An object of the present application is to provide a game display control method, device, electronic device and readable storage medium, to solve the problem that the mobile object drawing in the prior art cannot be applied to a flexible map zoom scene.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, a display control method for a game is provided, including:
displaying a travel track of at least one moving object in a map at a first scale;
and in response to switching from a first scale to a second scale, drawing and displaying a travel trend graph of a 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, wherein the first scale is larger than the second scale.
As an optional implementation manner, the drawing, on the map, a traveling trend graph showing a moving object set composed of the at least one moving object according to the traveling track of the at least one moving object includes:
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 position and the traveling track of the at least one moving object.
As an optional implementation manner, the travel track is presented in the form of a line, the travel trend graph 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.
As an optional implementation manner, the number of the moving objects is multiple; the 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 position and the traveling track of the at least one moving object comprises the following steps:
determining at least one moving object pair according to the traveling tracks of a plurality of moving objects, wherein each moving object pair comprises two moving objects, and the traveling tracks of the two moving objects are intersected;
taking the intersection point of the travel tracks of the two moving objects in each moving object pair as the point of the direction indicator of each moving object pair;
and drawing and displaying a traveling trend graph of a moving object set consisting of a plurality of moving objects on the map according to the points of the direction indicator of each moving object pair and the positions of the moving objects in each moving object pair.
As an optional implementation manner, the number of the moving objects is greater than or equal to 3; the drawing and displaying of the traveling trend graph of the moving object set composed of a plurality of moving objects on the map according to the point of the direction indicator of each moving object pair and the position of the moving object in each moving object pair includes:
respectively taking the point of the direction indicator of each moving object pair and the position of the moving object in each moving object pair as a vertex to construct a moving triangle corresponding to each moving object pair;
determining an overlapping point between the moving triangles corresponding to each moving object pair;
and drawing and displaying a traveling trend graph of a moving object set consisting of a plurality of moving objects on the map according to the points of the direction indicator of each moving object pair and the overlapped points between the moving triangles corresponding to each moving object pair.
As an optional implementation manner, the drawing, on the map, a traveling trend graph showing a moving object set composed of 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:
respectively drawing a traveling direction identifier on a point of a direction indicator of each moving object pair on the map, wherein the traveling direction identifier comprises: an arrow;
drawing a first curve starting from a first starting point and passing through a first passing point by taking a point of a direction indicator of the first moving object pair as the first starting point and taking one of the positions of two moving objects in the first moving object pair as the first passing point;
drawing a second curve starting from the second starting point and passing through the second passing point by taking the point of the direction indicator of the second moving object pair as a second starting point and taking one of the positions of the 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 the points of the direction indicators of the two moving object pairs as a third starting point and a third end point, drawing at least one third curve from the third starting point to the third end point, and displaying a graph formed by the advancing direction identifier, the first curve, the second curve and each third curve as the advancing trend graph, wherein if the two moving object pairs have an overlapped point, the third curve passes through the overlapped point.
As an optional implementation manner, the determining an overlapping point between the moving triangles corresponding to each moving object pair includes:
and if a plurality of intersection points exist between a first moving triangle corresponding to the first moving object pair and a 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 an overlapping point between the first moving triangle and the second moving triangle according to a distance between each intersection point and a point of the direction indicator of the first moving object pair and a distance between each intersection point and a point of the direction indicator of the second moving object pair includes:
calculating the sum of 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;
and taking the intersection point with the minimum sum of the distances as an overlapping point between the first moving triangle and the second moving triangle.
As an optional implementation manner, the number of the moving objects is 2, and the number of the moving object pairs is one; the drawing and displaying of the traveling trend graph of the moving object set composed of a plurality of moving objects on the map according to the point of the direction indicator of each moving object pair and the position of the moving object in each moving object pair includes:
drawing a travel direction indicator on a point of a direction indicator of the moving object pair on the map, the travel direction indicator including: an arrow;
respectively drawing a fourth curve and a fifth curve starting from the starting point and passing through the transit point by taking the point of the direction indicator of the moving object pair as the starting point and the positions of the two moving objects in the moving object pair as the transit point;
and displaying a graph formed by the traveling direction mark, the fourth curve and the fifth curve as the traveling trend graph.
As an optional implementation manner, the determining at least one moving object pair according to the travel 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 traveling track of each 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 to-be-selected moving object and the distance between the position of each to-be-selected moving object and the intersection point corresponding to each to-be-selected moving object.
As an optional implementation manner, the determining, according to the distance between the position of the third moving object and the intersection corresponding to each candidate moving object and the distance between the position of each candidate moving object and the intersection corresponding to each candidate moving object, a 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 distances 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 minimum sum of the distances and the third moving object.
As an optional implementation manner, before the drawing and displaying a traveling trend graph of a moving object set composed of the at least one moving object on the map according to the traveling track of the at least one moving object, the method further includes:
and forming the at least one mobile object in a preset area range in the map into the mobile object set.
In a second aspect, the present application provides a display control apparatus for a game, comprising:
the display module is used for displaying the travel track of at least one moving object in a map at a first scale;
and the drawing module is used for 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 in response to switching from the first scale to the second scale, 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 moving object set formed by the at least one moving object on the map according to the position and the traveling track of the at least one moving object.
As an optional implementation manner, the travel track is presented in the form of a line, the travel trend graph 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.
As an optional implementation manner, the number of the moving objects is multiple; the drawing module is specifically configured to:
determining at least one moving object pair according to the traveling tracks of a plurality of moving objects, wherein each moving object pair comprises two moving objects, and the traveling tracks of the two moving objects are intersected;
taking the intersection point of the travel tracks of the two moving objects in each moving object pair as the point of the direction indicator of each moving object pair;
and drawing and displaying a traveling trend graph of a moving object set consisting of a plurality of moving objects on the map according to the points of the direction indicator of each moving object pair and the positions of the moving objects in each moving object pair.
As an optional 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 indicator of each moving object pair and the position of the moving object in each moving object pair as a vertex to construct a moving triangle corresponding to each moving object pair;
determining an overlapping point between the moving triangles corresponding to each moving object pair;
and drawing and displaying a traveling trend graph of a moving object set consisting of a plurality of moving objects on the map according to the points of the direction indicator of each moving object pair and the overlapped points between the moving triangles corresponding to each moving object pair.
As an optional implementation manner, the drawing module is specifically configured to:
respectively drawing a traveling direction identifier on a point of a direction indicator of each moving object pair on the map, wherein the traveling direction identifier comprises: an arrow;
drawing a first curve starting from a first starting point and passing through a first passing point by taking a point of a direction indicator of the first moving object pair as the first starting point and taking one of the positions of two moving objects in the first moving object pair as the first passing point;
drawing a second curve starting from the second starting point and passing through the second passing point by taking the point of the direction indicator of the second moving object pair as a second starting point and taking one of the positions of the 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 the points of the direction indicators of the two moving object pairs as a third starting point and a third end point, drawing at least one third curve from the third starting point to the third end point, and displaying a graph formed by the advancing direction identifier, the first curve, the second curve and each third curve as the advancing trend graph, wherein if the two moving object pairs have an overlapped point, the third curve passes through the overlapped point.
As an optional implementation manner, the drawing module is specifically configured to:
and if a plurality of intersection points exist between a first moving triangle corresponding to the first moving object pair and a 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:
calculating the sum of 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;
and taking the intersection point with the minimum sum of the distances as an overlapping point between the first moving triangle and the second moving triangle.
As an optional 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 travel direction indicator on a point of a direction indicator of the moving object pair on the map, the travel direction indicator including: an arrow;
respectively drawing a fourth curve and a fifth curve starting from the starting point and passing through the transit point by taking the point of the direction indicator of the moving object pair as the starting point and the positions of the two moving objects in the moving object pair as the transit point;
and displaying a graph formed by the traveling direction mark, the fourth curve and the fifth curve as the traveling 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 traveling track of each 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 to-be-selected moving object and the distance between the position of each to-be-selected moving object and the intersection point corresponding to each to-be-selected moving 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 distances 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 minimum sum of the distances and the third moving object.
As an optional implementation manner, the rendering module is further configured to:
and forming the at least one mobile object in a preset area range in the map into the mobile object set.
In a third aspect, the present application provides an electronic device, comprising: the game control system comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the game display control method of the first aspect.
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 game display control method according to the first aspect.
According to the game display control method, the game display control device, the electronic equipment and the readable storage medium, in response to the map being switched from the first scale to the second scale, the system can draw and display the advancing trend graph of the moving object set formed by the moving objects on the map according to the advancing tracks of the moving objects in the map, so that the advancing information matched with the map scale can be flexibly displayed on the map with different scales, and the method and the device can be better suitable for the map zooming scene.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view showing a travel track of each moving object in a map, respectively;
FIG. 2 is a schematic flow chart illustrating a method for controlling display of a game according to an embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating a method for controlling the display of a game according to an embodiment of the present disclosure;
fig. 4 is a drawing flowchart when the number of moving objects is greater than or equal to 3 in the display control method of the game provided in the embodiment of the present application;
fig. 5 is a schematic diagram of a travel track when a moving object set includes 6 moving objects;
FIG. 6 is a schematic diagram of a graph plotting a travel trend based on points of a direction indicator and overlapping points;
FIG. 7 is a diagram illustrating a process of switching from displaying a process track to displaying a process trend graph when the number of moving objects is greater than or equal to 3;
FIG. 8 is a schematic flow chart illustrating a graph of a trend of progress drawn based on overlapping points and points of a direction indicator when a 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;
fig. 9 is a drawing flowchart when the number of moving objects is equal to 2 in the display control method of the game according to the embodiment of the present application;
FIG. 10 is a diagram illustrating a graph showing a moving trend when the number of moving objects is 2;
fig. 11 is a block configuration diagram of a display control apparatus of 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
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
To enable those skilled in the art to use the present disclosure, the following embodiments are presented in conjunction with a specific application scenario, "game scenario". It will be apparent to those skilled 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 application. Although the present application is described primarily in the context of a game scenario, it should be understood that this is merely one exemplary embodiment.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
In a game scene, displaying a map is generally involved, and icons of moving objects (such as airplanes, ships, vehicles, and the like) in the game scene and travel tracks thereof are displayed in the map in real time. At present, for the display of the travel track of the mobile object in the map, if a single mobile object is taken as a main body, the icon of each mobile object and the travel track thereof are respectively displayed, and the overall travel trend cannot be reflected. Fig. 1 is a schematic diagram illustrating a travel track of each moving object in a map, and as shown in fig. 1, after the system acquires the travel track of each moving object, the system displays the travel track of each moving object. The method of displaying only the travel track is a single fixed display method, and cannot be applied to scenes in which the map is zoomed flexibly. For example, when a map in a game scene is displayed at a large scale, the moving objects are distant from each other in the map at this time, and therefore, it is suitable to display the respective travel trajectories of the moving objects. When the map is zoomed to a small scale, the distance between the multiple moving objects in the map is likely to be short, so that the map is suitable for displaying the whole traveling trend of the multiple moving objects with short distance, and the current single fixed display mode cannot meet the actual requirement in the scene.
Based on the above problems, embodiments of the present application provide a display control method for a game, which can obtain an overall traveling trend of a set formed by moving objects in real time by using a traveling trajectory of each moving object when a map is zoomed from a large scale to a small scale, thereby implementing flexible switching of a traveling trajectory display method for moving objects in a map zooming scene, so as to be suitable for maps with different scales.
Fig. 2 is a flowchart illustrating a display control method of a game according to an embodiment of the present disclosure, where an execution main body of the method may be an electronic device, such as a mobile phone, a desktop computer, a notebook computer, and the like, executing a game program. For ease of understanding and description, the implementation bodies will be referred to as "systems" in the following embodiments. As shown in fig. 2, the method includes:
s201, displaying a travel track of at least one moving object in a map at a first scale.
Alternatively, in a game, a zoomed display of the map at a different scale may be involved. For example, in one case, the system presents 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 travel tracks thereof displayed in the map. The first scale may represent the large scale. It should be understood that the large scale represented by the first scale is relative to the second scale described below, and will be described in comparison in step S202 described below. In another case, the system may display a thumbnail of the game scene and display a small scale map in the thumbnail for practical purposes.
Illustratively, as in the first case described above, when the system needs to present a complete game scene, this step may be performed, i.e. the travel trajectory of at least one moving object is displayed in the map at a first scale. For example, when the player logs in, the system may first perform this step to present the player with a map of the first scale, and display the respective travel trajectories of the moving objects in the map.
And S202, in response to the switching from the first scale to the second scale, drawing and displaying a traveling trend graph of a moving object set consisting of 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 the map is a ratio representing 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 representation map, and the higher the geometric accuracy. The smaller the scale, the larger the actual geographic area that can be represented, and correspondingly, the lower the geometric accuracy. In the embodiment of the present application, the first scale is larger than the second scale, which means that the map can display more detailed contents, such as buildings, roads, etc., under the first scale, and therefore, the system can display the respective travel 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.
Optionally, under some triggering conditions, the system may be triggered to zoom the map from the first scale to the second scale. For example, the system currently displays a map of a first scale, the player is currently located in front of a house displayed on the map, and after the player enters the room, the system displays the scene inside the house in a full screen mode, and at this time, the system is triggered to zoom the map to a second scale, and the map of the second scale is displayed on the upper right corner or the lower right corner of the screen.
Meanwhile, in response to the map being zoomed from the first scale to the second scale, the system executes the process of the step, namely, drawing and displaying a traveling trend image 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.
Optionally, based on the operation data of the game scene, the system may obtain the travel track of each moving object in the map in real time. Further, the system can draw a traveling tendency graph showing a moving object set composed of the moving objects on the map based on the traveling locus of the moving objects.
After the system starts to display the advancing trend graph, the system correspondingly updates the advancing trend graph in real time by using the changed advancing track along with the continuous change of the advancing track of each moving object so as to ensure the continuous updating and adjustment of the advancing trend graph.
It should be noted that, after the system displays the traveling trend graph in the map, the system does not draw and display the traveling track of each moving object, however, the system background may continuously acquire the traveling track of each moving object in real time, and therefore, after the map is switched back from the second scale to the first scale again, the system may continuously display the traveling track of each moving object in real time on the map based on the traveling track of each moving object acquired in real time, and may not draw and display the traveling trend graph.
In this embodiment, in response to the map being switched from the first scale to the second scale, the system may draw and display a traveling trend graph of a moving object set formed by moving objects on the map according to the traveling track of the moving objects in the map, thereby implementing flexible display of traveling information matched with the scale of the map under maps of different scales, and thus may be better adapted to a scene of map scaling.
As described above, in drawing the display progression tendency graphic, the overall progression tendency of the set of mobile objects composed of at least one mobile object is drawn. In a specific implementation process, the number of the mobile objects displayed in the map may be relatively large, and accordingly, in the application, the mobile objects may be firstly grouped into the mobile object set in various ways, and the traveling trend graph of the mobile objects is drawn for the mobile object set.
In one mode, at least one moving object within a preset area range in the map may be grouped into the moving object set.
The preset area range can be flexibly set according to needs. For example, a marker point in a map is taken as a center, and the marker point and a moving object whose distance from the marker point is less than a certain threshold value may be combined into a moving object set.
In another mode, at least one moving object located within a preset area within a preset time period may be grouped into the moving object set.
In this manner, in addition to the area range, a time factor is taken into account. For example, the moving objects that enter the preset area within 5 minutes may be grouped into a moving object set.
In another mode, the moving objects in the preset area range in the map, which are less than or equal to the preset number, may be grouped into the moving object set.
In this approach, in addition to the area range, the number of moving objects is also taken into account. 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 preset number.
As an optional implementation manner, the travel track of each moving object is presented in the form of a line, the travel trend graph of the moving object set composed of 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 trajectory of each moving object may be in a line format as 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 dashed line, wherein the implementation represents the track that the moving object has passed through, and the dashed line represents the track that the moving object has not passed through.
The travel tendency graph is a graph representing the overall travel tendency of a plurality of moving objects. In the application, the travel trend graph is drawn based on the lines of the travel track. The specific drawing process will be described in detail in the following examples.
In the step S202, when the system draws the travel tendency graph of the moving object set based on the travel locus of each moving object, in one mode, the system may draw based on only the travel locus of each moving object. For example, the intersection of the travel trajectories of the moving objects is set as the top of the travel tendency graph, and the graph is drawn by extending in the opposite direction of the travel trajectories of the moving objects. In another mode, the drawing may be performed based on the position and the travel locus of each moving object at the same time. Compared with the first mode, the travel trend graph drawn by the mode can represent the overall travel trend of each moving object more accurately. The following embodiments of the present application describe in detail the manner in which the position and the travel trajectory are simultaneously plotted.
It should be noted that, in the following embodiments, a description is given of a case where there are a plurality of moving objects, that is, when two or more moving objects are included in the moving object set, the traveling trend graph of the moving object set may be drawn based on the following embodiments. For the case that only one moving object is provided, the arrow shape thicker than the line of the moving track can be directly drawn along the moving track of the moving object, and the description is omitted in the present application.
Fig. 3 is a drawing flowchart of a display control method of a game 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 traveling tracks of a plurality of moving objects, wherein each moving object pair comprises two moving objects, and the traveling tracks of the two moving objects are intersected.
For example, the travel track of each mobile object may be represented by a series of position points, and if there are position points in the travel tracks of two mobile objects that are the same or have a difference smaller than a certain threshold, it may be determined that the travel tracks of the two mobile objects intersect and the two mobile objects are grouped into a mobile object pair.
And S302, taking the intersection point of the travel tracks of the two moving objects in each moving object pair as the point of the direction indicator of each moving object pair.
For example, if the same position point exists in the travel trajectories of two moving objects in the pair of moving objects, the position point may be directly used as the point of the direction indicator of the pair of moving objects. If there is no identical position point but there is a position point whose difference is smaller than a certain threshold in the travel trajectories of the two moving objects in the pair of moving objects, one of the position points whose difference is smaller than the certain threshold may be taken as a point of the direction indicator, or one of the position points between the position points whose difference is smaller than the certain threshold may be taken as a point of the direction indicator.
And S303, drawing and displaying a traveling trend graph of a moving object set consisting of a plurality of moving objects on the map according to the points of the direction indicator 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 traveling trend of the two moving objects with intersecting traveling tracks, and therefore, a traveling trend graph is drawn based on the point of the direction indicator and the positions of the moving objects, so that the traveling trend graph can represent the actual traveling trend more accurately.
As an optional implementation manner, an optional manner of the step S301 includes:
firstly, 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 are determined according to the traveling track of each 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 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 the travel locus thereof, and when there is one, the pair of moving objects may be directly composed. When there are a plurality of mobile objects, the mobile objects are firstly used as the mobile objects to be selected of the third mobile 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 to-be-selected moving object and the distance between the position of each to-be-selected moving object and the intersection point corresponding to each to-be-selected moving object.
The intersection point corresponding to each candidate moving object may refer to an intersection point of each candidate moving object and the third moving object.
Optionally, when determining the 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 following steps may be performed:
firstly, the sum of 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 is calculated respectively. And then, the moving object to be selected with the minimum sum of the distances and the third moving object form a moving object pair corresponding to the third moving object.
The moving object pair corresponding to the third moving object is 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 the object a include an object B, an object C, and an object D, and an intersection of the object a and the object B is an intersection B, an intersection of the object a and the object C is an intersection C, and an intersection of the object D is an intersection 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 point C is calculated, and the distance C2 from the position of the object C to the intersection point 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. The minimum value among b0, c0, and D0 is selected, and assuming that the minimum value is D0, the object a and the object D are combined into one moving object pair.
Next, a description will be given of a manner of drawing a traveling tendency graph from the point of the direction indicator and the position of the moving object in step S303.
The moving object set comprises 2 moving objects, and when the moving object set comprises more than or equal to 3 moving objects, drawing can be performed in different modes. The following description is made separately.
First, when the number of moving objects in the moving object set is greater than or equal to 3, the traveling tendency graph can be drawn as follows.
Fig. 4 is a drawing flowchart when the number of moving objects in the display control method of the game provided in the embodiment of the present application is greater than or equal to 3, and as shown in fig. 4, the drawing process may include:
s401, respectively, using the point of the direction indicator of each moving object pair and the position of the moving object in each moving object pair as a vertex, and constructing a moving triangle corresponding to each moving object pair.
Fig. 5 is a schematic diagram of a travel track when a moving object set includes 6 moving objects, and referring to fig. 5, the moving object set includes an object 1, an object 2, an object 3, an object 4, an object 5, and an object 6, a point D1 of direction markers of the object 1 and the object 2, a point D2 of direction markers of the object 3 and the object 4, and a point D3 of direction markers of the object 5 and the object 6 can be determined according to the foregoing method, and at the same time, respective positions of the object 1, the object 2, the object 3, the object 4, the object 5, and the object 6 can be known. Taking a moving object pair composed of the object 1 and the object 2 as an example, a moving triangle can be constructed by taking the position of the object 1, the position of the object 2, and the point D1 of the direction indicator as a vertex, and the moving triangle can be referred to as a moving triangle corresponding to the object 1 and the object 2. By analogy, the moving triangles corresponding to the object 3, the object 4, the object 5 and the object 6 can be obtained.
S402, determining the overlapping points between the moving triangles corresponding to the moving object pairs.
With continued reference to fig. 5, based on the moving triangle made up of object 3 and object 4 and the moving triangle made up of object 5 and object 6, the overlap point between the two moving triangles may be determined to be J1.
The specific process of determining the overlap point will be described in detail in the following embodiments.
And S403, 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 indicator of each moving object pair and the overlapped points between the moving triangles corresponding to each moving object pair.
Through the foregoing steps, the point of the direction indicator of each moving object pair and the overlap point between the moving triangles can be determined, as described above, the point of the direction indicator of the moving object pair represents the common traveling tendency of the two moving objects, and the determined overlap point in the present embodiment represents the common position between the moving object pairs, so that the traveling tendency graph in accordance with the actual traveling tendency can be more accurately drawn based on the two position points.
Fig. 6 is a schematic diagram illustrating a traveling trend graph based on the direction indicator points and the overlapped points, and referring to fig. 6, after the direction indicator points and the overlapped points are determined, the traveling trend graph with smooth edges can be drawn.
Fig. 7 is a schematic diagram illustrating switching 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 illustrated in fig. 5, and after the processing of the above embodiment, the map is switched to displaying the overall travel trend graph of the 6 moving objects.
The manner of determining the overlapped point of the moving triangle in the above-described step S402 will be described below.
For two moving triangles, if there is an intersection, there may be one or more of the intersections. If there is one, the intersection point is directly used as the overlapping point of the two moving triangles. If there are more than one, the overlap point can be determined as follows.
Optionally, if there are a plurality of intersections between the first moving triangle corresponding to the first moving object pair and the second moving triangle corresponding to the second moving object pair, the overlapping point between the first moving triangle and the second moving triangle is determined according to the distance between each intersection and the point of the direction indicator of the first moving object pair and the distance between each intersection and the point of the direction indicator of the second moving object pair.
Here, 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 by the foregoing procedure.
Optionally, when determining the overlap 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 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 may be calculated, and then the intersection point with the smallest sum of the distances may be used as the overlap 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 the first moving triangle and the moving triangle corresponding to the object 5 and the object 6 is the second moving triangle, the number of intersections of the first moving triangle and the second moving triangle is 4 in total. In the present embodiment, for each intersection point, the distance to the target point D2 and the distance to the target point D3 are calculated, and the sum of these 2 distances is calculated, and each intersection point can calculate the sum of the distances, and if the sum of the distances corresponding to a certain intersection point is the smallest, the certain intersection point is taken as the overlapping point of the first moving triangle and the second moving triangle.
A description will be given below of a process of drawing the traveling tendency graph based on the point of the direction indicator of each moving object pair and the overlapping point between the moving triangles corresponding to each moving object pair in step S403 described above.
Fig. 8 is a schematic flow chart of drawing a progress trend graph based on overlapped points and direction indicator points when a moving object is greater than or equal to 3 in the display control method of the game provided in the embodiment of the present application, and as shown in fig. 8, the drawing process includes:
s801, drawing a travel direction indicator on each point of the direction indicator of each moving object pair on the map, where the travel direction indicator includes: arrows.
Referring to fig. 6, arrows may be respectively drawn at points of the direction indicators of each moving object pair as the travel direction indicators, specifically, 3 points of the direction indicators are illustrated in fig. 6, and then 3 arrows are correspondingly drawn as the travel direction indicators.
S802, with a point of the direction indicator of the first moving object pair as a first starting point, and with one of the positions of the two moving objects in the first moving object pair as a first passing point, drawing a first curve starting from the first starting point and passing through the first passing point.
S803, a second curve is drawn starting from the second start point and passing through the second transit point, with the point of the direction indicator of the second moving object pair as the second start point, and one of the positions of the two moving objects in the second moving object pair as the second transit point.
Wherein the first moving object pair and the second moving object pair respectively include one edge moving object in the moving object set.
The edge moving object in the 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, the object 1 and the object 6 are edge moving objects in the moving object set.
Through the above steps S802 to S803, a first curve and a second curve can be drawn, and the two curves can be used as edge lines in the traveling trend graph.
And S804, respectively taking the points of the direction indicators of the two moving object pairs as a third starting point and a third end point, drawing at least one third curve from the third starting point to the third end point, and displaying a graph formed by the traveling direction identifier, the first curve, the second curve and each third curve as the traveling trend graph, wherein if the two moving object pairs have an overlapped point, the third curve passes through the overlapped point.
With continued reference to fig. 5, the two moving object pairs corresponding to the target points D1 and D2 do not have an overlapping point, and therefore, a third curve from D1 to D2 may be directly drawn, and the completeness of the curve may use a preset value. There is an overlapping point of the two pairs of moving objects corresponding to D2 and D3, and thus, a third curve may be drawn via the overlapping point.
A description will be given below of a manner of drawing the traveling tendency 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 in the display control method of the game provided in the embodiment of the present application is equal to 2, and as shown in fig. 9, the drawing process includes:
s901, drawing a heading direction indicator on a point of a heading indicator of a moving object pair on a map, where the heading direction indicator includes: arrows.
The processing procedure of this step can refer to the aforementioned step S801, and is not described herein again.
S902, with the point of the direction indicator of the moving object pair as a starting point and the positions of the two moving objects in the moving object pair as transit points, respectively draw a fourth curve and a fifth curve starting from the starting point and passing through the transit points.
And S903, displaying a graph formed by the traveling direction mark, the fourth curve and the fifth curve as the traveling trend graph.
When the number of the moving objects in the moving object set is 2, arrows may be drawn at points of direction marks of the two moving objects, and curves may be drawn along positions of the two moving objects, respectively, so that a traveling trend graph may be drawn.
Fig. 10 is a schematic diagram of switching from displaying a travel track to displaying a travel trend graph when the number of moving objects is equal to 2, and as shown in fig. 10, after the moving object set includes 2 moving objects and is processed by the above embodiment, the map is switched to displaying the overall travel trend graph of the 2 moving objects.
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 as the principle of solving the problem of 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 can refer to the implementation of the method, and repeated details are not repeated.
Fig. 11 is a block configuration diagram of a display control device of a game according to an embodiment of the present application, and as shown in fig. 12, the device includes:
a display module 1101, configured to display a travel track of at least one moving object in a map at a first scale.
A drawing module 1102, configured to, in response to switching from a first scale to a second scale, draw and display a traveling trend graph of a moving object set formed by the at least one moving object on the map according to a traveling track of the at least one moving object, where the first scale is larger than the second scale.
As an optional implementation, the rendering module 1102 is specifically configured to:
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 position and the traveling track of the at least one moving object.
As an optional implementation manner, the travel track is drawn in a line form, the travel trend graph is 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.
As an optional implementation manner, the number of the moving objects is multiple; the rendering module 1102 is specifically configured to:
determining at least one moving object pair according to the traveling tracks of a plurality of moving objects, wherein each moving object pair comprises two moving objects, and the traveling tracks of the two moving objects are intersected;
taking the intersection point of the travel tracks of the two moving objects in each moving object pair as the point of the direction indicator of each moving object pair;
and drawing and displaying a traveling trend graph of a moving object set consisting of a plurality of moving objects on the map according to the points of the direction indicator of each moving object pair and the positions of the moving objects in each moving object pair.
As an optional implementation, the number of the moving objects is greater than or equal to 3; the rendering module 1102 is specifically configured to:
respectively taking the point of the direction indicator of each moving object pair and the position of the moving object in each moving object pair as a vertex to construct a moving triangle corresponding to each moving object pair;
determining an overlapping point between the moving triangles corresponding to each moving object pair;
and drawing and displaying a traveling trend graph of a moving object set consisting of a plurality of moving objects on the map according to the points of the direction indicator of each moving object pair and the overlapped points between the moving triangles corresponding to each moving object pair.
As an optional implementation, the rendering module 1102 is specifically configured to:
respectively drawing a traveling direction identifier on a point of a direction indicator of each moving object pair on the map, wherein the traveling direction identifier comprises: an arrow;
drawing a first curve starting from a first starting point and passing through a first passing point by taking a point of a direction indicator of the first moving object pair as the first starting point and taking one of the positions of two moving objects in the first moving object pair as the first passing point;
drawing a second curve starting from the second starting point and passing through the second passing point by taking the point of the direction indicator of the second moving object pair as a second starting point and taking one of the positions of the 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 the points of the direction indicators of the two moving object pairs as a third starting point and a third end point, drawing at least one third curve from the third starting point to the third end point, and displaying a graph formed by the advancing direction identifier, the first curve, the second curve and each third curve as the advancing trend graph, wherein if the two moving object pairs have an overlapped point, the third curve passes through the overlapped point.
As an optional implementation, the rendering module 1102 is specifically configured to:
and if a plurality of intersection points exist between a first moving triangle corresponding to the first moving object pair and a 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, the rendering module 1102 is specifically configured to:
calculating the sum of 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;
and taking the intersection point with the minimum sum of the distances as an overlapping point between the first moving triangle and the second moving triangle.
As an optional implementation, the number of the moving objects is 2, and the number of the moving object pairs is one; the rendering module 1102 is specifically configured to:
drawing a travel direction indicator on a point of a direction indicator of the moving object pair on the map, the travel direction indicator including: an arrow;
respectively drawing a fourth curve and a fifth curve starting from the starting point and passing through the transit point by taking the point of the direction indicator of the moving object pair as the starting point and the positions of the two moving objects in the moving object pair as the transit point;
and displaying a graph formed by the traveling direction mark, the fourth curve and the fifth curve as the traveling trend graph.
As an optional implementation, the rendering 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 traveling track of each 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 to-be-selected moving object and the distance between the position of each to-be-selected moving object and the intersection point corresponding to each to-be-selected moving object.
As an optional implementation, the rendering 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 distances 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 minimum sum of the distances and the third moving object.
As an alternative implementation, the rendering module 1102 is further configured to:
and forming the at least one mobile object in a preset area range in the map into the mobile object set.
An 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, and includes: a processor 121, a memory 122, and a bus 123. The memory 122 stores machine-readable instructions executable by the processor 121 (for example, corresponding execution instructions of the display module 1101 and the rendering module 1102 in the apparatus in fig. 11, etc.), when the electronic device 120 runs, 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 in the above method embodiments.
The embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the display control method of the game are executed.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules 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 of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application 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 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 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 removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (15)

1. A display control method for a game, comprising:
displaying a travel track of at least one moving object in a map at a first scale;
and in response to switching from a first scale to a second scale, drawing and displaying a travel trend graph of a 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, wherein the first scale is larger than the second scale.
2. The method according to claim 1, wherein the drawing a traveling trend graph showing a moving object set composed of the at least one moving object on the map according to the traveling track of the at least one moving object comprises:
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 position and the traveling track of the at least one moving object.
3. The method according to claim 1, wherein the travel track is presented in the form of a line, 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.
4. The method according to claim 2, wherein the number of the moving objects is plural; the 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 position and the traveling track of the at least one moving object comprises the following steps:
determining at least one moving object pair according to the traveling tracks of a plurality of moving objects, wherein each moving object pair comprises two moving objects, and the traveling tracks of the two moving objects are intersected;
taking the intersection point of the travel tracks of the two moving objects in each moving object pair as the point of the direction indicator of each moving object pair;
and drawing and displaying a traveling trend graph of a moving object set consisting of a plurality of moving objects on the map according to the points of the direction indicator of each moving object pair and the positions of the moving objects in each moving object pair.
5. The method of claim 4, wherein the number of moving objects is greater than or equal to 3; the drawing and displaying of the traveling trend graph of the moving object set composed of a plurality of moving objects on the map according to the point of the direction indicator of each moving object pair and the position of the moving object in each moving object pair includes:
respectively taking the point of the direction indicator of each moving object pair and the position of the moving object in each moving object pair as a vertex to construct a moving triangle corresponding to each moving object pair;
determining an overlapping point between the moving triangles corresponding to each moving object pair;
and drawing and displaying a traveling trend graph of a moving object set consisting of a plurality of moving objects on the map according to the points of the direction indicator of each moving object pair and the overlapped points between the moving triangles corresponding to each moving object pair.
6. The method according to claim 5, wherein the drawing a traveling trend graph showing a moving object set composed of a plurality of moving objects on the map according to the point of the direction indicator of each moving object pair and the overlapping point between the moving triangles corresponding to each moving object pair comprises:
respectively drawing a traveling direction identifier on a point of a direction indicator of each moving object pair on the map, wherein the traveling direction identifier comprises: an arrow;
drawing a first curve starting from a first starting point and passing through a first passing point by taking a point of a direction indicator of the first moving object pair as the first starting point and taking one of the positions of two moving objects in the first moving object pair as the first passing point;
drawing a second curve starting from the second starting point and passing through the second passing point by taking the point of the direction indicator of the second moving object pair as a second starting point and taking one of the positions of the 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 the points of the direction indicators of the two moving object pairs as a third starting point and a third end point, drawing at least one third curve from the third starting point to the third end point, and displaying a graph formed by the advancing direction identifier, the first curve, the second curve and each third curve as the advancing trend graph, wherein if the two moving object pairs have an overlapped point, the third curve passes through the overlapped point.
7. The method of claim 5, wherein determining the overlap point between the moving triangles to which each pair of moving objects corresponds comprises:
and if a plurality of intersection points exist between a first moving triangle corresponding to the first moving object pair and a 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.
8. The method of claim 7, wherein determining the overlap point between the first moving triangle and the second moving triangle based on the distance of each intersection point from the point of the direction indicator of the first moving object pair and the distance from the point of the direction indicator of the second moving object pair comprises:
calculating the sum of 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;
and taking the intersection point with the minimum sum of the distances as an overlapping point between the first moving triangle and the second moving triangle.
9. The method according to claim 4, wherein the number of the moving objects is 2, and the number of the moving object pairs is one; the drawing and displaying of the traveling trend graph of the moving object set composed of a plurality of moving objects on the map according to the point of the direction indicator of each moving object pair and the position of the moving object in each moving object pair includes:
drawing a travel direction indicator on a point of a direction indicator of the moving object pair on the map, the travel direction indicator including: an arrow;
respectively drawing a fourth curve and a fifth curve starting from the starting point and passing through the transit point by taking the point of the direction indicator of the moving object pair as the starting point and the positions of the two moving objects in the moving object pair as the transit point;
and displaying a graph formed by the traveling direction mark, the fourth curve and the fifth curve as the traveling trend graph.
10. The method according to any one of claims 4-9, wherein determining at least one moving object pair from the travel trajectories of a 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 traveling track of each 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 to-be-selected moving object and the distance between the position of each to-be-selected moving object and the intersection point corresponding to each to-be-selected moving object.
11. The method according to claim 10, wherein the determining the moving object pair corresponding to the third moving object according to the distance between the position of the third moving object and the intersection corresponding to each candidate moving object and the distance between the position of each candidate moving object and the intersection corresponding to each candidate 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 distances 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 minimum sum of the distances and the third moving object.
12. The method according to claim 1, before the drawing a traveling trend graph of the moving object set composed of the at least one moving object on the map according to the traveling track of the at least one moving object, further comprising:
and forming the at least one mobile object in a preset area range in the map into the mobile object set.
13. A display control apparatus for a game, comprising:
the display module is used for displaying the travel track of at least one moving object in a map at a first scale;
and the drawing module is used for 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 in response to switching from the first scale to the second scale, wherein the first scale is larger than the second scale.
14. 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 via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the display control method of the game according to any one of claims 1 to 12.
15. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of a display control method for a game according to any one of claims 1 to 12.
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
CN202410030340.2A CN117815658A (en) 2021-04-15 2021-04-15 Game display control method, electronic device, and readable storage medium
CN202110407745.XA CN113082698B (en) 2021-04-15 2021-04-15 Game display control method and device, electronic equipment 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 true CN113082698A (en) 2021-07-09
CN113082698B CN113082698B (en) 2024-02-23

Family

ID=76678029

Family Applications (2)

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
CN202110407745.XA Active CN113082698B (en) 2021-04-15 2021-04-15 Game display control method and device, electronic equipment and readable storage medium

Family Applications Before (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) CN117815658A (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
CN113082698B (en) 2024-02-23

Similar Documents

Publication Publication Date Title
KR102559269B1 (en) Real-scene navigation icon display method, device, equipment and medium
US9500494B2 (en) Providing maneuver indicators on a map
US10372319B2 (en) Method, apparatus and computer program product for enabling scrubbing of a media file
CN103875024B (en) Systems and methods for navigating camera
CN109085608A (en) Obstacles around the vehicle detection method and device
JP2008014975A (en) Navigation device
CN108139226B (en) Navigation application with novel simple mode
CN111121815B (en) Path display method, system and computer storage medium based on AR-HUD navigation
EP1725928A2 (en) Method for displaying graphic objects and communications device
EP2338152B1 (en) Method and system for rendering of labels
CN109774720A (en) High-precision map visualization method, device and storage medium
CN113223113A (en) Lane line processing method and device, electronic equipment and cloud control platform
EP2635876B1 (en) Visually representing a three-dimensional environment
CN110017840A (en) The treating method and apparatus of navigation data, electronic equipment, computer-readable medium
CN113082698B (en) Game display control method and device, electronic equipment and readable storage medium
JP7375149B2 (en) Positioning method, positioning device, visual map generation method and device
CN115830207A (en) Three-dimensional scene roaming method, device, equipment and medium
CN115357500A (en) Test method, device, equipment and medium for automatic driving system
US10965930B2 (en) Graphical user interface for indicating off-screen points of interest
CN114655240A (en) Information display method and device, electronic equipment and storage medium
CN113566836A (en) Road guiding method, device, electronic equipment and storage medium
JP6091676B2 (en) 3D map display system
JP2013114352A (en) Map image display system, map image display method and program
CN115113963B (en) Information display method and device, electronic equipment and storage medium
JP5964611B2 (en) 3D map display 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
GR01 Patent grant
GR01 Patent grant