Method and device for displaying data in game and terminal equipment
By using a fan graph to display virtual object attribute data in the game, it solves the problem that players find it difficult to quickly identify attribute differences, improves game experience and retention rate, and reduces decision-making pressure.
Patent Information
- Application Number
- CN202510244437.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-05-13
AI Technical Summary
In the prior art, virtual object attribute data is displayed in the form of a radar graph, making it difficult for players to quickly identify attribute differences, increasing decision-making pressure, and affecting game retention and server load.
By using multiple sectors in the graphical user interface to display the attribute data of a virtual object, each sector reflects the value size of an attribute, allowing players to intuitively compare attribute differences.
This method allows players to quickly identify and compare the attribute differences of virtual objects, reduce decision-making pressure, improve game experience and retention, and avoid server no-load problems.
Smart Images

Figure CN119971488A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, terminal device, and computer-readable storage medium for displaying data in a game. Background Art
[0002] Before entering a game, there is often a stage for selecting a controlled virtual object. For example, in a virtual racing game, before the race officially begins, the player needs to select one of multiple virtual racing cars as the racing car. Therefore, in the virtual object selection stage, the player is usually provided with attribute data of each candidate virtual object, such as the vehicle performance of the virtual vehicle, so that the player can select the most suitable virtual object according to his or her own game strategy, preferences, etc.
[0003] At present, the attribute data of virtual objects are usually displayed to players in the form of radar charts, which use polygon areas and vertex positions to represent the attribute values of different attributes. For some games, the attribute differences between virtual objects are small, and players have a weak perception of the radar chart area and data position, making it difficult for players to quickly identify the attribute differences between virtual objects during the virtual object selection stage. This undoubtedly creates a great decision-making pressure on players, which in turn affects the game's player retention rate and leads to problems such as server idleness.
[0004] To address the above problems, no effective solution has been proposed yet. Summary of the invention
[0005] The present application provides a method, apparatus, terminal device and computer-readable storage medium for displaying data in a game, so as to solve the technical problems existing in the prior art, such as high decision-making pressure on players, decreased game retention rate and idle server due to display defects of virtual object attribute data.
[0006] In a first aspect, an embodiment of the present application provides a method for displaying data in a game, providing a graphical user interface through a terminal device, the method comprising: determining a virtual object to be displayed, the virtual object to be displayed being any one of a plurality of virtual objects corresponding to the game; displaying attribute data corresponding to the virtual object to be displayed in the graphical user interface, the attribute data being displayed in the form of a plurality of fan graphs, each fan graph corresponding to an attribute to be displayed of the virtual object to be displayed, and the display state of the fan graph reflecting the attribute value size of the attribute to be displayed.
[0007] In a second aspect, an embodiment of the present application provides a data display device in a game, which provides a graphical user interface through a terminal device, and the device includes: a determination unit and a display unit; the determination unit is used to determine a virtual object to be displayed, and the virtual object to be displayed is any one of a plurality of virtual objects corresponding to the game; the display unit is used to display attribute data corresponding to the virtual object to be displayed in the graphical user interface, and the attribute data is displayed in the form of a plurality of fan graphs, each fan graph corresponds to an attribute to be displayed of the virtual object to be displayed, and the display state of the fan graph reflects the attribute value size of the attribute to be displayed.
[0008] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory, a processor, and a display; the memory is used to store one or more computer instructions; the processor is used to execute one or more computer instructions to implement the above method; and the display is used to display a graphical user interface.
[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having one or more computer instructions stored thereon, which, when executed by a processor, executes the above method.
[0010] Compared with the prior art, the data display method in the game provided by the present application includes: determining a virtual object to be displayed, the virtual object to be displayed is any one of the multiple virtual objects corresponding to the game; displaying the attribute data corresponding to the virtual object to be displayed in a graphical user interface, the attribute data is displayed in the form of multiple fan graphs, each fan graph corresponds to an attribute to be displayed of the virtual object to be displayed, and the display state of the fan graph reflects the attribute value size of the attribute to be displayed. This method reflects the attribute value size of the attribute to be displayed by the display state of the fan graph corresponding to the attribute to be displayed, so that the player can quickly identify the size difference of the attribute to be displayed based on the intuitive feeling of the display state, so as to easily and quickly make a selection decision for the controlled virtual object, reduce the decision-making pressure of the player, and improve the player's game experience, thereby solving the technical problems of the prior art that the game retention rate decreases and the server is idle due to the display defects of the virtual object attribute data. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a schematic diagram of displaying the performance of a virtual racing car through a radar chart provided in an embodiment of the present application;
[0012] Figure 2 This is an application system diagram of a data display method in a game provided by an embodiment of the present application;
[0013] Figure 3 is an application system diagram of another method for displaying data in a game provided by an embodiment of the present application;
[0014] Figure 4is a flowchart of a method for displaying data in a game provided by the first embodiment of the present application;
[0015] Figure 5 is a schematic diagram of the overall display state corresponding to the attribute value interval provided in the first embodiment of the present application;
[0016] Figure 6 is a schematic diagram of the edge display state corresponding to the attribute value sub-interval provided in the first embodiment of the present application;
[0017] Figure 7 is a schematic diagram of a display method of attribute data provided in the first embodiment of the present application;
[0018] Figure 8 is a schematic diagram of another display method of attribute data provided in the first embodiment of the present application;
[0019] Fig. 9 is a schematic diagram of another display method of attribute data provided in the first embodiment of the present application;
[0020] FIG10( a ) is a first schematic diagram of an interactive method for selecting a controlled virtual object provided in the first embodiment of the present application;
[0021] FIG10( b ) is a second schematic diagram of an interactive method for selecting a controlled virtual object provided in the first embodiment of the present application;
[0022] FIG10( c ) is a third schematic diagram of an interactive method for selecting a controlled virtual object provided in the first embodiment of the present application;
[0023] FIG10( d ) is a fourth schematic diagram of an interactive method for selecting a controlled virtual object provided in the first embodiment of the present application;
[0024] FIG10( e ) is a fifth schematic diagram of an interactive method for selecting a controlled virtual object provided in the first embodiment of the present application;
[0025] Fig.11 is a schematic diagram of the structure of a data display device in a game provided in the second embodiment of the present application;
[0026] Fig.12 It is a structural diagram of a terminal device provided in the third embodiment of the present application. DETAILED DESCRIPTION
[0027] In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application. Therefore, the present application is not limited to the specific implementation disclosed below.
[0028] Before entering the game, there is often a stage for selecting controlled virtual objects. For example, in a virtual racing game, before the game officially starts, the player needs to choose one of multiple virtual racing cars as the racing car. Therefore, in the virtual object selection stage, the attribute data of each candidate virtual object is usually provided to the player, such as the vehicle performance of the virtual vehicle (for example, speed, acceleration, controllability, durability, etc.), so that the player can select the most suitable virtual object according to his own game strategy, preference or the needs of the current game. For example, in a virtual racing game, the player may choose a virtual racing car with fast acceleration and flexible control according to the characteristics of the track (such as many bends and long straight lines), or choose a virtual racing car with high durability and suitable for long-distance races.
[0029] At present, in most games, the attribute data of virtual objects are usually displayed to players in the form of radar charts. Radar charts are a multi-dimensional data visualization method that reflects the attribute values of different attributes through polygon areas and vertex positions. The closer the vertex is to the outer circle, the higher the attribute value, and the larger the area, the stronger the overall performance. For some games, in order to maintain balance, the attribute differences between virtual objects may be small, and it is difficult for players to intuitively feel the difference through radar charts. In addition, the display method of radar charts depends on the player's perception of polygon areas and vertex positions. However, most players are not data visualization experts, and their perception of the area and vertex positions of radar charts is limited. It is difficult to intuitively understand the performance represented by the area size or vertex position. Although radar charts are usually marked with scales (such as a numerical range of 0 to 100), it is still difficult for players to quickly establish a clear concept of the strength of virtual object attributes due to the interweaving of multiple attributes. Due to the above reasons, players are easily confused when choosing virtual objects based on radar charts, and are unable to quickly determine which virtual object is more suitable for their needs or game strategies. This undoubtedly creates greater decision-making pressure on players, thereby affecting players' gaming experience, leading to a decrease in game retention rate, a decrease in server load, or even no load.
[0030] Figure 1 It is a schematic diagram of displaying the performance of a virtual racing car through a radar chart provided in an embodiment of the present application.
[0031] like Figure 1 As shown in FIG. 1 , the radar chart is a five-dimensional chart, and each vertex corresponds to a performance of the virtual car. In this view, the five vertices correspond to the acceleration performance, steering performance, braking performance, drift performance, and top speed performance of the virtual car. Based on the radar chart, the player cannot visually judge the performance of the virtual car.
[0032] In view of this, the present application provides a data display method in a game. The method reflects the attribute value size of the attribute to be displayed by the display state of the fan-shaped graph corresponding to the attribute to be displayed, so that the player can quickly identify the size difference of the attribute to be displayed based on the intuitive feeling of the display state, so as to easily and quickly make a selection decision for the controlled virtual object, reducing the decision-making pressure of the player and improving the game experience of the player.
[0033] The data display method, apparatus, terminal device and computer-readable storage medium in the game described in this application are further described in detail below in conjunction with specific embodiments and drawings.
[0034] Figure 2 This is an application system diagram of a data display method in a game provided by an embodiment of the present application. Figure 2 As shown, the system includes a user terminal 201 and a server terminal 202. The user terminal 201 can be any device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant (PDA), etc. The server terminal 202 can be a processing module inside the user terminal 201, or a processing device electrically connected to the user terminal 201, or a server connected to the user terminal 201 in communication. The data display method in the game provided by the present application is deployed on the server terminal 202, so that the player can intuitively identify the attribute difference of the virtual object based on the attribute data displayed on the screen of the user terminal 201 during the virtual object selection stage, so as to easily and quickly complete the selection decision of the virtual object.
[0035] Figure 3 This is an application system diagram of another method for displaying data in a game provided by an embodiment of the present application. Figure 3 As shown, the system includes multiple game terminals 301 and a game server 302 connected thereto for communication, and the game terminal 301 can be any device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant (PDA). The game server 302 can be an independent server, or a server group composed of multiple servers, or a cloud server. The game server 302 is deployed with a game application and a data display method in the game provided by the present application. When multiple players participate in the game based on multiple game terminals 301, the game server 302 provides the attribute data of the candidate virtual object to each player based on the method provided by the present application, so that each player can efficiently complete the selection decision of the virtual object.
[0036] The first embodiment of the present application provides a method for displaying data in a game.
[0037] The game targeted by the method can be any game type, such as strategy games, role-playing games, action games, shooting games, multiplayer online tactical competitive games, open world games, etc., and is not specifically limited here. In a specific implementation, the game can be a virtual racing game.
[0038] The method provides a graphical user interface through a terminal device. The graphical user interface (GUI) is displayed on the screen of the terminal device. It is a user operation interface displayed in a graphical manner. It is an interface display form for communication between a person and an electronic device, and enables a user to interact with the electronic device through icons and visual indicators. The content provided in the graphical user interface is related to the stage of the game. For example, when the game is in the pre-stage, the content provided by the graphical user interface may be a game setting interface, a virtual object selection interface, etc. When the game is in the game stage, the content provided by the graphical user interface may be the main interface of the game.
[0039] Figure 4 Flowchart of the data display method in the game provided by this embodiment. Figure 4 The data display method in the game provided by this embodiment is described in detail. The embodiments described below are used to explain the technical solution of this application and are not intended to be used as limitations for actual use.
[0040] like Figure 4 As shown, the data display method in the game provided by this embodiment includes the following steps S410 to S420.
[0041] Step S410, determining a virtual object to be displayed, where the virtual object to be displayed is any one of a plurality of virtual objects corresponding to the game.
[0042] A game may correspond to multiple alternative virtual objects for players to choose from. In the virtual object selection stage, multiple alternative virtual objects can be displayed on the graphical user interface, or multiple alternative virtual objects can be displayed in sequence. For some games with more alternative virtual objects, or some games with more complex virtual object attributes, a sequential display method is often adopted. Specifically, an alternative virtual object and the attribute data of the alternative virtual object are displayed in the graphical user interface. After the player has viewed the attribute data of the alternative virtual object, the alternative virtual object and its attribute data displayed in the graphical user interface can be switched by clicking the "next" button, switching controls, or selecting another alternative virtual object in the virtual object card bar. The specific implementation method can be adjusted according to the settings of different games, and is not limited here.
[0043] In a specific implementation, alternative virtual objects are displayed in sequence in a graphical user interface, and based on this, determining the virtual object to be displayed may specifically include: responding to a switching operation on a first virtual object, determining a second virtual object as the virtual object to be displayed, the first virtual object being the currently displayed virtual object, and the second virtual object being a virtual object that is displayed after the first virtual object.
[0044] Generally, when a game corresponds to multiple candidate virtual objects, the display order of each candidate virtual object is preset so that the multiple candidate virtual objects are displayed in the graphical user interface in the display order. The display order is determined according to the settings of different games and is not limited here. Exemplarily, the alphabetical order of the first letters of the names of the candidate virtual objects can be used as the display order of the candidate virtual objects, the random order can be used as the display order of the candidate virtual objects, and the performance strength of the candidate virtual objects can be used as the display order of the candidate virtual objects.
[0045] The first virtual object can be understood as an alternative virtual object currently being displayed in the graphical user interface. After the player has viewed the attribute data of the first virtual object, if he wants to continue viewing the attribute data of other alternative virtual objects, he will perform a switching operation on the first virtual object. The switching operation can be a triggering operation on the switching control, such as any type of operation such as clicking, pressing, double-clicking, and dragging the switching control. The switching control can be in any form such as a "next" icon, an arrow icon, etc., without specific limitation. In response to the switching operation performed by the player on the first virtual object, a virtual object whose display order is after the first virtual object will be determined as the virtual object to be displayed. In this embodiment, the virtual object whose display order is after the first virtual object is defined as the second virtual object, that is, the second virtual object is determined as the virtual object to be displayed.
[0046] Step S420, displaying the attribute data corresponding to the virtual object to be displayed in the graphical user interface, the attribute data is displayed in the form of multiple fan-shaped graphs, each fan-shaped graph corresponds to a to-be-displayed attribute of the virtual object to be displayed, and the display state of the fan-shaped graph reflects the attribute value size of the to-be-displayed attribute.
[0047] After the virtual object to be displayed is determined, the virtual object to be displayed and the attribute data of the virtual object to be displayed will be displayed in the graphical user interface. In this embodiment, the attribute data displayed in the graphical user interface at least includes the attribute data of the virtual object to be displayed.
[0048] Attribute data can be understood as features or information related to the virtual object to be displayed, which is used to describe the specific attributes of the virtual object to be displayed, and may include: physical attributes (such as the size, shape, color, material, etc. of the virtual object to be displayed), functional attributes (such as the purpose, operation method, interactive characteristics, etc. of the virtual object to be displayed), state attributes (such as the current state, position, direction, etc. of the virtual object to be displayed), identification attributes (such as the name, number, category, etc. of the virtual object to be displayed), and performance attributes (such as the moving speed, acceleration, steering sensitivity, etc. of the virtual object to be displayed), so as to help players better understand the virtual object to be displayed.
[0049] For example, taking a virtual racing game as an example, after determining that virtual racing car A is the virtual object to be displayed, the attribute data of virtual racing car A will be displayed in the graphical user interface, such as acceleration performance, top speed performance, large-angle drift performance, small-angle drift performance, steering performance, etc., so that the player can have a comprehensive understanding of the performance attributes of virtual racing car A based on the displayed attribute data.
[0050] As described above, the attribute data may include multiple specific attributes. When the number of specific attributes of the virtual object is large, displaying all the specific attributes on the graphical user interface will undoubtedly cause visual burden to the player. Therefore, some specific attributes can be displayed on the graphical user interface. In this embodiment, some specific attributes to be displayed on the graphical user interface are defined as attributes to be displayed. Of course, when the number of specific attributes of the virtual object is small, the attributes to be displayed can be all the specific attributes. Based on this, the attributes to be displayed can be understood as at least part of the multiple specific attributes corresponding to the virtual object. The selection of the attributes to be displayed can be set by the developer during the game development stage, or it can be set by the player according to the specific attributes that he wants to understand and compare during the game operation, which is not limited here.
[0051] In this embodiment, the attribute data corresponding to the virtual object to be displayed is displayed in the graphical user interface in the form of multiple fan-shaped graphs, and the number of the multiple fan-shaped graphs is consistent with the number of attributes to be displayed corresponding to the virtual object to be displayed. Specifically, one fan-shaped graph represents one attribute to be displayed. In this way, the player can more intuitively distinguish the various attributes to be displayed displayed in the graphical user interface.
[0052] In this embodiment, the sizes of the pie charts corresponding to the attributes to be displayed may be the same or different. Optionally, the pie charts corresponding to the attributes to be displayed are displayed in the graphical user interface with the same preset area, and the attribute values of the attributes to be displayed are distinguished by the display state of each pie chart. Optionally, the pie charts corresponding to the attributes to be displayed are displayed in the graphical user interface with different areas. Specifically, if the attribute value of the attribute to be displayed is large, the area of the pie chart corresponding to the attribute to be displayed is large, and if the attribute value of the attribute to be displayed is small, the area of the pie chart corresponding to the attribute to be displayed is small. The attribute values of the attributes to be displayed are distinguished by the display state and area of each pie chart.
[0053] In this embodiment, the display state of the fan chart directly reflects the size of the attribute value of the attribute to be displayed, that is, different display states of the fan chart indicate different sizes of the attribute value of the attribute to be displayed. The display state can be understood as information conveyed through visual elements, and players can visually perceive the attribute difference based on the display state of the fan chart.
[0054] Based on this, the display state of the fan graph can be any visual element with strong visual perception, such as color, pattern, brightness, transparency, texture, etc. In an optional implementation, color is used as the display state of the fan graph. Specifically, the attribute values of the attributes to be displayed are different, and the colors of the fan graphs corresponding to the attributes to be displayed are different. Optionally, brighter colors (such as red) can represent larger attribute values, and darker colors (such as gray) can represent smaller attribute values. Optionally, colors with higher quality recognized in the game (such as golden yellow) can represent larger attribute values, and colors with lower quality (such as green) can represent smaller attribute values. It can be adjusted according to the game settings, and is not limited here.
[0055] In an optional implementation, displaying the attribute data corresponding to the virtual object to be displayed in the graphical user interface may specifically include the following steps S421-1 to S421-2:
[0056] Step S421 - 1 : determining the display status of the fan-shaped graph corresponding to each to-be-displayed attribute according to the attribute value of each to-be-displayed attribute corresponding to the to-be-displayed virtual object.
[0057] Step S421 - 2 : based on the determined display status of the pie charts corresponding to the attributes to be displayed, the pie charts corresponding to the attributes to be displayed are displayed in the graphical user interface.
[0058] The attributes and attribute values corresponding to the virtual objects are preset in the game development stage, so the attribute values of the attributes to be displayed corresponding to the virtual objects to be displayed are known data. In an optional implementation, the player can change the attribute value by performing a change operation on the virtual objects to be displayed, such as modifying the virtual racing car. The attribute value after the change is determined when the player performs the change operation, so the attribute value after the change is also known data.
[0059] In this embodiment, the display state of the pie chart corresponding to the to-be-displayed attribute can be determined according to the attribute value of the to-be-displayed attribute corresponding to the to-be-displayed virtual object, and then the pie chart is displayed in the graphical user interface in the display state. Figure 1 If the display status is blue, the fan will be displayed in blue in the graphical user interface. Figure 1 .
[0060] In an optional implementation, the display state includes a first display state, and the first display state represents the overall display state of the sector graph, that is, the sector graph as a whole will be displayed in the first display state.
[0061] Based on this, according to the attribute values of the attributes to be displayed corresponding to the virtual object to be displayed, the display state of the fan chart corresponding to each attribute to be displayed is determined, which may specifically include the following steps S421-11 to S421-12:
[0062] Step S421 - 11 , determining the attribute value interval to which the attribute value belongs according to the attribute value of the attribute to be displayed. The attribute to be displayed corresponds to a plurality of preset attribute value intervals, and each attribute value interval corresponds to a preset overall display state.
[0063] Step S421 - 12 : taking the overall display state corresponding to the attribute value interval to which the attribute value belongs as the first display state of the sector graph corresponding to the attribute to be displayed.
[0064] In order to reduce the player's memory pressure for the display status level (a high-level display status reflects a higher attribute value, and a low-level display status reflects a lower attribute value), in this embodiment, multiple attribute value intervals are preset for the attributes to be displayed, and the attribute value intervals are used as the division basis for the overall display status of the fan chart, and each attribute value interval corresponds to a preset overall display state. The setting of the attribute value interval can be adjusted according to the settings of different games, and is not specifically limited here.
[0065] In an optional implementation, the overall display state includes color, and each attribute value interval corresponds to a different color, that is, multiple attribute value intervals are distinguished by color differences.
[0066] Figure 5is a schematic diagram of the overall display state corresponding to the attribute value interval provided in this embodiment. Figure 5 As shown, five attribute value intervals are divided for the attributes to be displayed, namely, a first attribute value interval less than 7, a second attribute value interval greater than or equal to 7 and less than 9, a third attribute value interval greater than or equal to 9 and less than 11, a fourth attribute value interval greater than or equal to 11 and less than 13, and a fifth attribute value interval greater than or equal to 13. For the five attribute value intervals, five color systems are preset as the colors corresponding to each attribute value interval. Specifically, the first attribute value interval corresponds to gray, the second attribute value interval corresponds to green, the third attribute value interval corresponds to blue, the fourth attribute value interval corresponds to orange, and the fifth attribute value interval corresponds to yellow. It is easy for players to understand and remember that the levels represented by the five colors are yellow, orange, blue, green, and gray from large to small.
[0067] Based on this, when determining the first display state of the pie chart corresponding to the attribute to be displayed, the attribute value interval to which the attribute value of the attribute to be displayed belongs can be determined, and then the overall display state corresponding to the attribute value interval is used as the first display state of the pie chart. For example, assuming that the attribute value corresponding to the attribute 1 to be displayed is 7.55, according to Figure 5 The corresponding relationship between the attribute value range and the overall display state is shown, and the sector corresponding to attribute 1 to be displayed Figure 1 The first display state is green.
[0068] Based on this, the display status of the pie charts corresponding to the attributes to be displayed is determined, and the pie charts corresponding to the attributes to be displayed are displayed in the graphical user interface, which may specifically include the following step S421-21:
[0069] Step S421 - 21 : displaying the pie chart in a first display state corresponding to the determined pie chart in the graphical user interface.
[0070] For example, the fan corresponding to the attribute 1 to be displayed is determined Figure 1 The first display state of is green, then the sector can be displayed in green in the graphical user interface. Figure 1 .
[0071] In an optional implementation, the display state further includes a second display state, and the second display state represents the edge display state of the sector graph. By adding the edge display state on the basis of the overall display state of the sector graph, the player can further visually perceive more subtle attribute differences.
[0072] Based on this, according to the attribute values of the attributes to be displayed corresponding to the virtual object to be displayed, the display state of the fan chart corresponding to each attribute to be displayed is determined, which may specifically include the following steps S421-13 to S421-14:
[0073] Step S421 - 13 , determining the attribute value sub-interval to which the attribute value belongs according to the attribute value of the attribute to be displayed, the attribute value interval includes a plurality of attribute value sub-intervals, and each attribute value sub-interval corresponds to a preset edge display state.
[0074] Step S421 - 14 : Using the edge display state corresponding to the attribute value sub-interval to which the attribute value belongs as the second display state of the sector graph corresponding to the attribute to be displayed.
[0075] In order to reduce the player's memory pressure for the display status level and increase the ability to identify attributes with small differences, in this embodiment, the attribute value interval is further divided into multiple attribute value sub-intervals, and the attribute value sub-intervals are used as the division basis of the fan-shaped graph edge display state, and each attribute value sub-interval corresponds to a preset edge display state. The division of attribute value sub-intervals can be adjusted according to the settings of different games, and is not specifically limited here.
[0076] In an optional implementation, the edge display state includes the brightness of a preset color, each attribute value sub-interval corresponds to a different brightness of the preset color, and the larger the attribute value included in the attribute value sub-interval, the higher the brightness of the preset color corresponding to the attribute value sub-interval. That is, for the same attribute value interval, the brightness difference of the same color is used to distinguish multiple attribute value sub-intervals included in the attribute value interval, the higher the brightness, the higher the level of the attribute value sub-interval (that is, the larger the attribute value included), and the lower the brightness, the lower the level of the attribute value sub-interval (that is, the smaller the attribute value included).
[0077] Optionally, the preset color can be any color, such as white, red, green, blue, etc. Exemplarily, multiple attribute value subintervals correspond to white with different brightness. Optionally, the preset color is the color corresponding to the attribute value interval to which the attribute value subinterval belongs. Exemplarily, the second attribute value interval corresponds to green, then the multiple attribute value subintervals included in the second attribute value interval will correspond to green with different brightness.
[0078] Figure 6 is a schematic diagram of the edge display state corresponding to the attribute value sub-interval provided in this embodiment. Figure 5 The attribute value intervals shown are extended based on the schematic diagram of the overall display state.
[0079] like Figure 6As shown, multiple attribute value sub-intervals are divided for each attribute value interval, and edge colors of different brightness are preset for each attribute value sub-interval. Take the second attribute value interval as an example for specific description: the second attribute value interval is divided into 4 attribute value sub-intervals, namely, a first attribute value sub-interval greater than or equal to 7 and less than 7.5, a second attribute value sub-interval greater than or equal to 7.5 and less than 8, a third attribute value sub-interval greater than or equal to 8 and less than 8.5, and a fourth attribute value sub-interval greater than or equal to 8.5 and less than 9. Since the overall display state corresponding to the second attribute value interval is green, green can be used as a preset color, and each attribute value sub-interval corresponds to green of different brightness. Specifically, the first attribute value sub-interval corresponds to the green with the lowest brightness (such as dark green), the second attribute value sub-interval corresponds to the green with moderate brightness (such as bright green), the third attribute value sub-interval corresponds to the green with higher brightness (such as medium brightness green), and the fourth attribute value sub-interval corresponds to the green with the highest brightness (such as light green). As shown in the figure, the higher the level of the attribute value sub-interval (that is, the larger the attribute value included), the brighter the edge color is, and the more it can stand out from the overall color, allowing players to intuitively feel the subtle differences in the attributes.
[0080] Based on this, when determining the second display state of the pie chart corresponding to the attribute to be displayed, the attribute value sub-interval to which the attribute value of the attribute to be displayed belongs can be determined, and then the edge display state corresponding to the attribute value sub-interval is used as the second display state of the pie chart. For example, assuming that the attribute value corresponding to the attribute 1 to be displayed is 7.55, according to Figure 6 The corresponding relationship between the attribute value sub-interval and the edge display state is shown, and the sector corresponding to attribute 1 to be displayed Figure 1 The second display state is green with moderate brightness (eg, bright green).
[0081] Based on this, the display status of the pie charts corresponding to the attributes to be displayed is determined, and the pie charts corresponding to the attributes to be displayed are displayed in the graphical user interface, which may specifically include the following steps S421-22:
[0082] Step S421-22: display the second display state superimposed on the edge of the pie chart.
[0083] For example, the fan corresponding to the attribute 1 to be displayed is determined Figure 1 The second display state is green with moderate brightness (e.g., bright green), then the green with moderate brightness can be superimposed and displayed on the fan-shaped Figure 1 The edge of the fan Figure 1 The edge of the image is displayed by overlaying a green color with a moderate brightness on the overall green.
[0084] In an optional implementation, multiple sector graphs use the same point as the center of the sector graph, and the sum of the center angles of each sector graph is 360 degrees. Specifically, the attribute data of the object to be displayed displayed in the graphical user interface is a combination of multiple sector graphs corresponding to multiple attributes to be displayed. When the sizes of the sector graphs corresponding to the attributes to be displayed are the same, the combination graph can be understood as a circular graph. When the sizes of the sector graphs corresponding to the attributes to be displayed are different, the combination graph can be understood as a rose graph.
[0085] Based on this, before the step of determining the display status of the pie chart corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed corresponding to the virtual object to be displayed, the method provided in this embodiment may also include the following steps: determining a circular area; dividing the circular area into multiple sector-shaped areas according to the number of attributes to be displayed corresponding to the virtual object to be displayed, each sector-shaped area corresponding to one attribute to be displayed.
[0086] In a specific implementation, the center angles of each sector diagram are the same. Based on this, the circular area is divided into a plurality of sector areas according to the number of attributes to be displayed corresponding to the virtual objects to be displayed, which may specifically include: according to the number of attributes to be displayed corresponding to the virtual objects to be displayed, the circular area is evenly divided into a plurality of sector areas, and the center angles of each sector area are the same. Exemplarily, the attributes to be displayed corresponding to the virtual objects to be displayed include 5, then the circular area will be divided into 5 sector areas with the same center angle (the center angle of the sector area is 360 / 5=72 degrees), and each sector area corresponds to an attribute to be displayed.
[0087] Based on this, displaying the pie charts corresponding to the attributes to be displayed in the graphical user interface according to the display status of the pie charts corresponding to the attributes to be displayed may specifically include: displaying the pie charts in the pie areas corresponding to the attributes to be displayed according to the display status of the pie charts corresponding to the attributes to be displayed.
[0088] In an optional implementation provided by this embodiment, the area of the pie chart reflects the attribute value of the attribute to be displayed. Specifically, the larger the area, the larger the attribute value of the attribute to be displayed, and the smaller the area, the smaller the attribute value of the attribute to be displayed.
[0089] Based on this, displaying the attribute data corresponding to the virtual object to be displayed in the graphical user interface may specifically include the following steps S422-1 to S422-2:
[0090] Step S422-1, determining the display state and area of the pie chart corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed.
[0091] Step S422-2: displaying the pie charts corresponding to the attributes to be displayed in the graphical user interface according to the determined display status and area of the pie charts corresponding to the attributes to be displayed.
[0092] The area of the pie chart can be proportionally converted according to the preset maximum attribute value and its corresponding preset area, and the attribute value of the attribute to be displayed, to obtain the area corresponding to the attribute value of the attribute to be displayed, and the area is used as the area of the pie chart corresponding to the attribute to be displayed. Exemplarily, the preset maximum attribute value is 20, and the preset area set for the maximum attribute value is 10 square units. When the attribute value of the attribute to be displayed is 10, the area corresponding to the attribute value of the attribute to be displayed is 5 square units, and 5 square units are used as the area of the pie chart corresponding to the attribute to be displayed.
[0093] After the display state and area of the sector graph corresponding to the attribute to be displayed are determined, the sector graph corresponding to the attribute to be displayed can be displayed in the graphical user interface with the display state and area.
[0094] Take a virtual racing game as an example. Figure 7 FIG. 1 is a schematic diagram of a display method of attribute data provided by this embodiment. Figure 7 As shown, the attribute data of virtual racing car A is displayed in the form of 5 fan-shaped graphs in the graphical user interface, wherein fan-shaped graph 701 corresponds to acceleration performance, fan-shaped graph 702 corresponds to large-angle drift performance, fan-shaped graph 703 corresponds to small-angle drift performance, fan-shaped graph 704 corresponds to steering performance, and fan-shaped graph 705 corresponds to extreme speed performance. Due to the different attribute values of each performance attribute, the display state and area of each fan-shaped graph are different. The 5 fan-shaped graphs use the same point as the center of the fan-shaped graph, the center angle of each fan-shaped graph is the same, and the sum of the center angle of each fan-shaped graph is 360 degrees. The rose diagram representing the attribute data of virtual racing car A is composed of 5 fan-shaped graphs. Players can intuitively judge that the acceleration performance of virtual racing car A is very strong, the steering performance is weak, and other performances are moderate through the display state and area of each fan-shaped graph. Based on this, the player can determine the appropriate virtual racing car by checking the attribute data of other virtual racing cars, or enhance the weaker performance attributes of virtual racing car A by modifying virtual racing car A, such as enhancing the steering performance of virtual racing car A.
[0095] In an optional implementation provided by this embodiment, the method provided by this embodiment may further include: displaying multiple scale lines for each sector graph in a graphical user interface, each scale line indicating a different value. When the edge of the sector graph coincides with a scale line, the attribute value of the attribute to be displayed corresponding to the sector graph is the value indicated by the scale line. The player can predict the attribute value of the attribute to be displayed corresponding to the sector graph by observing the relative distance between the edge of the sector graph and two adjacent scale lines.
[0096] In an optional implementation, the plurality of scale lines include a first scale line, and the value indicated by the first scale line is 0. When the edge of the pie chart coincides with the first scale line, the attribute value of the attribute to be displayed corresponding to the pie chart is 0. In this embodiment, setting a scale line corresponding to an attribute value of 0 (i.e., the first scale line) can avoid the problem of poor readability for players when the pie chart is displayed on a terminal device with a relatively small display screen such as a mobile phone due to the pie chart being too small in area.
[0097] In a specific implementation, the scale line is an arc with the center of the sector graph as the scale line center and the first distance as the radius. The first distance is a distance determined according to the value indicated by the scale line. The first scale line is an arc closest to the center of the circle.
[0098] Optionally, the first distance can be calculated based on the value indicated by the scale line, the preset unit distance, and the first distance preset for the first scale line. Exemplarily, the preset unit distance is 1 cm, and the first distance preset for the first scale line is 6 cm. Then, when the value indicated by the scale line is 6, the first distance corresponding to the scale line is 12 cm (6×1+6=12), and when the value indicated by the scale line is 10, the first distance corresponding to the scale line is 16 cm (10×1+6=16).
[0099] After the first distance corresponding to each scale mark is determined, each scale mark can be displayed in the graphical user interface with the center of the sector graph as the center of the scale mark and the first distance as the radius.
[0100] Take a virtual racing game as an example. Figure 8 is a schematic diagram of another display mode of attribute data provided by this embodiment. The attribute data displayed in this diagram is Figure 7 The displayed attribute data is based on the extension.
[0101] like Figure 8 As shown in (a), 4 scale lines for each sector graph are displayed on the graphical user interface. The value indicated by scale line 801 is 0, which is an arc with a radius of 6 cm and a scale line center at the center of the sector graph; the value indicated by scale line 802 is 6, which is an arc with a radius of 12 cm and a scale line center at the center of the sector graph; the value indicated by scale line 803 is 12, which is an arc with a radius of 18 cm and a scale line center at the center of the sector graph; the value indicated by scale line 804 is 15, which is an arc with a radius of 21 cm and a scale line center at the center of the sector graph. Among them, scale line 801 is the first scale line.
[0102] like Figure 8 As shown in (b), Figure 8 The scale lines shown in (a) are Figure 7The attribute data shown in the figure are superimposed and displayed to form the attribute data shown in this figure. Based on the attribute data, the player can not only intuitively judge the strength of each performance attribute of the virtual racing car A through the display status and area of each sector graph, but also predict the attribute value of the performance attribute corresponding to the sector graph by checking the relative distance between the edge of each sector graph and two adjacent scale lines.
[0103] In an optional implementation provided by this embodiment, the method provided by this embodiment may further include: displaying an outer contour line for each sector graph in a graphical user interface, the outer contour line reflecting the upper limit of the attribute value to be displayed corresponding to the sector graph. Players can understand the gap between the attribute to be displayed and the full-level value (i.e., the upper limit of the attribute value) of the object to be displayed by comparing the distance between the edge of the sector graph and the outer contour line, and then try to improve the attribute to be displayed.
[0104] In an optional implementation, the outer contour line is an arc with the center of the sector graph as the outer contour line center and the second distance as the radius, and the second distance is a distance determined according to the upper limit of the attribute value of the attribute to be displayed.
[0105] In some games, the upper limits of the attribute values of different attributes to be displayed may be different. For example, in a virtual racing game, the upper limit of the attribute value of acceleration performance may be 14, while the upper limit of the attribute value of steering performance may be only 8. Of course, in some games, the upper limits of the attribute values of different attributes to be displayed may also be set to the same value, which is not limited here.
[0106] Optionally, the second distance can be calculated based on the upper limit of the attribute value, the preset unit distance, and the first distance preset for the first scale line. For example, the preset unit distance is 1 cm, and the first distance preset for the first scale line is 6 cm. Then, when the upper limit of the attribute value is 14, the corresponding second distance is 20 cm (14×1+6=20), and when the upper limit of the attribute value is 8, the corresponding second distance is 14 cm (8×1+6=14).
[0107] After the second distance corresponding to the upper limit of the attribute value is determined, the outer contour line can be displayed in the graphical user interface with the center of the sector graph as the center of the outer contour line and the second distance as the radius.
[0108] Take a virtual racing game as an example. Fig. 9 is a schematic diagram of another display mode of attribute data provided by this embodiment. The attribute data displayed in this diagram is Figure 8 The displayed attribute data is based on the extension.
[0109] like Fig. 9As shown in (a), the outer contour lines of each sector graph are displayed in the graphical user interface according to the upper limits of the attribute values of each performance attribute corresponding to the virtual racing car A. Arc 901 is the outer contour line of the upper limit of the attribute value representing the acceleration performance, arc 902 is the outer contour line of the upper limit of the attribute value representing the large-angle drift performance, arc 903 is the outer contour line of the upper limit of the attribute value representing the small-angle drift performance, arc 904 is the outer contour line of the upper limit of the attribute value representing the steering performance, and arc 905 is the outer contour line of the upper limit of the attribute value representing the top speed performance.
[0110] like Fig. 9 As shown in (b), Fig. 9 The outer contour shown in (a) is Figure 8 The attribute data shown in the figure are superimposed and displayed to form the attribute data shown in this figure. Based on the attribute data, the player can not only intuitively judge the strength of each performance attribute of the virtual racing car A through the display status and area of each sector graph, but also predict the attribute value of the performance attribute corresponding to the sector graph by checking the relative distance between the edge of each sector graph and the two adjacent scale lines, and can also understand the gap between the object to be displayed and the full-level value in the attribute to be displayed by comparing the distance between the edge of the sector graph and the outer contour line.
[0111] Based on the above steps, the attribute data of the object to be displayed is displayed to the player on the graphical user interface. In an optional implementation provided by this embodiment, the method provided by this embodiment may further include the following step S430:
[0112] Step S430, in response to the selection operation on the virtual object to be displayed, the virtual object to be displayed is determined as a controlled virtual object participating in the game.
[0113] The selection operation for the virtual object to be displayed may be a trigger operation for an "OK" control, or may be an extraction operation for a card corresponding to the virtual object to be displayed, and the specific operation method is not limited here.
[0114] Taking a virtual racing game as an example, FIG10 is a schematic diagram of an interactive method for selecting a controlled virtual object provided by this embodiment. The interactive method is implemented based on the data display method provided by this embodiment.
[0115] As shown in FIG. 10( a), the graphical user interface displays a virtual racing car 1001 and attribute data corresponding to the virtual racing car 1001. The attribute data is displayed in the form of 5 sector graphs, corresponding to acceleration performance, large-angle drift performance, small-angle drift performance, steering performance, and top speed performance. The display state (e.g., color) of the sector graph corresponding to each performance attribute reflects the attribute value of each performance attribute. The graphical user interface also displays a switching control 1021 (for switching the virtual racing car displayed on the graphical user interface) and a confirmation control 1022 (for determining that the displayed virtual racing car is a controlled virtual object used when entering the game).
[0116] As shown in FIG. 10( b ), based on the attribute data corresponding to the virtual racing car 1001 , the player believes that the virtual racing car 1001 is not suitable for the official race, and then clicks the switch control 1021 .
[0117] As shown in FIG10( c ), in response to the player clicking on the switch control 1021, the virtual racing car 1002 that is located after the virtual racing car 1001 in the display order is determined as the object to be displayed, and the virtual racing car 1002 and the attribute data corresponding to the virtual racing car 1002 are displayed in the graphical user interface. The display method of the attribute data is consistent with the display method of the attribute data corresponding to the virtual racing car 1001, except that the display status (e.g., color) of the fan chart may be different.
[0118] As shown in FIG. 10( d ), based on the attribute data corresponding to the virtual racing car 1002 , the player believes that the virtual racing car 1002 is suitable for the official competition, and then clicks the confirmation control 1022 .
[0119] As shown in Fig. 10(e), in response to the player clicking the confirmation control 1022, the virtual racing car 1002 is determined as a controlled virtual object participating in the official game. After the virtual object selection and other setting stages are completed, the game scene 1010 of the official game will be displayed in the graphical user interface, and the game scene 1010 includes the virtual racing car 1002.
[0120] The first embodiment described above provides a method for displaying data in a game. This method reflects the size of the attribute value of the attribute to be displayed by the display state of the fan-shaped graph corresponding to the attribute to be displayed, so that the player can quickly identify the size difference of the attribute to be displayed based on the intuitive feeling of the display state, thereby easily and quickly making a selection decision for the controlled virtual object, reducing the decision-making pressure of the player and improving the player's gaming experience. It should be noted that the example in the first embodiment is only for explaining the method described in this application, and is not intended to be a limitation for actual use. The method for displaying data in a game provided in this application is not limited to the method described in the first embodiment.
[0121] A second embodiment of the present application provides a data display device in a game, which provides a graphical user interface through a terminal device. Fig.11 It is a schematic diagram of the structure of the data display device in the game provided by this embodiment.
[0122] like Fig.11 As shown, the data display device in the game provided by this embodiment includes: a determination unit 1101 and a display unit 1102.
[0123] The determining unit 1101 is used to determine a virtual object to be displayed, where the virtual object to be displayed is any one of a plurality of virtual objects corresponding to the game.
[0124] Optionally, determining a virtual object to be displayed includes:
[0125] In response to a switching operation on the first virtual object, the second virtual object is determined as a virtual object to be displayed, the first virtual object is a currently displayed virtual object, and the second virtual object is a virtual object that is displayed after the first virtual object.
[0126] The display unit 1102 is used to display the attribute data corresponding to the virtual object to be displayed in the graphical user interface. The attribute data is displayed in the form of multiple fan charts, each fan chart corresponds to a to-be-displayed attribute of the virtual object to be displayed, and the display state of the fan chart reflects the attribute value size of the to-be-displayed attribute.
[0127] Optionally, displaying attribute data corresponding to the virtual object to be displayed in the graphical user interface includes:
[0128] Determine the display status of the fan-shaped graph corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed corresponding to the virtual object to be displayed;
[0129] The display states of the pie charts corresponding to the attributes to be displayed are determined, and the pie charts corresponding to the attributes to be displayed are displayed in the graphical user interface.
[0130] Optionally, the display state includes a first display state, and the first display state represents an overall display state of the sector graph;
[0131] Determining the display state of the fan-shaped graph corresponding to each to-be-displayed attribute according to the attribute value of each to-be-displayed attribute corresponding to the to-be-displayed virtual object includes:
[0132] According to the attribute value of the attribute to be displayed, determining the attribute value interval to which the attribute value belongs, the attribute to be displayed corresponds to a plurality of preset attribute value intervals, and each attribute value interval corresponds to a preset overall display state;
[0133] The overall display state corresponding to the attribute value interval to which the attribute value belongs is used as the first display state of the fan-shaped graph corresponding to the attribute to be displayed;
[0134] Displaying the fan graphs corresponding to the attributes to be displayed in the graphical user interface according to the display states of the fan graphs corresponding to the attributes to be displayed, includes:
[0135] The fan graph is displayed in the graphical user interface in a first display state corresponding to the determined fan graph.
[0136] Optionally, the display state further includes a second display state, and the second display state represents an edge display state of the sector graph;
[0137] Determining the display state of the fan-shaped graph corresponding to each to-be-displayed attribute according to the attribute value of each to-be-displayed attribute corresponding to the to-be-displayed virtual object, further comprising:
[0138] According to the attribute value of the attribute to be displayed, determining the attribute value sub-interval to which the attribute value belongs, the attribute value interval includes multiple attribute value sub-intervals, and each attribute value sub-interval corresponds to a preset edge display state;
[0139] Using the edge display state corresponding to the attribute value sub-interval to which the attribute value belongs as the second display state of the fan-shaped graph corresponding to the attribute to be displayed;
[0140] Displaying the pie charts corresponding to the attributes to be displayed in the graphical user interface according to the display states of the pie charts corresponding to the attributes to be displayed, further comprising:
[0141] The second display state is displayed superimposed on the edge of the fan-shaped graph.
[0142] Optionally, the overall display state includes color, and each attribute value range corresponds to a different color.
[0143] Optionally, the edge display state includes the brightness of a preset color, each attribute value sub-interval corresponds to a different brightness of the preset color, and the larger the attribute value included in the attribute value sub-interval, the higher the brightness of the preset color corresponding to the attribute value sub-interval.
[0144] Optionally, the preset color is a color corresponding to the attribute value interval to which the attribute value sub-interval belongs.
[0145] Optionally, the same point is used as the center of the multiple sector graphs, and the sum of the central angles of the sector graphs is 360 degrees;
[0146] Before the step of determining the display state of the fan-shaped graph corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed corresponding to the virtual object to be displayed, it is also used to:
[0147] Determine a circular area;
[0148] According to the number of attributes to be displayed corresponding to the virtual objects to be displayed, the circular area is divided into a plurality of sector-shaped areas, each sector-shaped area corresponds to one attribute to be displayed;
[0149] Displaying the fan graphs corresponding to the attributes to be displayed in the graphical user interface according to the display states of the fan graphs corresponding to the attributes to be displayed, includes:
[0150] The display states of the pie charts corresponding to the attributes to be displayed are determined, and the pie charts are displayed in the pie areas corresponding to the attributes to be displayed.
[0151] Optionally, the central angles of the sectors are the same;
[0152] According to the number of attributes to be displayed corresponding to the virtual objects to be displayed, the circular area is divided into multiple sector areas, including:
[0153] According to the number of attributes to be displayed corresponding to the virtual objects to be displayed, the circular area is evenly divided into a plurality of sector-shaped areas, and the central angles of the sector-shaped areas are the same.
[0154] Optionally, the area of the pie chart reflects the attribute value of the attribute to be displayed;
[0155] Displaying the attribute data corresponding to the virtual object to be displayed in the graphical user interface includes:
[0156] Determine the display state and area of the pie chart corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed;
[0157] The fan charts corresponding to the attributes to be displayed are displayed in the graphical user interface based on the display states and areas of the fan charts corresponding to the attributes to be displayed.
[0158] Optionally, also used for:
[0159] A plurality of scale lines for each sector graph are displayed in the graphical user interface, each scale line indicates a different value, and when the edge of the sector graph coincides with a scale line, the attribute value of the to-be-displayed attribute corresponding to the sector graph is the value indicated by the scale line.
[0160] Optionally, the multiple scale lines include a first scale line, and the value indicated by the first scale line is 0. When the edge of the sector graph coincides with the first scale line, the attribute value of the attribute to be displayed corresponding to the sector graph is 0.
[0161] Optionally, the scale line is an arc with the center of the sector graph as the scale line center and a first distance as the radius, the first distance is a distance determined according to the value indicated by the scale line, and the first scale line is an arc closest to the center of the circle.
[0162] Optionally, also used for:
[0163] An outer contour line for each sector chart is displayed in the graphical user interface, and the outer contour line reflects the upper limit of the attribute value to be displayed corresponding to the sector chart.
[0164] Optionally, the outer contour line is an arc with the center of the sector graph as the center of the outer contour line and the second distance as the radius, and the second distance is a distance determined according to an upper limit of the attribute value of the attribute to be displayed.
[0165] Optionally, the device further includes a second determining unit;
[0166] The second determination unit is used to respond to a selection operation on the virtual object to be displayed and determine the virtual object to be displayed as a controlled virtual object participating in the game.
[0167] A third embodiment of the present application provides a terminal device, Fig.12 It is a schematic diagram of the structure of the terminal device provided in this embodiment.
[0168] like Fig.12 As shown, the terminal device provided in this embodiment includes: a memory 1201, a processor 1202, and a display 1203.
[0169] The memory 1201 is used to store computer instructions for executing the data display method in the game;
[0170] The processor 1202 is configured to execute computer instructions stored in the memory 1201 to perform the following operations:
[0171] Determine a virtual object to be displayed, where the virtual object to be displayed is any one of multiple virtual objects corresponding to the game;
[0172] The attribute data corresponding to the virtual object to be displayed is displayed in the graphical user interface. The attribute data is displayed in the form of multiple fan-shaped graphs. Each fan-shaped graph corresponds to an attribute to be displayed of the virtual object to be displayed. The display state of the fan-shaped graph reflects the attribute value size of the attribute to be displayed.
[0173] Optionally, displaying attribute data corresponding to the virtual object to be displayed in the graphical user interface includes:
[0174] Determine the display status of the fan-shaped graph corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed corresponding to the virtual object to be displayed;
[0175] The display states of the pie charts corresponding to the attributes to be displayed are determined, and the pie charts corresponding to the attributes to be displayed are displayed in the graphical user interface.
[0176] Optionally, the display state includes a first display state, and the first display state represents an overall display state of the sector graph;
[0177] Determining the display state of the fan-shaped graph corresponding to each to-be-displayed attribute according to the attribute value of each to-be-displayed attribute corresponding to the to-be-displayed virtual object includes:
[0178] According to the attribute value of the attribute to be displayed, determining the attribute value interval to which the attribute value belongs, the attribute to be displayed corresponds to a plurality of preset attribute value intervals, and each attribute value interval corresponds to a preset overall display state;
[0179] The overall display state corresponding to the attribute value interval to which the attribute value belongs is used as the first display state of the fan-shaped graph corresponding to the attribute to be displayed;
[0180] Displaying the fan graphs corresponding to the attributes to be displayed in the graphical user interface according to the display states of the fan graphs corresponding to the attributes to be displayed, includes:
[0181] The fan graph is displayed in the graphical user interface in a first display state corresponding to the determined fan graph.
[0182] Optionally, the display state further includes a second display state, and the second display state represents an edge display state of the sector graph;
[0183] Determining the display state of the fan-shaped graph corresponding to each to-be-displayed attribute according to the attribute value of each to-be-displayed attribute corresponding to the to-be-displayed virtual object, further comprising:
[0184] According to the attribute value of the attribute to be displayed, determining the attribute value sub-interval to which the attribute value belongs, the attribute value interval includes multiple attribute value sub-intervals, and each attribute value sub-interval corresponds to a preset edge display state;
[0185] Using the edge display state corresponding to the attribute value sub-interval to which the attribute value belongs as the second display state of the fan-shaped graph corresponding to the attribute to be displayed;
[0186] Displaying the pie charts corresponding to the attributes to be displayed in the graphical user interface according to the display states of the pie charts corresponding to the attributes to be displayed, further comprising:
[0187] The second display state is displayed superimposed on the edge of the fan-shaped graph.
[0188] Optionally, the overall display state includes color, and each attribute value range corresponds to a different color.
[0189] Optionally, the edge display state includes the brightness of a preset color, each attribute value sub-interval corresponds to a different brightness of the preset color, and the larger the attribute value included in the attribute value sub-interval, the higher the brightness of the preset color corresponding to the attribute value sub-interval.
[0190] Optionally, the preset color is a color corresponding to the attribute value interval to which the attribute value sub-interval belongs.
[0191] Optionally, the same point is used as the center of the multiple sector graphs, and the sum of the central angles of the sector graphs is 360 degrees;
[0192] Before the step of determining the display status of the fan-shaped graph corresponding to each to-be-displayed attribute according to the attribute value of each to-be-displayed attribute corresponding to the to-be-displayed virtual object, the following is further performed:
[0193] Determine a circular area;
[0194] According to the number of attributes to be displayed corresponding to the virtual objects to be displayed, the circular area is divided into a plurality of sector-shaped areas, each sector-shaped area corresponds to one attribute to be displayed;
[0195] Displaying the fan graphs corresponding to the attributes to be displayed in the graphical user interface according to the display states of the fan graphs corresponding to the attributes to be displayed, includes:
[0196] The display states of the pie charts corresponding to the attributes to be displayed are determined, and the pie charts are displayed in the pie areas corresponding to the attributes to be displayed.
[0197] Optionally, the central angles of the sectors are the same;
[0198] According to the number of attributes to be displayed corresponding to the virtual objects to be displayed, the circular area is divided into multiple sector areas, including:
[0199] According to the number of attributes to be displayed corresponding to the virtual objects to be displayed, the circular area is evenly divided into a plurality of sector-shaped areas, and the central angles of the sector-shaped areas are the same.
[0200] Optionally, the area of the pie chart reflects the attribute value of the attribute to be displayed;
[0201] Displaying the attribute data corresponding to the virtual object to be displayed in the graphical user interface includes:
[0202] Determine the display state and area of the pie chart corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed;
[0203] The fan charts corresponding to the attributes to be displayed are displayed in the graphical user interface based on the display states and areas of the fan charts corresponding to the attributes to be displayed.
[0204] Optionally, also execute:
[0205] A plurality of scale lines for each sector graph are displayed in the graphical user interface, each scale line indicates a different value, and when the edge of the sector graph coincides with a scale line, the attribute value of the to-be-displayed attribute corresponding to the sector graph is the value indicated by the scale line.
[0206] Optionally, the multiple scale lines include a first scale line, and the value indicated by the first scale line is 0. When the edge of the sector graph coincides with the first scale line, the attribute value of the attribute to be displayed corresponding to the sector graph is 0.
[0207] Optionally, the scale line is an arc with the center of the sector graph as the scale line center and a first distance as the radius, the first distance is a distance determined according to the value indicated by the scale line, and the first scale line is an arc closest to the center of the circle.
[0208] Optionally, also execute:
[0209] An outer contour line for each sector chart is displayed in the graphical user interface, and the outer contour line reflects the upper limit of the attribute value to be displayed corresponding to the sector chart.
[0210] Optionally, the outer contour line is an arc with the center of the sector graph as the center of the outer contour line and the second distance as the radius, and the second distance is a distance determined according to an upper limit of the attribute value of the attribute to be displayed.
[0211] Optionally, determining a virtual object to be displayed includes:
[0212] In response to a switching operation on the first virtual object, the second virtual object is determined as a virtual object to be displayed, the first virtual object is a currently displayed virtual object, and the second virtual object is a virtual object that is displayed after the first virtual object.
[0213] Optionally, also execute:
[0214] In response to a selection operation on the virtual object to be displayed, the virtual object to be displayed is determined as a controlled virtual object participating in the game game.
[0215] The display 1203 is used to display a graphical user interface.
[0216] A fourth embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium includes computer instructions. When the computer instructions are executed by a processor, they are used to implement the methods described in the embodiments of the present application.
[0217] It should be noted that the relational terms such as "first" and "second" in this article are only used to distinguish one entity or operation from another entity or operation, and do not require or imply any actual relationship or order between these entities or operations. In addition, the words "include", "have", "include" and "includes" and other similar forms are the same in meaning, and the end of any one or more items after any of the above words is open-ended, and any of the above nouns does not mean that the one or more items have been exhaustively listed or are limited to the one or more items listed.
[0218] As used herein, unless expressly stated otherwise, the term "or" includes all possible combinations, except those that are not feasible. For example, if it is expressed that a database may include A or B, then unless otherwise specifically stated or not feasible, it may include database A, or B, or A and B. As a second example, if it is expressed that a database may include A, B, or C, then unless otherwise specifically stated or not feasible, the database may include database A, or B, or C, or A and B, or A and C, or B and C, or A, B, and C.
[0219] It is worth noting that the above embodiments can be implemented by hardware or software (program code), or a combination of hardware and software. If implemented by software, it can be stored in the above-mentioned computer-readable medium. When the software is executed by a processor, it can execute the above-mentioned disclosed method. The computing unit and other functional units described in the present disclosure can be implemented by hardware or software, or a combination of hardware and software. Those of ordinary skill in the art will also understand that the above-mentioned multiple modules / units can be combined into one module / unit, and each of the above-mentioned modules / units can be further divided into multiple sub-modules / sub-units.
[0220] In the above detailed description, the embodiments have been described with reference to many specific details, which may vary from implementation to implementation. Certain adaptations and modifications may be made to the embodiments. For those skilled in the art, other embodiments may be readily apparent from the specific embodiments disclosed in the present application. This specification and examples are for exemplary purposes only, and the true scope and essence of the present application are described by the claims. The sequence of steps shown in the diagrams is also for the purpose of explanation only and is not intended to be limited to any particular steps or sequence. Therefore, those skilled in the art will appreciate that these steps may be performed in different orders when implementing the same method.
[0221] In the drawings and detailed description of the present application, exemplary embodiments are disclosed. However, many variations and modifications may be made to these embodiments. Accordingly, although specific terms are used, these terms are only general and descriptive and not for the purpose of limitation.
Claims
1. A method for displaying data in a game, characterized in that: Providing a graphical user interface through a terminal device, the method comprising: Determine a virtual object to be displayed, where the virtual object to be displayed is any one of a plurality of virtual objects corresponding to the game; The attribute data corresponding to the virtual object to be displayed is displayed in the graphical user interface, and the attribute data is displayed in the form of multiple fan-shaped graphs, each of which corresponds to an attribute to be displayed of the virtual object to be displayed, and the display state of the fan-shaped graph reflects the attribute value size of the attribute to be displayed.
2. The method according to claim 1, characterized in that The displaying of the attribute data corresponding to the virtual object to be displayed in the graphical user interface includes: Determining, according to the attribute values of the attributes to be displayed corresponding to the virtual objects to be displayed, the display states of the fan-shaped graphs corresponding to the attributes to be displayed; The fan charts corresponding to the attributes to be displayed are displayed in the graphical user interface according to the display states of the fan charts corresponding to the attributes to be displayed.
3. The method according to claim 2, characterized in that The display state includes a first display state, wherein the first display state represents an overall display state of the fan-shaped graph; The step of determining the display state of the fan-shaped graph corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed corresponding to the virtual object to be displayed includes: According to the attribute value of the attribute to be displayed, determining the attribute value interval to which the attribute value belongs, the attribute to be displayed corresponds to a plurality of preset attribute value intervals, and each of the attribute value intervals corresponds to a preset overall display state; Taking the overall display state corresponding to the attribute value interval to which the attribute value belongs as the first display state of the sector graph corresponding to the attribute to be displayed; The step of displaying the fan-shaped graphs corresponding to the attributes to be displayed in the graphical user interface according to the determined display states of the fan-shaped graphs corresponding to the attributes to be displayed includes: The fan chart is displayed in the graphical user interface in the first display state corresponding to the determined fan chart.
4. The method according to claim 3, characterized in that: The display state further includes a second display state, wherein the second display state represents an edge display state of the fan-shaped graph; The step of determining the display state of the fan-shaped graph corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed corresponding to the virtual object to be displayed further includes: According to the attribute value of the attribute to be displayed, determining the attribute value sub-interval to which the attribute value belongs, the attribute value interval includes a plurality of attribute value sub-intervals, each of the attribute value sub-intervals corresponds to a preset edge display state; Using the edge display state corresponding to the attribute value sub-interval to which the attribute value belongs as the second display state of the sector graph corresponding to the attribute to be displayed; The method of displaying the fan-shaped graphs corresponding to the attributes to be displayed in the graphical user interface according to the determined display status of the fan-shaped graphs corresponding to the attributes to be displayed further includes: The second display state is displayed superimposed on the edge of the fan-shaped graph.
5. The method according to claim 3, characterized in that: The overall display state includes color, and each of the attribute value intervals corresponds to a different color.
6. The method according to claim 4, characterized in that The edge display state includes the brightness of a preset color, each of the attribute value sub-intervals corresponds to a different brightness of the preset color, and the larger the attribute value included in the attribute value sub-interval, the higher the brightness of the preset color corresponding to the attribute value sub-interval.
7. The method according to claim 6, characterized in that The preset color is a color corresponding to the attribute value interval to which the attribute value subinterval belongs.
8. The method according to claim 2, characterized in that: The multiple fan-shaped graphs use the same point as the center of the fan-shaped graph, and the sum of the central angles of the fan-shaped graphs is 360 degrees; Before the step of determining the display state of the fan-shaped graph corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed corresponding to the virtual object to be displayed, the method further includes: Determine a circular area; According to the number of the attributes to be displayed corresponding to the virtual objects to be displayed, the circular area is divided into a plurality of sector-shaped areas, each of the sector-shaped areas corresponds to one attribute to be displayed; The step of displaying the fan-shaped graphs corresponding to the attributes to be displayed in the graphical user interface according to the determined display states of the fan-shaped graphs corresponding to the attributes to be displayed includes: The fan-shaped graph is displayed in the fan-shaped area corresponding to each attribute to be displayed according to the determined display state of the fan-shaped graph corresponding to each attribute to be displayed.
9. The method according to claim 8, characterized in that The central angles of the sectors are the same; The step of dividing the circular area into a plurality of sector-shaped areas according to the number of the attributes to be displayed corresponding to the virtual objects to be displayed includes: According to the number of the attributes to be displayed corresponding to the virtual objects to be displayed, the circular area is evenly divided into a plurality of sector-shaped areas, and the central angles of the sector-shaped areas are the same.
10. The method according to claim 1, characterized in that The area of the fan-shaped graph reflects the attribute value of the attribute to be displayed; The displaying of the attribute data corresponding to the virtual object to be displayed in the graphical user interface includes: Determining the display state and area of the fan-shaped graph corresponding to each attribute to be displayed according to the attribute value of each attribute to be displayed; The fan charts corresponding to the attributes to be displayed are displayed in the graphical user interface based on the determined display states and areas of the fan charts corresponding to the attributes to be displayed.
11. The method according to claim 1, characterized in that: The method further comprises: A plurality of scale lines for each of the pie charts are displayed in the graphical user interface, each of the scale lines indicating a different numerical value, and when an edge of the pie chart coincides with the scale line, the attribute value of the attribute to be displayed corresponding to the pie chart is the numerical value indicated by the scale line.
12. The method according to claim 11, characterized in that The multiple scale lines include a first scale line, the value indicated by the first scale line is 0, and when the edge of the fan chart coincides with the first scale line, the attribute value of the attribute to be displayed corresponding to the fan chart is 0.
13. The method according to claim 12, characterized in that The scale line is an arc with the center of the sector graph as the scale line center and a first distance as the radius. The first distance is a distance determined according to the value indicated by the scale line. The first scale line is an arc closest to the center of the circle.
14. The method according to claim 1, characterized in that The method further comprises: An outer contour line for each of the fan-shaped graphs is displayed in the graphical user interface, wherein the outer contour line reflects an upper limit of an attribute value of the to-be-displayed attribute corresponding to the fan-shaped graph.
15. The method according to claim 14, characterized in that The outer contour line is an arc line with the center of the sector diagram as the outer contour line center and the second distance as the radius, and the second distance is a distance determined according to the upper limit of the attribute value of the attribute to be displayed.
16. The method according to claim 1, characterized in that The step of determining the virtual object to be displayed includes: In response to a switching operation on a first virtual object, a second virtual object is determined as the virtual object to be displayed, the first virtual object is a currently displayed virtual object, and the second virtual object is a virtual object that is displayed after the first virtual object.
17. The method according to claim 1, characterized in that The method further comprises: In response to a selection operation on the to-be-displayed virtual object, the to-be-displayed virtual object is determined as a controlled virtual object participating in a game match.
18. A data display device in a game, characterized in that: Providing a graphical user interface through a terminal device, the apparatus comprises: a determination unit and a display unit; The determining unit is used to determine a virtual object to be displayed, where the virtual object to be displayed is any one of a plurality of virtual objects corresponding to the game; The display unit is used to display the attribute data corresponding to the virtual object to be displayed in the graphical user interface, and the attribute data is displayed in the form of multiple fan charts, each of which corresponds to an attribute to be displayed of the virtual object to be displayed, and the display state of the fan chart reflects the attribute value size of the attribute to be displayed.
19. A terminal device, characterized in that: include: Memory, processor, and display; The memory is used to store one or more computer instructions; The processor is configured to execute the one or more computer instructions to implement the method according to any one of claims 1 to 17; The display is used to provide a graphical user interface.
20. A computer-readable storage medium having one or more computer instructions stored thereon, characterized in that: When the instruction is executed by the processor, the method according to any one of claims 1 to 17 is performed.