Interface display method, device, terminal and storage medium

文档序号:1880857 发布日期:2021-11-26 浏览:20次 中文

阅读说明:本技术 界面显示方法、装置、终端及存储介质 (Interface display method, device, terminal and storage medium ) 是由 刘智洪 于 2021-09-23 设计创作,主要内容包括:本申请公开了一种界面显示方法、装置、终端及存储介质,涉及计算机和互联网技术领域。所述方法包括:显示用户界面,该用户界面中显示有以第一虚拟对象的视角对虚拟环境进行观察的画面;响应于针对第一控件的操作,如果虚拟环境中存在处于目标状态的第二虚拟对象,则在回放界面中显示回放信息,该回放信息用于展示第二虚拟对象进入目标状态的历史过程。本申请通过触发第一控件对应的回放功能,可以查看其他虚拟对象进入目标状态(如被击倒状态、死亡状态、被攻击状态等)的历史过程,从而确定出攻击者的关联信息(如位置信息、武器信息等),降低了信息的获取难度,从而提高了信息的获取效率,以及提高了信息获取的便捷性。(The application discloses an interface display method, an interface display device, a terminal and a storage medium, and relates to the technical field of computers and the Internet. The method comprises the following steps: displaying a user interface in which a picture for observing the virtual environment at the view angle of the first virtual object is displayed; and responding to the operation of the first control, if a second virtual object in the target state exists in the virtual environment, displaying playback information in the playback interface, wherein the playback information is used for showing the historical process of the second virtual object entering the target state. According to the method and the device, the historical process that other virtual objects enter the target state (such as a knocked down state, a death state, an attacked state and the like) can be checked by triggering the playback function corresponding to the first control, so that the associated information (such as position information, weapon information and the like) of an attacker is determined, the difficulty in obtaining the information is reduced, the information obtaining efficiency is improved, and the convenience in obtaining the information is improved.)

1. An interface display method, characterized in that the method comprises:

displaying a user interface, wherein a virtual environment picture and a first control are displayed in the user interface, and the virtual environment picture is a picture for observing a virtual environment from the visual angle of a first virtual object;

in response to an operation on the first control, if a second virtual object in a target state exists in the virtual environment, displaying a playback interface;

displaying playback information in the playback interface, wherein the playback information is used for showing the history process of the second virtual object entering the target state.

2. The method of claim 1,

the target state is a knocked down state, and the knocked down state is an intermediate state between a survival state and a death state;

alternatively, the first and second electrodes may be,

the target state is the death state, and the death state is a state in which the life value is reduced to zero;

alternatively, the first and second electrodes may be,

the target state is an attacked state, and the attacked state refers to a state attacked by other virtual objects.

3. The method of claim 2, wherein displaying playback information in the playback interface comprises:

displaying a playback picture within a target period in the playback interface, the playback picture viewing a picture of a second virtual object in the virtual environment from a perspective of a third virtual object;

wherein the third virtual object is a virtual object that knocks down or kills or attacks the second virtual object, and the target period is a period of time from a first time to a time at which the second virtual object enters the target state.

4. The method of claim 2, wherein displaying playback information in the playback interface comprises:

in the playback interface, based on a trajectory of a virtual item attacking the second virtual object, taking the second virtual object as a shot start and a third virtual object as a shot end, and displaying a picture of the third virtual object attacking the second virtual object;

wherein the third virtual object is a virtual object that knocks down or kills or attacks the second virtual object.

5. The method of claim 3 or 4, wherein the first virtual object and the second virtual object belong to a first barrage, wherein the third virtual object belongs to a second barrage, and wherein the first and second barrages are in a hostile relationship.

6. The method of claim 1, wherein, in response to the operation with respect to the first control, if a second virtual object in a target state exists in the virtual environment, displaying a playback interface comprises:

in response to an operation with respect to the first control, if a second virtual object in the target state exists in the virtual environment and a distance between the second virtual object and the first virtual object is less than a threshold, displaying the playback interface.

7. The method of claim 1, further comprising:

switching the first control from an available state to a disabled state in response to an operation directed to the first control;

switching the first control from the disabled state to the available state if the first control is in the disabled state for a period of time greater than or equal to a cooling period of time.

8. The method of claim 1, further comprising:

canceling the display of the playback interface in response to a skip operation for the playback information during the display of the playback information;

alternatively, the first and second electrodes may be,

and under the condition that the display time length of the playback information is equal to the set time length, canceling the display of the playback interface.

9. The method of claim 1, further comprising:

acquiring a group of display data at set time intervals, wherein each group of display data comprises a timestamp, position information and picture information; storing the display data in a circulating queue mode;

alternatively, the first and second electrodes may be,

acquiring a group of display data at intervals of the set time interval; sending the display data to a server, wherein the server stores the display data in a circulating queue mode;

wherein the display data in the circular queue is used to generate the playback information.

10. The method of claim 1, wherein after displaying the playback interface, further comprising:

sending a playback information acquisition request to a server so as to forward the playback information acquisition request to a target client through the server; the target client is a client corresponding to an attacker corresponding to the second virtual object, and the playback information acquisition request is used for requesting to acquire the playback information; receiving playback information from the target client, wherein the playback information from the target client is acquired by the target client from a circular queue corresponding to the target client;

alternatively, the first and second electrodes may be,

sending the playback information acquisition request to the server; and receiving playback information from the server, wherein the playback information from the server is acquired by the server from a circular queue corresponding to the target client stored in the server.

11. The method of claim 1, further comprising:

