CN111589118B - User interface display method, device, equipment and storage medium - Google Patents

User interface display method, device, equipment and storage medium Download PDF

Info

Publication number
CN111589118B
CN111589118B CN202010367938.2A CN202010367938A CN111589118B CN 111589118 B CN111589118 B CN 111589118B CN 202010367938 A CN202010367938 A CN 202010367938A CN 111589118 B CN111589118 B CN 111589118B
Authority
CN
China
Prior art keywords
virtual
value
income
building
virtual object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010367938.2A
Other languages
Chinese (zh)
Other versions
CN111589118A (en
Inventor
杨子舟
徐戊元
林惠文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010367938.2A priority Critical patent/CN111589118B/en
Publication of CN111589118A publication Critical patent/CN111589118A/en
Application granted granted Critical
Publication of CN111589118B publication Critical patent/CN111589118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a display method, a display device, display equipment and a storage medium of a user interface, and belongs to the technical field of computers and the Internet. The method comprises the following steps: displaying a virtual environment picture of an application program; acquiring a life value of the virtual building; updating and displaying the life value prompt information according to the life value of the virtual building; and responding to the fact that the life value of the virtual building is smaller than or equal to the stage check value, and displaying income prompt information corresponding to the target virtual object in the virtual environment picture. According to the technical scheme, in the process that the life value of the virtual building is reduced, the target virtual object can obtain corresponding benefits, the diversity of the benefit obtaining opportunity is increased, the problem that the benefits are obtained after the virtual building is destroyed and the resulting benefit distribution mode is single is avoided, and the benefit obtaining mode is diversified.

Description

User interface display method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer and internet technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a user interface.
Background
At present, game interaction modes are more and more, and users can obtain corresponding benefits when controlling virtual objects to destroy virtual articles in a virtual environment.
In the related art, during the game process, a user can control a virtual object to attack a virtual article in a virtual environment by using various skills, wherein the virtual article refers to an article, such as a virtual tree, rendered and displayed in the virtual environment by a virtual engine at the beginning of the game. After the virtual object is destroyed by the virtual object, the virtual object can obtain corresponding revenue.
However, in the related art, the revenue is obtained only after the virtual object is destroyed, and the revenue obtaining mode is single.
Disclosure of Invention
The embodiment of the application provides a display method, a display device, a display equipment and a storage medium of a user interface, which can increase the diversity of revenue acquisition opportunities and enable the revenue acquisition modes to have diversity. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a method for displaying a user interface, where the method includes:
displaying a virtual environment picture of an application program, wherein the virtual environment picture comprises a virtual environment and a virtual building located in the virtual environment, the life value prompt information of the virtual building comprises stage prompt information, and the stage prompt information is used for indicating at least one benefit providing stage corresponding to the virtual building;
acquiring a life value of the virtual building;
updating and displaying the life value prompt information according to the life value of the virtual building;
and responding to that the life value of the virtual building is smaller than or equal to a stage check value, and displaying income prompt information corresponding to the target virtual object in the virtual environment picture, wherein the stage check value is larger than 0 and smaller than the maximum life value of the virtual building.
On the other hand, an embodiment of the present application provides an information sending method in an application program, where the method includes:
acquiring a life value of a virtual building in a virtual environment provided by an application program;
in response to the life value of the virtual building being less than or equal to a stage check value, determining a target virtual object in the virtual environment for which a benefit is obtained, the stage check value being greater than 0 and less than a maximum life value of the virtual building;
determining the gain obtained by the target virtual object;
and sending income information to a client corresponding to the target virtual object, wherein the income information is used for indicating the target virtual object to obtain the income.
In another aspect, an embodiment of the present application provides a display device of a user interface, where the device includes:
the system comprises a picture display module, a service module and a service module, wherein the picture display module is used for displaying a virtual environment picture of an application program, the virtual environment picture comprises a virtual environment and a virtual building positioned in the virtual environment, the life value prompt information of the virtual building comprises stage prompt information, and the stage prompt information is used for indicating at least one benefit providing stage corresponding to the virtual building;
the life value acquisition module is used for acquiring the life value of the virtual building;
the life value display module is used for updating and displaying the life value prompt information according to the life value of the virtual building;
and the information display module is used for responding to the fact that the life value of the virtual building is smaller than or equal to a stage check value, and displaying income prompt information corresponding to the target virtual object in the virtual environment picture, wherein the stage check value is larger than 0 and smaller than the maximum life value of the virtual building.
In another aspect, an embodiment of the present application provides a revenue providing apparatus in an application, where the apparatus includes:
the life value acquisition module is used for acquiring the life value of a virtual building in the virtual environment provided by the application program;
an object determination module, configured to determine a target virtual object for obtaining revenue in the virtual environment in response to a life value of the virtual building being less than or equal to a stage check value, where the stage check value is greater than 0 and less than a maximum life value of the virtual building;
a profit determination module for determining profits obtained by the target virtual object;
and the information sending module is used for sending income information to the client corresponding to the target virtual object, and the income information is used for indicating the target virtual object to obtain the income.
In yet another aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the display method of the user interface; or implementing the information sending method in the application program.
Optionally, the computer device comprises a terminal and a server;
in a further aspect, an embodiment of the present application provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor of the terminal to implement the display method of the user interface.
In yet another aspect, an embodiment of the present application provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor of the server to implement the information sending method in the application program.
In still another aspect, a computer program product is provided, which, when running on a terminal, causes the terminal to execute the above-mentioned display method of a user interface.
In a further aspect, a computer program product is provided, which, when running on a server, causes the server to execute the information sending method in the application program.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
through the acquisition of the life value of the virtual building, when the life value of the virtual object is smaller than or equal to the stage check value, the target virtual object can obtain the income, and the stage check value is greater than 0 and smaller than the maximum life value of the virtual building, namely, in the process of reducing the life value of the virtual building, the target virtual object can obtain the corresponding income, the diversity of the income acquisition opportunity is increased, the single income distribution mode caused by the fact that the income can be acquired after the virtual building is destroyed is avoided, and the income acquisition mode has diversity.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an application execution environment provided by one embodiment of the present application;
fig. 2 is a schematic structural diagram of a terminal according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for displaying a user interface provided by one embodiment of the present application;
FIG. 4 is a diagram illustrating the distribution of phase prompt annotations on a life prompt bar;
FIG. 5 is a diagram illustrating an example of a variation of the display style of a life tip bar;
FIG. 6 illustrates a schematic diagram of a virtual environment screen;
FIG. 7 is a flow chart of a method for displaying a user interface provided by another embodiment of the present application;
FIG. 8 is a schematic diagram illustrating a revenue icon;
fig. 9 is a flowchart of an information sending method in an application according to an embodiment of the present application;
fig. 10 is a diagram illustrating an information transmission method in an application program;
FIG. 11 is a block diagram of a display device of a user interface provided by one embodiment of the present application;
FIG. 12 is a block diagram of a display device of a user interface provided in another embodiment of the present application;
FIG. 13 is a block diagram of a revenue generating apparatus in an application provided by one embodiment of the present application;
FIG. 14 is a block diagram of a revenue generating apparatus in an application provided by another embodiment of the present application;
fig. 15 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic diagram of an application execution environment according to an embodiment of the present application is shown. The application execution environment may include: a terminal 10 and a server 20.
The terminal 10 may be an electronic device such as a mobile phone, a tablet Computer, a game console, an electronic book reader, a multimedia playing device, a wearable device, a PC (Personal Computer), and the like. A client of the application may be installed in the terminal 10.
In the embodiment of the present application, the application may be any application that can provide a virtual environment for a virtual object substituted and operated by a user to perform an activity in the virtual environment. Typically, the application is a Game application, such as Multiplayer Online tactical sports (MOBA), big fly survival (BR), Third-Person Shooting Game (TPS), First-Person Shooting Game (FPS), and Multiplayer gunfight type survival games, among others. Of course, in addition to game applications, other types of applications may present virtual objects to a user and provide corresponding functionality to the virtual objects. For example, the application program may be a Virtual Reality (VR) application program, an Augmented Reality (AR) application program, a three-dimensional map program, a military simulation program, a social contact application program, an interactive entertainment application program, and the like, which are not limited in this embodiment of the present application. In addition, for different applications, the forms of the virtual objects provided by the applications may also be different, and the corresponding functions may also be different, which may be configured in advance according to actual requirements, and this is not limited in the embodiments of the present application. Optionally, a client of the above application program runs in the terminal 10. In some embodiments, the application is an application developed based on a three-dimensional virtual environment engine, for example, the virtual environment engine is a Unity engine, and the virtual environment engine can construct a three-dimensional virtual environment, a virtual object, a virtual prop, and the like, so as to bring a more immersive game experience to the user.
The virtual environment is a scene displayed (or provided) by a client of an application program (such as a game application program) when the client runs on a terminal, and the virtual environment refers to a scene created for a virtual object to perform an activity (such as a game competition), such as a virtual house, a virtual island, a virtual map, a virtual building, and the like. The virtual environment may be a simulation environment of a real world, a semi-simulation semi-fictional environment, or a pure fictional environment. The virtual environment may be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment, which is not limited in this embodiment of the present application.
The virtual object may be a virtual character controlled by the user account in the application program, or may be a virtual character controlled by the computer program in the application program. Taking the application as a game application as an example, the virtual object may be a game character controlled by the user account in the game application, or may be a game monster controlled by a hormone in the game application. The virtual object may be in the form of a character, an animal, a cartoon or other forms, which is not limited in this application. The virtual object may be displayed in a three-dimensional form or a two-dimensional form, which is not limited in the embodiment of the present application. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional stereo model created based on an animated skeleton technique. Each virtual object has its own shape and volume in the three-dimensional virtual environment, occupying a portion of the space in the three-dimensional virtual environment.
In one possible embodiment, the virtual objects include virtual objects in the same camp and virtual objects in different camps, that is, in the application, the virtual objects are divided into different camps. Illustratively, taking the MOBA game as an example, ten users play the matching game, and the matching game is divided into two teams of a red party and a blue party, namely, every five persons are in one group, at this time, the virtual objects in the red party and the red party are in the same formation and are in a teammate relationship, the virtual objects in the blue party and the blue party are in the same formation and are in a teammate relationship, and the virtual objects in the red party and the blue party are in different formations and are in a hostile relationship.
The server 20 is used to provide background services for clients of applications in the terminal 10. For example, the server 20 may be a backend server for the application described above. The server 20 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center. Optionally, the server 20 provides background services for applications in multiple terminals 10 simultaneously. In the embodiment of the present application, the server 20 may monitor the life value of the virtual building in the virtual environment, and allocate revenue to the target virtual object according to the change of the life value of the virtual building.
Alternatively, the terminal 10 and the server 20 may communicate with each other through the network 30.
Please refer to fig. 2, which illustrates a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 10 may include: a main board 110, an external input/output device 120, a memory 130, an external interface 140, a touch system 150, and a power supply 160.
The main board 110 has integrated therein processing elements such as a processor and a controller.
Alternatively, for the terminal, the external input/output device 120 may include a display component (e.g., a display screen), a sound playing component (e.g., a speaker), a sound collecting component (e.g., a microphone), various keys, and the like; for a PC terminal, the external input/output device 120 may include a display component (e.g., a display screen), a sound playing component (e.g., a speaker), a sound collecting component (e.g., a microphone), various keys (e.g., a mouse and a keyboard), and the like.
The memory 130 has program codes and data stored therein.
The external interface 140 may include a headset interface, a charging interface, a data interface, and the like.
The touch system 150 may be integrated into a display component or a key of the external input/output device 120, and the touch system 150 is used to detect a touch operation performed by a user on the display component or the key.
The power supply 160 is used to power various other components in the terminal 10.
In this embodiment, the processor in the motherboard 110 may generate a user interface (e.g., a game interface) by executing or calling the program codes and data stored in the memory, and display the generated user interface (e.g., the game interface) through the external input/output device 120. In the process of presenting a user interface (e.g., a game interface), a touch operation performed when a user interacts with the user interface (e.g., the game interface) may be detected by the touch system 150 and responded to.
Referring to fig. 3, a flowchart of a display method of a user interface according to an embodiment of the present application is shown. The method is applicable to a terminal, and the execution subject of each step may be the terminal 10 (hereinafter, simply referred to as "client") in the application execution environment shown in fig. 1. The method can comprise the following steps (301-304):
in step 301, a virtual environment screen of the application program is displayed.
The application program refers to an application program capable of providing a virtual environment, and optionally, the application program may be an application program requiring download and installation, or may be a point-to-point application program. The virtual environment is an environment that is created by rendering by a virtual engine and provides an acquisition scene for a virtual object, optionally, the virtual environment may include various virtual items, such as a virtual island, a virtual building, a virtual environment, a virtual map, and the like, and a user may control the virtual object to interact with the various virtual items in the virtual environment.
The virtual environment screen is a screen corresponding to a virtual environment displayed to a user on a client. In one possible implementation, the virtual environment view changes as the virtual object moves. For example, the virtual environment picture is a picture mapped on the terminal screen by the virtual camera capturing a virtual object controlled by the user and the surrounding environment of the virtual object, and when the user controls the virtual object to move in the virtual environment, the virtual camera acquires the virtual environment picture mapped on the terminal screen with reference to the virtual object. In another possible implementation, the virtual environment frame changes along with the touch instruction of the user. For example, the virtual environment screen is a screen that is mapped on the terminal screen by capturing the virtual environment through the virtual camera, and the position of the virtual camera changes according to the touch instruction of the user, so that the screen expected by the user can be displayed in real time in the virtual environment screen, and the virtual environment screen does not necessarily include the virtual environment controlled by the user. Illustratively, the virtual object controlled by the user may be located in position 1 of the virtual environment, and when the user wants to observe position two in the virtual environment, the user may perform a sliding operation on the terminal screen, thereby controlling the virtual camera to move to a specified position, where the specified position may obtain a virtual environment picture corresponding to position 2 of the virtual environment, and the virtual environment picture corresponding to position 2 does not include the virtual object controlled by the user.
In the embodiment of the present application, the virtual environment screen includes a virtual environment and a virtual building located in the virtual environment, and optionally, the virtual building may be a virtual building with some function, such as a virtual building with an attack function, a virtual building with a reply function (reply to a life value, etc.), and a virtual store with a sale function.
Optionally, the virtual environment screen may further include life value prompt information of the virtual building, where the life prompt information includes a life prompt bar, and the life prompt bar is used to show a life value of the virtual building. In one possible implementation, the client may monitor and update the life value of the virtual building. Optionally, the client monitors the life value of the virtual building in real time, and when the life value of the virtual building is reduced, the client controls the virtual environment picture to change the style of the life prompting bar of the virtual building, so that the life prompting bar can show the life value of the virtual building to a user in real time. For example, for a certain virtual building, the client may represent the remaining life value and the reduced life value of the virtual building in different colors in the life value prompt bar, and change the proportion of the different color patterns in the life value prompt bar according to the change of the life value of the virtual building to represent the change of the life value of the virtual building in real time.
The life value prompt information of the virtual building comprises stage prompt information, the stage prompt information is used for indicating at least one benefit providing stage corresponding to the virtual building, the benefit providing stage is a life value node for providing benefits to a target virtual object, when the life value of the virtual building reaches a certain benefit providing stage, the target virtual object corresponding to the virtual building can obtain corresponding benefits, optionally, the stage prompt information comprises a stage prompt label, and the stage prompt label is displayed on the life value prompt bar.
In a possible implementation manner, the ratio between each stage check value of the virtual building and the maximum life value of the virtual building is in the form of an arithmetic progression, that is, each stage check value of the virtual building is in the form of an arithmetic progression, and at this time, the distribution condition of the stage prompt label in the life prompt bar is an average distribution, that is, the stage prompt label equally divides the life prompt bar. As shown in fig. 4, assuming that the maximum life value of the virtual building 41 is 100, the virtual building includes three stage check values: 75. 50 and 25, and the ratio of the three stage inspection value to the maximum life value of the virtual building is respectively: 0.75, 0.50, 0.25, when the stage cue annotations 42 are evenly distributed on the life cue strips 43 of the virtual building 41.
In another possible implementation, the ratio between the inspection value of each stage of the virtual building and the maximum life value of the virtual building is not changed in value, that is, the value of the inspection value of each stage of the virtual building is not changed, and the distribution of the stage prompt labels in the life prompt bar is non-even distribution. As shown in fig. 4, assuming that the maximum life value of the virtual building 44 is 100, the virtual building includes three phase check values: 80. 50 and 10, and the ratio of the three stage inspection value to the maximum life value of the virtual building is respectively: 0.80, 0.50, 0.10, when the stage cue annotations 45 are not evenly distributed on the life cue strip 46 of the virtual building 44.
It should be noted that the above description of the distribution of the stage suggestion annotations of the virtual building indicates an example, and in actual application, the distribution of the stage suggestion annotations of different virtual buildings in the same application may be different.
Step 302, obtaining the life value of the virtual building.
The life value of the virtual building is the durability of the virtual building, when the life value of the virtual building is 0, the durability of the virtual building is 0, the virtual building is destroyed, and the functions of the virtual building cannot be used continuously. Optionally, when the virtual building is destroyed, the destruction animation of the virtual building can be played in the virtual environment picture.
In the embodiment of the application, the client can obtain the life value of the virtual building. Optionally, the client may obtain the life value of the virtual building in real time, or obtain the life value of the virtual building according to a certain time interval, where the time interval may be determined according to the frame switching time of the virtual environment picture, for example, the time interval may be 0.025s, 0.033s, 0.050s, and the like.
In a possible implementation manner, the client may monitor the life value of the virtual building in real time, and obtain the life value of the virtual building in real time or at certain time intervals; in another possible implementation manner, in order to reduce the processing overhead of the terminal, the client may detect the life value of the virtual building when detecting an interactive operation (such as a skill attack) of the virtual object on the virtual building, and acquire the life value of the virtual building. The virtual object may be a virtual object manipulated by a user, or a virtual object operated by a computer program in an application program, which is not limited in this embodiment of the present application.
And 303, updating and displaying the life value prompt information according to the life value of the virtual building.
In this embodiment, after acquiring the life value of the virtual building, the client may update and display the life prompting information of the virtual building in the virtual environment picture according to the life value of the virtual building. In a possible embodiment, the client does not process the virtual environment screen after acquiring the life value of the virtual building, and the life prompting information of the virtual building in the virtual environment screen remains unchanged. In another possible implementation manner, when the life value of the virtual building changes, the client processes the virtual environment picture after acquiring the life value of the virtual building, and updates and displays the life prompting information of the virtual building, where the updated life prompting information is used to indicate the changed life value of the virtual building, so as to ensure the accuracy of displaying the life value. Illustratively, referring to fig. 5 in combination, after the virtual building 51 is attacked, the life value prompting message is updated to the display pattern 53 by the display pattern 52.
And 304, responding to the fact that the life value of the virtual building is smaller than or equal to the stage check value, and displaying income prompt information corresponding to the target virtual object in the virtual environment picture.
The stage check value is a life value corresponding to a life value node providing benefits for the target virtual object, and is greater than 0 and smaller than the maximum life value of the virtual building. Optionally, the number of the stage check values may be one or more for a certain virtual building, and in a possible implementation, the number of the stage check values is the same as the number of the profit providing stages.
In the embodiment of the application, the client may monitor the life value of the virtual building, and if the life value of the virtual building is less than or equal to the stage check value, revenue prompt information corresponding to the target virtual object is displayed in the virtual environment picture, where the revenue prompt information is used to instruct the target virtual object to obtain revenue.
Optionally, the income promoting information includes an income obtaining special effect and an income obtaining numerical value. And when the life value of the virtual building is less than or equal to the stage check value, the client displays the income obtaining special effect and the income obtaining numerical value corresponding to the target virtual object in the virtual environment picture. The profit obtaining special effect is an animation special effect from the virtual building to the target virtual object, and the profit obtaining value is used for indicating the profit value obtained by the target virtual object. For example, taking the above-mentioned income as a gold coin as an example, with reference to fig. 6, if the life value displayed on the life cue bar 62 of the virtual building 61 in the virtual environment screen 60 is less than or equal to the stage check value, the income obtaining special effect 63 and the income value 64 are displayed in the virtual environment screen 60.
In the embodiment of the present application, the benefit refers to a virtual resource for influencing the fighting capacity of the target virtual object, and the virtual resource may be a virtual currency having a purchasing function, a certain available virtual item, or a virtual effect having a specific function, such as increasing the blood volume of the target virtual object.
Optionally, the benefits include positive benefits and negative benefits. Wherein the positive earnings are used for improving the fighting capacity of the target virtual object, and the negative earnings are used for reducing the fighting capacity of the target virtual object. In one possible embodiment, if the life value of the virtual building is less than or equal to the stage check value, the target virtual object in a different campsite from the virtual building may receive a positive profit and the virtual object in the same campsite as the virtual building may receive a negative profit.
It should be noted that, in the application program, the positive profit and the negative profit of the virtual building may be flexibly set, for example, the profit corresponding to the first virtual object is set as the positive profit, and the profit corresponding to the second virtual building is set as the negative profit.
To sum up, in the technical scheme provided by the embodiment of the application, through the acquisition of the life value of the virtual building, when the life value of the virtual object is less than or equal to the stage check value, the target virtual object can obtain the income, and the stage check value is greater than 0 and is less than the maximum life value of the virtual building, that is, in the process of reducing the life value of the virtual building, the target virtual object can obtain the corresponding income, the diversity of the income acquisition opportunity is increased, the single income distribution mode caused by the fact that the income can be acquired after the virtual building is destroyed is avoided, and the income acquisition mode has diversity.
In addition, the target virtual object in different camps with the virtual building obtains positive income, the target virtual object in the same camps with the virtual building obtains negative income, the positive income is used for improving the fighting capacity of the target virtual object, the negative income is used for reducing the fighting capacity of the target virtual object, the income directly influences the fighting capacity of the virtual target virtual object, the fighting time of the target virtual object is favorably shortened, and the processing overhead of the terminal is reduced.
Referring to fig. 7, a flowchart of a display method of a user interface according to another embodiment of the present application is shown. The method is applicable to a terminal, and the execution subject of each step may be the terminal 10 (hereinafter, simply referred to as "client") in the application execution environment shown in fig. 1. The method can comprise the following steps (701-706):
step 701, displaying a virtual environment screen of the application program.
Step 702, obtaining the life value of the virtual building.
And 703, updating and displaying the life value prompt information according to the life value of the virtual building.
And step 704, responding to that the life value of the virtual building is smaller than or equal to the stage check value, and displaying the income prompt information corresponding to the target virtual object in the virtual environment picture.
The steps 701-704 are the same as the steps 301-304 in the embodiment of fig. 3, and specific reference is made to the embodiment of fig. 3, which is not described herein again.
Step 705 displays a benefit icon on the virtual environment screen.
The profit icon is used for showing profits obtained by the target virtual object, optionally, the profits obtained by the target virtual object have timeliness, and the profit icon includes effective duration of the profits obtained by the target virtual object. The valid duration refers to a usable duration of the revenue obtained by the target virtual object, and the valid duration may be 10s, 5min, or 10min, which is not limited in the embodiment of the present application. Optionally, the client side takes the moment when the target virtual object obtains the benefit as a reference, and the target virtual object can use the benefit within the effective duration; and when the acquisition duration of the income exceeds the effective duration, the target virtual object cannot use the income.
In the application embodiment, after the client displays the profit prompt information corresponding to the target virtual object in the virtual environment screen, the client may display a profit icon corresponding to the profit obtained by the target virtual object in the virtual environment screen.
And step 706, responding to the effective duration being zero, and changing the display style of the income icon in the virtual environment picture.
Optionally, in this embodiment of the application, after the client displays the benefit icon, the client may obtain an obtaining duration of the benefit obtained by the target virtual object, update the effective duration of the benefit according to the obtaining duration, display the updated effective duration in the virtual environment picture, and change the display style of the benefit icon in the virtual environment picture when the effective duration of the benefit is zero.
Illustratively, with reference to fig. 8, after the revenue is acquired from the target virtual object, the revenue icon is in the first display mode 81, and the effective duration 82 displayed in the revenue icon is 5min at this time; then, when the income acquisition duration is 3min, the income icon is in the second display style 83, and the effective duration 84 displayed in the income icon is 2min at this time; finally, when the acquisition duration of the profit is 5min, the profit icon is the third display style 85, and the "failure" typeface is displayed in the profit icon. The color of the first display pattern 81 is green, the color of the second display pattern 83 is red, and the color of the third display pattern 85 is gray.
It should be noted that the above description of timeliness of the revenue is only exemplary and explanatory, and in actual application, the timeliness of the revenue may be flexibly set according to actual conditions, for example, different effective durations are set for different types of revenue, no effective market is set for a special revenue, no effective duration is set for a revenue obtained by a special target virtual object, and the like.
To sum up, in the technical scheme provided by the embodiment of the application, the profit has timeliness, the profit duration obtained by the target virtual object is controlled, the problem that the fighting capacity difference of the target virtual object is too large due to too much profit is avoided, and the fighting capacity of the target virtual object in the fighting process is effectively balanced.
Referring to fig. 9, a flowchart of an information sending method in an application according to an embodiment of the present application is shown. The method can be applied to a server, and the execution subject of each step can be the server 20 in the application program running environment shown in fig. 1. The method comprises the following steps (901-904):
step 901, obtaining a life value of a virtual building in a virtual environment provided by an application program.
The application program refers to an application program capable of providing a virtual environment, and optionally, the application program may be an application program requiring download and installation, or may be a point-to-point application program. The virtual environment is an environment that is created by rendering by a virtual engine and provides an acquisition scene for a virtual object, optionally, the virtual environment may include various virtual items, such as a virtual island, a virtual building, a virtual environment, a virtual map, and the like, and a user may control the virtual object to interact with the various virtual items in the virtual environment.
The life value of the virtual building is the durability of the virtual building, when the life value of the virtual building is 0, the durability of the virtual building is 0, the virtual building is destroyed, and the functions of the virtual building cannot be used continuously. In the embodiment of the application, the server may obtain the life value of the virtual building in the virtual environment provided by the application program. Optionally, the server may obtain the life value of the virtual building in real time, or may obtain the life value of the virtual building at certain time intervals, where the time intervals may be 0.025s, 0.033s, 0.050s, and the like.
In a possible implementation manner, the server may monitor the life value of the virtual building in real time, and obtain the life value of the virtual building in real time or at certain time intervals; in another possible implementation manner, in order to reduce the processing overhead of the server, the server may detect the life value of the virtual building when detecting an interactive operation (such as a skill attack) of the virtual object on the virtual building, and acquire the life value of the virtual building. The virtual object may be a virtual object manipulated by a user, or a virtual object operated by a computer program in an application program, which is not limited in this embodiment of the present application.
And step 902, in response to the life value of the virtual building being less than or equal to the stage check value, determining a target virtual object for obtaining revenue in the virtual environment.
The stage check value is a life value corresponding to a life value node providing benefits for the target virtual object, and is greater than 0 and smaller than the maximum life value of the virtual building. Optionally, for a certain virtual building, the number of the above-mentioned stage check values may be one or more, which is not limited in this embodiment of the present application. In this embodiment of the present application, when determining that the life value of the virtual building is less than or equal to the stage check value, the server determines a target virtual object for obtaining revenue in the virtual environment, where the target virtual object may be a virtual object controlled by a user or a virtual object controlled by a computer program in an application program, and this is not limited in this embodiment of the present application.
In one possible embodiment, the server determines whether the virtual object is a target virtual object based on a distance between the virtual object and the virtual building. Optionally, the step 902 includes the following steps:
1. acquiring the distance between the first virtual object and the virtual building;
2. in response to the distance being less than the threshold, the first virtual object is determined to be a target virtual object.
The first virtual object may be a virtual object in the same camp as the virtual building or may be a virtual object in a different camp from the virtual building. For example, if the profit corresponding to the virtual building is a positive profit, the first virtual object is a virtual object in a different battle with the virtual building; if the income corresponding to the virtual building is negative income, the first virtual object is a virtual object in the same battle with the virtual building; and if the income corresponding to the virtual building comprises both positive income and negative income, the first virtual object is all virtual objects in the application program. The threshold value is a distance limit condition for determining whether or not the first virtual object is the target virtual object. Alternatively, the threshold may be 10, 15, 20, or the like, which is not limited in this application.
In a possible embodiment, the server may directly obtain the distance between the first virtual object and the virtual building, for example, the server may record the distance between the first virtual object and the virtual building in real time, and then compare the distance with a threshold value after obtaining the distance. If the distance is smaller than or equal to the threshold value, determining that the first virtual object is a target virtual object; if the distance is greater than the threshold, it is determined that the first virtual object is not the target virtual object. In another possible embodiment, the server may obtain the coordinates of the virtual building and the coordinates of the first virtual object, obtain the distance between the first virtual object and the virtual building through calculation, and compare the distance with the threshold. If the distance is smaller than or equal to the threshold value, determining that the first virtual object is a target virtual object; if the distance is greater than the threshold, it is determined that the first virtual object is not the target virtual object.
In another possible implementation manner, the server determines whether the virtual object is the target virtual object by using the interactive operation of the virtual object on the virtual building within a preset time period as a reference. Optionally, the step 902 includes the following steps:
1. acquiring an attack object or a protection object of a first virtual object in a preset time period;
2. and determining that the first virtual object is a target virtual object in response to the attack object or the protection object being a virtual building.
The first virtual object may be a virtual object in the same camp as the virtual building or may be a virtual object in a different camp from the virtual building. For example, if the profit corresponding to the virtual building is a positive profit, the first virtual object is a virtual object in a different battle with the virtual building; if the income corresponding to the virtual building is negative income, the first virtual object is a virtual object in the same battle with the virtual building; and if the income corresponding to the virtual building comprises both positive income and negative income, the first virtual object is all virtual objects in the application program. The preset time period refers to a time period before the life value of the virtual building is less than or equal to the stage check value, and the duration of the preset time period may be 10s, 1min or 10min, and the like, which is not limited in the embodiment of the present application. Taking the duration of the preset time period as 1min as an example, if the time when the life value of the virtual building is less than or equal to the stage check value is 18:23, the preset time period is 18: 22-18: 23.
In this embodiment of the application, when the life value of the virtual building is less than or equal to the stage check value, the server may obtain an attack object or a protection object of the first virtual object within a preset time period. If the attack object or the protection object of the first virtual object is a virtual building, determining the first virtual object as a target virtual object; and if the attack object or the protection object of the first virtual object is not the virtual building, determining that the first virtual object is not the target virtual object. If the income corresponding to the virtual building is positive income, the server acquires an attack object of the first virtual object; and if the income corresponding to the virtual building is negative income, the server acquires the protected object of the first virtual object.
Step 903, determining the gain obtained by the target virtual object.
The profit is a virtual resource for influencing the fighting ability of the target virtual object, and the virtual resource may be virtual money having a purchasing function, some usable virtual item, or a virtual effect having a specific function, such as increasing the blood volume of the target virtual object. In the embodiment of the application, after determining the target virtual object, the server may determine the benefit obtained by the target virtual object according to the parameter information of the target virtual object.
In one possible embodiment, the server determines the gain obtained by the target virtual object according to the number of the target virtual objects. Optionally, the step 903 includes the following steps:
1. acquiring total income corresponding to the stage inspection value;
2. acquiring the number of target virtual objects;
3. and carrying out average distribution on the total income according to the number of the target virtual objects, and determining the income obtained by the target virtual objects.
In this case, the gains obtained by the target virtual objects are the same.
In another possible embodiment, the server determines the gain obtained by the target virtual object based on the distance between the target virtual object and the virtual building. Optionally, the step 903 includes the following steps:
1. acquiring total income corresponding to the stage inspection value;
2. acquiring the distance between a target virtual object and a virtual building;
3. and distributing the total profit according to the distance, and determining the profit obtained by the target virtual object.
In one possible implementation, the server may determine the profit obtained by the target virtual object according to a numerical ranking of the distance between the target virtual object and the virtual building. For example, assuming that the total profit is 100 and the distances between the first target virtual object, the second target virtual object and the third target virtual object and the virtual building are 1, 5 and 10, respectively, the profits obtained by the first target virtual object, the second target virtual object and the third target virtual object are 60, 30 and 10, respectively.
In another possible implementation manner, the server may determine the profit weight of the target virtual object according to the numerical ratio of the distance between the target virtual object and the virtual building, and further determine the profit obtained by the target virtual object. For example, assuming that the total profit is 100 and the distances between the first target virtual object, the second target virtual object and the third target virtual object and the virtual building are 2, 3 and 5, respectively, the profit weight of the first target virtual object, the second target virtual object and the third target virtual object is 5: 3: and 2, the gains of the first target virtual object, the second target virtual object and the third target virtual object are respectively 50, 30 and 20.
In another possible implementation, the server determines the gain obtained by the target virtual object according to the damage value or the protection value of the target virtual object to the virtual building. Optionally, the step 903 includes the following steps:
1. acquiring total income corresponding to the stage inspection value;
2. acquiring an injury numerical value or a protection numerical value of a target virtual object to a virtual building;
3. and distributing the total income according to the injury numerical value or the protection numerical value, and determining the income obtained by the target virtual object.
The damage value is a reduction value of the target virtual object to the life value of the virtual building; the protection value refers to an increased value of the target virtual object to the life value of the virtual building, for example, for a virtual object in the same battle as the virtual building, the virtual object may increase the life value of the virtual building through skill; or, in the process that the virtual object is attacked by the virtual building, the damage value caused to the virtual object attacking the virtual building can be converted into an increased value of the life value of the virtual building.
Optionally, the server may determine the benefit obtained by the target virtual object according to a numerical ranking of the damage numerical value or the protection numerical value of the target virtual object to the virtual building. Of course, in other possible embodiments, the profit weight of the target virtual object is determined according to the numerical ratio of the damage value or the protection value of the target virtual to the virtual building, and then the profit obtained by the target virtual object is determined.
In a further possible implementation, the server determines the gain obtained by the target virtual object according to the attribute value of the target virtual object. Optionally, the step 903 includes the following steps:
1. acquiring total income corresponding to the stage inspection value;
2. acquiring the income attribute of the total income;
3. acquiring an attribute value of the target virtual object according to the income attribute;
4. and distributing the total income according to the attribute values, and determining the income obtained by the target virtual object.
And a mapping relation exists between the profit attribute and the attribute value of the target virtual object. For example, if the income attribute is a gold coin type, the server may obtain gold coin values of the target virtual objects, and determine the income obtained by the target virtual objects according to the gold coin value sequence or proportion of each target virtual object; for another example, if the profit attribute is a life value reply class, the server may obtain the life values of the target virtual objects, and determine the profits obtained by the target virtual objects according to numerical sorting or numerical proportions of the life values of the target virtual objects.
It should be noted that, in actual application, the mapping relationship between the profit attribute and the attribute value of the target virtual object may be flexibly configured, for example, the profit attribute is a money type, and the attribute value of the target virtual object having the mapping relationship may be a money attribute, or may be a quantity attribute of the special virtual item.
In other possible embodiments, the step 903 includes the following steps:
1. acquiring total income corresponding to the stage inspection value;
2. acquiring the income attribute of each sub-income;
3. acquiring more than one attribute value of a target virtual object;
4. and distributing the total profit according to more than one attribute value of the target virtual object and the profit attribute of each profit sharing, and determining the profit sharing obtained by the target virtual object.
The total benefit may comprise more than one sub-benefit, optionally with different benefit attributes for each sub-benefit. For example, the profit corresponding to the inspection value of a certain virtual building at a certain stage may include multiple types of profits such as a gold coin profit, a reply profit, and a prop profit.
Optionally, after the server checks the total profit corresponding to the value in the obtaining stage, it may obtain the profit attribute of each sub-profit and more than one attribute value of the virtual target, where the number of the attribute values is the same as the number of the types of the profit attributes of the sub-profit; further, the server allocates the total profit according to the more than one attribute value of the target virtual object and the profit attribute of each profit sharing, determines the profit sharing obtained by the target virtual object, and allocates the gold coin profit to the target virtual object with the smallest gold coin value, for example.
In practice, the benefit distribution method corresponding to the inspection value at different stages of the virtual building in the application program may be the same or different, and this embodiment of the present invention is not limited to this.
And 904, sending the profit information to the client corresponding to the target virtual object.
In the embodiment of the application, after determining the profit obtained by the target virtual object, the server generates profit information and sends the profit information to the client corresponding to the target virtual object, wherein the profit information is used for indicating the target virtual object to obtain the profit. Correspondingly, after receiving the income information of the target virtual object, the client displays the income information in the virtual environment protection picture, wherein the income information comprises an income obtaining special effect and an income obtaining numerical value. The profit obtaining special effect is an animation special effect from the virtual building to the target virtual object, and the profit obtaining value is used for indicating the profit value obtained by the target virtual object.
To sum up, in the technical scheme provided by the embodiment of the application, through when the life value of the virtual building is less than or equal to the stage check value, earnings are distributed to the target virtual object, and the stage check value is greater than 0 and is less than the maximum life value of the virtual building, that is to say, in the process of reducing the life value of the virtual building, the target virtual object can obtain corresponding earnings, the diversity of the earnings obtaining opportunity is increased, the single earnings distribution mode caused by the fact that the earnings can be obtained after the virtual building is destroyed is avoided, and the earnings obtaining mode has diversity.
In the following, a phase check worth obtaining manner is described, and optionally, the phase check worth obtaining manner includes the following steps:
1. and acquiring a stage inspection ratio corresponding to the maximum life value and the income providing times of the virtual building.
The maximum life value refers to the life value before the virtual building is not attacked. The stage check ratio is a ratio of a stage check value corresponding to the number of revenue providing times to the maximum life value. The number of revenue generation times is the number of times revenue is distributed to the target virtual object corresponding to the virtual building.
Optionally, before obtaining the stage check value of the virtual building, the server may obtain the stage check ratio corresponding to the maximum life value and the revenue providing times of the virtual building as the virtual object.
2. And calculating the stage inspection value of the virtual building according to the stage inspection ratio corresponding to the maximum life value and the income providing times.
In this embodiment of the application, the server may calculate the stage check value of the virtual building according to the stage check ratio corresponding to the maximum life value and the profit providing times when obtaining the stage check ratio corresponding to the maximum life value and the profit providing times.
For example, assuming that the maximum life value of the virtual building is a, the number of revenue generation times b, and the stage check ratio corresponding to the number of revenue generation times is c, the calculation formula of the stage check value d of the virtual building is as follows:
d=a*c。
3. in response to the phase check value being greater than 0, execution begins at step 901 described above.
Alternatively, if the phase check value is greater than 0, the server determines that the phase check value is a valid phase check value, and starts to execute from the step 901; and if the stage check value is less than or equal to 0, the server determines that the stage check value is an invalid stage check value, and stops monitoring the life value of the virtual building.
It should be noted that the server needs to update the stage inspection value of the virtual building. Optionally, the following substeps are also included after the step 902:
1. updating the number of revenue providing times to obtain the updated number of revenue providing times;
2. acquiring a stage inspection ratio corresponding to the updated revenue providing times;
3. and calculating an updated stage check value of the virtual building according to the stage check ratio corresponding to the maximum life value and the updated revenue providing times.
In this embodiment, after the server allocates the benefit to the target virtual object, the previous stage check value is an invalid stage check value, and the server needs to obtain the valid stage check value again. Optionally, the server updates the profit providing times to obtain updated profit providing times, obtains a stage check ratio corresponding to the updated profit providing times, and calculates an updated stage check value of the virtual building according to the maximum life value and the stage check ratio corresponding to the updated profit providing times. If the updated stage check value is greater than 0, the server determines that the updated stage check value is a valid stage check value; if the updated phase check value is less than or equal to 0, the server determines that the updated phase check value is an invalid phase check value.
Exemplarily, assuming that the maximum life value of the virtual building is a, the number of revenue generation times b, and the stage check ratio corresponding to the number of revenue generation times is e, the updated number of revenue generation times is b-1, and the calculation formula of the updated stage check value f of the virtual building is as follows:
f=a*e。
in addition, a complete description of the server-side embodiment of the present application is provided with reference to fig. 10.
Step 101, a server obtains initial parameters of a virtual building, wherein the initial parameters include a maximum life value of the virtual building, revenue providing times and stage check ratio values corresponding to the revenue providing times.
Step 102, the server calculates phase check values according to initial parameters of the virtual building.
In step 103, the server determines whether the phase check value is greater than 0. If yes, go to step 104; if not, the current flow is ended.
Step 104, the server obtains the current life value of the virtual building.
In step 105, the server determines whether the current life value of the virtual building is less than or equal to the stage check value. If yes, executing steps 106 and 109; if not, go to step 104.
And 106, determining the income distributed to each target virtual object by the server, and generating income prompt information.
And step 107, the server sends revenue prompt information to the client corresponding to each target virtual object. Correspondingly, the client receives the income prompt message.
And step 108, the server updates the stage prompt information.
Step 109, the server obtains the updated revenue generation times and the stage check ratio corresponding to the updated revenue generation times.
And step 110, the server calculates an updated stage check value according to the maximum life value of the virtual building and the stage check ratio corresponding to the updated revenue providing times.
In step 111, the server determines whether the updated phase check value is greater than 0. If yes, go to step 104; if not, the current flow is ended.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 11, a block diagram of a display device of a user interface provided in an embodiment of the present application is shown. The device has the function of realizing the display method of the user interface, and the function can be realized by hardware or by hardware executing corresponding software. The device can be a terminal or be arranged in the terminal. The apparatus 1100 may include: a screen display module 1110, a vital value acquisition module 1120, a vital value display module 1130, and an information display module 1140.
The screen display module 1110 is configured to display a virtual environment screen of an application, where the virtual environment screen includes a virtual environment and a virtual building located in the virtual environment, and the life value prompt information of the virtual building includes stage prompt information, where the stage prompt information is used to indicate at least one benefit providing stage corresponding to the virtual building.
A life value obtaining module 1120, configured to obtain a life value of the virtual building.
And a life value display module 1130, configured to update and display the life value prompt information according to the life value of the virtual building.
An information display module 1140, configured to display revenue prompt information corresponding to a target virtual object in the virtual environment screen in response to that a life value of the virtual building is less than or equal to a stage check value, where the stage check value is greater than 0 and less than a maximum life value of the virtual building.
In an exemplary embodiment, the life value prompt information comprises a life prompt bar for showing the life value of the virtual building; the stage prompt information comprises a stage prompt label displayed on the life prompt bar, and the stage prompt label is used for indicating the proportion between the stage check value of the virtual building and the maximum life value of the virtual building.
In an exemplary embodiment, the information display module 1140 is configured to display a benefit obtaining special effect and a benefit obtaining value corresponding to the target virtual object in the virtual environment screen; the profit obtaining special effect is an animation special effect from the virtual building to the target virtual object, and the profit obtaining value is used for indicating the profit value obtained by the target virtual object.
In an exemplary embodiment, as shown in fig. 12, the apparatus 1100 further comprises: an icon display module 1150 and a style change module 1160.
An icon displaying module 1150, configured to display a benefit icon in the virtual environment screen, where the benefit icon includes an effective duration of a benefit obtained by the target virtual object.
A style change module 1160 to change a display style of the revenue icon in the virtual environment screen in response to the validity duration being zero.
In an exemplary embodiment, the revenue includes positive revenue and negative revenue; the positive income is used for improving the fighting capacity of the target virtual object, and the negative income is used for reducing the fighting capacity of the target virtual object; and acquiring the target virtual object with the positive income and the virtual building which are in different camps, and acquiring the target virtual object with the negative income and the virtual building which are in the same camps.
To sum up, in the technical scheme provided by the embodiment of the application, through the acquisition of the life value of the virtual building, when the life value of the virtual object is less than or equal to the stage check value, the target virtual object can obtain the income, and the stage check value is greater than 0 and is less than the maximum life value of the virtual building, that is, in the process of reducing the life value of the virtual building, the target virtual object can obtain the corresponding income, the diversity of the income acquisition opportunity is increased, the single income distribution mode caused by the fact that the income can be acquired after the virtual building is destroyed is avoided, and the income acquisition mode has diversity.
Referring to fig. 13, a block diagram of a revenue providing apparatus in an application provided by an embodiment of the present application is shown. The device has the function of realizing the information sending method in the application program, and the function can be realized by hardware or by hardware executing corresponding software. The device can be a server or be arranged in the server. The apparatus 1300 may include: a vital value acquisition module 1310, an object determination module 1320, a benefit determination module 1330, and an information delivery module 1340.
A life value obtaining module 1310 for obtaining a life value of a virtual building in a virtual environment provided by an application program.
An object determination module 1320, configured to determine a target virtual object in the virtual environment for obtaining revenue in response to the life value of the virtual building being less than or equal to a stage check value, where the stage check value is greater than 0 and less than the maximum life value of the virtual building.
A profit determination module 1330 for determining a profit obtained by the target virtual object.
The information sending module 1340 is configured to send revenue information to a client corresponding to the target virtual object, where the revenue information is used to instruct the target virtual object to obtain the revenue.
In an exemplary embodiment, the object determination module 1320 is configured to obtain a distance between a first virtual object and the virtual building; in response to the distance being less than a threshold, determining that the first virtual object is the target virtual object; or acquiring an attack object or a protection object of the first virtual object in a preset time period; in response to the attack object or the protection object being the virtual building, determining that the first virtual object is the target virtual object; wherein the preset time period is a time period before the life value of the virtual building is less than or equal to the stage check value.
In an exemplary embodiment, the profit determination module 1330 is configured to obtain a total profit corresponding to the phase check value; acquiring the number of the target virtual objects; carrying out average distribution on the total income according to the number of the target virtual objects, and determining the income obtained by the target virtual objects; or acquiring the total income corresponding to the stage check value; acquiring the distance between the target virtual object and the virtual building; distributing the total income according to the distance, and determining the income obtained by the target virtual object; or acquiring the total income corresponding to the stage check value; acquiring a damage value or a protection value of the target virtual object to the virtual building; distributing the total income according to the injury numerical value or the protection numerical value, and determining the income obtained by the target virtual object; the damage value refers to a reduction value of the target virtual object to the life value of the virtual building, and the protection value refers to an increase value of the target virtual object to the life value of the virtual building; or acquiring the total income corresponding to the stage check value; acquiring the income attribute of the total income; acquiring an attribute value of the target virtual object according to the income attribute; distributing the total income according to the attribute values, and determining the income obtained by the target virtual object; wherein a mapping relation exists between the profit attribute and the attribute value of the target virtual object; or acquiring a total income corresponding to the stage check value, wherein the total income comprises more than one sub income; acquiring the income attribute of each sub-income; acquiring more than one attribute value of the target virtual object; distributing the total profit according to more than one attribute value of the target virtual object and the profit attribute of each profit sharing, and determining the profit sharing obtained by the target virtual object; wherein the number of attribute values is the same as the number of categories of revenue attributes of the revenue sharing.
In an exemplary embodiment, as shown in fig. 14, the apparatus 1300 further comprises: a data acquisition module 1350, and a phase calculation module 1360.
The data obtaining module 1350 is configured to obtain a stage check ratio corresponding to the maximum life value and the revenue providing times of the virtual building, where the stage check ratio is a ratio of the stage check value corresponding to the revenue providing times to the maximum life value.
The stage calculation module 1360 is configured to calculate a stage check value of the virtual building according to the stage check ratio corresponding to the maximum life value and the revenue providing times.
The life value obtaining module 1310 is further configured to start execution from the step of obtaining the life value of the virtual building in the virtual environment provided by the application program in response to the stage check value being greater than 0. In an exemplary embodiment, the revenue includes positive revenue and negative revenue; the positive income is used for improving the fighting capacity of the target virtual object, and the negative income is used for reducing the fighting capacity of the target virtual object; and acquiring the target virtual object with the positive income and the virtual building which are in different camps, and acquiring the target virtual object with the negative income and the virtual building which are in the same camps.
In an exemplary embodiment, as shown in fig. 14, the apparatus 1300 further comprises: a number update module 1370 and a ratio acquisition module 1380.
The number updating module 1370 is configured to update the revenue providing number to obtain an updated revenue providing number.
A ratio obtaining module 1380, configured to obtain a stage check ratio corresponding to the updated revenue generation times.
The stage calculating module 1360 is further configured to calculate an updated stage check value of the virtual building according to the maximum life value and the stage check ratio corresponding to the updated revenue providing times.
In an exemplary embodiment, as shown in fig. 14, the apparatus 1300 further comprises: the operation stop module 1390.
An operation stop module 1390 to stop monitoring operations on the life value of the virtual building in response to the stage check value being less than or equal to 0.
To sum up, in the technical scheme provided by the embodiment of the application, through when the life value of the virtual building is less than or equal to the stage check value, earnings are distributed to the target virtual object, and the stage check value is greater than 0 and is less than the maximum life value of the virtual building, that is to say, in the process of reducing the life value of the virtual building, the target virtual object can obtain corresponding earnings, the diversity of the earnings obtaining opportunity is increased, the single earnings distribution mode caused by the fact that the earnings can be obtained after the virtual building is destroyed is avoided, and the earnings obtaining mode has diversity.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 15, a block diagram of a computer device according to an embodiment of the present application is shown. If the computer equipment is a terminal, the computer equipment can be used for realizing the function of the display method of the user interface; if the computer device is a server, the computer device may be configured to implement a function of an information transmission method in the application program. Specifically, the method comprises the following steps:
the computer device 1500 includes a Central Processing Unit (CPU) 1501, a system Memory 1504 including a Random Access Memory (RAM) 1502 and a Read Only Memory (ROM) 1503, and a system bus 1505 connecting the system Memory 1504 and the Central Processing Unit 1501. The computer device 1500 also includes a basic input/output system (I/O system) 1506 for facilitating information transfer between various components within the computer, and a mass storage device 1507 for storing an operating system 1513, application programs 1514, and other program modules 1512.
The basic input/output system 1506 includes a display 1508 for displaying information and an input device 1509 such as a mouse, keyboard, etc. for inputting information by a user. Wherein a display 1508 and an input device 1509 are connected to the central processing unit 1501 via an input output controller 1510 connected to the system bus 1505. The basic input/output system 1506 may also include an input/output controller 1510 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 1510 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1507 is connected to the central processing unit 1501 through a mass storage controller (not shown) connected to the system bus 1505. The mass storage device 1507 and its associated computer-readable media provide non-volatile storage for the computer device 1500. That is, the mass storage device 1507 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM (Compact disk Read-Only Memory) drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other solid state Memory technology, CD-ROM, DVD (Digital Video Disc) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 1504 and mass storage device 1507 described above may be collectively referred to as memory.
According to various embodiments of the present application, the computer device 1500 may also operate as a remote computer connected to a network via a network, such as the Internet. That is, the computer device 1500 may be connected to the network 1512 through the network interface unit 1511 connected to the system bus 1505 or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 1511.
The memory also includes a computer program stored in the memory and configured to be executed by the one or more processors to implement the display method of the user interface or to implement the information transmission method in the application program.
In an exemplary embodiment, there is also provided a computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions which, when executed by a processor of a terminal, implements the display method of the user interface described above.
In an exemplary embodiment, a computer readable storage medium is further provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which when executed by a processor of a server, implements the information transmitting method in the above application program.
Optionally, the computer-readable storage medium may include: ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State drive), or optical disc. The Random Access Memory may include a ReRAM (resistive Random Access Memory) and a DRAM (Dynamic Random Access Memory).
In an exemplary embodiment, there is also provided a computer program product for implementing the above-mentioned display method of the user interface when being executed by a processor of a terminal.
In an exemplary embodiment, a computer program product is further provided, which when executed by a processor of a server, is configured to implement the information sending method in the application program.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. In addition, the step numbers described herein only exemplarily show one possible execution sequence among the steps, and in some other embodiments, the steps may also be executed out of the numbering sequence, for example, two steps with different numbers are executed simultaneously, or two steps with different numbers are executed in a reverse order to the order shown in the figure, which is not limited by the embodiment of the present application.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (13)

