Interaction method and device based on virtual environment, equipment and medium
By directly responding to the resurrection skill operation in the virtual environment and switching to the virtual character displayed as the resurrected one, the problem of cumbersome operations in the existing technology is solved and the efficiency of human-computer interaction is improved.
Patent Information
- Application Number
- CN202310984306.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-04
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, when players use resurrection skills in first-person shooting games, they need to start the scanning mode first to identify the detailed information of virtual items. The operation is cumbersome and the human-computer interaction efficiency is not high.
By displaying dead individuals in the virtual environment and responding to the resurrection skill selection and release operations, you can directly switch to the virtual character displayed as the resurrected one without switching to scanning mode.
It improves players' ability to quickly and accurately identify and select dead individuals to be resurrected in a virtual environment, and improves human-computer interaction efficiency.
Smart Images

Figure CN119425071A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of human-computer interaction, and in particular to an interaction method, device, equipment and medium based on a virtual environment. Background Art
[0002] In a first-person shooting game (FPS), when a player is killed, he loses his identity model characteristics. When some players with resurrection skills release the resurrection skills, they need to accurately identify their teammates first and then release the resurrection skills.
[0003] In the related technology, these players with resurrection skills need to start the scanning mode first, and the detailed information of the virtual item is displayed above the virtual item. Then the player can identify whether the virtual item belongs to a teammate player based on the detailed information, and finally release the resurrection skill to revive the teammate player.
[0004] However, the related technical methods are cumbersome to operate and the human-computer interaction efficiency is low. Summary of the invention
[0005] The present application provides an interactive method, device, equipment and medium based on a virtual environment. The technical solution is as follows:
[0006] According to one aspect of the present application, a virtual environment-based interaction method is provided, the method comprising:
[0007] Displaying at least one dead individual in the virtual environment; displaying forms of different dead individuals are the same or the similarity exceeds a threshold;
[0008] In response to the resurrection skill selection operation, character information of a first virtual character corresponding to a first dead individual is displayed; the first dead individual is one of the at least one dead individual selected by the resurrection skill selection operation, and the first dead individual is a display element corresponding to the first virtual character after the death of the first virtual character;
[0009] In response to the resurrection skill release operation, the first deceased individual is switched to be displayed as the first virtual character after resurrection.
[0010] According to another aspect of the present application, there is provided an interactive device based on a virtual environment, the device comprising:
[0011] A display module, used for displaying at least one killed individual in the virtual environment; the display forms of different killed individuals are the same or the similarity exceeds a threshold;
[0012] The display module is used to display the character information of the first virtual character corresponding to the first dead individual in response to the resurrection skill selection operation; the first dead individual is one of the at least one dead individual selected by the resurrection skill selection operation, and the first dead individual is the display element corresponding to the first virtual character after the death of the first virtual character;
[0013] The display module is used to switch and display the first deceased individual as the first virtual character after resurrection in response to a resurrection skill release operation.
[0014] According to another aspect of the present application, a computer device is provided, comprising: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the above-mentioned virtual environment-based interaction method.
[0015] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the above-mentioned virtual environment-based interaction method.
[0016] According to another aspect of the present application, a computer program product is provided, which includes computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, and a processor obtains the computer instructions from the computer-readable storage medium, so that the processor loads and executes them to implement the virtual environment-based interaction method as described above.
[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0018] The computer device displays at least one dead individual in a virtual environment; the display forms of different dead individuals are the same or the similarity exceeds a threshold; in response to a resurrection skill selection operation, the character information of a first virtual character corresponding to the first dead individual is displayed; the first dead individual is one of the at least one dead individuals selected by the resurrection skill selection operation, and the first dead individual is the display element corresponding to the first virtual character after the death; in response to a resurrection skill release operation, the first dead individual is switched to be displayed as the first virtual character after resurrection. Accordingly, the dead individual to be resurrected can be directly selected without switching to a scanning mode, so that the player can quickly and accurately distinguish and select the dead individual to be resurrected from multiple dead individuals with the same or similar display forms, and resurrect the corresponding virtual character by using the resurrection skill, which can improve the efficiency of human-computer interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A structural block diagram of a computer system provided by an exemplary embodiment is shown;
[0021] Figure 2 A schematic diagram showing an interactive method based on a virtual environment provided by an exemplary embodiment;
[0022] Figure 3 A flowchart of an interactive method based on a virtual environment provided by an exemplary embodiment is shown;
[0023] Figure 4 A flowchart of an interactive method based on a virtual environment provided by an exemplary embodiment is shown;
[0024] Figure 5 A flowchart of an interactive method based on a virtual environment provided by an exemplary embodiment is shown;
[0025] Figure 6 A flowchart of an interactive method based on a virtual environment provided by an exemplary embodiment is shown;
[0026] Figure 7 An interface diagram of an interactive method based on a virtual environment provided by an exemplary embodiment is shown;
[0027] Figure 8 An interface diagram of an interactive method based on a virtual environment provided by an exemplary embodiment is shown;
[0028] Fig. 9 An interface diagram of an interactive method based on a virtual environment provided by an exemplary embodiment is shown;
[0029] Fig.10 An interface diagram of an interactive method based on a virtual environment provided by an exemplary embodiment is shown;
[0030] Fig.11 An interface diagram of an interactive method based on a virtual environment provided by an exemplary embodiment is shown;
[0031] Fig.12 A schematic diagram showing an interactive method based on a virtual environment provided by an exemplary embodiment;
[0032] Fig.13A structural block diagram of an interactive device based on a virtual environment provided by an exemplary embodiment is shown;
[0033] Fig.14 A structural block diagram of a computer device provided by an exemplary embodiment is shown. DETAILED DESCRIPTION
[0034] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0035] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0036] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0037] It should be noted that before collecting relevant data of users (such as resurrection skill release operation, resurrection skill selection operation, etc.) and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window or output voice prompt information. The prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of users after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of users are terminated, that is, the relevant data of users are not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0038] It should be understood that, although the terms first, second, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0039] First, the nouns involved in the embodiments of the present application are briefly introduced:
[0040] Virtual environment: is a virtual environment displayed or provided by the client when it is running on the terminal. The virtual environment can be a simulation of the real world, a semi-simulated and semi-fictitious three-dimensional world, or a purely fictitious three-dimensional world. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment. Optionally, the virtual environment is also used for a virtual environment battle between at least two virtual characters, and there are virtual resources in the virtual environment that can be used by at least two virtual characters. Optionally, the virtual environment includes symmetrical lower left corner area and upper right corner area, and virtual characters belonging to two hostile camps occupy one of the areas respectively.
[0041] Virtual character: is an movable object in a virtual environment. The movable object may be at least one of a virtual person, a virtual animal, a cartoon character, and a virtual pet (also referred to as a pet virtual character). Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual character may be a three-dimensional virtual model, and each virtual character has its own shape and volume in the three-dimensional virtual environment, and occupies a part of the space in the three-dimensional virtual environment. Optionally, the virtual character is a three-dimensional character constructed based on three-dimensional human skeleton technology, and the virtual character achieves different external images by wearing different skins. In some implementations, the virtual character may also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application.
[0042] Resurrection skill: It is a virtual skill that can restore a certain amount of health to the fallen teammates, so that they can fight on the field again.
[0043] In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed may be executed.
[0044] Figure 1The block diagram of the computer system provided by an exemplary embodiment of the present application is shown. The computer system can be implemented as a system architecture of an interactive method based on a virtual environment. The computer system 100 includes: a first terminal 120, a server 140 and a second terminal 160.
[0045] The first terminal 120 may be an electronic device such as a mobile phone, a tablet computer, a vehicle-mounted terminal (vehicle computer), a wearable device, a PC (Personal Computer), an unmanned reservation terminal, etc. The first terminal 120 is installed and runs an application that supports a virtual environment. Exemplarily, the application may be any one of a battle royale shooting game, a virtual reality (VR) application, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online tactical competitive game (MOBA), and a simulation game (SLG).
[0046] The first terminal 120 is a terminal used by the first user. The first user uses the first terminal 120 to control the first virtual character in the virtual environment, and the control includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building virtual buildings. The first user can also use the first terminal 120 to use the resurrection skill in the virtual environment to revive other teammate virtual characters who have died.
[0047] The second terminal 160 may be an electronic device such as a mobile phone, a tablet computer, a vehicle terminal (vehicle computer), a wearable device, a PC (Personal Computer), an unmanned reservation terminal, etc. The second terminal 160 is installed and runs an application that supports a virtual environment. Exemplarily, the application may be any one of a battle royale shooting game, a virtual reality (VR) application, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online tactical competitive game (MOBA), and a simulation game (SLG).
[0048] The second terminal 160 is a terminal used by the second user. The second user uses the second terminal 160 to control the second virtual character in the virtual environment, and the control includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building virtual buildings. The second user can also use the second terminal 160 to use the resurrection skill in the virtual environment to revive other teammate virtual characters who have died.
[0049] The first terminal 120 , the second terminal 160 , and the server 140 may communicate with each other via a network, such as a wired or wireless network.
[0050] The server 140 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and cloud servers providing basic cloud computing services such as big data and artificial intelligence platforms. The server 140 includes at least one server, multiple servers, a cloud computing platform, and a virtualization center.
[0051] Exemplarily, the server 140 includes a processor 144 and a memory 142, and the memory 142 further includes a receiving module 1421, a control module 1422, and a sending module 1423. The receiving module 1421 is used to receive a request sent by a client, such as a request to view at least one of the number, position, and attribute of an enemy virtual character; the control module 1422 is used to control the rendering of a virtual environment screen; and the sending module 1423 is used to send a response to the client, such as sending at least one of the number, position, and attribute value of the enemy virtual character to the client. The server 140 is used to provide background services for the applications of the first terminal 120 and the second terminal 160.
[0052] Optionally, the server 140 undertakes the main computing work, and the first terminal 120 and the second terminal 160 undertake the secondary computing work; or, the server 140 undertakes the secondary computing work, and the first terminal 120 and the second terminal 160 undertake the main computing work; or, a distributed computing architecture is used among the server 140, the first terminal 120 and the second terminal 160 for collaborative computing.
[0053] Optionally, the applications installed on the first terminal 120 and the second terminal 160 are the same, or the applications installed on the two terminals are the same type of applications for different control system platforms. The embodiment of the present application does not limit the form of the applications installed on the first terminal 120 and the second terminal 160, including but not limited to App (Application, application), applets, etc. installed in the first terminal 120 and the second terminal 160, and can also be in the form of web pages. The first terminal 120 can refer to one of multiple terminals, and the second terminal 160 can refer to one of multiple terminals. This embodiment only takes the first terminal 120 and the second terminal 160 as an example. The device types of the first terminal 120 and the second terminal 160 are the same or different. The following embodiments take the terminal including a smart phone as an example.
[0054] Those skilled in the art can know that the number of the first terminal 120 and the second terminal 160 can be more or less. For example: the first terminal 120 and the second terminal 160 can be only one each (i.e., the user plays against the artificial intelligence), or the total number of the first terminal 120 and the second terminal 160 is 8 (1v1v1v1v1v1v1v1, 8 users play against each other in a cycle and eliminate each other, and finally determine the winner), or more. The embodiment of the present application does not limit the number and device type of the first terminal 120 and the second terminal 160.
[0055] The embodiment of the present application provides an interactive method based on a virtual environment, which can be executed by a computer device. Optionally, the computer device includes Figure 1The first terminal 120 and / or the second terminal 160 are shown. The first terminal 120 and the second terminal 160 are respectively installed and run with an application supporting a virtual environment.
[0056] For example, Figure 2 A schematic diagram of an interactive method based on a virtual environment provided by an exemplary embodiment of the present application is shown. Taking the first terminal 120 executing the method as an example, the steps are briefly described as follows:
[0057] Step 1: The first terminal 120 displays at least one deceased individual in a virtual environment; the display forms of different deceased individuals are the same or the similarity exceeds a threshold.
[0058] like Figure 2 As shown in the user interface 210 in FIG. 1 , the first terminal 120 displays a big move button 214, a dead individual 211, a dead individual 212, and a dead individual 213, an information panel 215, an movable carrier 216, a hand 217 of a main virtual character controlled by the first user, and a scanning box 218 in the user interface 210. Among them, the information panel 215 is used to display character information. The dead individual 211 is a display element corresponding to the death of the virtual character 211, the dead individual 212 is a display element corresponding to the death of the virtual character 212, and the dead individual 213 is a display element corresponding to the death of the virtual character 213. The dead individuals 211, the dead individuals 212, and the dead individuals 213 are displayed in the form of box-shaped elements of the same size, shape, and color. The movable carrier 216 can be located on the hand 217. In this embodiment, the movable carrier 216, the hand 217 of the main virtual character controlled by the first user, and the scanning box 218 are optional display contents in the user interface 210.
[0059] Step 2, the first terminal 120 displays the character information of the first virtual character corresponding to the first deceased individual in response to the resurrection skill selection operation; the first deceased individual is one of at least one deceased individual selected by the resurrection skill selection operation, and the first deceased individual is the display element corresponding to the first virtual character after the death.
[0060] Specifically, take the first individual killed in battle as the individual killed in battle 212 as an example. The first user long presses Figure 2 The first terminal 120 then displays the character information of the first virtual character 212 corresponding to the first deceased individual 212 selected by the resurrection skill selection operation, and the character information is displayed in the information panel 215. Figure 2The first terminal 120 displays a scanning box 218 on the user interface 210, and the scanning box 218 is used to select the first killed individual 212. At the same time, the first terminal 120 displays a movable carrier 216 on the hand 217 on the user interface 210, and displays an information panel 215 corresponding to the character information on the surrounding area of the movable carrier 216, such as one of the areas directly above, on the left, and on the right.
[0061] Step 3: In response to the resurrection skill release operation, the first terminal 120 switches the display of the first deceased individual to the resurrected first virtual character.
[0062] Specifically, take the first individual who died in battle as the individual 212 as an example. The first user releases Figure 2 The first terminal 120 switches the first killed individual 212 to the resurrected first virtual character 221. Optionally, the first terminal 120 may cancel the display of the movable carrier 216 in the user interface 220.
[0063] In summary, in the interactive method based on a virtual environment provided by the embodiment of the present application, when the display form of at least one dead individual displayed in the virtual environment is the same or the similarity exceeds a threshold, the character features of the virtual characters corresponding to the dead individuals basically disappear, making it difficult to identify the dead individuals to be resurrected. Through the method of the embodiment of the present application, there is no need to trigger the start scanning mode, and the first dead individual can be directly selected through the resurrection skill selection operation and the character information of the first virtual character corresponding to the first dead individual can be displayed. Based on the character information, the dead individual to be resurrected can be quickly identified and its corresponding virtual character can be resurrected, which can improve the efficiency of human-computer interaction.
[0064] Furthermore, the method of the embodiment of the present application can also display a movable carrier, and when displaying the character information of the first virtual character corresponding to the first deceased individual, the character information of the first virtual character is displayed in the surrounding area of the movable carrier. Since the movable carrier can interact with the user, this display method makes the character information different from being directly pasted on the interface element (Head Up Display, HUD) used for information display on the plane layer of the user interface (User Interface, UI) or simply giving an immovable panel in the virtual scene for pasting. The character information of the first virtual character can be displayed, and as the movable carrier moves, the interactivity and interactivity of the information display can be increased, thereby enriching the user experience.
[0065] Figure 3A flowchart of an interactive method based on a virtual environment provided by an exemplary embodiment of the present application is shown, and the method is described by taking the method being executed by a computer device as an example. The computer device may be Figure 1 The first terminal 120 and / or the second terminal 160 shown. The method includes steps 320, 340 and 360:
[0066] Step 320, display at least one killed individual in the virtual environment; the display forms of different killed individuals are the same or the similarity exceeds a threshold.
[0067] A virtual environment is a virtual environment displayed or provided when a client runs on a computer device.
[0068] Death in action is the state in which a virtual character dies after being attacked in this game.
[0069] Optionally, when the current health of the virtual character is less than a threshold, or when the virtual character receives a preset virtual skill, or when the virtual character receives a virtual skill and the blood consumption corresponding to the virtual skill is greater than the current health of the virtual character, the computer device determines that the virtual character is killed in this game.
[0070] The dead individual refers to the corresponding display element after the virtual character is killed in the current game.
[0071] Optionally, the corresponding display element after the virtual character dies can be at least one of an image element, an icon element, a text element, a block element, a spherical element, a two-dimensional element, and a three-dimensional element. The dead individual can be represented by at least one of an image element, an icon element, a text element, a block element, a spherical element, a two-dimensional element, and a three-dimensional element.
[0072] Optionally, the display elements corresponding to the death of different virtual characters may be the same or different or at least partially the same. For example, if the display element corresponding to the death of virtual character 1 is a sphere element, and the display element corresponding to the death of virtual character 2 is a text element, then when the sphere element is displayed on the user interface, other players can know that virtual character 1 has died, and when the text element is displayed on the user interface, other players can know that virtual character 2 has died.
[0073] In some embodiments, the display elements corresponding to the death of a virtual character can be pre-configured according to the attributes and type of the virtual character, or, for a virtual character owned by a player, the player can customize the display elements corresponding to the death of the virtual character.
[0074] The display form refers to the display form of the display element corresponding to the deceased individual.
[0075] Optionally, the display form includes at least one of a particle form, an upward floating particle form, an entity form, a phantom form, and a soul form. For example, if the display element after the death of the virtual character is a spherical element and the display form is a phantom form, then after the virtual character dies, a spherical element is displayed in a phantom form on the user interface, similar to displaying a shadow of a spherical element, so that other players can know that the virtual character has died.
[0076] In some embodiments, the display forms of different deceased individuals are the same or the similarity exceeds a threshold.
[0077] Optionally, the similarity can be determined by an image similarity algorithm, for example, based on images corresponding to the display forms of different deceased individuals, a hash algorithm or a Scale-Invariant Feature Transform (SIFT) algorithm is used to determine the similarity between the display forms of different deceased individuals.
[0078] Optionally, after the virtual characters corresponding to different killed individuals are killed, if at least one of the display elements corresponding to the different killed individuals or the display forms of the different killed individuals is the same, it is determined that the similarity of the display forms of the different killed individuals exceeds a threshold. For example, if killed individual 1 corresponds to virtual character 1, and the display element of virtual character 1 after death is a spherical element and the display form is a phantom form, and killed individual 2 corresponds to virtual character 2, and the display element of virtual character 2 after death is a spherical element and the display form is a solid form, then it is determined that the display forms of killed individual 1 and killed individual 2 exceed the threshold.
[0079] In one possible implementation, see Figure 7 .like Figure 7 As shown in the user interface 710 in FIG. 7 , three surviving virtual characters 712, 713, and 714 are displayed in the user interface 710. A resurrection operation button 711 may also be displayed in the user interface 710. Taking the death of the virtual character 712 as an example, as shown in FIG. Figure 7 As shown in the user interface 720, after the virtual character 712 dies, the dead individual of the virtual character 712 is displayed in the form of upward floating particles 721. For example, the display elements corresponding to the deaths of the virtual characters 712, 713, and 714 are all block elements. Figure 8 ,like Figure 8As shown in the user interface 730, the user interface 730 displays a dead individual 731 after the death of the virtual character 712, a dead individual 732 after the death of the virtual character 713, and a dead individual 733 after the death of the virtual character 714. The display forms of the dead individual 731, the dead individual 732, and the dead individual 733 are the same, all displayed as block elements and particles floating upwards.
[0080] Step 340, in response to the resurrection skill selection operation, display the character information of the first virtual character corresponding to the first deceased individual; the first deceased individual is one of at least one deceased individual selected by the resurrection skill selection operation, and the first deceased individual is the display element corresponding to the first virtual character after the death.
[0081] The resurrection skill selection operation is an operation of selecting the virtual character to be resurrected before releasing the resurrection skill.
[0082] Optionally, the resurrection skill selection operation is triggered by long pressing the resurrection operation button. In response to the pressing time of the resurrection operation button being greater than a threshold, the computer device triggers the start of the resurrection skill selection operation.
[0083] The first dead individual is one of at least one dead individual selected by the resurrection skill selection operation.
[0084] The first killed individual is a display element corresponding to the death of the first virtual character.
[0085] Optionally, if the first individual killed in battle includes one, then releasing the resurrection skill once can revive one virtual character. In other exemplary embodiments, if the first individual killed in battle includes at least one, then releasing the resurrection skill once can revive at least one virtual character.
[0086] Optionally, the first virtual character corresponding to the first individual killed in battle is a teammate virtual character. Teammate virtual characters are other virtual characters in the same camp in this game match.
[0087] Optionally, the resurrection operation button provides a function of selecting a dead individual. For example, when the resurrection operation button is long pressed, a rotation operation is performed in the operation area of the resurrection operation button at the same time, that is, a long press and rotation operation is performed in the operation area of the resurrection operation button to select different dead individuals. In other embodiments, when the user triggers the resurrection skill rotation operation, the computer device automatically selects a dead individual as the first dead individual.
[0088] The character information is information used to characterize the specific identity of the virtual character. Optionally, the character information includes at least one of the character nickname, character image, camp, character attributes, and virtual skills possessed.
[0089] Exemplarily, in response to the resurrection skill selection operation, the computer device displays the character information of the first virtual character corresponding to the first deceased individual. The character information can be displayed in a fixed area on the user interface, such as: displayed in the area used to display broadcast information in the game. The character information can also be displayed in the surrounding area of the movable carrier on the user interface. The display method of the character information will be described in detail in the subsequent embodiments.
[0090] In one possible implementation, see Figure 8 .like Figure 8 As shown in the user interface 740 in , the first deceased individual is the deceased individual 731. In response to the resurrection skill selection operation, the computer device displays the character information 742 of the first virtual character 731 corresponding to the first deceased individual 731. The character information 742 may be the character image of the first virtual character 731.
[0091] Step 360, in response to the resurrection skill release operation, the first deceased individual is switched to be displayed as the first virtual character after resurrection.
[0092] The resurrection skill release operation is an operation of releasing the resurrection skill to the virtual character to be resurrected.
[0093] The first virtual character after resurrection refers to the first virtual character that receives the resurrection skill and is resurrected.
[0094] Optionally, the character information corresponding to the resurrected first virtual character is the same as that of the first virtual character that has not died, wherein the character information includes at least one of a character nickname, a character image, a camp to which the character belongs, a character attribute, and a virtual skill possessed.
[0095] Optionally, the resurrected first virtual character displayed in the user interface has the same character image as the first virtual character that has not died, or at least a part of the character image is the same. For example, the resurrected virtual character 1 has the same character image as the virtual character 1 that has not died, or a halo icon is added above the head of the resurrected virtual character 1, and the halo icon is used to indicate that the virtual character 1 at this time is the resurrected virtual character 1, and the halo icon can also distinguish the virtual character that has not died from the resurrected virtual character.
[0096] Exemplarily, in response to a resurrection skill release operation, the computer device switches the display of the first deceased individual to the first virtual character after resurrection.
[0097] In one possible implementation, see Fig.10 .like Fig.10As shown in the user interface 800 in FIG. 8 , in response to the resurrection skill selection operation, the computer device switches the display of the first deceased individual to the resurrected first virtual character 802 , and the other deceased individuals that have not been resurrected remain unchanged.
[0098] In summary, the interactive method based on a virtual environment provided by the embodiment of the present application is that the computer device displays at least one dead individual in the virtual environment; the display forms of different dead individuals are the same or the similarity exceeds a threshold; in response to the resurrection skill selection operation, the character information of the first virtual character corresponding to the first dead individual is displayed; the first dead individual is one of the at least one dead individual selected by the resurrection skill selection operation, and the first dead individual is the display element corresponding to the first virtual character after the death; in response to the resurrection skill release operation, the first dead individual is switched to be displayed as the first virtual character after resurrection. Accordingly, the player can accurately select the dead individual to be resurrected from multiple dead individuals with the same or similar display forms, and revive the corresponding virtual character by using the resurrection skill, which can improve the efficiency of human-computer interaction.
[0099] Figure 4 A flowchart of an interactive method based on a virtual environment provided by an exemplary embodiment of the present application is shown. The following embodiment illustrates an example of a method for displaying the character information of the first virtual character corresponding to the first deceased individual. In an actual scenario, one of the methods may be selected, or a combination of multiple methods may be selected.
[0100] 1. The first display method of the character information of the first virtual character corresponding to the first individual killed in battle
[0101] In some embodiments, step 340 may be optionally implemented as steps 342 and 344:
[0102] Step 342, in response to the resurrection skill selection operation, a scan box is displayed; the scan box is used to select the first deceased individual among at least one deceased individual.
[0103] The scan box is a frame area that provides scanning and selection functions.
[0104] Optionally, since the resurrection skill selection requires selecting the first deceased individual from at least one deceased individual, the computer device displays a scanning box in response to the resurrection skill selection operation; the scanning box is used to select the first deceased individual from the at least one deceased individual.
[0105] Optionally, a scanning box is displayed at the center of the user interface. The center of the scanning box and the center of the user interface may be at the same location. In other examples, the scanning box is also referred to as a "crosshair," and the computer device displays the crosshair in response to the resurrection skill selection operation; the crosshair is used to select the first dead individual among the at least one dead individual.
[0106] Step 344, displaying the character information of the first virtual character corresponding to the first deceased individual selected by the scanning frame.
[0107] Optionally, the computer device displays the character information of the first virtual character corresponding to the first deceased individual selected by the scanning box. The character information can be displayed at any position of the user interface. For example, the character information is displayed in one of the left area, the right area, the upper area, and the lower area of the user interface. Or, a floating window is included in the user interface, and the character information is displayed in the floating window.
[0108] In some embodiments, in response to the resurrection skill selection operation, the computer device displays a scan box, switches the current mode of the scan box to a scan mode, and then, after the resurrection skill selection operation selects a first dead individual among the at least one dead individual, switches the current mode of the scan box from the scan mode to the lock mode. Then, the character information of the first virtual character corresponding to the first dead individual selected by the scan box is displayed.
[0109] In this embodiment, the computer device displays a scan box in response to the resurrection skill selection operation. Therefore, there is no need to enter the scan mode in this game. The scan box can be used to directly aim and accurately select the first deceased individual, thereby displaying the character information of the first virtual character corresponding to the first deceased individual selected by the scan box, which can improve the efficiency of human-computer interaction.
[0110] 2. The second display method of the character information of the first virtual character
[0111] In some embodiments, the second display mode may be further determined based on the first display mode. Step 342 is further implemented as step 346, and step 344 is further implemented as step 348:
[0112] Step 346, in response to the resurrection skill selection operation, display the scanning box and display the movable carrier.
[0113] The movable carrier is any movable object in the virtual environment. Movable refers to the property of the object itself, or it can be movable after being controlled or interacted with by the player. For example, the movable carrier can be a non-player character (NPC) or a virtual animal that can move by itself, or it can be at least one of a virtual car vehicle, a virtual flying object, or a virtual flying vehicle that can move after being controlled.
[0114] The movable carrier is an object in the virtual environment that can interact with the main virtual character currently controlled by the player. For example, the movable object can be an NPC in the current game, the virtual characters of other players, or the pet virtual character (Pokemon) owned by the main virtual character of the player in the current game.
[0115] Exemplarily, in response to the revival skill selection operation, the computer device displays a scanning frame and, at the same time, displays the movable carrier, wherein the scanning frame does not overlap with the movable carrier.
[0116] In some embodiments, the movable carrier is bound with a standby animation. In response to the revival skill selection operation, the computer device displays a scan frame and the movable carrier, and automatically plays the standby animation of the movable carrier.
[0117] Optionally, the movable carrier may also be referred to as an interactive object or an interactive object, which can interact with the player.
[0118] Step 348, displaying the character information of the first virtual character corresponding to the first deceased individual selected by the scanning frame in the surrounding area of the movable carrier; wherein the character information of the first virtual character is displayed following the movement of the movable carrier.
[0119] The circumferential area is a 360-degree area around the movable carrier.
[0120] Optionally, the surrounding area may be one of an upper area, a lower area, a left area, and a right area of the movable carrier. The computer device displays the character information of the first virtual character corresponding to the first deceased individual selected by the scanning box in the surrounding area of the movable carrier.
[0121] Optionally, the character information of the first virtual character is bound to the movable carrier. Since the movable carrier is movable, the position of the movable carrier changes after the movable carrier moves. Therefore, the character information of the first virtual character is displayed following the movement of the movable carrier.
[0122] Further, step 348 may be specifically implemented as steps 350 and 352:
[0123] Step 350: displaying an information panel on the peripheral area of the movable carrier.
[0124] The information panel is a panel of fixed size used to display the specific content of the character information.
[0125] Exemplarily, before displaying the character information of the first virtual character selected by the scanning frame, the computer device first displays an information panel in the peripheral area of the movable carrier.
[0126] In some embodiments, the information panel provides a perspective function, that is, the information panel will not block virtual objects in the virtual environment, and when a virtual object is located behind the information panel, the virtual object can still be seen through the information panel.
[0127] Step 352: Displaying the character information of the first virtual character selected by the scanning frame in the information panel; wherein the information panel is displayed following the movement of the movable carrier.
[0128] In some embodiments, the information panel provides a moving function, the information panel can be displayed following the movement of the movable carrier, and the information panel and the movable carrier can be bound. Exemplarily, the computer device displays the character information of the first virtual character selected by the scanning box in the information panel; the information panel is displayed following the movement of the movable carrier, so as to achieve the effect that the character information is displayed following the movement of the movable carrier.
[0129] In this embodiment, the computer device responds to the resurrection skill selection operation, displays a scan box, and displays a movable carrier. Since the position of the movable carrier can be changed, when the character information is displayed on the surrounding area of the movable carrier, compared to directly sticking it on the HUD of the UI plane layer, or simply giving a non-movable panel in the virtual scene for patch display, it can increase the flexibility and diversity of the character information display.
[0130] In some embodiments, the movable carrier is a pet virtual character (Pokemon) for example. The movable carrier includes the pet virtual character, and the surrounding area of the movable carrier includes the top of the head of the pet virtual character.
[0131] Optionally, the computer device displays a scan box and a pet virtual character in response to the resurrection skill selection operation; and character information of the first virtual character corresponding to the first deceased individual selected by the scan box is displayed directly above the head of the pet virtual character.
[0132] In some embodiments, the information panel of the character information is parallel to the front of the pet virtual character. And the information panel is displayed following the movement of the pet virtual character, so as to achieve the effect that the character information is displayed following the movement of the pet virtual character. Based on this, the computer device obtains the first plane information corresponding to the front of the pet virtual character; based on the first plane information, calculates the second plane information corresponding to the information panel where the character information is located; the information panel is parallel to the front of the pet virtual character; based on the second plane information, the information panel is displayed directly above the head of the pet virtual character, and the character information of the first virtual character selected by the scanning box is displayed in the information panel.
[0133] The first plane information is the plane information corresponding to the front of the pet virtual character obtained in real time. The first plane information includes the front coordinate orientation of the pet virtual character, which is expressed as (X, Y, Z).
[0134] The second plane information is plane information corresponding to the information panel obtained based on the first plane information. The second plane information includes the coordinate orientation of the information panel, expressed as (X, Z), Y = 0. That is, the information panel is parallel to the face orientation of the virtual pet character.
[0135] In some other embodiments, the computer device may also obtain the first plane information corresponding to the front of the pet virtual character, determine the plane normal vector corresponding to the front of the pet virtual character according to the first plane information, and then determine the plane normal vector of the information panel based on the plane normal vector corresponding to the front of the pet virtual character, wherein the plane normal vector corresponding to the front of the pet virtual character is parallel to the plane normal vector of the information panel. Furthermore, the second plane information corresponding to the information panel is determined based on the plane normal vector of the information panel. Then, based on the second plane information, the computer device displays the information panel directly above the head of the pet virtual character, and displays the character information of the first virtual character selected by the scanning box in the information panel.
[0136] In this embodiment, the player can interact with the pet virtual character, and the pet virtual character can drive the character information to move during the activity, which can add an activity track to the character information, increasing the flexibility and diversity of the character information display.
[0137] In the above embodiment, the computer device displays a scan box and an movable carrier in response to the resurrection skill selection operation, wherein the user selects the first deceased individual from at least one deceased individual through the scan box, and the computer device displays the character information of the first virtual character corresponding to the first deceased individual in the surrounding area of the movable carrier. In other embodiments, the computer device may also recommend the first deceased individual from at least one deceased individual based on at least one of the attribute information of the movable carrier, the attribute information of the main virtual character initiating the resurrection skill, and the attribute information of the virtual character corresponding to the deceased individual.
[0138] Optionally, the attribute information of the movable carrier includes at least one of the type, level, personality, and gender of the movable carrier. The movable carrier may specifically be a pet virtual character. The attribute information of the master virtual character includes at least one of the type, level, personality, gender, and resurrection skill strength of the master virtual character. The attribute information of the virtual character corresponding to the deceased individual includes at least one of the type, level, personality, and resurrection difficulty. Optionally, the computer device recommends the first deceased individual from at least one deceased individual, which is related to at least one of the following factors:
[0139] Type and / or class of movable carrier;
[0140] The matching degree between the main virtual character and the virtual characters corresponding to the deceased individuals and the types of movable carriers;
[0141] The matching degree between the level of the main virtual character and the virtual characters corresponding to the deceased individuals and the movable carrier;
[0142] The degree of personality matching between the main virtual character and the virtual characters corresponding to the deceased individuals and the movable carrier;
[0143] The gender matching degree between the main virtual character and the virtual characters corresponding to the deceased individuals and the movable carriers;
[0144] The matching degree between the resurrection skill strength of the main virtual character and the resurrection difficulty of the virtual character corresponding to the fallen individual;
[0145] The distance between the movable carrier and the virtual character corresponding to the deceased individual;
[0146] The distance between the main virtual character and the virtual character corresponding to the deceased individual.
[0147] Optionally, the type of the movable carrier may be one of an animal, a person, and a pet, and the level may be one of elementary, intermediate, and advanced. Movable carriers of different types and / or levels can support the display of character information of different virtual characters, and the computer device may select the dead individuals corresponding to the virtual characters whose character information is supported to be displayed by the movable carrier as the first dead individuals. For example: the user interface displays three dead individuals, corresponding to virtual character 1, virtual character 2, and virtual character 3, and the type and level of the movable carrier 1 can only support the display of character information of virtual character 2 and virtual character 3, then the computer device may recommend the dead individuals corresponding to virtual character 2 and / or virtual character 3 to the user as the first dead individuals.
[0148] Optionally, the computer device may determine the type matching degree between the main virtual character, the virtual character corresponding to the killed individual, and the movable carrier. The type matching degree may be displayed in the character information. The computer device may determine the killed individual with the highest type matching degree or a type matching degree higher than a threshold as the first killed individual. For example: the main virtual character is good at driving, the virtual character 1 corresponding to the killed individual 1 is good at driving, the virtual character 2 corresponding to the killed individual 2 is good at driving an aircraft, and the movable carrier is a virtual car vehicle, then the computer device may determine the killed individual 1 as the first killed individual.
[0149] Optionally, the computer device may determine the level matching degree between the main virtual character, the virtual characters corresponding to the deceased individuals, and the movable carrier. The level matching degree may be displayed in the character information. The computer device may determine the deceased individual with the highest level matching degree or a level matching degree higher than a threshold as the first deceased individual. For example: the main virtual character is level 10, the virtual character 1 corresponding to the deceased individual 1 is level 10 before the death, the virtual character 2 corresponding to the deceased individual 2 is level 3 before the death, and the level of the movable carrier is level 9, then the computer device may determine the deceased individual 1 as the first deceased individual.
[0150] Optionally, the computer device may determine the degree of personality matching between the main virtual character, the virtual character corresponding to the deceased individual, and the movable carrier. The personality matching degree may be displayed in the character information. The computer device may determine the deceased individual with the highest personality matching degree or a personality matching degree higher than a threshold as the first deceased individual. For example, if the personality of the main virtual character is that he likes to fight, the personality of the virtual character 1 corresponding to the deceased individual 1 is that he likes to fight, the personality of the virtual character 2 corresponding to the deceased individual 2 is that he likes to hide, and the personality of the movable carrier is that he likes to fight, then the computer device may determine the deceased individual 1 as the first deceased individual.
[0151] Optionally, the computer device may determine the gender matching degree between the main virtual character, the virtual characters corresponding to the deceased individual, and the movable carrier. The gender matching degree may be displayed in the character information. The computer device may determine the deceased individual with the highest gender matching degree or a gender matching degree higher than a threshold as the first deceased individual. For example: the gender of the main virtual character is male, the gender of the virtual character 1 corresponding to the deceased individual 1 is male, the gender of the virtual character 2 corresponding to the deceased individual 2 is female, and the movable carrier's preferred gender is male, then the computer device may determine the deceased individual 1 as the first deceased individual.
[0152] Optionally, the computer device may determine the degree of match between the resurrection skill strength of the master virtual character and the resurrection difficulty of the virtual character corresponding to the deceased individual. The degree of match may be displayed in the character information. Among them, different resurrection difficulties of the virtual character corresponding to the deceased individual correspond to different resurrection skill strengths. For example: the resurrection difficulty is 50%, and the strength value of the required resurrection skill strength is at least 100. The computer device may determine the deceased individual with the highest matching degree or the matching degree higher than the threshold as the first deceased individual.
[0153] Optionally, the computer device may determine the distance between the movable carrier and the virtual character corresponding to the killed individual. The distance may be displayed in the character information. The computer device may determine the killed individual with the shortest distance or the distance less than a threshold as the first killed individual.
[0154] Optionally, the computer device may determine the distance between the main control virtual character and the virtual character corresponding to the killed individual. The distance may be displayed in the character information. The computer device may determine the killed individual with the shortest distance or the distance less than a threshold as the first killed individual.
[0155] It should be noted that the above-mentioned thresholds can be further set according to actual technical needs, and the specific values of the thresholds can be different.
[0156] In other embodiments, the computer device may also recommend a first deceased individual from at least one deceased individual based on a dialogue statement between the controlling virtual character that initiates the resurrection skill and the movable carrier.
[0157] Specifically, the movable carrier is provided with a dialogue function, and the main control virtual character and the movable carrier can have a dialogue. A trained natural language processing model is installed and run in the computer device. The dialogue sentence between the main control virtual character and the movable carrier is input into the natural language processing model, and the first dead individual is selected from at least one dead individual based on the natural language processing model. The movable carrier can be a pet virtual character or an NPC.
[0158] In the training phase of the natural language processing model, the sample sentences are annotated with the type, personality, and attribute information of each virtual character that matches the sample sentence. Thus, the natural language processing model has the ability to determine the matching dead individuals based on the dialogue sentences between the main control virtual character and the movable carrier. For example: the main control virtual character says to the movable carrier: "Please help me choose a resurrection object with the strongest output." The natural sentence processing model analyzes the dialogue sentence and selects the first dead individual from at least one dead individual. The first virtual character corresponding to the first dead individual has the strongest output among all the dead virtual characters.
[0159] In the above embodiment, multiple ways of selecting the first deceased individual from at least one deceased individual are provided, which can increase the correlation and coupling between the selection process of selecting the deceased individual and the movable carrier, so that the movable carrier not only has the function of displaying character information, but also has a higher degree of participation in the game. This method can increase the gameplay and effectively improve the user experience.
[0160] In some embodiments, other dead individuals can be reselected from at least one dead individual by moving the scanning frame. Based on the above two display embodiments, the method can also optionally include step 420 and step 440:
[0161] Step 420: In response to the moving operation, display the moved scanning frame; the moved scanning frame is used to select the second killed individual among the at least one killed individual.
[0162] The move operation can be an operation after the resurrection skill selection operation and before the resurrection skill release operation. Or, the move operation can also be the second half of the resurrection skill selection operation. For example: the user long presses the resurrection operation button to trigger the resurrection skill selection operation, and moves or rotates the finger during the long press process to realize the movement of the scanning box.
[0163] The second dead individual is one of the at least one dead individual that is reselected by the resurrection skill selection operation, and the second dead individual is a display element corresponding to the death of the second virtual character. The second dead individual and the first dead individual are different dead individuals.
[0164] Exemplarily, the computer device displays a moved scanning frame in response to the moving operation; the moved scanning frame is used to select a second killed individual among the at least one killed individual.
[0165] Step 440: Display the character information of the second virtual character corresponding to the second deceased individual selected by the moved scanning frame.
[0166] Exemplarily, the computer device displays the character information of the second virtual character corresponding to the second individual killed in battle selected by the moved scanning frame. The display method of the character information of the second virtual character corresponding to the second individual killed in battle is the same as the display method of the character information of the first virtual character corresponding to the first individual killed in battle, which will not be described in detail here.
[0167] In this embodiment, the computer device can not only display the character information of the first virtual character corresponding to the first deceased individual selected by the scanning box, but also switch to display the character information of the second virtual character corresponding to the second deceased individual selected by the moved scanning box, thereby improving the flexibility of character information display.
[0168] In some embodiments, step 360 may be optionally implemented as steps 362, 364, and 366:
[0169] Step 362, in response to the resurrection skill release operation, displaying a character restoration area; the character restoration area is used to restore the role model of the first virtual character corresponding to the first deceased individual.
[0170] The character restoration area is an area used to restore the character model of the first virtual character corresponding to the first deceased individual. Optionally, when restoring the character models of different virtual characters, at least one of the position, size, and shape of the character restoration area is different. The shape of the character restoration area may be cylindrical. For example, if the character restoration area is located directly in front of the virtual character to be resurrected, then the positions of different first deceased individuals are different, and the positions of the character restoration areas are different.
[0171] Exemplarily, the computer device displays a character restoration area in response to a resurrection skill release operation; the character restoration area is used to restore the character model of the first virtual character corresponding to the first deceased individual.
[0172] Step 364: In the character restoration area, restore the character model of the first virtual character corresponding to the first deceased individual.
[0173] The role model is used to represent the role image of the first virtual character. The role model may be a three-dimensional model. All or at least a part of the role model is the same as the role model of the first virtual character before death.
[0174] For example, the character model of the first virtual character corresponding to the first deceased individual has the same clothing, gestures, props, etc. as the character model of the first virtual character before death. A halo icon may be added directly above the head of the character model of the first virtual character corresponding to the first deceased individual to indicate that the first virtual character is the first virtual character after resurrection.
[0175] Optionally, the computer device restores the role model of the first virtual role corresponding to the first deceased individual in the role restoration area.
[0176] Step 366, in response to the completion of the restoration of the character model, the first deceased individual is switched to be displayed as the first virtual character after resurrection.
[0177] Optionally, in response to the character model restoration being completed, the computer device switches the first deceased individual to the first virtual character after resurrection. At this time, the computer device cancels the display element corresponding to the first deceased individual, while the display content of other virtual characters that have not been resurrected remains unchanged.
[0178] In this embodiment, the computer device can restore the role model of the first virtual character and switch the first deceased individual to the resurrected first virtual character, thereby ensuring the smoothness of the display.
[0179] Furthermore, when the movable carrier is displayed on the user interface at the same time, and the character information is displayed in the surrounding area of the movable carrier, step 362 may be optionally implemented as steps 372 and 374:
[0180] Step 372, in response to the resurrection skill release operation, play the release animation of the movable carrier.
[0181] The release animation refers to an animation in which the movable carrier moves from the current position to the position of the virtual character to be resurrected. The release animation is used to represent the release of the resurrection skill to the first virtual character corresponding to the first deceased individual. The release animation can be bound to the type of the movable carrier, or it can be a preset unified animation. For example: the movable carrier is a pet virtual character, and the release animation is that the pet virtual character flies from the current position to the front of the position of the virtual character to be resurrected. Then, in response to the resurrection skill release operation, the computer device plays the release animation of the pet virtual character flying from the current position to the front of the position of the virtual character to be resurrected.
[0182] Optionally, the computer device plays a release animation of the movable carrier in response to a resurrection skill release operation.
[0183] Step 374, in response to the release animation playing being completed, the character restoration area is displayed.
[0184] Optionally, the character restoration area may be formed by transformation of the movable carrier. Exemplarily, in response to completion of the release animation playback, the computer device displays the character restoration area formed by transformation of the movable carrier. The character model of the first virtual character may then be restored in the character restoration area.
[0185] In this embodiment, the computer device responds to the resurrection skill release operation, plays the release animation of the movable carrier, and then displays the character restoration area when the release animation is completed, so that the resurrection process of the movable carrier and the virtual character is more highly coupled, increasing the flexibility of the display.
[0186] Figure 6 A flowchart of an interactive method based on a virtual environment provided by an exemplary embodiment of the present application is shown. In some embodiments, when a computer device receives a resurrection skill selection operation, it can determine the first dead individual selected by the resurrection skill selection operation according to the position of the scanning box at this time. Specifically, the method further includes steps 520, 540 and 560:
[0187] Step 520: Determine a scanning range corresponding to the scanning frame based on the location of the scanning frame.
[0188] The scanning range corresponding to the scanning frame can be a fixed range, and can also be determined according to at least one of the health, level, and resurrection skill strength of the main virtual character currently controlled by the player. The size of the scanning range can be positively correlated with the health, level, and resurrection skill strength.
[0189] Exemplarily, the computer device determines a scanning range corresponding to the scanning frame based on the location of the scanning frame.
[0190] Step 540, determine the candidate killed individuals within the scanning range.
[0191] The candidate killed-in-battle individual refers to at least one killed-in-battle individual located within the scanning range of the scanning frame and can be selected as the first killed-in-battle individual.
[0192] Exemplarily, the computer device determines candidate killed-in-action individuals within the scanning range.
[0193] Step 560, based on the number of candidate killed individuals, determine the first killed individual selected by the scanning frame.
[0194] Optionally, the computer device determines the first individual killed in battle selected by the scanning frame based on the number of candidate individuals killed in battle. Specifically, the following two situations are included:
[0195] Case 1: Step 560 may be optionally implemented as step 562:
[0196] Step 562: When there is only one candidate killed-in-battle individual, the candidate killed-in-battle individual is determined as the first killed-in-battle individual selected by the scanning frame.
[0197] Exemplarily, when there is only one candidate individual killed in action, the computer device directly determines the candidate individual killed in action as the first individual killed in action selected by the scanning frame.
[0198] Second case: Step 560 may be optionally implemented as steps 564 and 568:
[0199] Step 564: When there are at least two candidate killed individuals, respectively determine the distance between the scanning center of the scanning frame and the individual center of each candidate killed individual.
[0200] The distance refers to the straight-line distance or projected straight-line distance between the scanning center of the scanning frame and the individual center of each candidate killed individual.
[0201] Optionally, when there are at least two candidate killed individuals, the computer device determines the distance between the scanning center of the scanning frame and the individual center of each candidate killed individual respectively.
[0202] Step 568: determine at least one candidate killed-in-battle individual corresponding to the shortest distance as the first killed-in-battle individual selected by the scanning frame.
[0203] Optionally, the computer device determines at least one candidate killed-in-battle individual corresponding to the shortest distance as the first killed-in-battle individual selected by the scanning frame.
[0204] In this embodiment, the computer device determines the candidate killed individuals within the scanning range of the scanning frame, and determines the first killed individual selected by the scanning frame based on the distance between the scanning center of the scanning frame and the individual center of each candidate killed individual, which can improve the accuracy of the selection.
[0205] In order to more clearly understand the interactive method based on a virtual environment provided by the embodiment of the present application, the method is described below in conjunction with a schematic diagram of a specific user interface. The method is executed by a computer device.
[0206] In the related art, there are the following problems:
[0207] 1. Most scanning locks need to be done through media such as cameras and drones, and cannot be aimed directly. For example, a virtual scene scan or special media is required to trigger the scanning mode. There is basically no function that can appear on the HUD after direct aiming, which loses some of the convenience and quick use function.
[0208] 2. When scanning and locking, the candidate objects in the virtual scene are all specific models. For example, the scanned objects are generally specific virtual characters, virtual props, virtual items, etc. When the player dies, the player may become a "box" or a soul in the virtual scene, and the player's characteristics will basically disappear. In this special virtual scene, it is impossible to quickly distinguish and identify the object.
[0209] 3. Most of the information displayed in games is directly pasted on the HUD of the UI plane layer, or simply given an immovable panel in the virtual scene for pasting. This display method has low interactivity and flexibility.
[0210] The method provided in the embodiment of the present application can solve the above-mentioned problems. When a player with resurrection skills or other special skills wants to release resurrection skills, he can accurately and quickly identify the identity of his teammates in the face of virtual scene special effects that have lost their own identity model characteristics. In this method, the character information of the virtual character corresponding to the selected deceased individual can be displayed with the help of an movable carrier in the virtual scene. At the same time, the displayed character information will be bound to the movable carrier. Since the movable carrier has its own activity track, it will also move the character information, increasing the interactivity and flexibility in the game. The design of the movable carrier can also meet the expression of the game world view and character design, achieving the effect of displaying character information while also being able to convey emotional design.
[0211] Front-end implementation of the interactive method based on the virtual environment:
[0212] 1. There are 3 teammates in the virtual scene, all of whom are in a normal survival state: Figure 7 As shown in the user interface 710, the user interface 710 displays three surviving virtual characters 712, 713, and 714. A revival operation button 711 may also be displayed in the user interface 710.
[0213] 2. After a teammate dies, he gradually turns into a soul: Take the death of virtual character 712 as an example. Figure 7 As shown in the user interface 720, after the virtual character 712 dies, the dead individual of the virtual character 712 is displayed in the form of upward floating particles 721. For example, the corresponding display elements after the virtual characters 712, 713, and 714 die are all block elements.
[0214] 3. When the player enters the skill pre-selection state, the player's hand will call out an active carrier (the elf on the palm), and the elf has its own bound standby action. At the same time, the crosshair (scanning frame) changes to the scanning state. At this time, there are 3 dead teammates in the virtual scene (souls to be resurrected): Figure 8 As shown in the user interface 730 in FIG. 7 , the user interface 730 displays a dead individual 731 after the death of the virtual character 712, a dead individual 732 after the death of the virtual character 713, and a dead individual 733 after the death of the virtual character 714. The dead individuals 731, 732, and 733 are displayed in the same form, all of which are displayed as block elements and particles (square light columns) floating upward. The user interface 730 also displays a palm 736, a sprite 735 on the palm 736, and a crosshair 734 in a scanning state.
[0215] 4. Select the teammate soul closest to the center of the crosshair as the target (the first individual to die), the crosshair becomes locked, and the character information of the selected teammate soul is quickly generated on the elf's head: Figure 8 As shown in the user interface 740 in FIG. 7 , the first deceased individual 731 is selected by the resurrection operation button 711, and the crosshair 734 in the scanning state is switched to the crosshair 741 in the locked state, and the character information 742 of the first virtual character corresponding to the first deceased individual 731 is quickly displayed on the elf's head.
[0216] 5. If the crosshair is removed during the display of step 4, the teammate soul closest to the center of the crosshair is reselected as the target, and the character information corresponding to the selected teammate soul is regenerated: Figure 8 As shown in the user interface 750 in FIG. 7 , the crosshairs are moved away by pressing the resurrection operation button 711 , and the second deceased individual 751 is selected at this time, and the character information 752 of the second virtual character corresponding to the second deceased individual 751 is quickly displayed above the elf's head.
[0217] 6. In the information panel above the elf's head, the character information corresponding to the selected teammate's soul is fully displayed: Fig. 9 As shown in the user interface 760 in FIG. 7 , all character information 762 of the second virtual character corresponding to the second deceased individual 751 is fully displayed on the elf's head.
[0218] 7. The information panel is bound to the head movement of the elf, and moves with the movement of the elf. It has its own perspective and movement. Compared with the HUD plane and the carrier fixed in the virtual scene, it is more flexible and dynamic: Fig. 9 As shown in user interface 770 in FIG. 1 , if the head of the elf is rotated by a certain angle, the information panel 762 is also rotated by a certain angle to be displayed as information panel 772 , so that the information panel is always parallel to the front of the elf.
[0219] 8. After the player confirms the teammates to be resurrected through the information panel, release the resurrection operation button to confirm the release of the resurrection skill. At this time, the 3P big move animation will begin, and the elf will fly out of the player's hand, entering the teammate resurrection stage: Fig.10 As shown in the user interface 780, the player releases the resurrection operation button to confirm the release of the resurrection skill, and the elf flies out from the player's hand. The user interface 780 shows a flying animation 782 of the elf flying from the current position to the front of the soul of the teammate to be resurrected.
[0220] 9. After the elf flies out, a teammate resurrection station will be generated in front of the teammate's soul to be resurrected and the teammate model will start to be printed. Resurrect the teammate: Fig.10 As shown in the user interface 790 in FIG. 7 , after the elf flies out, a teammate resurrection station 792 is generated in front of the teammate soul to be resurrected and the teammate model 793 is printed. Fig.10 As shown in the user interface 800, after the teammate model is printed, the teammate model 802 is displayed in the user interface 800, indicating that the teammate has been resurrected and has returned to the current game.
[0221] In some embodiments, the above method can also be applied to the carrier perspective of the movable carrier. In this case, only the subject perspective is changed, and other interactive expressions can be reused: Fig.11 As shown in the user interface 810, the user interface is displayed from the carrier perspective of the movable carrier, and the scanning box 812, the elf 811 and the information panel 813 can still be displayed in the user interface 810.
[0222] ·Backend implementation of the interactive method based on the virtual environment:
[0223] Fig.12 A schematic diagram of an interactive method based on a virtual scene provided by an exemplary embodiment of the present application is shown. The overall steps of the method are as follows:
[0224] 1. After a teammate dies, his body will turn into a soul effect (blocks and upward floating particles); execute 2;
[0225] 2. The player is ready to release a skill and enters the skill pre-selection state; execute 3;
[0226] 3. From the player's perspective, the crosshair (scanning frame) changes to scanning state; execute 4;
[0227] 4. Determine whether there is an object (candidate killed individual) that can be selected within the scanning range of the crosshair; if yes, execute 6; otherwise, execute 5;
[0228] 5. If there are no candidate objects within the scanning range of the crosshair, the crosshair will continue to scan;
[0229] 6. If there is a candidate object within the scanning range of the crosshair, determine whether there is more than one candidate object within the scanning range of the crosshair; if yes, execute 8; otherwise, execute 7;
[0230] 7. There is only one candidate object within the scanning range of the crosshair, and the object is directly locked, and step 11 is prepared to be executed;
[0231] 8. There are more than one candidate object within the scanning range of the crosshair. Assume that the object within the scanning range is A1, ..., An, and the straight-line distances between the midpoint of the object and the projection of the crosshair on the plane facing the player are D1, ..., Dn respectively; execute 9;
[0232] 9. Select the item Amin corresponding to the minimum distance Dmin in D1, ..., Dn as the selected object (the first individual killed); execute 10;
[0233] 10. Determine whether the selected object is changed by moving the crosshair during the selection period; if so, re-execute step 8 to re-determine the minimum distance Dmin; otherwise, execute step 11;
[0234] 11. If the crosshair is not moved to change the object during selection, an information panel for the selected object is generated; execute 12;
[0235] 12. Bind the movable carrier that generates the information panel so that the information panel moves along with the movement of the movable carrier; execute 13;
[0236] 13. The front coordinates of the real-time movable carrier are oriented to the coordinates (X, Y, Z); 14 and 15 are executed synchronously;
[0237] 14. Get the variable X0 of Z; execute 16;
[0238] 15. Get variable Z0 of X; execute 16;
[0239] 16. Calculate the orientation (X, Z) of the information panel in real time using the front coordinate orientation coordinate (X, Y, Z) of the movable carrier. The Y orientation is 0, which means that the information panel is parallel to the elf's face orientation. Execute 17.
[0240] 17. Display the corresponding information panel according to the orientation of the information panel; execute 18;
[0241] 18. Determine whether the crosshair is moved to change the selected object during the display period; if so, interrupt the generation process of the information panel and re-execute 8 to re-determine the minimum distance Dmin; otherwise, execute 19;
[0242] 19. Generate an information panel for the selected object, and the information panel moves along the coordinate direction of the movable carrier; execute 20;
[0243] 20. Determine whether the player has confirmed the current skill release target on the information panel; if yes, execute 21, otherwise keep the skill pre-selected;
[0244] 21. The player confirms the current skill release target through the information panel, enters the skill release phase, plays the skill resurrection animation, the elf flies out of the hand and generates a resurrection station, prints the teammate model in the resurrection station, resurrects the teammate, the skill release is completed, and the teammate returns to the current game.
[0245] In summary, the interactive method based on virtual scenes provided by the embodiments of the present application includes at least the following beneficial effects: 1. Real-time and fast: There is no need to enter any hacker or scanning mode. Players only need to trigger the resurrection skill selection operation to quickly obtain the character information of the virtual character corresponding to the selected dead individual. 2. Strong recognition: When scanning or selecting a model that has lost most of its identity features, the information panel can help players confirm the character information. 3. Greatly improve emotional design: It avoids the situation where the carrier of the general information panel is a suspended panel or a virtual object that is not autonomously active, and provides a new design idea for the projection or imaging application of the movable carrier, which increases the interactivity and flexibility among the player, the movable carrier, and the information display. Accordingly, the method can help players with resurrection skills to accurately select the dead individuals to be resurrected from multiple dead individuals with the same or similar display forms, and revive their corresponding virtual characters by using the resurrection skills, which can improve the efficiency of human-computer interaction.
[0246] Fig.13 The block diagram of the structure of an interactive device based on a virtual environment provided by an exemplary embodiment of the present application is shown. The interactive device based on a virtual environment 900 includes:
[0247] The display module 910 is used to display at least one killed individual in the virtual environment; the display forms of different killed individuals are the same or the similarity exceeds a threshold.
[0248] The display module 910 is used to display the character information of the first virtual character corresponding to the first deceased individual in response to the resurrection skill selection operation; the first deceased individual is one of the at least one deceased individual selected by the resurrection skill selection operation, and the first deceased individual is the display element corresponding to the first virtual character after the death.
[0249] The display module 910 is used to switch the display of the first deceased individual to the first virtual character after resurrection in response to the resurrection skill release operation.
[0250] In some embodiments, the display module 910 is used to display a scan box in response to the resurrection skill selection operation; the scan box is used to select the first deceased individual among the at least one deceased individual; and display the character information of the first virtual character corresponding to the first deceased individual selected by the scan box.
[0251] In some embodiments, the display module 910 is used to display the scanning box and the movable carrier in response to the resurrection skill selection operation; and to display the character information of the first virtual character corresponding to the first deceased individual selected by the scanning box in the surrounding area of the movable carrier; wherein the character information of the first virtual character is displayed following the movement of the movable carrier.
[0252] In some embodiments, the display module 910 is used to display an information panel in the peripheral area of the movable carrier; in the information panel, the character information of the first virtual character selected by the scanning box is displayed; wherein, the information panel is displayed following the movement of the movable carrier.
[0253] In some embodiments, the display module 910 is used to display a moved scan box in response to a moving operation; the moved scan box is used to select a second deceased individual among at least one deceased individual; and to display character information of a second virtual character corresponding to the second deceased individual selected by the moved scan box.
[0254] In some embodiments, the display module 910 is used to display a character restoration area in response to the resurrection skill release operation; the character restoration area is used to restore the character model of the first virtual character corresponding to the first deceased individual; in the character restoration area, the character model of the first virtual character corresponding to the first deceased individual is restored; in response to the completion of the character model restoration, the first deceased individual is switched to be displayed as the resurrected first virtual character.
[0255] In some embodiments, the display module 910 is used to play the release animation of the movable carrier in response to the resurrection skill release operation; in response to the completion of the release animation playback, display the character restoration area.
[0256] In some embodiments, the device further comprises: a processing module.
[0257] In some embodiments, the processing module is used to determine a scanning range corresponding to the scanning frame based on the location of the scanning frame; determine candidate killed individuals located in the scanning range; and determine the first killed individual selected by the scanning frame based on the number of the candidate killed individuals.
[0258] In some embodiments, the processing module is used to determine the distance between the scanning center of the scanning frame and the individual center of each of the candidate killed individuals when there are at least two candidate killed individuals; and determine at least one candidate killed individual corresponding to the shortest distance as the first killed individual selected by the scanning frame.
[0259] In some embodiments, the movable carrier includes a pet virtual character, and the surrounding area of the movable carrier includes the area directly above the head of the pet virtual character; the display module 910 is used to display the scanning box and the pet virtual character in response to the resurrection skill selection operation; and to display the character information of the first virtual character corresponding to the first deceased individual selected by the scanning box directly above the head of the pet virtual character.
[0260] In some embodiments, the processing module is used to obtain first plane information corresponding to the front of the pet virtual character; based on the first plane information, calculate second plane information corresponding to the information panel where the character information is located; the information panel is parallel to the front of the pet virtual character; based on the second plane information, the information panel is displayed directly above the head of the pet virtual character, and the character information of the first virtual character selected by the scanning box is displayed in the information panel.
[0261] It should be noted that the specific limitations in the embodiments of the one or more virtual environment-based interactive devices provided above can refer to the limitations of the virtual environment-based interactive methods above, which will not be repeated here. Each module of the above device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor of the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0262] Fig.14A structural block diagram of a computer device provided by an exemplary embodiment of the present application is shown.
[0263] The computer device 1000 may be a portable mobile terminal, which is also referred to as a mobile terminal in this embodiment. For example, a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), or an MP4 player (Moving Picture Experts Group Audio Layer IV). The computer device 1000 may also be referred to as a user device, a portable terminal, or other names.
[0264] Typically, the computer device 1000 includes a processor 1001 and a memory 1002 .
[0265] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0266] The memory 1002 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the virtual environment-based interaction method provided in the embodiments of the present application.
[0267] In some embodiments, the computer device 1000 may further include: a peripheral device interface 1003 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1004 , a touch display screen 1005 , a camera 1006 , an audio circuit 1007 and a power supply 1008 .
[0268] The peripheral device interface 1003 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0269] The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0270] The touch display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. The touch display screen 1005 is used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the touch display screen 1005 may be one, and the front panel of the computer device 1000 is set; in other embodiments, the touch display screen 1005 may be at least two, which are respectively set on different surfaces of the computer device 1000 or are folded; in some embodiments, the touch display screen 1005 may be a flexible display screen, which is set on a curved surface or a folded surface of the computer device 1000. Even, the touch display screen 1005 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The touch display screen 1005 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0271] The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize the shooting of photos or videos. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0272] The audio circuit 1007 is used to provide an audio interface between the user and the computer device 1000. The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1000. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1007 may also include a headphone jack.
[0273] The power supply 1008 is used to power various components in the computer device 1000. The power supply 1008 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1008 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0274] In some embodiments, the computer device 1000 further includes one or more sensors 1009 , including but not limited to: an acceleration sensor 1010 , a gyroscope sensor 1011 , a pressure sensor 1012 , an optical sensor 1013 , and a proximity sensor 1014 .
[0275] The acceleration sensor 1010 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1000. For example, the acceleration sensor 1010 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1001 can control the touch display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1010. The acceleration sensor 1010 can also be used for collecting game or user motion data.
[0276] The gyro sensor 1011 can detect the body direction and rotation angle of the computer device 1000, and the gyro sensor 1011 can cooperate with the acceleration sensor 1010 to collect the user's 3D actions on the computer device 1000. The processor 1001 can implement the following functions based on the data collected by the gyro sensor 1011: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0277] The pressure sensor 1012 can be set on the side frame of the computer device 1000 and / or the lower layer of the touch display screen 1005. When the pressure sensor 1012 is set on the side frame of the computer device 1000, it can detect the user's grip signal of the computer device 1000, and perform left and right hand recognition or shortcut operation according to the grip signal. When the pressure sensor 1012 is set on the lower layer of the touch display screen 1005, it can control the operability control on the UI interface according to the user's pressure operation on the touch display screen 1005. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0278] The optical sensor 1013 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the touch display screen 1005 according to the ambient light intensity collected by the optical sensor 1013. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is reduced. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1013.
[0279] The proximity sensor 1014, also called a distance sensor, is usually arranged on the front of the computer device 1000. The proximity sensor 1014 is used to collect the distance between the user and the front of the computer device 1000. In one embodiment, when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually decreasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually increasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-off state to the screen-on state.
[0280] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or adopt a different component arrangement.
[0281] In an exemplary embodiment, the present application provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a computer device, it is used to implement the virtual environment-based interaction method provided by the above method embodiment.
[0282] The present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the virtual environment-based interaction method provided by the above method embodiment.
[0283] The present application provides a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the processor of the computer device loads and executes to implement the interactive method based on a virtual environment provided by the above method embodiment.
[0284] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0285] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned computer-readable storage medium may be a read-only memory, a disk or an optical disk, etc.
[0286] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0287] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. An interactive method based on a virtual environment, characterized in that: The method comprises: Displaying at least one dead individual in the virtual environment; displaying forms of different dead individuals are the same or the similarity exceeds a threshold; In response to the resurrection skill selection operation, character information of a first virtual character corresponding to a first dead individual is displayed; the first dead individual is one of the at least one dead individual selected by the resurrection skill selection operation, and the first dead individual is a display element corresponding to the first virtual character after the death of the first virtual character; In response to the resurrection skill release operation, the first deceased individual is switched to be displayed as the first virtual character after resurrection.
2. The method according to claim 1, characterized in that The step of displaying the character information of the first virtual character corresponding to the first deceased individual in response to the resurrection skill selection operation includes: In response to the resurrection skill selection operation, a scanning box is displayed; the scanning box is used to select the first deceased individual among the at least one deceased individual; The character information of the first virtual character corresponding to the first deceased individual selected by the scanning frame is displayed.
3. The method according to claim 2, characterized in that In response to the resurrection skill selection operation, displaying a scan box; and displaying character information of the first virtual character corresponding to the first deceased individual selected by the scan box, include: In response to the resurrection skill selection operation, displaying the scanning frame and the movable carrier; Displaying, in the peripheral area of the movable carrier, the character information of the first virtual character corresponding to the first deceased individual selected by the scanning frame; The character information of the first virtual character is displayed following the movement of the movable carrier.
4. The method according to claim 3, characterized in that: The displaying of the character information of the first virtual character corresponding to the first deceased individual selected by the scanning frame in the peripheral area of the movable carrier includes: An information panel is displayed on the peripheral area of the movable carrier; In the information panel, the character information of the first virtual character selected by the scanning box is displayed; The information panel is displayed following the movement of the movable carrier.
5. The method according to claim 2, characterized in that: The method further comprises: In response to the moving operation, displaying a moved scanning frame; the moved scanning frame is used to select a second killed individual among the at least one killed individual; The character information of the second virtual character corresponding to the second deceased individual selected by the moved scanning frame is displayed.
6. The method according to any one of claims 1 to 5, characterized in that: In response to the resurrection skill release operation, switching and displaying the first deceased individual as the first virtual character after resurrection includes: In response to the resurrection skill release operation, a character restoration area is displayed; the character restoration area is used to restore the role model of the first virtual character corresponding to the first deceased individual; In the character restoration area, restoring the character model of the first virtual character corresponding to the first deceased individual; In response to the completion of restoration of the character model, the first deceased individual is switched to be displayed as the first virtual character after resurrection.
7. The method according to claim 6, characterized in that In response to the resurrection skill release operation, displaying the character restoration area includes: In response to the resurrection skill release operation, playing a release animation of the movable carrier; the release animation is used to represent the release of the resurrection skill to the first virtual character corresponding to the first deceased individual; In response to the release animation being played to completion, the character restoration area is displayed.
8. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: Based on the location of the scanning frame, determining a scanning range corresponding to the scanning frame; Determining candidate killed-in-action individuals within the scanning range; Based on the number of the candidate killed-in-battle individuals, the first killed-in-battle individual selected by the scanning frame is determined.
9. The method according to claim 8, characterized in that The step of determining the first individual killed in battle selected by the scanning frame based on the number of the candidate individuals killed in battle includes: When there are at least two candidate killed individuals, respectively determine the distance between the scanning center of the scanning frame and the individual center of each candidate killed individual; At least one candidate killed-in-battle individual corresponding to the shortest distance is determined as the first killed-in-battle individual selected by the scanning frame.
10. The method according to claim 3, characterized in that: The movable carrier includes a pet virtual character, and the peripheral area of the movable carrier includes the area directly above the head of the pet virtual character; In response to the resurrection skill selection operation, displaying the scanning frame and the movable carrier; In the peripheral area of the movable carrier, character information of the first virtual character corresponding to the first deceased individual selected by the scanning frame is displayed, including: In response to the resurrection skill selection operation, displaying the scan box and the pet virtual character; Right above the head of the pet virtual character, the character information of the first virtual character corresponding to the first deceased individual selected by the scanning frame is displayed.
11. The method according to claim 10, characterized in that The character information of the first virtual character corresponding to the first deceased individual selected by the scanning frame is displayed directly above the head of the pet virtual character, including: Acquire first plane information corresponding to the front side of the pet virtual character; Based on the first plane information, second plane information corresponding to the information panel where the character information is located is calculated; the information panel is parallel to the front side of the pet virtual character; Based on the second plane information, the information panel is displayed directly above the head of the pet virtual character, and the character information of the first virtual character selected by the scanning box is displayed in the information panel.
12. An interactive device based on a virtual environment, characterized in that: The device comprises: A display module, used for displaying at least one killed individual in the virtual environment; the display forms of different killed individuals are the same or the similarity exceeds a threshold; The display module is used to display the character information of the first virtual character corresponding to the first dead individual in response to the resurrection skill selection operation; the first dead individual is one of the at least one dead individual selected by the resurrection skill selection operation, and the first dead individual is the display element corresponding to the first virtual character after the death of the first virtual character; The display module is used to switch and display the first deceased individual as the first virtual character after resurrection in response to a resurrection skill release operation.
13. A computer device, characterized in that: The computer device comprises: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the virtual environment-based interaction method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the virtual environment-based interaction method according to any one of claims 1 to 11.
15. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor obtains the computer instructions from the computer-readable storage medium, so that the processor loads and executes them to implement the virtual environment-based interaction method as described in any one of claims 1 to 11.