in a game preparation stage, displaying an article selection interface, wherein the article selection interface comprises at least one virtual article, and different virtual articles are used for realizing different functions;

acquiring a selection operation aiming at a target virtual article, wherein the target virtual article is used for realizing a target function, and the target function comprises triggering and displaying the playback information;

and displaying the first control for realizing the target function in the game-play stage.

12. An interface display apparatus, the apparatus comprising:

the user interface display module is used for displaying a user interface, a virtual environment picture and a first control are displayed in the user interface, and the virtual environment picture is a picture for observing a virtual environment from the visual angle of a first virtual object;

a playback interface display module, configured to, in response to an operation on the first control, display a playback interface if a second virtual object in a target state exists in the virtual environment;

and the playback information display module is used for displaying playback information in the playback interface, and the playback information is used for showing the history process of the second virtual object entering the target state.

13. A terminal, 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 the interface display method according to any one of claims 1 to 11.

14. 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 is loaded and executed by a processor to implement the interface display method according to any one of claims 1 to 11.

15. A computer program product or computer program, characterized in that it comprises computer instructions stored in a computer-readable storage medium, from which a processor reads and executes them to implement the interface display method according to any one of claims 1 to 11.

Technical Field

The embodiment of the application relates to the technical field of computers and internet, in particular to an interface display method, an interface display device, a terminal and a storage medium.

Background

Currently, in some games, a player may control its corresponding virtual object to rescure a virtual object controlled by a teammate who is in a knocked down state so that the teammate may control its corresponding virtual object to continue participating in the game. The knocked down state is a state between a survival state and a death state.

Taking a shooting game as an example, when a second virtual object controlled by a player's teammate is knocked down by an attacker, the player can control the corresponding first virtual object to move to the side of the second virtual object, and rescue the second virtual object. However, in the rescue process, both the first virtual object and the second virtual object cannot move, so in order to prevent the attacker from attacking again in the rescue process, the player needs to determine the position information of the attacker so as to rescue the second virtual object at a position where the attack of the attacker can be avoided.

However, searching for an attacker, especially an attacker hidden in a virtual environment, is difficult, and the efficiency of acquiring the position information is not high.

Disclosure of Invention

The embodiment of the application provides an interface display method, an interface display device, a terminal and a storage medium, which can reduce the difficulty in acquiring relevant information (such as position information, weapon information and the like) of an attacker, thereby improving the information acquisition efficiency. The technical scheme is as follows:

according to an aspect of an embodiment of the present application, there is provided an interface display method, including:

displaying a user interface, wherein a virtual environment picture and a first control are displayed in the user interface, and the virtual environment picture is a picture for observing a virtual environment from the visual angle of a first virtual object;

in response to an operation on the first control, if a second virtual object in a target state exists in the virtual environment, displaying a playback interface;

displaying playback information in the playback interface, wherein the playback information is used for showing the history process of the second virtual object entering the target state.

According to an aspect of an embodiment of the present application, there is provided an interface display apparatus, including:

the user interface display module is used for displaying a user interface, a virtual environment picture and a first control are displayed in the user interface, and the virtual environment picture is a picture for observing a virtual environment from the visual angle of a first virtual object;

a playback interface display module, configured to, in response to an operation on the first control, display a playback interface if a second virtual object in a target state exists in the virtual environment;

and the playback information display module is used for displaying playback information in the playback interface, and the playback information is used for showing the history process of the second virtual object entering the target state.

According to an aspect of the embodiments of the present application, there is provided a terminal, including a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, 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 above interface display method.

According to an aspect of the embodiments of the present application, there is provided a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the above-mentioned interface display method.

According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the terminal reads the computer instruction from the computer readable storage medium, and the processor executes the computer instruction, so that the terminal executes the interface display method.

The technical scheme provided by the embodiment of the application can have the following beneficial effects:

by triggering the playback function corresponding to the first control, the historical process that other virtual objects enter a target state (such as a knocked down state, a death state, an attacked state and the like) can be checked, so that the associated information (such as position information, weapon information and the like) of an attacker can be determined, the function of acquiring the associated information of the attacker by one key is realized, the information acquisition difficulty is reduced, the information acquisition efficiency is improved, and the information acquisition convenience is improved.

In addition, based on the historical process that other virtual objects enter the target state, the associated information of the attacker can be judged more intuitively, and the associated information of the attacker does not need to be indirectly judged based on sound, trajectory and the like, so that the accuracy of information judgment is improved, and the accuracy of information is further improved.

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 illustration of an environment for implementing an embodiment provided by an embodiment of the present application;

FIG. 2 is a flow chart of an interface display method provided by an embodiment of the present application;

FIGS. 3 and 4 are schematic diagrams illustrating a user interface;

FIG. 5 is a schematic diagram illustrating a second virtual object in a knocked down state;

FIG. 6 illustrates a schematic diagram of a playback interface;

FIG. 7 illustrates a schematic diagram of determining whether a distance between a first virtual object and a second virtual object is less than a threshold;

FIG. 8 is a diagram schematically illustrating a playback information display;

FIG. 9 is a diagram illustrating a storage manner of a circular queue according to an embodiment of the present application;

FIG. 10 is a flow chart of a method of displaying an interface provided by another embodiment of the present application;

FIG. 11 is a block diagram of an interface display apparatus provided in one embodiment of the present application;

FIG. 12 is a block diagram of an interface display apparatus provided in another embodiment of the present application;

fig. 13 is a block diagram of a terminal 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.