1. A method for displaying a user interface, the method comprising:
displaying a virtual environment picture of an application program, wherein the virtual environment picture comprises a virtual environment and a virtual building located in the virtual environment, life value prompt information of the virtual building comprises a life prompt bar and stage prompt information, the life prompt bar is used for displaying a life value of the virtual building, the stage prompt information is used for indicating at least one revenue providing stage corresponding to the virtual building, the stage prompt information comprises a stage prompt label displayed on the life prompt bar, and the stage prompt label is used for indicating a proportion between a stage check value of the virtual building and a maximum life value of the virtual building;
acquiring a life value of the virtual building;
updating and displaying the life value prompt information according to the life value of the virtual building;
responding to that the life value of the virtual building is smaller than or equal to the stage check value, and displaying income prompt information corresponding to a target virtual object in the virtual environment picture, wherein the stage check value is larger than 0 and smaller than the maximum life value of the virtual building;
the income prompt information is used for indicating the target virtual object to obtain income, and the income is determined in the following mode:
acquiring a total income corresponding to the stage check value, wherein the total income comprises more than one sub income;
acquiring the income attribute of each sub-income;
acquiring more than one attribute value of the target virtual object; wherein the number of the attribute values is the same as the number of the types of the profit attributes of the profit sharing;
and distributing the total profit according to more than one attribute value of the target virtual object and the profit attribute of each profit sharing, and determining the profit sharing obtained by the target virtual object.
2. The method according to claim 1, wherein the displaying of the revenue prompt information corresponding to the target virtual object in the virtual environment screen includes:
displaying a profit obtaining special effect and a profit obtaining numerical value corresponding to the target virtual object in the virtual environment picture;
the profit obtaining special effect is an animation special effect from the virtual building to the target virtual object, and the profit obtaining value is used for indicating the profit value obtained by the target virtual object.
3. The method according to claim 1, further comprising, after displaying the revenue prompt information corresponding to the target virtual object in the virtual environment screen:
displaying a profit icon in the virtual environment picture, wherein the profit icon comprises the effective duration of profits obtained by the target virtual object;
and in response to the effective duration being zero, changing the display style of the benefit icon in the virtual environment picture.
4. The method of any one of claims 1 to 3, wherein the proceeds comprise positive proceeds and negative proceeds; the positive income is used for improving the fighting capacity of the target virtual object, and the negative income is used for reducing the fighting capacity of the target virtual object;
and acquiring the target virtual object with the positive income and the virtual building which are in different camps, and acquiring the target virtual object with the negative income and the virtual building which are in the same camps.
5. An information sending method in an application program, the method comprising:
acquiring a life value of a virtual building in a virtual environment provided by an application program; the life value is displayed in a virtual environment picture in the form of a life cue strip, a stage cue label is displayed on the life cue strip, and the stage cue label is used for indicating the proportion between a stage check value of the virtual building and the maximum life value of the virtual building;
in response to the life value of the virtual building being less than or equal to the stage check value, determining a target virtual object in the virtual environment for obtaining revenue, the stage check value being greater than 0 and less than the maximum life value of the virtual building, one virtual building corresponding to at least one stage check value;
acquiring a total income corresponding to the stage check value, wherein the total income comprises more than one sub income;
acquiring the income attribute of each sub-income;
acquiring more than one attribute value of the target virtual object; wherein the number of the attribute values is the same as the number of the types of the profit attributes of the profit sharing;
distributing the total profit according to more than one attribute value of the target virtual object and the profit attribute of each profit sharing, and determining the profit sharing obtained by the target virtual object;
and sending income information to a client corresponding to the target virtual object, wherein the income information is used for indicating the target virtual object to obtain income.
6. The method of claim 5, wherein determining a target virtual object for earning revenue in the virtual environment comprises:
acquiring the distance between a first virtual object and the virtual building; in response to the distance being less than a threshold, determining that the first virtual object is the target virtual object;
alternatively, the first and second electrodes may be,
acquiring an attack object or a protection object of a first virtual object in a preset time period; in response to the attack object or the protection object being the virtual building, determining that the first virtual object is the target virtual object; wherein the preset time period is a time period before the life value of the virtual building is less than or equal to the stage check value.
7. The method of claim 5 or 6, further comprising:
acquiring a stage inspection ratio corresponding to the maximum life value and the income providing times of the virtual building, wherein the stage inspection ratio is the ratio of the stage inspection value corresponding to the income providing times to the maximum life value;
calculating a stage check value of the virtual building according to the stage check ratio corresponding to the maximum life value and the income providing times;
in response to the stage check value being greater than 0, execution begins with the step of obtaining a life value of a virtual building in a virtual environment provided by the application.
8. The method of claim 7, wherein the determining the revenue share obtained for the target virtual object further comprises:
updating the income providing times to obtain the updated income providing times;
acquiring a stage inspection ratio corresponding to the updated revenue providing times;
and calculating an updated stage check value of the virtual building according to the maximum life value and the stage check ratio corresponding to the updated revenue providing times.
9. The method according to claim 7, wherein after calculating the stage check value of the virtual building according to the stage check ratio corresponding to the maximum life value and the number of revenue providing times, the method further comprises:
and stopping monitoring operation on the life value of the virtual building in response to the stage check value being less than or equal to 0.
10. A display device for a user interface, the device comprising:
the system comprises a picture display module, a service module and a service module, wherein the picture display module is used for displaying a virtual environment picture of an application program, the virtual environment picture comprises a virtual environment and a virtual building positioned in the virtual environment, life value prompt information of the virtual building comprises a life prompt bar and stage prompt information, the life prompt bar is used for displaying a life value of the virtual building, the stage prompt information is used for indicating at least one revenue providing stage corresponding to the virtual building, the stage prompt information comprises a stage prompt label displayed on the life prompt bar, and the stage prompt label is used for indicating a proportion between a stage check value of the virtual building and a maximum life value of the virtual building;
the life value acquisition module is used for acquiring the life value of the virtual building;
the life value display module is used for updating and displaying the life value prompt information according to the life value of the virtual building;
the information display module is used for responding to the fact that the life value of the virtual building is smaller than or equal to the stage check value, and displaying income prompt information corresponding to a target virtual object in the virtual environment picture, wherein the stage check value is larger than 0 and smaller than the maximum life value of the virtual building;
the income prompt information is used for indicating the target virtual object to obtain income, and the income is determined in the following mode:
acquiring a total income corresponding to the stage check value, wherein the total income comprises more than one sub income;
acquiring the income attribute of each sub-income;
acquiring more than one attribute value of the target virtual object; wherein the number of the attribute values is the same as the number of the types of the profit attributes of the profit sharing;
and distributing the total profit according to more than one attribute value of the target virtual object and the profit attribute of each profit sharing, and determining the profit sharing obtained by the target virtual object.
11. An apparatus for transmitting information in an application, the apparatus comprising:
the life value acquisition module is used for acquiring the life value of a virtual building in the virtual environment provided by the application program; the life value is displayed in a virtual environment picture in the form of a life cue strip, a stage cue label is displayed on the life cue strip, and the stage cue label is used for indicating the proportion between a stage check value of the virtual building and the maximum life value of the virtual building;
an object determination module, configured to determine a target virtual object for obtaining revenue in the virtual environment in response to a life value of the virtual building being less than or equal to the stage check value, where the stage check value is greater than 0 and less than a maximum life value of the virtual building, and one virtual building corresponds to at least one stage check value;
a profit determination module, configured to obtain a total profit corresponding to the stage inspection value, where the total profit includes more than one sub-profit; acquiring the income attribute of each sub-income; acquiring more than one attribute value of the target virtual object; wherein the number of the attribute values is the same as the number of the types of the profit attributes of the profit sharing; distributing the total profit according to more than one attribute value of the target virtual object and the profit attribute of each profit sharing, and determining the profit sharing obtained by the target virtual object;
and the information sending module is used for sending profit information to the client corresponding to the target virtual object, and the profit information is used for indicating the target virtual object to obtain profits.
12. A computer device, characterized in that it comprises a processor and a memory, in which at least one instruction, at least one program, set of codes or set of instructions is stored, which is loaded and executed by the processor to implement a display method of a user interface according to any one of claims 1 to 4 or to implement a method of sending information in an application according to any one of claims 5 to 9.
13. A computer-readable storage medium, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the display method of the user interface according to any one of claims 1 to 4, or to implement the information transmission method in the application program according to any one of claims 5 to 9.
CN202010367938.2A 2020-04-30 2020-04-30 User interface display method, device, equipment and storage medium Active CN111589118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010367938.2A CN111589118B (en) 2020-04-30 2020-04-30 User interface display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010367938.2A CN111589118B (en) 2020-04-30 2020-04-30 User interface display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111589118A CN111589118A (en) 2020-08-28
CN111589118B true CN111589118B (en) 2021-12-31

