A method and device for viewing information in a game
By introducing observation controls into the graphical user interface, the problem of overlapping the status of multiple combat units in turn-based games and being difficult to distinguish is solved, enabling quick switching and clear viewing of virtual unit status, which improves the gaming experience.
Patent Information
- Application Number
- CN202110980403.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-08-25
AI Technical Summary
In turn-based games, the status effects of multiple combat units are easily superimposed, making it difficult to distinguish. The long-press viewing method has a long response time and is inefficient, which may lead to pressing the wrong unit, affecting the game experience.
The observation control is introduced into the graphical user interface, and the status information of the virtual unit is determined and displayed through the first selection command. The second selection command switches to another virtual unit and cancels the status display of the previous unit, achieving quick switching and clear viewing.
It improves the efficiency of players to check the status of virtual units, allows them to quickly switch and clearly check the status of each virtual unit, reduces the possibility of misoperation, and improves the game experience.
Smart Images

Figure CN113680062B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a method for viewing information in a game and a device for viewing information in a game. Background Art
[0002] With the development of multimedia technology and the popularization of wireless networks, people's entertainment activities have become more and more diverse, such as playing games online through handheld media devices, playing stand-alone or online games through computers, and various types of games, such as barrage shooting games, role-playing games, casual chess and card games, and turn-based games.
[0003] For turn-based games, there are many battle states during combat, for example, in some games, there are battle states such as poison, confusion, restraint, and disk. The special effects of these states are usually displayed overlapping, making it difficult to clearly see all states. At present, the state is generally viewed by directly viewing the state special effects, or by long pressing the combat unit to pop up the combat state window of the combat unit. However, if there are many combat states, these special effects will overlap and be difficult to distinguish. The long press method of viewing is inefficient due to the long response time of the long press. In addition, the wrong unit may be pressed during the long press, and it is discovered that it is not the state of the combat unit that responds to the view after the long press, resulting in a poor gaming experience for players. Summary of the invention
[0004] In view of the problem that checking the status of combat units in the above-mentioned turn-based game is time-consuming and inconvenient for players to operate, an embodiment of the present invention is proposed to provide an information viewing method in a game and a corresponding information viewing device in a game that overcomes the above-mentioned problem or at least partially solves the above-mentioned problem.
[0005] An embodiment of the present invention discloses a method for viewing information in a game, wherein a graphical user interface is obtained by rendering by a terminal device, and content displayed by the graphical user interface includes at least one virtual unit and an observation control. The method comprises:
[0006] In response to a first selection instruction for the viewing control, determining a first virtual unit from the at least one virtual unit, and displaying status information corresponding to the first virtual unit;
[0007] In response to a second selection instruction for the viewing control, determining a second virtual unit from the at least one virtual unit;
[0008] The status information corresponding to the first virtual unit is canceled from being displayed, and the status information corresponding to the second virtual unit is displayed on the graphical user interface.
[0009] Optionally, the first selection instruction is generated by pressing and holding the viewing control and dragging it to the at least one virtual unit.
[0010] Optionally, in response to a first selection instruction for the viewing control, determining a first virtual unit from the at least one virtual unit comprises:
[0011] In response to a first selection instruction for the observation control, determining a last touch position of a touch point in the first selection instruction;
[0012] A first virtual unit is determined from the at least one virtual unit according to the last touch position of the touch point in the first selection instruction.
[0013] Optionally, the displaying of status information corresponding to the first virtual unit includes:
[0014] According to a preset operation gesture and the position where the first virtual unit is displayed, status information corresponding to the first virtual unit is displayed on the graphical user interface to avoid blocking of the status information.
[0015] Optionally, the method further comprises:
[0016] When the first virtual unit moves on the graphical user interface, status information corresponding to the first virtual unit is displayed on the graphical user interface according to the position of the first virtual unit after the movement.
[0017] Optionally, the second selection instruction is generated by dragging the viewing control to the second virtual unit; wherein the second virtual unit is different from the first virtual unit.
[0018] Optionally, displaying the status information corresponding to the second virtual unit on the graphical user interface includes:
[0019] According to a preset operation gesture and the position where the second virtual unit is displayed, status information corresponding to the second virtual unit is displayed on the graphical user interface to avoid blocking of the status information.
[0020] Optionally, the method further comprises:
[0021] When the second virtual unit moves on the graphical user interface, status information corresponding to the second virtual unit is displayed on the graphical user interface according to the moved position of the second virtual unit.
[0022] Optionally, the method further comprises:
[0023] In response to a cancel instruction for the viewing control, the status message displayed on the graphical user interface is canceled.
[0024] Optionally, the cancel instruction is generated by an operation in which an operating medium leaves the terminal device, wherein the operating medium is used to input the first selection instruction and the second selection instruction.
[0025] Optionally, the state information is an abbreviated name corresponding to the combat state, and the method further includes:
[0026] In response to a trigger instruction for the abbreviated name, detailed information corresponding to the battle status is displayed.
[0027] The embodiment of the present invention further discloses an information viewing device in a game, wherein a graphical user interface is obtained by rendering through a terminal device, and the content displayed by the graphical user interface includes at least one virtual unit and an observation control, and the device comprises:
[0028] a first state display module, configured to respond to a first selection instruction for the viewing control, determine a first virtual unit from the at least one virtual unit, and display state information corresponding to the first virtual unit;
[0029] A second virtual unit determination module, configured to determine a second virtual unit from the at least one virtual unit in response to a second selection instruction for the viewing control;
[0030] The second status display module is used to cancel the display of the status information corresponding to the first virtual unit and display the status information corresponding to the second virtual unit on the graphical user interface.
[0031] The embodiment of the present invention further discloses an electronic device, including:
[0032] A processor and a storage medium, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor executes the machine-readable instructions to perform the method as described in any one of the embodiments of the present invention.
[0033] An embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in any one of the embodiments of the present invention is executed.
[0034] The embodiments of the present invention include the following advantages:
[0035] In a method for viewing information in a game provided by an embodiment of the present invention, by adding an observation control on a graphical user interface, when a player needs to view the status of a virtual unit, the player can initiate a first selection instruction through the observation control, determine a first virtual unit from the at least one virtual unit by responding to the first selection instruction for the observation control, and display the status information corresponding to the first virtual unit. Furthermore, the player can continue to respond to the second selection instruction for the observation control, determine a second virtual unit from the at least one virtual unit, cancel the display of the status information corresponding to the first virtual unit, and display the status information corresponding to the second virtual unit on the graphical user interface. This allows the player to view the status of all virtual units in the graphical user interface through the observation control, and can quickly switch the currently viewed virtual unit, and clearly view the status of each virtual unit on the graphical user interface, thereby improving the efficiency of the player viewing the status of the virtual unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0037] Figure 1 is a flowchart of a method for viewing information in a game provided by an embodiment of the present invention;
[0038] Figure 2 is a schematic diagram of a graphical user interface provided by an embodiment of the present invention;
[0039] Figure 3 is a schematic diagram of another graphical user interface provided by an embodiment of the present invention
[0040] Figure 4A is a schematic diagram of checking the status of a first virtual unit provided by an embodiment of the present invention;
[0041] Figure 4B is a schematic diagram of checking the status of a second virtual unit provided by an embodiment of the present invention
[0042] Figure 5 is a schematic diagram of status information in a graphical user interface provided by an embodiment of the present invention;
[0043] Figure 6 is a structural block diagram of an information viewing device in a game provided by an embodiment of the present invention;
[0044] Figure 7is a structural block diagram of an electronic device of the present invention;
[0045] Figure 8 It is a structural block diagram of a storage medium of the present invention. DETAILED DESCRIPTION
[0046] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] In a turn-based game, after the battle begins, multiple combat units belonging to the same side (multiple combat units, that is, combat characters controlled by multiple players in the battle) adopt a system of taking turns to act, and the two sides of the battle adopt a method of attacking in turns. When the current combat unit of one side is killed, it is the turn of another combat unit of the killed side to fight in the second round, and so on, until all the combat units of one side are killed, the turn-based battle will end.
[0048] In turn-based games, it is usually necessary to check the status of combat units so as to make strategic layouts according to the status of combat units in order to win the game. In the prior art, the status is checked by directly checking the status special effects, or by long pressing the combat unit to pop up its combat status window. If there are many combat states, these special effects will overlap and be difficult to distinguish. The long press method of checking the status is inefficient due to the long response time of the long press. In addition, the wrong unit may be pressed during the long press, and it is discovered that the status of the combat unit is not the status that responds to the check after the long press, resulting in a poor gaming experience for players.
[0049] In order to solve the problem that it is inconvenient for players to view the status of combat units in turn-based games, a method for viewing the status of virtual units is provided in an embodiment of the present invention. By adding an observation control in a graphical user interface, the observation control is used to view the status of virtual units. When a player needs to view the status of a virtual unit, the player can initiate a first selection instruction to the server of the game through the observation control, and by responding to the first selection instruction for the observation control, a first virtual unit is determined from the at least one virtual unit, and the status information corresponding to the first virtual unit is displayed. Furthermore, the player can continue to respond to the second selection instruction for the observation control, determine the second virtual unit from the at least one virtual unit, cancel the display of the status information corresponding to the first virtual unit, and display the status information corresponding to the second virtual unit on the graphical user interface. The player can view the status of all virtual units in the graphical user interface through the observation control, can quickly switch the currently viewed virtual unit, and clearly view the status of each virtual unit on the graphical user interface, thereby improving the efficiency of the player viewing the status of the virtual unit.
[0050] In one embodiment of the present invention, the information viewing method in the game can be run on a terminal device or a server. The terminal device can be a local terminal device. When the information viewing method in the game is run on the server, the information viewing method in the game can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0051] 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 information viewing method 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 first terminal device, a TV, a computer, a handheld computer, etc.; but the terminal device for the information viewing method in the game is a cloud game server in the cloud. 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.
[0052] In an optional embodiment, the terminal device may be a local terminal device. Taking a game as an example, the 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.
[0053] Reference Figure 1 , shows a flowchart of a method for viewing information in a game provided by an embodiment of the present invention, wherein a graphical user interface is obtained by rendering through a terminal device, and the content displayed by the graphical user interface includes at least one virtual unit and an observation control, and the method may specifically include the following steps:
[0054] Step 101, in response to a first selection instruction for the viewing control, determining a first virtual unit from the at least one virtual unit, and displaying state information corresponding to the first virtual unit;
[0055] In a specific implementation, the terminal device may be a portable mobile terminal, such as a smart phone, a wearable device, a personal digital assistant (PDA), a point of sales (POS), a car computer, etc., or an electronic device such as a laptop, a tablet computer, an IPAD, etc. The terminal device may have a touch screen. For the convenience of operation, a touch screen is used to replace a mouse or a keyboard. The touch screen consists of a touch detection component and a touch screen controller. The touch detection component is installed in front of the display screen to detect the user's touch position and then transmit the relevant information to the touch screen controller. The main function of the touch screen controller is to receive touch information from the touch point detection device, convert it into touch point coordinates, and then transmit it to the central processing unit (CPU); it can also receive commands sent by the CPU and execute them. When a finger, a stylus or other operating medium applies pressure (or force) to the touch screen installed at the front end of the display, the touched position is detected by the touch screen controller and sent to the CPU through an interface (such as an RS-232 serial port, USB, etc.).
[0056] In an embodiment of the present invention, a graphical user interface is obtained by running a game application on a terminal device and rendering it on a touch screen of the terminal device. The content displayed by the graphical user interface includes a partial or complete game scene. The specific form of the game scene can be a square or other shapes (for example, a circle, etc.). Specifically, the game scene on the graphical user interface can include at least one virtual unit. The virtual unit can be a virtual character of the game controlled by the player through the terminal device. It can be presented through the graphical user interface. The presented content can include all of the virtual unit or a part of the virtual unit. In addition, the game scene can also include one or more virtual objects. The virtual object can be a non-player character (NPC) pre-set by the game developer in a specific game scene. The player can interact with the virtual object.
[0057] The graphical user interface may also include an observation control, which is used to view the status of virtual units. When the player needs to view the status of virtual units on the graphical user interface, a first selection instruction can be initiated through the observation control, wherein the first selection instruction can be an instruction for selecting the virtual unit to be viewed. In a specific implementation, the first selection instruction can be generated by pressing and holding the observation control and dragging the observation control to at least one virtual unit on the graphical user interface. It should be noted that the first selection instruction can also be generated by other operations on the observation control, for example, by touching at least one virtual unit after touching the observation control, and the embodiment of the present invention is not limited to this.
[0058] After receiving the first selection instruction for the observation control, a response may be made to the first selection instruction, and a first virtual unit may be determined from at least one virtual unit, wherein the first virtual unit is a selected virtual unit whose status needs to be viewed. Specifically, the first selection instruction may include a plurality of continuous touch positions of the touch point, and the first virtual unit may be determined from at least one virtual unit according to the last touch position of the touch point. Then, the status information corresponding to the first virtual unit is obtained, and the obtained status information is displayed on the graphical user interface.
[0059] As an example, Figure 2 As shown, the graphical user interface includes 10 virtual units, and includes an observation control 10 and 10 virtual units 20. The player can view the status of the virtual unit by dragging the observation control 10 to the virtual unit to be viewed among the 10 virtual units 20. In addition, the graphical user interface may also include some other controls, such as Figure 3As shown, the graphical user interface also includes controls such as chat window, escape, recall, protection, defense, attack, spell, props, summoning and automatic combat, among which the player can continue to communicate with other players through the chat window, control the virtual unit to escape through the escape control, protect the virtual unit through the protection control, increase defense mechanisms such as shields through the defense control, control the virtual unit to attack the enemy through the attack control, cast spells and attack through the spell control, enter the backpack through the prop control to view the props in the backpack, summon the virtual unit through the summoning control, and control the virtual unit to continue automatic combat through the automatic combat control.
[0060] Step 102, in response to a second selection instruction for the viewing control, determining a second virtual unit from the at least one virtual unit;
[0061] After viewing the status of the first virtual unit, the player may also initiate a second selection instruction through the viewing control to continue viewing the status of other virtual units, wherein the second selection instruction may be an instruction for switching the virtual unit to be viewed.
[0062] In a specific implementation, the second selection instruction can be generated by dragging the observation control to the second virtual unit, wherein the second virtual unit is the virtual unit whose status needs to be viewed after switching, and the second virtual unit is different from the first virtual unit. Specifically, after dragging the observation control to the first virtual unit, the player can further drag the observation control to the second virtual unit other than the first virtual unit on the graphical user interface to switch from the first virtual unit to the second virtual unit for viewing. It should be noted that the second selection instruction can also be generated by other operations for the observation control. For example, when the first selection instruction is generated by touching at least one virtual unit after touching the observation control, the second selection instruction can be generated by touching at least one virtual unit other than the first virtual unit. The embodiment of the present invention does not limit this.
[0063] After receiving the second selection instruction for the observation control, the second selection instruction may be responded to and the second virtual unit may be determined from the at least one virtual unit. Specifically, the second selection instruction may include a plurality of consecutive touch positions of the touch point, and the second virtual unit may be determined from the at least one virtual unit according to the latest position of the touch point.
[0064] As an example, Figure 4A-4B As shown, the graphical user interface includes virtual unit A, virtual unit B, virtual unit C, virtual unit D and virtual unit E. Figure 4A In the example, drag the viewing control 10 to the virtual unit E to view the status information of the virtual unit E. Figure 4BIn the process, the observation control 10 is further dragged from the virtual unit E to the virtual unit A to switch to viewing the status information of the virtual unit A.
[0065] Step 103: cancel the display of the status information corresponding to the first virtual unit, and display the status information corresponding to the second virtual unit on the graphical user interface.
[0066] In an embodiment of the present invention, after determining the second virtual unit, the status information corresponding to the first virtual unit displayed on the graphical user interface can be canceled, and the status information corresponding to the second virtual unit can be displayed on the graphical user interface to switch from the status information of the first virtual unit to the status information of the second virtual unit for viewing.
[0067] In a preferred embodiment of the present invention, step 101 may include the following sub-steps:
[0068] In response to a first selection instruction for the observation control, a final touch position of the touch point in the first selection instruction is determined; and according to the final touch position of the touch point in the first selection instruction, a first virtual unit is determined from the at least one virtual unit.
[0069] Specifically, the first selection instruction may include multiple continuous touch positions. For the operation of dragging the observation control, the touch position corresponding to the touch point is constantly changing and continuous. In the embodiment of the present invention, the last touch position of the touch point in the first selection instruction can be determined for the first selection instruction of the observation control, and then, according to the last touch position of the touch point in the first selection instruction, the first virtual unit is determined from at least one virtual unit.
[0070] In a preferred embodiment of the present invention, the displaying of the status information corresponding to the first virtual unit includes:
[0071] According to a preset operation gesture and the position where the first virtual unit is displayed, status information corresponding to the first virtual unit is displayed on the graphical user interface to avoid blocking of the status information.
[0072] In an embodiment of the present invention, the display position of the status information can be determined according to a preset operation gesture and the position displayed by the first virtual unit, and then the status information corresponding to the first virtual unit is displayed on the graphical user interface according to the determined display position to avoid the status information being blocked.
[0073] Among them, the preset operation gesture can be a pre-set user operation gesture. For example, in general application scenarios, players usually touch various controls on the graphical user interface with their thumbs. In this case, the user's hand will block the content displayed in the lower half of the graphical user interface. Therefore, in order to avoid the displayed status information being blocked and the player being unable to view it, the status information can be displayed in the area above the current touch position.
[0074] In addition, in order to facilitate the player to distinguish which virtual unit the currently displayed status information belongs to, the display position of the status information can also be determined according to the displayed position of the first virtual unit. For example, the status information can be displayed on the right or left side of the displayed position of the first virtual unit. Figure 4A , the status information is displayed to the right of the first virtual unit.
[0075] In a preferred embodiment of the present invention, the method further comprises:
[0076] When the first virtual unit moves on the graphical user interface, status information corresponding to the first virtual unit is displayed on the graphical user interface according to the position of the first virtual unit after the movement.
[0077] When the player checks the status of the first virtual unit, the first virtual unit may move. In the embodiment of the present invention, when the first virtual unit moves on the graphical user interface, the status information corresponding to the first virtual unit may be displayed on the graphical user interface according to the position of the first virtual unit after the movement, that is, when the status information corresponding to the first virtual unit is displayed, the display position of the status information may also be adjusted as the position of the first virtual unit is adjusted.
[0078] In a preferred embodiment of the present invention, step 103 may include the following sub-steps:
[0079] According to a preset operation gesture and the position where the second virtual unit is displayed, status information corresponding to the second virtual unit is displayed on the graphical user interface to avoid blocking of the status information.
[0080] In an embodiment of the present invention, the display position of the status information can be determined according to a preset operation gesture and the displayed position of the second virtual unit, and then the status information corresponding to the second virtual unit can be displayed on the graphical user interface according to the determined display position to avoid the status information being blocked.
[0081] Among them, the preset operation gesture can be a pre-set user operation gesture. For example, in general application scenarios, players usually touch various controls on the graphical user interface with their thumbs. In this case, the user's hand will block the content displayed in the lower half of the graphical user interface. Therefore, in order to avoid the displayed status information being blocked and the player being unable to view it, the status information can be displayed in the area above the current touch position.
[0082] In addition, in order to facilitate the player to distinguish which virtual unit the currently displayed status information belongs to, the display position of the status information can also be determined according to the displayed position of the second virtual unit. For example, the status information can be displayed to the right or left of the displayed position of the second virtual unit. Figure 4B , the status information is displayed to the right of the first virtual unit.
[0083] In a preferred embodiment of the present invention, the method further comprises:
[0084] When the second virtual unit moves on the graphical user interface, status information corresponding to the second virtual unit is displayed on the graphical user interface according to the moved position of the second virtual unit.
[0085] When the player checks the status of the second virtual unit, the second virtual unit may move. In the embodiment of the present invention, when the second virtual unit moves on the graphical user interface, the status information corresponding to the second virtual unit may be displayed on the graphical user interface according to the position of the second virtual unit after the movement, that is, when the status information corresponding to the second virtual unit is displayed, the display position of the status information may also be adjusted as the position of the second virtual unit is adjusted.
[0086] In a preferred embodiment of the present invention, the method further comprises:
[0087] In response to a cancel instruction for the viewing control, the status message displayed on the graphical user interface is canceled.
[0088] Specifically, after checking the status of the completed virtual unit, the player can initiate a cancel command for the observation control, wherein the cancel command is used to cancel the status message displayed on the graphical user interface. In a specific implementation, the cancel command can be generated by an operation in which the operating medium leaves the terminal device, wherein the operating medium is used to input the first selection command and the second selection command, for example, the operating medium is a player's finger, a stylus, or other medium, and when the terminal device detects that the operating medium leaves the touch screen of the terminal device, a cancel command for the observation control is generated.
[0089] After receiving a cancel command for the observation control, the game application can respond to the cancel command and cancel the status message displayed on the graphical user interface. If the status information corresponding to the first virtual unit is displayed on the graphical user interface, the status information corresponding to the first virtual unit is canceled; if the status information corresponding to the second virtual unit is displayed on the graphical user interface, the status information corresponding to the second virtual unit is canceled.
[0090] In a preferred embodiment of the present invention, the state information is an abbreviated name corresponding to the combat state, and the method further includes:
[0091] In response to a trigger instruction for the abbreviated name, detailed information corresponding to the battle status is displayed.
[0092] In an embodiment of the present invention, the status information may be an abbreviated name corresponding to the combat status. For example, in some games, since a virtual unit may have multiple combat statuses, the combat status may be abbreviated to one word for the convenience of the player to view. For example, the combat status may be abbreviated to: poison, confusion, day, disk, speed, card, etc. When the status information of the virtual unit needs to be displayed, only the abbreviated name corresponding to the combat status is displayed.
[0093] For some novice players or players who have just returned to the game, after seeing the abbreviated name corresponding to the battle state, they may not understand what kind of gain effect the battle state has. In an embodiment of the present invention, a trigger method is added for the abbreviated name corresponding to the battle state. When the player needs to view the detailed information corresponding to a certain battle state, a trigger operation can be performed on the abbreviated name corresponding to the battle state to initiate a trigger instruction for the abbreviated name. After receiving the trigger instruction for the abbreviated name, the trigger instruction can be responded to, the detailed information of the battle state corresponding to the abbreviated name can be obtained, and then the detailed information corresponding to the battle state can be displayed on the graphical user interface.
[0094] As an example, Figure 5 As shown, what is currently being viewed is the status of the virtual unit E. The displayed status information includes the abbreviated names corresponding to the combat status, namely, Poison, Chaos, Heaven, Disk, Speed, and Card. Players can perform trigger operations on these abbreviated names to initiate trigger instructions for the abbreviated names to view detailed information corresponding to these combat statuses.
[0095] In a method for viewing information in a game provided by an embodiment of the present invention, by adding an observation control on a graphical user interface, when a player needs to view the status of a virtual unit, the player can initiate a first selection instruction through the observation control, determine a first virtual unit from the at least one virtual unit by responding to the first selection instruction for the observation control, and display the status information corresponding to the first virtual unit. Furthermore, the player can continue to respond to the second selection instruction for the observation control, determine a second virtual unit from the at least one virtual unit, cancel the display of the status information corresponding to the first virtual unit, and display the status information corresponding to the second virtual unit on the graphical user interface. This allows the player to view the status of all virtual units in the graphical user interface through the observation control, and can quickly switch the currently viewed virtual unit, and clearly view the status of each virtual unit on the graphical user interface, thereby improving the efficiency of the player viewing the status of the virtual unit.
[0096] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0097] Reference Figure 6 , shows a structural block diagram of an information viewing device in a game provided by an embodiment of the present invention, wherein a graphical user interface is obtained by rendering through a terminal device, and the content displayed by the graphical user interface includes at least one virtual unit and an observation control. The device may specifically include the following modules:
[0098] A first state display module 601, configured to respond to a first selection instruction for the viewing control, determine a first virtual unit from the at least one virtual unit, and display state information corresponding to the first virtual unit;
[0099] A second virtual unit determination module 602, configured to determine a second virtual unit from the at least one virtual unit in response to a second selection instruction for the viewing control;
[0100] The second status display module 603 is used to cancel the display of the status information corresponding to the first virtual unit, and display the status information corresponding to the second virtual unit on the graphical user interface.
[0101] In a preferred embodiment of the present invention, the first selection instruction is generated by pressing and holding the observation control and dragging it to the at least one virtual unit.
[0102] In a preferred embodiment of the present invention, the first status display module 601 includes:
[0103] A touch position determination submodule, for responding to a first selection instruction for the observation control, and determining a final touch position of a touch point in the first selection instruction;
[0104] The first virtual unit determination submodule is used to determine a first virtual unit from the at least one virtual unit according to the last touch position of the touch point in the first selection instruction.
[0105] In a preferred embodiment of the present invention, the first status display module 601 includes:
[0106] The first status display submodule is used to display status information corresponding to the first virtual unit on the graphical user interface according to a preset operation gesture and the position where the first virtual unit is displayed, so as to avoid blocking of the status information.
[0107] In a preferred embodiment of the present invention, the device further comprises:
[0108] The first position adjustment module is used to display status information corresponding to the first virtual unit on the graphical user interface according to the position of the first virtual unit after the movement when the first virtual unit moves on the graphical user interface.
[0109] In a preferred embodiment of the present invention, the second selection instruction is generated by dragging the observation control to the second virtual unit; wherein the second virtual unit is different from the first virtual unit.
[0110] In a preferred embodiment of the present invention, the second status display module 603 includes:
[0111] The second status display submodule is used to display status information corresponding to the second virtual unit on the graphical user interface according to a preset operation gesture and the position where the second virtual unit is displayed, so as to avoid blocking of the status information.
[0112] In a preferred embodiment of the present invention, the device further comprises:
[0113] The second position adjustment module is used to display status information corresponding to the second virtual unit on the graphical user interface according to the moved position of the second virtual unit when the second virtual unit moves on the graphical user interface.
[0114] In a preferred embodiment of the present invention, the device further comprises:
[0115] The status message canceling module is used to respond to a cancel instruction for the observation control and cancel the status message displayed on the graphical user interface.
[0116] In a preferred embodiment of the present invention, the cancel instruction is generated by an operation of an operating medium leaving the terminal device, wherein the operating medium is used to input the first selection instruction and the second selection instruction.
[0117] In a preferred embodiment of the present invention, the state information is an abbreviated name corresponding to the combat state, and the device further includes:
[0118] The detailed information viewing module is used to respond to the trigger instruction for the abbreviated name and display the detailed information corresponding to the combat status.
[0119] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0120] The embodiment of the present invention further provides an electronic device, such as Figure 7 As shown, including:
[0121] The processor 701 and the storage medium 702 store machine-readable instructions executable by the processor 701. When the electronic device is running, the processor 701 executes the machine-readable instructions to perform the method as described in any one of the embodiments of the present invention. The specific implementation method and technical effect are similar and will not be repeated here.
[0122] The embodiment of the present invention also provides a computer readable storage medium, such as Figure 8 As shown, the storage medium stores a computer program 801, and the computer program 801 is executed by a processor to execute a method as described in any one of the embodiments of the present invention. The specific implementation method and technical effect are similar and will not be described here.
[0123] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0124] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0125] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0126] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0128] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0129] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0130] The above is a detailed introduction to a method for viewing information in a game and a device for viewing information in a game provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for viewing information in a game, characterized in that: A graphical user interface is obtained by rendering by a terminal device, wherein content displayed by the graphical user interface includes at least one virtual unit and an observation control, and the method comprises: In response to a first selection instruction for the viewing control, determining a first virtual unit from the at least one virtual unit and displaying state information corresponding to the first virtual unit; the first selection instruction is generated by pressing and dragging the viewing control to the at least one virtual unit; In response to a second selection instruction for the viewing control, determining a second virtual unit from the at least one virtual unit; The status information corresponding to the first virtual unit is canceled from being displayed, and the status information corresponding to the second virtual unit is displayed on the graphical user interface.
2. The method according to claim 1, characterized in that The determining, in response to a first selection instruction for the viewing control, a first virtual unit from the at least one virtual unit comprises: In response to a first selection instruction for the observation control, determining a last touch position of a touch point in the first selection instruction; A first virtual unit is determined from the at least one virtual unit according to the last touch position of the touch point in the first selection instruction.
3. The method according to claim 1, characterized in that The displaying of the status information corresponding to the first virtual unit includes: According to a preset operation gesture and the position where the first virtual unit is displayed, status information corresponding to the first virtual unit is displayed on the graphical user interface to avoid blocking of the status information.
4. The method according to claim 3, characterized in that The method further comprises: When the first virtual unit moves on the graphical user interface, status information corresponding to the first virtual unit is displayed on the graphical user interface according to the position of the first virtual unit after the movement.
5. The method according to claim 1, characterized in that The second selection instruction is generated by dragging the viewing control to the second virtual unit; wherein the second virtual unit is different from the first virtual unit.
6. The method according to claim 1, characterized in that The displaying, on the graphical user interface, status information corresponding to the second virtual unit includes: According to a preset operation gesture and the position where the second virtual unit is displayed, status information corresponding to the second virtual unit is displayed on the graphical user interface to avoid blocking of the status information.
7. The method according to claim 6, characterized in that The method further comprises: When the second virtual unit moves on the graphical user interface, status information corresponding to the second virtual unit is displayed on the graphical user interface according to the moved position of the second virtual unit.
8. The method according to claim 1, characterized in that: The method further comprises: In response to a cancel instruction for the viewing control, the status message displayed on the graphical user interface is canceled.
9. The method according to claim 8, characterized in that The cancel instruction is generated by an operation of an operating medium leaving the terminal device, wherein the operating medium is used to input the first selection instruction and the second selection instruction.
10. The method according to claim 1, characterized in that The state information is an abbreviated name corresponding to the combat state, and the method further includes: In response to a trigger instruction for the abbreviated name, detailed information corresponding to the battle status is displayed.
11. A device for viewing information in a game, characterized in that: A graphical user interface is obtained by rendering by a terminal device, wherein the content displayed by the graphical user interface includes at least one virtual unit and an observation control, and the apparatus comprises: A first state display module, configured to respond to a first selection instruction for the observation control, determine a first virtual unit from the at least one virtual unit, and display state information corresponding to the first virtual unit; the first selection instruction is generated by pressing and dragging the observation control to the at least one virtual unit; a second virtual unit determination module, configured to determine a second virtual unit from the at least one virtual unit in response to a second selection instruction for the viewing control; The second status display module is used to cancel the display of the status information corresponding to the first virtual unit and display the status information corresponding to the second virtual unit on the graphical user interface.
12. An electronic device, characterized in that: include: A processor and a storage medium, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor executes the machine-readable instructions to perform the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is executed.