Before describing the embodiments of the present application, the related terms referred to in the present application will be explained.

1. Virtual environment

A virtual environment is an environment displayed (or provided) by a client of an application (e.g., a game application) when running on a terminal, and refers to an environment created for a virtual object to perform an activity (e.g., a game competition), such as a virtual house, a virtual island, a virtual map, 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 3-dimensional virtual environment or a 2.5-dimensional virtual environment, which is not limited in this embodiment of the present application.

2. Virtual object

The virtual object refers to a virtual role controlled by the user account in the application program. Taking an application as a game application as an example, the virtual object refers to a game character controlled by a user account 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 3-dimensional form or a 2-dimensional form, which is not limited in the embodiment of the present application.

The operations that a user account can perform to control a virtual object may also vary from game application to game application. For example, in a shooting-type game application, the user account may control the virtual object to perform shooting, running, jumping, picking up a firearm, saving, applying skills, and the like.

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, an AR (Augmented Reality) application, a social application, an interactive entertainment application, and the like, which are not limited in this embodiment. 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.

3. Virtual prop

Virtual items refer to items that an application (e.g., a game application) provides to a user for use, such as virtual weapons, virtual objects, virtual vehicles, and so forth.

4. Virtual firearm

The virtual firearm is a virtual weapon provided by a shooting game application and can simulate a virtual object shot by a real firearm. The virtual firearm may be a three-dimensional model of a real firearm, and the virtual object is capable of carrying the virtual firearm and controlling the virtual firearm to shoot at a target.

The virtual firearm may include a variety of different firearm categories such as rifles, submachine guns, machine guns, shotguns, handguns, and the like. The gun category can be divided according to actual requirements, for example, the rifle can be further divided into different categories such as assault rifle and sniper rifle, and the machine gun can be further divided into different categories such as light machine gun and heavy machine gun.

Refer to fig. 1, which illustrates a schematic diagram of an environment for implementing an embodiment of the present application. The implementation 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, a multimedia player, a PC (Personal Computer), and the like. A client of a game application, such as a shooting-type game application, may be installed in the terminal 10.

The server 20 is used to provide background services for clients of applications (e.g., game applications) in the terminal 10. For example, the server 20 may be a backend server for the above-described applications (e.g., gaming applications). The server 20 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center.

The terminal 10 and the server 20 can communicate with each other through the network 30. The network 30 may be a wired network or a wireless network.

Illustratively, taking a client to which the game application is applied as an example, in the case where a teammate is knocked down (or killed or attacked) by an attacker, a history of the teammate entering a knocked down state (or a death state or an attacked state) is displayed in a playback interface in response to a player's operation on a first control, so that the player can judge position information, weapon information, and the like of the attacker based on the history, and thus, the teammate is pertinently rescued. For example, the teammates are rescued in a place where the attacker cannot attack, or the attacker is killed or driven away first and then rescued.

Referring to fig. 2, a flowchart of an interface display method provided in an embodiment of the present application is shown, where an execution subject of each step of the method may be the terminal 10 in the implementation environment of the embodiment shown in fig. 1, and the method may include the following steps (step 201 to step 203):

step 201, displaying a user interface, where a virtual environment picture and a first control are displayed in the user interface, and the virtual environment picture is a picture for observing the virtual environment from the perspective of the first virtual object.

The user interface refers to a display interface of an application program. For example, taking a shooting-type game application as an example, the user interface may be a display interface of a game pair for presenting a virtual environment of the game pair to a user.

Optionally, the user interface includes a display layer and a control layer. And the display level of the control layer is higher than that of the display layer. The display layer is used for displaying a virtual environment (such as a virtual environment picture), and the control layer is used for displaying a UI (User Interface) control (such as a first control). Of course, the control layer may include other controls besides the first control, such as a control for controlling a posture of the virtual object, a control for attacking other virtual objects, and the like, which is not limited in this embodiment of the application.

The virtual environment picture refers to a display picture corresponding to the virtual environment, and is used for displaying the virtual environment and elements located in the virtual environment, such as virtual buildings, virtual props, virtual objects, and the like. In the embodiment of the present application, the virtual environment picture is displayed at an angle of the first virtual object, such as at a viewing angle of the first person scale, the third person scale, and the like corresponding to the first virtual object. The first virtual object is a virtual object controlled by a user account currently logged in by the client.

Optionally, the first control is a control with a target function, the target function corresponding to the first control may be triggered by operating the first control, and the operation may be operations such as clicking, pressing, and sliding for the first control. In the embodiment of the present application, the target function includes a playback function, that is, a function of triggering display of playback information in the following. Here, the playback information refers to history information related to an action object (such as a second virtual object in the following) corresponding to the first control, such as historical combat information, killed information, knocked-down information, attacked information, attacker information (such as a third virtual object in the following) and the like of the action object. Optionally, the history information may be displayed in a form of a character or a picture, and the embodiment of the present application is not limited herein.

In one example, the arming process of the target function corresponding to the first control may be as follows: in the preparation stage of game checking, displaying an article selection interface, wherein the article selection interface comprises at least one virtual article, and different virtual articles are used for realizing different functions; acquiring selection operation aiming at a target virtual article, wherein the target virtual article is used for realizing a target function, and the target function comprises triggering display playback information; and displaying a first control for realizing the target function in the game-play stage. The item selection interface is an interface for providing a user to select a virtual item. The virtual items include, but are not limited to, virtual props (such as skill chips), virtual equipment, and the like.

Illustratively, the item selection interface includes an item list including skill chip 1, skill chip 2, skill chip 3, etc., with different skill chips having different functions. For example, the skill chip 1 may blackout a small map of nearby enemy virtual objects, the skill chip 2 may obscure the first virtual object, and the skill chip 3 may protect the first virtual object from toxic fog. For example, after the user selects the skills chip 2, a user interface is displayed with a first control that can hide a first virtual object.

Optionally, the first control is displayed with a different display icon for a different virtual item. Illustratively, referring to fig. 3, after selecting the skill chip with playback function, a first control 302 is displayed in the user interface 301, and the first control 302 is displayed with an icon (such as a reversed flow of time river) for representing information playback. In embodiments of the present application, the first control may include a disabled state and an available state. And under the condition that the first control is in a forbidden state, the target function corresponding to the first control cannot be triggered. And under the condition that the first control is in an available state, the target function corresponding to the first control can be triggered. Optionally, in the case where the first control is in the disabled state, the prompt may be in text (e.g., displaying "disable" text), a disable indication (e.g., displaying an "x" symbol on an icon), brightness (e.g., low-light display), and so on. For example, referring to fig. 3 and 4, with the first control 302 in the disabled state, the icon of the first control 302 is displayed in grayscale. With the first control 302 in the available state, an icon of the first control 302 is highlighted in the user interface 301.

Optionally, the number of triggerable times of the target function corresponding to the first control is not limited in the embodiment of the application, after the corresponding skill chip is selected, the target function corresponding to the skill chip may be used indefinitely, but needs to be cooled down after being used, and during the cooling down period, the first control is in a disabled state.

In one example, the switching process of the state of the first control may be as follows: switching the first control from the available state to the disabled state in response to an operation directed to the first control; and switching the first control from the disabled state to the available state when the duration of the first control in the disabled state is greater than or equal to the cooling duration. Wherein, the cooling duration can be adaptively set and adjusted according to the actual use condition. Optionally, when the target function corresponding to the first control is triggered, whether the target function is played or not, the state of the first control is switched to the disabled state, so as to ensure the tacticity and balance of the game.

Alternatively, the user may reduce the cooling time period by completing the tasks issued by the system. For example, when the user completes task A, the cooling time period is reduced to half of the original cooling time period, and when the user completes task B, the cooling time period is reduced to a quarter of the original cooling time period. The user may also reduce the cooling time period for the player by killing. For example, when the number of killers satisfies 3, the cooling time period is reduced by 1 second, when the number of killers satisfies 10, the cooling time period is reduced by 5 seconds, and the like. The user may also reduce the cooling time period by reducing the virtual resource value (such as virtual gold coin, etc.), which is not limited herein.

In step 202, in response to the operation on the first control, if a second virtual object in the target state exists in the virtual environment, a playback interface is displayed.

Optionally, the first control in step 202 is in an available state. The second virtual object is a virtual object controlled by a user account of the game play participated by other clients. The second virtual object and the first virtual object may be in an adversary relationship or a cooperative relationship, and the embodiment of the present application is not limited herein.

In one example, the target state may be a knocked down state, which refers to an intermediate state between a survival state and a death state. For example, in a game with team mode, the death process of a virtual object may include three phases: an attacked phase, a knocked down phase, and a dead phase. When the virtual object is in the knocked-down stage (i.e., in the knocked-down state), the remaining survivable time of the virtual object is gradually reduced, and when the virtual object is not rescued by teammates and the remaining survivable time is reduced to zero, the virtual object really dies (i.e., the life value is really zero), and the virtual object in the knocked-down state cannot normally act (e.g., cannot attack, recover the life value, run, etc.), which is the knocked-down state.

For example, referring to fig. 5, in the user interface 501, the second virtual object 502 is being knocked down, and the second virtual object 502 is in a fallen down state and can only be moved by crawling. A status prompt message 503 is displayed in the upper left corner of the user interface 501, the status prompt message 503 can be used to prompt the status of the virtual object, and an icon (medical icon) corresponding to the status prompt message 503 indicates that the second virtual object 502 is being knocked down. Alternatively, in the case where the first virtual object 504 and the second virtual object 502 are in a cooperative relationship, the player may observe that the second virtual object 502 is being knocked down from the perspective of the first virtual object 504, and may also determine that the second virtual object 502 is being knocked down from the state prompt information 503. In the case where first virtual object 504 and second virtual object 502 are in a hostile relationship, the player may observe that second virtual object 502 is being knocked down from the perspective of first virtual object 504.

The player may also obtain positional information (e.g., orientation information, distance information, etc.) of second virtual object 502 with respect to first virtual object 504 via orientation information displayed above user interface 501, or may obtain the distance between first virtual object 504 and second virtual object 502 directly via distance information displayed accompanying second virtual object 502 (e.g., above second virtual object 502). In response to a user operation of the first control 505 (in an available state), a playback interface is displayed.

The target state may be a death state, which is a state in which the life value is reduced to zero. The target state may also be an attacked state, where the attacked state refers to a state attacked by other virtual objects, and the target state is not limited in the embodiments of the present application.

Optionally, the playback interface refers to an interface displaying playback information. Illustratively, referring to fig. 6, playback information (such as a playback screen hereinafter) related to the second virtual object 602 (the attacked party) and information of virtual equipment (such as a virtual firearm), location information, name information, a virtual item, and the like of the attacker 603 are displayed in the playback interface 601, and the display content of the playback interface is not limited in the embodiment of the present application.

In one example, in response to an operation with respect to the first control, if a second virtual object in the target state exists in the virtual environment and a distance between the second virtual object and the first virtual object is less than a threshold, a playback interface is displayed. The threshold value can be adaptively set and adjusted according to actual use requirements.

Exemplarily, referring to fig. 7, the second virtual object 701 is in a knocked down state (or a dead state or an attacked state), a circular region 702 with a radius of a threshold R is centered on the second virtual object 701, and a detection region is formed by controlling the first virtual object to move into the circular region 702, and a playback interface is displayed in response to an operation on the first control, that is, in a case where a distance between the first virtual object and the second virtual object 701 is smaller than the threshold R, the playback interface is displayed in response to the operation on the first control. Optionally, a regular or irregular region centered on the second virtual object 701 may also be set as a display condition of the playback interface, which is not limited herein in this embodiment of the application.

And step 203, displaying playback information in the playback interface, wherein the playback information is used for showing the history process of the second virtual object entering the target state.

In this embodiment of the present application, the historical process may be a historical process in which the second virtual object enters a knocked-down state, may also be a historical process in which the second virtual object enters a dead state, and may also be a historical process in which the second virtual object enters a attacked state. Optionally, the entire content of the historical process may be displayed, or only a part of the content of the historical process may be displayed.

In one example, the display process of the playback information may be as follows: displaying a playback picture within the target period in a playback interface, the playback picture viewing a picture of the second virtual object from a perspective of a third virtual object in the virtual environment; the third virtual object is a virtual object which knocks down or kills or attacks the second virtual object, and the target time period is a time period from the first moment to the moment when the second virtual object enters the target state.

The first time is a time before the time when the second virtual object enters the target state, and the first time and the time when the second virtual object enters the target state are separated by a set value, which can be adaptively set and adjusted by a developer, such as 4 seconds, 5 seconds, 6 seconds, and the like.

Illustratively, referring to fig. 8, a playback duration prompting message 802 is displayed in the playback interface 801, and is used for prompting the remaining display duration of the playback information, and the duration corresponding to the playback duration prompting message 802 is the same as the duration corresponding to the target time period. Optionally, a playback screen of the third virtual object attacking the second virtual object by means of the mirror-opening function of the virtual firearm is being presented in the playback interface 801, and the playback screen may be a screen from the first 5 seconds after the second virtual object is knocked down to the moment when the second virtual object is knocked down, and is displayed in a view angle of the third virtual object.

In another example, the display process of the playback information may also be as follows: in a playback interface, based on the trajectory of a virtual prop attacking a second virtual object, taking the second virtual object as a shot start and a third virtual object as a shot end, and displaying a picture of the third virtual object attacking the second virtual object; wherein the third virtual object is a virtual object that knocks down or kills or attacks the second virtual object. Alternatively, the picture may refer to a picture at any time in the attack process, such as a time corresponding to the last click, a time corresponding to the first click, and the like.

Alternatively, without a distance limitation, playback information of a second virtual object closest to the first virtual object may be presented in the playback interface, or playback information of a second virtual object (which may be one or a plurality of) whose distance from the first virtual object is smaller than a set value may be presented in the playback interface. Alternatively, in a state where the first virtual object is in a team, only playback information of teammates of the first virtual object may be displayed.

In the case of distance limitation, playback information of all the second virtual objects whose distance from the first virtual object is less than a threshold value, or only the second virtual object whose distance from the first virtual object is closest may be presented in the playback interface. Alternatively, in a state where the first virtual object is in a team, only playback information of teammates of the first virtual object may be displayed.

In one example, the exit process for the playback interface may be as follows: and in the display process of the playback information, in response to the skip operation aiming at the playback information, canceling the display of the playback interface. The skip operation may be for the playback interface, may be for a setting region in the playback interface, or may be for a setting control in the playback interface. Illustratively, referring to fig. 8, in response to a double-click operation for the playback interface, the playback interface is undisplayed.

Or canceling the display of the playback interface when the display time length of the playback information is equal to the set time length. Illustratively, referring to fig. 8, the playback interface is dismissed in response to the progress of the playback duration prompting information 802 running out.

Optionally, the first virtual object and the second virtual object belong to a first camp, the third virtual object belongs to a second camp, the first camp and the second camp are in an enemy relationship, that is, the first virtual object and the second virtual object are in a teammate relationship, and the third virtual object is in an enemy relationship with the first virtual object and the second virtual object. Optionally, the first virtual object, the second virtual object, and the third virtual object may also be in a hostile relationship with each other, and the target state may include a death state and an attacked state.

To sum up, according to the technical scheme provided by the embodiment of the application, by triggering the playback function corresponding to the first control, the historical process that other virtual objects enter the target state (such as a knocked-down state, a death state, an attacked state, and the like) can be checked, so that the associated information (such as position information, weapon information, and the like) of an attacker can be determined, the function of acquiring the associated information of the attacker by one key is realized, the difficulty in acquiring the information is reduced, the information acquisition efficiency is improved, and the convenience in information acquisition is improved.

In addition, based on the historical process that other virtual objects enter the target state, the associated information of the attacker can be judged more intuitively, and the associated information of the attacker does not need to be indirectly judged based on sound, trajectory and the like, so that the accuracy of information judgment is improved, and the accuracy of information is further improved.

In one exemplary embodiment, the acquisition process of the playback information may be as follows:

1. and sending a playback information acquisition request to the server so as to forward the playback information acquisition request to the target client through the server.

The target client is a client corresponding to an attacker corresponding to the second virtual object, and the playback information acquisition request is used for requesting to acquire playback information. The second virtual object may be any virtual object other than the first virtual object, and the first virtual object refers to a virtual object corresponding to a client (hereinafter, referred to as a first client) that sends the playback information acquisition request.

The playback information is used to show the history process of the second virtual object entering the target state, such as the history process of the second virtual object being knocked down, killed and attacked, and may be a playback picture of the second virtual object being knocked down, killed and attacked. Optionally, the playback screen may be displayed in a view of the second virtual object, may also be displayed in a view of an attacker corresponding to the second virtual object, and may also be displayed in an OB (Observer) view, which is not limited herein.

Alternatively, the server may refer to the server 20 in the context of the embodiment shown in FIG. 1, which may be used to provide background services for clients of applications (e.g., gaming applications) in the terminal 10.

Optionally, the playback information obtaining request further includes a timestamp of the second virtual object entering a target state, where the target state may be a knocked-down state, a dead state, or an attacked state.

2. And receiving playback information from the target client, wherein the playback information from the target client is acquired by the target client from a circular queue corresponding to the target client.

In this embodiment of the present application, the circular queue refers to a queue obtained by storing data by a target client in a circular queue manner, the client corresponding to each virtual object in a virtual environment picture acquires a set of display data at set time intervals, each set of display data includes a timestamp, position information, and picture information, and the display data is stored in the circular queue manner.

The set time interval can be adaptively set and adjusted according to actual use requirements. The time stamp is determined at a set time interval, the position information is position information of the virtual object under the time stamp, and the screen information is a screen viewed from the perspective of the virtual object, such as an attack screen (e.g., firing, opening a mirror, etc.), a moving screen, and the like.

Optionally, the playback information acquisition request further includes identification information (such as account information, name information, and the like) of the second virtual object and identification information of an attacker corresponding to the second virtual object, and after receiving the playback information acquisition request, the server may identify the target client through the identification information of the attacker and send the playback information acquisition request to the target client. The target client determines the starting time and the ending time of the target time interval based on the timestamp of the second virtual object entering the target state and a set value (such as 4 seconds, 5 seconds, 6 seconds and the like), and then matches the starting time and the ending time with the timestamp in the circular queue, so that the picture information corresponding to the target time interval is extracted from the circular queue, and the picture information is combined to generate playback information, that is, the display data in the circular queue can be used for generating the playback information. The position information in the circular queue may be used to determine a distance between the first virtual object and the second virtual object.

And finally, the target client sends the generated playback information to the first client for the first client to display.

In this way, the embodiment of the present application reduces the pressure on data storage and processing on the server side by storing the display data on the client side.

In another exemplary embodiment, the acquisition process of the playback information may further be as follows:

1. and sending a playback information acquisition request to the server.

This step is the same as the above step and is not described here again.

2. And receiving playback information from the server, wherein the playback information from the server is acquired by the server from a circular queue corresponding to a target client stored in the server.

In this embodiment of the present application, the circular queue refers to a queue obtained by storing data in a circular queue manner by a server, and a specific generation process of the circular queue may be as follows: the first client acquires a group of display data at set time intervals and sends the display data to the server, and the server stores the display data in a circular queue mode.

After receiving the playback information acquisition request, the server can identify a circular queue corresponding to the target client through identification information of an attacker, determine the starting time and the ending time of the target time period based on a timestamp and a set value (such as 4 seconds, 5 seconds, 6 seconds and the like) of the second virtual object entering the target state, then match the starting time and the ending time with the timestamp in the circular queue, extract picture information corresponding to the target time period from the circular queue corresponding to the target client, combine the picture information to generate playback information, and send the generated playback information to the first client for display by the first client.

Therefore, the display data are stored on the server side, and the target client does not need to be accessed in the playback information acquisition process, so that the playback information acquisition process is simplified, and the playback information acquisition efficiency is improved.

In one example, the storage process of the display data may be as follows:

the circular queue is initialized, and the values pointed by front (i.e. head of the queue) and rear (i.e. tail of the queue) of the circular queue are initialized to 0.

And then the obtained display data is enqueued. If the storage position in the circular queue is not full, the queue tail-end value is firstly carried out, then the value pointed by the real is determined, and the calculation formula of the value pointed by the real can be represented as follows: and (real + 1)% maxsize, wherein real represents the value pointed by real, and maxsize is the actual length of the circular queue, and the actual length can be set according to the target time period and the duration of the target state, so as to ensure that the display data in the circular queue is enough to generate the playback information under the condition that the playback information needs to be acquired.

If the storage location in the circular queue is full (or not empty), the data in the head storage location may be removed first, and then the value pointed to by front is determined, and the calculation formula of the value pointed to by front may be as follows: front ═ is (front + 1)% maxsize, then the value is passed to the end of the queue, and the value pointed to by real is updated.

When real is equal to front, if the stored length of the circular queue is equal to maxsize, the storage position in the circular queue is full, and if the stored length of the circular queue is equal to 0, the storage position in the circular queue is empty. That is, if the stored length of the circular queue is not equal to maxsize, the storage location in the circular queue is not full, and if the stored length of the circular queue is not equal to 0, the storage location in the circular queue is not empty. Wherein the stored length of the circular queue is: (real + maxsize-front)% maxsize.

Alternatively, it may also be determined that the storage location in the ring queue is full by determining that front ═ (rear + 1)% mazzze, i.e., if front! (rear + 1)% mazzize, the storage location in the circular queue is not full.

Illustratively, referring to FIG. 9, first both front and rear are initialized to point to the first storage location (corresponding to data [0] in FIG. 9). Enqueue data in sequence: a. b, c, and d, then the real update points to the 5 th storage location (i.e., the storage location after the storage location corresponding to data d). And d, dequeuing the data a, and updating the front to point to the storage position corresponding to the data b.

To sum up, according to the technical scheme provided by the embodiment of the application, by triggering the playback function corresponding to the first control, the historical process that other virtual objects enter the target state (such as a knocked-down state, a death state, an attacked state, and the like) can be checked, so that the associated information (such as position information, weapon information, and the like) of an attacker can be determined, the function of acquiring the associated information of the attacker by one key is realized, the difficulty in acquiring the information is reduced, the information acquisition efficiency is improved, and the convenience in information acquisition is improved.

In addition, based on the historical process that other virtual objects enter the target state, the associated information of the attacker can be judged more intuitively, and the associated information of the attacker does not need to be indirectly judged based on sound, trajectory and the like, so that the accuracy of information judgment is improved, and the accuracy of information is further improved.

In addition, the method and the device have the advantages that the storage of part of the required display data is carried out in a circular queue mode, and the storage of all the display data is not needed, so that the data storage quantity and the processing quantity are reduced, and the information acquisition efficiency is improved.

Referring to fig. 10, a flowchart of an interface display method provided by another embodiment of the present application is shown, where the execution subject of each step of the method may be the terminal 10 in the implementation environment of the embodiment shown in fig. 1, and the method may include the following:

1. and displaying a user interface of game play, wherein a virtual environment picture and a first control are displayed in the user interface.

Optionally, the game play may refer to a game play started by a user through a shooting game application, and the virtual object controlled by the user is a first virtual object. The first control has an information playback display function. For example, a history process of the second virtual object entering the above target state is played back. In the embodiment of the present application, the second virtual object and the first virtual object are in a cooperative relationship (i.e., teammate).

2. And if the second virtual object is detected to be knocked down, updating and displaying prompt information corresponding to the second virtual object in the user interface. Otherwise, whether a second virtual object is knocked down is continuously detected.

Optionally, the prompt message may include a status prompt message for prompting the user of the status of the second virtual object and a location prompt message for prompting the user of the location (or distance from the first virtual object) of the second virtual object. For example, in the case where the second virtual object is knocked down, the state prompt information is updated to a knocked down state for indicating that the second virtual object is knocked down.

3. And detecting whether the distance between the first virtual object and the second virtual object is smaller than a threshold value, and if the distance between the first virtual object and the second virtual object is smaller than the threshold value, entering the step 4. Otherwise, continuing to detect whether the distance between the first virtual object and the second virtual object is less than a threshold value.

4. And under the condition that the distance between the first virtual object and the second virtual object is smaller than the threshold value and the first control is in an available state (such as highlighted display), if the user performs a triggering operation on the first control, displaying a playback interface and displaying playback information in the playback interface. Otherwise, whether the first control is triggered or not and whether the first control is in an available state or not are continuously detected.

5. And if the display duration of the playback information is equal to the set duration, canceling the display of the playback interface and displaying the user interface. Otherwise, the playback interface is continuously displayed.

Optionally, in the display process of the playback information, if the user performs a double-click operation on the playback interface, the display of the playback interface is cancelled, and the user interface is displayed. Otherwise, the playback interface is continuously displayed.

To sum up, according to the technical scheme provided by the embodiment of the application, by triggering the playback function corresponding to the first control, the historical process that other virtual objects enter the target state (such as a knocked-down state, a death state, an attacked state, and the like) can be checked, so that the associated information (such as position information, weapon information, and the like) of an attacker can be determined, the function of acquiring the associated information of the attacker by one key is realized, the difficulty in acquiring the information is reduced, the information acquisition efficiency is improved, and the convenience in information acquisition is improved.

In addition, based on the historical process that other virtual objects enter the target state, the associated information of the attacker can be judged more intuitively, and the associated information of the attacker does not need to be indirectly judged based on sound, trajectory and the like, so that the accuracy of information judgment is improved, and the accuracy of information is further improved.

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 an interface display apparatus according to an embodiment of the present application is shown. The device has the functions of realizing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The apparatus may be the terminal described above, or may be provided in the terminal. As shown in fig. 11, the apparatus 1100 includes: a user interface display module 1101, a playback interface display module 1102, and a playback information display module 1103.

The user interface display module 1101 is configured to display a user interface, where a virtual environment picture and a first control are displayed in the user interface, and the virtual environment picture is a picture obtained by observing a virtual environment from a view angle of a first virtual object.

A playback interface display module 1102, configured to, in response to an operation on the first control, display a playback interface if a second virtual object in a target state exists in the virtual environment.

A playback information display module 1103, configured to display playback information in the playback interface, where the playback information is used to show a history process of the second virtual object entering the target state.

In an exemplary embodiment, the target state is a knocked down state, which refers to an intermediate state between a survival state and a death state;

or, the target state is the death state, and the death state is a state in which the life value is reduced to zero;

or, the target state is an attacked state, and the attacked state refers to a state attacked by other virtual objects.

In an exemplary embodiment, the playback information display module 1103 is configured to display, in the playback interface, a playback screen within a target period, where the playback screen is a screen in which a third virtual object in the virtual environment is viewed from the viewpoint of the second virtual object; wherein the third virtual object is a virtual object that knocks down or kills or attacks the second virtual object, and the target period is a period of time from a first time to a time at which the second virtual object enters the target state.