Family

ID=72183243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010367938.2A Active CN111589118B (en) 2020-04-30 2020-04-30 User interface display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111589118B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117618901A (en) * 2022-08-19 2024-03-01 腾讯科技(深圳)有限公司 Method, device, equipment and medium for displaying captured information based on virtual world

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5879005A (en) * 1998-02-26 1999-03-09 Baca; Ron Wargame playing system
JP2002263369A (en) * 2001-03-13 2002-09-17 Square Co Ltd Video game device, control method thereof, video game system, video game program, computer readable recording medium recording the program
CN102592059A (en) * 2011-01-12 2012-07-18 史克威尔艾尼克斯股份有限公司 Network game system, apparatus for game and server and computer readable record medium
CN106512398A (en) * 2016-12-06 2017-03-22 腾讯科技(深圳)有限公司 Reminding method in virtual scene and related device
CN108654086A (en) * 2018-05-09 2018-10-16 腾讯科技(深圳)有限公司 Attack object injury acquisition methods, device and equipment in virtual environment
CN109173254A (en) * 2018-07-27 2019-01-11 努比亚技术有限公司 Game data display methods, mobile terminal and computer readable storage medium
CN109316746A (en) * 2018-09-25 2019-02-12 北京金山安全软件有限公司 Information prompting method and device in game fighting process and electronic equipment
CN109718545A (en) * 2017-10-31 2019-05-07 腾讯科技(上海)有限公司 Object control device and method
CN110368691A (en) * 2019-07-19 2019-10-25 腾讯科技(深圳)有限公司 More people fight prompting message sending method, device and terminal in program online

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5879005A (en) * 1998-02-26 1999-03-09 Baca; Ron Wargame playing system
JP2002263369A (en) * 2001-03-13 2002-09-17 Square Co Ltd Video game device, control method thereof, video game system, video game program, computer readable recording medium recording the program
CN102592059A (en) * 2011-01-12 2012-07-18 史克威尔艾尼克斯股份有限公司 Network game system, apparatus for game and server and computer readable record medium
CN106512398A (en) * 2016-12-06 2017-03-22 腾讯科技(深圳)有限公司 Reminding method in virtual scene and related device
CN109718545A (en) * 2017-10-31 2019-05-07 腾讯科技(上海)有限公司 Object control device and method
CN108654086A (en) * 2018-05-09 2018-10-16 腾讯科技(深圳)有限公司 Attack object injury acquisition methods, device and equipment in virtual environment
CN109173254A (en) * 2018-07-27 2019-01-11 努比亚技术有限公司 Game data display methods, mobile terminal and computer readable storage medium
CN109316746A (en) * 2018-09-25 2019-02-12 北京金山安全软件有限公司 Information prompting method and device in game fighting process and electronic equipment
CN110368691A (en) * 2019-07-19 2019-10-25 腾讯科技(深圳)有限公司 More people fight prompting message sending method, device and terminal in program online

