Method, apparatus, and terminal device for displaying information in a game
By determining the target display special effects based on the number and proportional conditions of the player camp in the game, the problem of single camp/gang event summary function in the existing technology is solved, and the immersion and experience of players browsing events is enhanced.
Patent Information
- Application Number
- CN202111402775.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2041-11-24
AI Technical Summary
The camp/gang event summary function in the existing game is presented in a single way, which affects the immersion and experience of players browsing events.
By obtaining game events and determining the player camp to which they belong, determine the target display effects based on the number and proportional conditions, and display game events with effects in the graphical user interface.
It improves the immersion and experience of players when browsing events, enhances the atmosphere and randomness of the graphical user interface, and enriches the presentation of events.
Smart Images

Figure CN114100126B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of games, and in particular, to a method, device, and terminal device for displaying information in a game. Background Art
[0002] Currently, many games involve gameplay such as factions or gangs. To facilitate players' understanding or review of events occurring in the faction / gang, functions such as faction / gang event summaries are provided for players in the game. However, such functions usually directly present faction / gang events, with a relatively single presentation method and poor overall atmosphere, affecting the immersion and experience of players during the process of browsing events. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a method, device, and terminal device for displaying information in a game, which can significantly improve the immersion and experience of players when browsing events.
[0004] In a first aspect, an embodiment of the present invention provides a method for displaying information in a game, the method including: obtaining a game event and determining the player faction to which the game event belongs; if the number of game events corresponding to the player faction meets a preset condition, determining a target display special effect according to the player faction; and displaying the game events corresponding to the player faction with the target display special effect.
[0005] In an implementation manner, the step of if the number of game events corresponding to the player faction meets a preset condition, determining a target display special effect according to the player faction includes: judging whether the number of game events corresponding to the player faction meets the preset condition according to a preset quantity threshold; if so, determining the target display special effect corresponding to the player faction based on a preset first mapping relationship; wherein, the first mapping relationship includes the corresponding relationship between the player faction and the display special effect.
[0006] In an implementation manner, the step of judging whether the number of game events corresponding to the player faction meets the preset condition according to the preset quantity threshold includes: judging whether the number of game events corresponding to the player faction is greater than or equal to the preset quantity threshold; if so, determining that the number of game events corresponding to the player faction meets the preset condition; wherein, the player faction includes a first player faction and a second player faction, the preset quantity threshold is determined based on the maximum number of game events provided by the graphical user interface, the preset quantity threshold is less than or equal to the maximum number, and greater than half of the maximum number.
[0007] In one embodiment, if the number of game events corresponding to the player camp meets a preset condition, the step of determining a target display special effect according to the player camp includes: judging whether the number of game events corresponding to the player camp meets the preset condition according to a preset ratio threshold; if so, determining the target display special effect corresponding to the player camp based on a preset first mapping relationship.
[0008] In one embodiment, the player camp includes a first player camp and a second player camp; the step of judging whether the number of game events corresponding to the player camp meets the preset condition includes: calculating a first ratio of the number of game events corresponding to the first player camp to the number of game events corresponding to the second player camp; and calculating a second ratio of the number of game events corresponding to the second player camp to the number of game events corresponding to the first player camp; if the first ratio is greater than or equal to the preset ratio threshold, determining that the number of game events corresponding to the first player camp meets the preset condition; if the second ratio is greater than or equal to the preset ratio threshold, determining that the number of game events corresponding to the second player camp meets the preset condition.
[0009] In one embodiment, the graphical user interface includes an event display area and at least one candidate special effect area; the step of displaying the game events corresponding to the player camp with the target display special effect includes: determining a target special effect area corresponding to the target display special effect from the candidate special effect areas; providing the target display special effect in the target special effect area, and providing each game event in the event display area.
[0010] In one embodiment, the step of determining a target special effect area corresponding to the target display special effect from the candidate special effect areas includes: determining a target special effect area corresponding to the target display special effect from the candidate special effect areas based on the player camp and a preset second mapping relationship; wherein, the second mapping relationship includes the corresponding relationship between the player camp and the special effect area.
[0011] In one embodiment, the candidate special effect areas include a first area and a second area, the first area is located on the left side of the event display area, and the second area is located on the right side of the event display area; the second mapping relationship includes: the first player camp corresponds to the first area, and the second player camp corresponds to the second area.
[0012] In one embodiment, the method further includes: if the number of the game events corresponding to the first player camp and the number of the game events corresponding to the second player camp are both less than a preset number threshold, or if the first ratio and the second ratio are both less than a preset ratio threshold, providing each of the game events in the event display area.
[0013] In a second aspect, an embodiment of the present invention further provides a display device for information in a game. The device includes: a camp determination module, configured to obtain game events and determine the player camp to which the game events belong; a special effect determination module, configured to determine a target display special effect according to the player camp if the number of the game events corresponding to the player camp meets a preset condition; and a display module, configured to display the game events corresponding to the player camp with the target display special effect.
[0014] In a third aspect, an embodiment of the present invention further provides a terminal device, including a processor and a memory. The memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement any one of the methods provided in the first aspect.
[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement any one of the methods provided in the first aspect.
[0016] A display method, device and terminal device for information in a game provided by an embodiment of the present invention obtain game events, determine the player camp to which the game events belong, and if the number of the game events corresponding to the player camp meets a preset condition, determine a target display special effect according to the player camp and display the game events corresponding to the player camp with the target display special effect. The above method can determine a target display special effect according to the player camp when the number of the game events corresponding to the player camp meets a preset condition, and display the corresponding game events with the target display special effect, so that the graphical user interface is more atmospheric and random when providing game events, enriches the presentation method of game events, and significantly improves the immersion and experience of players when browsing events.
[0017] Other features and advantages of the present invention will be described in the following description, and some of them will become obvious from the description, or be understood by implementing the present invention. The objectives and other advantages of the present invention are achieved and obtained by the structures specifically pointed out in the description, claims and drawings.
[0018] To make the above objectives, features and advantages of the present invention more obvious and understandable, the following specific preferred embodiments are given, and in conjunction with the accompanying drawings, the detailed description is as follows. Brief Description of the Drawings
[0019] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0020] Figure 1 It is a schematic diagram of a camp / gang event summary interface provided by an embodiment of the present invention;
[0021] Figure 2 It is a schematic flowchart of a method for displaying information in a game provided by an embodiment of the present invention;
[0022] Figure 3 It is a schematic diagram of a graphical user interface provided by an embodiment of the present invention;
[0023] Figure 4 It is a schematic diagram of another graphical user interface provided by an embodiment of the present invention;
[0024] Figure 5 It is a schematic diagram of another graphical user interface provided by an embodiment of the present invention;
[0025] Figure 6 It is a schematic structural diagram of a device for displaying information in a game provided by an embodiment of the present invention;
[0026] Figure 7 It is a schematic structural diagram of a terminal device provided by an embodiment of the present invention. Detailed Embodiments
[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions of the present invention in conjunction with the embodiments. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.
[0028] Currently, the existing camp / gang event summary function usually directly presents camp / gang events. Taking an MMORPG (Massive (or Massively) Multiplayer Online Role-Playing Game) as an example, see Figure 1A schematic diagram of a camp / gang event summary interface is shown. This type of function has problems such as a single presentation method, a poor interface atmosphere, and poor immersion and experience when players browse events. Based on this, the present invention provides a method, device and terminal device for displaying information in a game, which can significantly improve the immersion and experience of players when browsing events.
[0029] In one embodiment of the present disclosure, the method for displaying information in the game can be run on a local terminal device or a server. When the method for displaying information in the game is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0030] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game method based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the display method of the information in the game are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0031] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0032] In a possible implementation, an embodiment of the present invention provides a method for displaying information in a game, providing a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or can be a client device in the cloud interaction system mentioned above.
[0033] The technical solution of the present application will be described in detail below with specific embodiments. These specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0034] To facilitate the understanding of this embodiment, first, a method for displaying information in a game disclosed in the embodiments of the present invention will be introduced in detail. A graphical user interface is provided through a terminal. Refer to Figure 2 the flowchart of a method for displaying information in a game shown in the figure. This method mainly includes the following steps S202 to step S206:
[0035] Step S202, obtain a game event and determine the player camp to which the game event belongs. Among them, the game event can be the start or end of a camp activity, the change of a camp leader, the battle result between multiple camps, etc. In one implementation, an event display control is provided through the graphical user interface. When the player clicks on the event display control, the game event can be determined based on the event occurrence time (for example, the events that occur on the same day are determined as game events), and the player camp to which the game event belongs can be identified according to the event content described in the game event.
[0036] Step S204, if the number of game events corresponding to the player camp meets a preset condition, determine a target display special effect according to the player camp. Among them, the preset condition can be a quantity condition or a proportion condition, and the display special effect can be used to enhance the atmosphere. In one implementation, the game events corresponding to each player camp can be counted to obtain the number of events corresponding to each player camp, and it is determined whether the number of events corresponding to each player camp meets the above preset condition. When the number of events corresponding to the player camp meets the preset condition, based on the pre-configured correspondence between the player camp and the display special effect, the display special effect corresponding to the player camp can be determined as the target display special effect.
[0037] Step S206, display the game events corresponding to the player camp with the target display special effect. In one implementation, the graphical user interface can include an event display area and multiple candidate special effect areas. The event display area is used to provide game events, and the candidate special effect areas are used to provide display special effects. In practical applications, the correspondence between the player camp and the special effect area can be pre-configured, so as to determine the target special effect area corresponding to the player camp that meets the preset condition, provide the game events in the event display area and the target display special effect in the target special effect area, so as to set off the game events through the target display special effect.
[0038] In the game information display method provided by the embodiments of the present invention, when the number of game events corresponding to the player camp meets a preset condition, a target display special effect can be determined according to the player camp, and the corresponding game events are displayed with the target display special effect, so that the graphical user interface is more atmospheric and random when providing game events, enriching the presentation mode of game events and significantly improving the immersion and experience of players when browsing events.
[0039] In one implementation, the number of the above game events may be less than or equal to the maximum number of game events provided by the graphical user interface, so that each game event can be displayed through the graphical user interface. In another implementation, the number of game events may also be greater than the maximum number. The graphical user interface may be configured with an event switching control. Assuming the maximum number is n, first, n events are determined based on the event occurrence time, and based on this, the number of events included in each player camp and the corresponding target display special effect are determined. Then, the target display special effect and the above n events are provided through the graphical user interface. If the user drags or clicks the event switching control, m events (where m is less than or equal to n) will be re-determined, and the above process will be repeated.
[0040] For the above step S204, the embodiments of the present invention provide an implementation manner of determining a target display special effect according to the player camp if the number of game events corresponding to the player camp meets a preset condition. See the following manner 1 to manner 2:
[0041] Manner 1: Determine the target display special effect according to a preset quantity threshold and the number of game events included in each player camp. See the following steps a1 to a2:
[0042] Step a1: Judge whether the number of game events corresponding to the player camp meets the preset condition according to the preset quantity threshold. In one implementation, the game events corresponding to each player camp can be counted to obtain the number of events corresponding to each player camp. For each player camp, the number of events corresponding to the player camp can be compared with the preset quantity threshold. If the number of events corresponding to the player camp is greater than or equal to the preset quantity threshold, it can be determined that the number of game events corresponding to the player camp meets the preset condition. In specific implementation, the preset quantity threshold can be determined based on the maximum number of game events provided by the graphical user interface, so that only 1 player camp meets the preset condition.
[0043] In a specific embodiment, two player camps can be set in the game. The player camps include the first player camp and the second player camp. Among them, the first player camp is denoted as camp A, and the second player camp is denoted as camp B. In addition, to avoid an event being related to both camp A and camp B at the same time, the events related to camp A and camp B can be pre-assigned. For example, in a battle between camp A and camp B, if camp A wins, it is determined that the event corresponds to camp A; conversely, if camp B wins, it is determined that the event corresponds to camp B. On this basis, the embodiments of the present invention exemplarily provide a preset quantity threshold. Optionally, the preset quantity threshold is less than or equal to the maximum quantity and greater than half of the maximum quantity. For example, the graphical user interface can display at most 10 events, that is, the maximum quantity is equal to 10, then the preset quantity threshold can be any value in [6, 7, 8, 9, 10].
[0044] For ease of understanding, the embodiments of the present invention provide an implementation manner for determining whether the number of game events corresponding to a player camp meets a preset condition according to a preset quantity threshold. Specifically, it is determined whether the number of game events corresponding to a player camp is greater than or equal to the preset quantity threshold, and when the judgment result is yes, it is determined that the number of game events corresponding to the player camp meets the preset condition. For example, if the first event quantity of the game events corresponding to the first player camp is greater than or equal to the preset quantity threshold, it is determined that the first event quantity meets the preset condition; if the second event quantity of the game events corresponding to the second player camp is greater than or equal to the preset quantity threshold, it is determined that the second event quantity meets the preset condition. Exemplarily, assuming that the maximum number of events provided by the graphical user interface is 10 and the preset quantity threshold is 6, if 7 events in the game events are related to camp A and 2 events are related to camp B, it can be determined at this time that the first event quantity meets the preset condition; if 4 events in the game events are related to camp A and 6 events are related to camp B, it can be determined at this time that the second event quantity meets the preset condition.
[0045] Step a2, if so, determine the target display special effect corresponding to the player camp based on a preset first mapping relationship. Among them, the first mapping relationship includes the corresponding relationship between the player camp and the display special effect. Among them, the display special effect can include relief flicker, relief movement, etc. In practical applications, there are certain differences in the display special effects corresponding to different player camps, such as special effect colors or performance effects. For example, the display special effect of camp A is blue, and the display special effect of camp B is red, so as to bring a better sense of immersion to players when browsing events. In one embodiment, each player camp can correspond to multiple display special effects. After determining multiple display special effects corresponding to the player camp that meets the above preset conditions based on the first mapping relationship, a display special effect can be randomly determined from them as the target display special effect to further increase the randomness and diversity of event display, which can be used as a game easter egg.
[0046] Method 2: Determine the target display special effect according to a preset ratio threshold and the number of game events included in each player camp. See steps b1 to b2 below:
[0047] Step b1: Determine whether the number of game events corresponding to the player camp meets the preset conditions according to the preset ratio threshold. For ease of understanding, in the embodiments of the present invention, taking the player camp including the first player camp and the second player camp as an example, an implementation manner of determining whether the number of game events corresponding to the player camp meets the preset conditions according to the preset ratio threshold is provided: (1) Calculate the first ratio of the number of game events corresponding to the first player camp to the number of game events corresponding to the second player camp; and calculate the second ratio of the number of game events corresponding to the second player camp to the number of game events corresponding to the first player camp; (2) If the first ratio is greater than or equal to the preset ratio threshold, determine that the number of game events corresponding to the first player camp meets the preset conditions; (3) If the second ratio is greater than or equal to the preset ratio threshold, determine that the number of game events corresponding to the second player camp meets the preset conditions. Assume that the preset ratio threshold is 1, 5 events in the game events are related to camp A and 2 events are related to camp B. It can be determined that the first ratio is 2.5 and the second ratio is 0.4. Since the first ratio is greater than the preset ratio threshold, it can be determined that the first player camp is the target player camp.
[0048] Step b2: If so, determine the target display special effect corresponding to the player camp based on the first mapping relationship. Specifically, refer to the foregoing step a2, which will not be elaborated herein in the embodiments of the present invention.
[0049] In one implementation manner, the graphical user interface includes an event display area and at least one candidate special effect area. Among them, the event display area is used to provide game events, and the candidate special effect area is used to provide display special effects. Based on this, the embodiments of the present invention provide an implementation manner of displaying the game events corresponding to the player camp with the target display special effect. See steps 1 to 2 below:
[0050] Step 1: Determine the target special effect area corresponding to the target display special effect from the candidate special effect areas. Optionally, based on the player camp and the preset second mapping relationship, determine the target special effect area corresponding to the target display special effect from the candidate special effect areas. Among them, the second mapping relationship includes the corresponding relationship between the player camp and the special effect area. In practical applications, corresponding special effect areas can be allocated to each player camp in the graphical user interface. Exemplarily, if the game has 2 camps, two special effect areas corresponding to the two player camps can be deployed on the left and right sides of the event display area; if the game has multiple camps, the graphical user interface except the event display area can be adaptively divided into multiple areas, and the special effect area corresponding to each player camp can be determined respectively.
[0051] In the embodiments of the present invention, taking the player camps including a first player camp and a second player camp as an example, the candidate special effect areas include a first area and a second area. The first area is located on the left side of the event display area, and the second area is located on the right side of the event display area, such as Figure 3 a schematic diagram of a graphical user interface shown. Optionally, the second mapping relationship includes: the first player camp corresponds to the first area, and the second player camp corresponds to the second area. That is, when the number of game events corresponding to the first player camp meets the preset condition, a target display special effect will be provided on the left side of the event display area, and when the number of game events corresponding to the second player camp meets the preset condition, a target display special effect will be provided on the right side of the event display area.
[0052] Step 2, provide the target display special effect in the target special effect area and provide each game event in the event display area. Taking the number of game events corresponding to the first player camp meeting the preset condition as an example, refer to Figure 4 a schematic diagram of another graphical user interface shown, Figure 4 the area covered by the left diagonal line in the figure is used to represent that the target display special effect is provided in the first area. When the number of game events related to camp A exceeds the preset quantity threshold, or the ratio of the number of game events related to camp A to the number of game events related to camp B exceeds the preset ratio threshold, each game event (including events related to camp A and events related to camp B) will be displayed in the event display area, and the target display special effect will be provided in the first area on the left side of the event display area. Taking the number of game events corresponding to the second player camp meeting the preset condition as an example, refer to Figure 5 a schematic diagram of another graphical user interface shown, Figure 5 the area covered by the right diagonal line in the figure is used to represent that the target display special effect is provided in the second area. When the number of game events related to camp B exceeds the preset quantity threshold, or the ratio of the number of game events related to camp B to the number of game events related to camp A exceeds the preset ratio threshold, each game event (including events related to camp A and events related to camp B) will be displayed in the event display area, and the target display special effect will be provided in the second area on the right side of the event display area.
[0053] In one implementation, if the number of game events corresponding to the first player camp and the number of game events corresponding to the second player camp are both less than the preset quantity threshold, or if the first ratio and the second ratio are both less than the preset ratio threshold, each game event will be provided in the event display area. Assuming that the maximum number of events provided by the graphical user interface is 10 and the preset quantity threshold is 6, if 5 events in the game events are related to camp A and 5 events are related to camp B, it can be determined at this time that no display special effect will be provided in the graphical user interface, and only each game event will be provided in the event display area.
[0054] For ease of understanding, an embodiment of the present invention provides an application example. For example, when the number of game events related to Camp A displayed on the same screen in the graphical user interface exceeds a preset quantity threshold, a random atmosphere special effect (i.e., the above-mentioned display special effect) will appear on the left side of the graphical user interface; when the number of game events related to Camp B displayed on the same screen in the graphical user interface exceeds a preset quantity threshold, a random atmosphere special effect will appear on the right side of the graphical user interface; when the number of game events related to both Camp A and Camp B displayed on the same screen in the graphical user interface does not exceed the preset quantity threshold, no random atmosphere special effect will appear on either the left or right side of the graphical user interface.
[0055] The method for displaying information in the game provided by the embodiment of the present invention triggers different random atmosphere special effects when a certain number of different player camps appear in the same screen interface, and uses random atmosphere special effects with different presentation forms for different player camps. In summary, the method for displaying information in the game provided by the embodiment of the present invention has at least the following characteristics:
[0056] (1) Increase randomness according to the number of events of the player camp appearing in the graphical user interface, making the graphical user interface interesting;
[0057] (2) The dynamic atmosphere special effects provided by the graphical user interface will change with the change in the number of player camps, enhancing the immersion and increasing the Easter eggs.
[0058] (3) Strengthen the emotional resonance of long-cycle games, which is suitable for players to share with other users.
[0059] For the method for displaying information in the game provided in the foregoing embodiment, an embodiment of the present invention provides a device for displaying information in the game. By providing a graphical user interface through a terminal, referring to Figure 6 the structural schematic diagram of a device for displaying information in the game shown in
[0060] The camp determination module 602 is configured to obtain game events and determine the player camp to which the game events belong;
[0061] The special effect determination module 604 is configured to, if the number of game events corresponding to the player camp meets a preset condition, determine a target display special effect according to the player camp;
[0062] The display module 606 is configured to display the game events corresponding to the player camp with the target display special effect.
[0063] The above-mentioned display device for game information provided by the embodiments of the present invention can determine a target display special effect according to the player camp when the number of game events corresponding to the player camp meets a preset condition, and display the corresponding game events with the target display special effect, so that the graphical user interface is more immersive and random when providing game events, enriches the presentation methods of game events, and significantly improves the immersion and experience of players when browsing events.
[0064] In one implementation, the special effect determination module 604 is further configured to: determine whether the number of game events corresponding to the player camp meets a preset condition according to a preset quantity threshold; if so, determine the target display special effect corresponding to the player camp based on a preset first mapping relationship; wherein, the first mapping relationship includes the corresponding relationship between the player camp and the display special effect.
[0065] In one implementation, the special effect determination module 604 is further configured to: determine whether the number of game events corresponding to the player camp is greater than or equal to a preset quantity threshold; if so, determine that the number of game events corresponding to the player camp meets the preset condition; wherein, the player camp includes the first player camp and the second player camp, the preset quantity threshold is determined based on the maximum number of game events provided by the graphical user interface, the preset quantity threshold is less than or equal to the maximum number, and is greater than one half of the maximum number.
[0066] In one implementation, the special effect determination module 604 is further configured to: determine whether the number of game events corresponding to the player camp meets a preset condition according to a preset ratio threshold; if so, determine the target display special effect corresponding to the target player camp based on a preset first mapping relationship.
[0067] In one implementation, calculate a first ratio of the number of game events corresponding to the first player camp to the number of game events corresponding to the second player camp; and calculate a second ratio of the number of game events corresponding to the second player camp to the number of game events corresponding to the first player camp; if the first ratio is greater than or equal to the preset ratio threshold, determine that the number of game events corresponding to the first player camp meets the preset condition; if the second ratio is greater than or equal to the preset ratio threshold, determine that the number of game events corresponding to the second player camp meets the preset condition.
[0068] In one implementation, the graphical user interface includes an event display area and at least one candidate special effect area; the display module 606 is further configured to: determine a target special effect area corresponding to the target display special effect from the candidate special effect areas; provide the target display special effect in the target special effect area, and provide each game event in the event display area.
[0069] In one embodiment, the display module 606 is further configured to: determine a target special effect area corresponding to a target display special effect from candidate special effect areas based on the player camp and a preset second mapping relationship; wherein, the second mapping relationship includes the corresponding relationship between the player camp and the special effect area.
[0070] In one embodiment, the candidate special effect areas include a first area and a second area, the first area is located on the left side of the event display area, and the second area is located on the right side of the event display area; the second mapping relationship includes: the first player camp corresponds to the first area, and the second player camp corresponds to the second area.
[0071] In one embodiment, the display module 606 is further configured to: if the number of game events corresponding to the first player camp and the number of game events corresponding to the second player camp are both less than a preset number threshold, or if the first ratio and the second ratio are both less than a preset ratio threshold, provide each game event in the event display area.
[0072] The device provided by the embodiments of the present invention has the same implementation principle and the same technical effects as the foregoing method embodiments. For a brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding content in the foregoing method embodiments.
[0073] The embodiments of the present invention provide a terminal device. Specifically, the terminal device includes a processor and a memory; a computer program is stored on the memory, and the computer program executes the method according to any one of the foregoing embodiments when being run by the processor.
[0074] Figure 7 FIG. 16 is a schematic structural diagram of a terminal device provided by an embodiment of the present invention. The terminal device 100 includes: a processor 70, a memory 71, a bus 72, and a communication interface 73. The processor 70, the communication interface 73, and the memory 71 are connected through the bus 72; the processor 70 is configured to execute an executable module stored in the memory 71, such as a computer program.
[0075] Among them, the memory 71 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. Through at least one communication interface 73 (which may be wired or wireless), a communication connection between the system network element and at least one other network element is realized, and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used.
[0076] The bus 72 may be an ISA bus, a PCI bus, an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 7It is represented by only one bidirectional arrow, but it does not mean that there is only one bus or one type of bus.
[0077] Among them, the memory 71 is used to store a program. After receiving an execution instruction, the processor 70 executes the program. The method executed by the device defined by the flow process disclosed in any of the embodiments of the present invention can be applied to or implemented by the processor 70.
[0078] The processor 70 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in hardware or instructions in software form in the processor 70. The above-mentioned processor 70 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 71, and the processor 70 reads the information in the memory 71 and combines its hardware to complete the steps of the above method.
[0079] The computer program product of the readable storage medium provided by the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the foregoing method embodiments. For specific implementation, reference can be made to the foregoing method embodiments, which will not be elaborated here.
[0080] If the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0081] Finally, it should be noted that the above-mentioned embodiments are only specific implementation manners of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting it. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that any person skilled in the art within the technical scope disclosed by the present invention can still modify the technical solutions recorded in the foregoing embodiments or can easily think of changes, or perform equivalent replacements for some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention and should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A method for displaying information in a game, characterized in that, The method includes: Obtaining a game event and determining the player camp to which the game event belongs; If the number of game events corresponding to the player camp meets a preset condition, determining a target display special effect according to the player camp; The graphical user interface includes an event display area and at least one candidate special effect area; Determining a target special effect area corresponding to the target display special effect from the candidate special effect areas; Providing the target display special effect in the target special effect area and providing each game event in the event display area.
2. The method according to claim 1, wherein The step of, if the number of game events corresponding to the player camp meets a preset condition, determining a target display special effect according to the player camp includes: Judging whether the number of game events corresponding to the player camp meets the preset condition according to a preset quantity threshold; If so, determining the target display special effect corresponding to the player camp based on a preset first mapping relationship; wherein, the first mapping relationship includes the corresponding relationship between the player camp and the display special effect.
3. The method according to claim 2, wherein The step of judging whether the number of game events corresponding to the player camp meets the preset condition according to a preset quantity threshold includes: Judging whether the number of game events corresponding to the player camp is greater than or equal to the preset quantity threshold; If so, determining that the number of game events corresponding to the player camp meets the preset condition; Wherein, the player camp includes a first player camp and a second player camp, the preset quantity threshold is determined based on the maximum number of game events provided by the graphical user interface, the preset quantity threshold is less than or equal to the maximum number, and is greater than half of the maximum number.
4. The method according to claim 1, characterized in that The step of, if the number of game events corresponding to the player camp meets a preset condition, determining a target display special effect according to the player camp includes: Judging whether the number of game events corresponding to the player camp meets the preset condition according to a preset ratio threshold; If so, determining the target display special effect corresponding to the player camp based on a preset first mapping relationship.
5. The method according to claim 4, wherein The player camp includes a first player camp and a second player camp; The step of judging whether the number of game events corresponding to the player camp meets the preset condition includes: Calculating a first ratio of the number of game events corresponding to the first player camp to the number of game events corresponding to the second player camp; and calculating a second ratio of the number of game events corresponding to the second player camp to the number of game events corresponding to the first player camp; If the first ratio is greater than or equal to the preset ratio threshold, determining that the number of game events corresponding to the first player camp meets the preset condition; If the second ratio is greater than or equal to the preset ratio threshold, determining that the number of game events corresponding to the second player camp meets the preset condition.
6. The method according to claim 5, wherein The step of determining a target special effect area corresponding to the target display special effect from the candidate special effect areas includes: Based on the player camp and a preset second mapping relationship, determine a target special effect area corresponding to the target display special effect from the candidate special effect areas; wherein, the second mapping relationship includes the corresponding relationship between the player camp and the special effect area.
7. The method according to claim 6, wherein The candidate special effect areas include a first area and a second area, the first area is located on the left side of the event display area, and the second area is located on the right side of the event display area; The second mapping relationship includes: the first player camp corresponds to the first area, and the second player camp corresponds to the second area.
8. The method according to claim 1, characterized in that The method further includes: If the number of game events corresponding to the first player camp and the number of game events corresponding to the second player camp are both less than a preset number threshold, or if the first ratio and the second ratio are both less than a preset ratio threshold, provide each of the game events in the event display area.
9. A display device for information in a game, characterized in that, The device includes: A camp determination module, configured to obtain game events and determine the player camp to which the game events belong; A special effect determination module, configured to, if the number of game events corresponding to the player camp meets a preset condition, determine a target display special effect according to the player camp; A display module, where the graphical user interface includes an event display area and at least one candidate special effect area; Determine a target special effect area corresponding to the target display special effect from the candidate special effect areas; Provide the target display special effect in the target special effect area, and provide each of the game events in the event display area.
10. A terminal device, characterized in that, Includes a processor and a memory, the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer executable instructions, and when the computer executable instructions are called and executed by the processor, the computer executable instructions cause the processor to implement the method according to any one of claims 1 to 8.