In an exemplary embodiment, the playback information display module 1103 is further configured to, in the playback interface, based on a trajectory of a virtual item attacking the second virtual object, start with the second virtual object as a shot and end with a third virtual object as a shot, display a picture of the second virtual object attacked by the third virtual object; wherein the third virtual object is a virtual object that knocks down or kills or attacks the second virtual object.

In an exemplary embodiment, the first virtual object and the second virtual object belong to a first camp, the third virtual object belongs to a second camp, and the first camp and the second camp are in a hostile relationship.

In an exemplary embodiment, the playback interface displaying module 1102 is configured to display the playback interface if a second virtual object in the target state exists in the virtual environment and a distance between the second virtual object and the first virtual object is less than a threshold value in response to the operation on the first control.

In an exemplary embodiment, as shown in fig. 12, the apparatus 1100 further comprises: a control state switching module 1104.

A control state switching module 1104 for switching the first control from an available state to a disabled state in response to an operation on the first control.

The control state switching module 1104 is further configured to switch the first control from the disabled state to the available state when a duration that the first control is in the disabled state is greater than or equal to a cooling duration.

In an exemplary embodiment, the playback interface display module 1102 is further configured to:

canceling the display of the playback interface in response to a skip operation for the playback information during the display of the playback information;

or canceling the display of the playback interface under the condition that the display time length of the playback information is equal to the set time length.

In an exemplary embodiment, as shown in fig. 12, the apparatus 1100 further comprises: a display data storage module 1105, the display data storage module 1105 being configured to:

acquiring a group of display data at set time intervals, wherein each group of display data comprises a timestamp, position information and picture information; storing the display data in a circulating queue mode;

or acquiring a group of display data at set time intervals; sending the display data to a server, wherein the server stores the display data in a circulating queue mode; wherein the display data in the circular queue is used to generate the playback information.

In an exemplary embodiment, as shown in fig. 12, the apparatus 1100 further comprises: a playback information obtaining module 1106, wherein the playback information obtaining module 1106 is configured to:

sending a playback information acquisition request to a server so as to forward the playback information acquisition request to a target client through the server; the target client is a client corresponding to an attacker corresponding to the second virtual object, and the playback information acquisition request is used for requesting to acquire the playback information; receiving playback information from the target client, wherein the playback information from the target client is acquired by the target client from a circular queue corresponding to the target client;

or sending the playback information acquisition request to the server; and receiving playback information from the server, wherein the playback information from the server is acquired by the server from a circular queue corresponding to the target client stored in the server.

In an exemplary embodiment, as shown in fig. 12, the apparatus 1100 further comprises: virtual item selection module 1107.

A virtual item selection module 1107, configured to display an item selection interface in a preparation stage of a game, where the item selection interface includes at least one virtual item, and different virtual items are used to implement different functions; acquiring a selection operation aiming at a target virtual article, wherein the target virtual article is used for realizing a target function, and the target function comprises triggering and displaying the playback information; and displaying the first control for realizing the target function in the game-play stage.

To sum up, according to the technical scheme provided by the embodiment of the application, by triggering the playback function corresponding to the first control, the historical process that other virtual objects enter the target state (such as a knocked-down state, a death state, an attacked state, and the like) can be checked, so that the associated information (such as position information, weapon information, and the like) of an attacker can be determined, the function of acquiring the associated information of the attacker by one key is realized, the difficulty in acquiring the information is reduced, the information acquisition efficiency is improved, and the convenience in information acquisition is improved.

In addition, based on the historical process that other virtual objects enter the target state, the associated information of the attacker can be judged more intuitively, and the associated information of the attacker does not need to be indirectly judged based on sound, trajectory and the like, so that the accuracy of information judgment is improved, and the accuracy of information is further improved.

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. 13, a block diagram of a terminal 1300 according to an embodiment of the present application is shown. The terminal is used for implementing the interface display method provided in the above embodiment. The terminal may be the terminal 10 in the implementation environment shown in fig. 1. Specifically, the method comprises the following steps:

in general, terminal 1300 includes: a processor 1301 and a memory 1302.

Processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1301 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, processor 1301 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.

Memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The memory 1302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1302 is used to store at least one instruction, at least one program, set of codes, or set of instructions configured to be executed by one or more processors to implement the above-described interface display method.

In some embodiments, terminal 1300 may further optionally include: a peripheral interface 1303 and at least one peripheral. Processor 1301, memory 1302, and peripheral interface 1303 may be connected by a bus or signal line. Each peripheral device may be connected to the peripheral device interface 1303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1304, display screen 1305, camera assembly 1306, audio circuitry 1307, positioning assembly 1308, and power supply 1309.

Those skilled in the art will appreciate that the configuration shown in fig. 13 is not intended to be limiting with respect to terminal 1300 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.

In an exemplary embodiment, a computer readable storage medium is also provided having at least one instruction, at least one program, set of codes, or set of instructions stored therein, which when executed by a processor, implement an upper interface display method.

Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State drive), or optical disk. The Random Access Memory may include a ReRAM (resistive Random Access Memory) and a DRAM (Dynamic Random Access Memory).

In an exemplary embodiment, a computer program product or a computer program is also provided, which comprises computer instructions, which are stored in a computer-readable storage medium. And a processor of the terminal reads the computer instruction from the computer readable storage medium, and executes the computer instruction to enable the terminal to execute the interface display method.

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.

25页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于光照环境实时切换烘焙数据的方法及其系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类