Also Published As

Publication number Publication date
CN111589118A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
US20220047941A1 (en) Virtual object control method and apparatus, device, and storage medium
US8628424B1 (en) Interactive spectator features for gaming environments
CN111589148B (en) User interface display method, device, terminal and storage medium
CN111672111A (en) Interface display method, device, equipment and storage medium
CN111672122B (en) Interface display method, device, terminal and storage medium
CN111821691A (en) Interface display method, device, terminal and storage medium
CN113144596B (en) Chessboard picture display method and device, terminal equipment and storage medium
CN111905363B (en) Virtual object control method, device, terminal and storage medium
CN111282284A (en) Virtual object control method, device, terminal and storage medium
CN110801629B (en) Method, device, terminal and medium for displaying virtual object life value prompt graph
CN111686449A (en) Virtual object control method, device, terminal and storage medium
CN111467798B (en) Frame display method, device, terminal and storage medium in game application program
CN111659126A (en) Distribution method, device, server, terminal and storage medium of matching process
CN111494942B (en) Animation playing method, device, terminal and storage medium
TWI803224B (en) Contact person message display method, device, electronic apparatus, computer readable storage medium, and computer program product
CN111589118B (en) User interface display method, device, equipment and storage medium
CN111589114B (en) Virtual object selection method, device, terminal and storage medium
CN111643903B (en) Control method and device of cloud game, electronic equipment and storage medium
US9889385B2 (en) Video game storage management
WO2023103571A1 (en) Game management method and apparatus, and device and computer-readable storage medium
CN114885199B (en) Real-time interaction method, device, electronic equipment, storage medium and system
CN111905380B (en) Virtual object control method, device, terminal and storage medium
CN113633974A (en) Method, device, terminal and storage medium for displaying real-time game-checking information of user
WO2024060914A1 (en) Virtual object generation method and apparatus, device, medium, and program product
CN113440842B (en) Content display method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40027008

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant