Virtual resource display method and device, electronic equipment and storage medium
阅读说明:本技术 虚拟资源显示方法、装置、电子设备及存储介质 (Virtual resource display method and device, electronic equipment and storage medium ) 是由 姚丽 刘智洪 于 2020-07-09 设计创作,主要内容包括:本申请公开了一种虚拟资源显示方法、装置、电子设备及存储介质,属于计算机技术领域。本申请实施例中,通过在虚拟场景的至少一个目标虚拟道具被破坏时,在该虚拟场景中显示至少一个目标虚拟对象,为至少一个目标虚拟对象提供了一种灵活、趣味性高的显示触发方式,之后通过对该至少一个目标虚拟对象进行射击,能够控制该至少一个目标虚拟对象在该虚拟场景中进行移动,通过射击操作使得目标虚拟对象进行移动,这种新奇的控制方式能够有效提高趣味性,然后在该至少一个目标虚拟对象的位置符合第一目标条件时,可以显示目标虚拟资源,触发方式比较新奇,且能够促进用户的操作意愿,有效提高了虚拟资源显示方式的趣味性,显示效果更好。(The application discloses a virtual resource display method and device, electronic equipment and a storage medium, and belongs to the technical field of computers. In the embodiment of the application, when at least one target virtual prop of a virtual scene is damaged, at least one target virtual object is displayed in the virtual scene, a flexible and high-interest display triggering mode is provided for the at least one target virtual object, then the at least one target virtual object can be controlled to move in the virtual scene by shooting the at least one target virtual object, the target virtual object can be moved by shooting, the interestingness can be effectively improved by the novel control mode, then when the position of the at least one target virtual object meets a first target condition, target virtual resources can be displayed, the triggering mode is novel, the operation intention of a user can be promoted, the interestingness of a virtual resource display mode is effectively improved, and the display effect is better.)
1. A method for displaying virtual resources, the method comprising:
in response to at least one target virtual prop of a virtual scene being destroyed, displaying at least one target virtual object in the virtual scene;
controlling the at least one target virtual object to move in the virtual scene in response to a shooting operation on the at least one target virtual object;
in response to the position of the at least one target virtual object meeting a first target condition, displaying a target virtual resource in the virtual scene.
2. The method of claim 1, wherein said controlling the movement of the at least one target virtual object in the virtual scene in response to the firing operation on the at least one target virtual object comprises:
responding to the shooting operation of any one target virtual object, and controlling the controlled virtual object to shoot the target virtual object;
controlling the target virtual object to move in the virtual scene in response to the target virtual object being hit.
3. The method of claim 2, wherein said controlling the target virtual object to move in the virtual scene in response to the target virtual object being hit comprises:
controlling the target virtual object to move a target distance in the virtual scene in response to the target virtual object being hit once.
4. The method of claim 1, wherein the at least one target virtual object comprises a first target virtual object and a second target virtual object;
the displaying a target virtual resource in the virtual scene in response to the position of the at least one target virtual object meeting a first target condition, comprising:
in response to the first target virtual object reaching a first target location and the second target virtual object reaching a second target location, displaying a target virtual resource in the virtual scene.
5. The method of claim 4, wherein displaying a target virtual resource in the virtual scene in response to the first target virtual object reaching a first target location and the second target virtual object reaching a second target location comprises:
and responding to the first target virtual object reaching the first target position first and the second target virtual object reaching the second target position later, and displaying the target virtual resources in the virtual scene.
6. The method of claim 1, wherein said displaying at least one target virtual object in a virtual scene in response to at least one target virtual prop of the virtual scene being breached comprises:
in response to at least one target virtual prop of a virtual scene being destroyed, displaying the at least one target virtual object in the virtual scene at an initial display position of the at least one target virtual object;
the method further comprises the following steps:
in response to the position of the at least one target virtual object meeting a second target condition, displaying the at least one target virtual object back onto the initial display position.
7. The method of claim 6, wherein the at least one target virtual object comprises a first target virtual object and a second target virtual object;
said displaying said at least one target virtual object back onto said initial display position in response to said at least one target virtual object's position meeting a second target condition, comprising:
in response to the second target virtual object reaching a second target location but the first target virtual object not reaching the first target location, displaying the at least one target virtual object back onto the initial display position prior to the movement.
8. The method of claim 1, wherein in response to at least one target virtual prop of a virtual scene being breached, prior to displaying at least one target virtual object in the virtual scene, the method further comprises:
displaying at least one target virtual item in the virtual scene;
and responding to the shooting operation of any one target virtual prop, and controlling the controlled virtual object to shoot the target virtual prop.
9. The method of claim 1, wherein said displaying at least one target virtual object in a virtual scene in response to at least one target virtual prop of the virtual scene being breached comprises:
responsive to the durability of at least one target virtual item of a virtual scene dropping to zero, performing the step of displaying at least one target virtual object in the virtual scene.
10. The method of claim 1, further comprising:
and displaying a special effect in a target area where the at least one target virtual object is located in the virtual scene.
11. The method of claim 1, further comprising:
and in response to the destruction of any target virtual item, displaying a target animation, wherein the target animation is used for representing the destruction of the target virtual item.
12. The method of claim 1, further comprising:
in response to any one of the target virtual items being destroyed, displaying a virtual resource in the target virtual item at a position in the virtual scene corresponding to the target virtual item.
13. An apparatus for displaying virtual resources, the apparatus comprising:
a display module to display at least one target virtual object in a virtual scene in response to at least one target virtual item of the virtual scene being destroyed;
the control module is used for responding to the shooting operation of the at least one target virtual object and controlling the at least one target virtual object to move in the virtual scene;
the display module is further configured to display a target virtual resource in the virtual scene in response to the position of the at least one target virtual object meeting a first target condition.
14. An electronic device, comprising one or more processors and one or more memories having stored therein at least one program code, the at least one program code loaded into and executed by the one or more processors to perform operations performed by the virtual resource display method of any of claims 1 to 12.
15. A storage medium having stored therein at least one program code, the at least one program code being loaded into and executed by a processor to perform operations performed by a virtual resource display method according to any one of claims 1 to 12.
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying virtual resources, an electronic device, and a storage medium.
Background
With the development of multimedia technology and the diversification of terminal functions, more and more games can be played on the terminal. The shooting game is a more popular game, the terminal can display a virtual scene in the interface and display a virtual object in the virtual scene, the virtual scene can also display virtual resources, the virtual resources can be virtual props or virtual medicines, and the virtual object can pick up the virtual resources in the virtual scene to fight against other virtual objects.
At present, a virtual resource display method generally displays virtual resources at some places in a virtual scene when a competition starts, and a user can control a virtual object to search for the virtual resources at the corresponding place and approach the virtual resources to pick up the virtual resources. Alternatively, the virtual resources in the backpacks of other virtual objects are obtained by defeating the other virtual objects.
In the virtual resource display method, the virtual resources are displayed in the virtual scene at the beginning of the competition, the appearance mode is single, the interestingness is low, and the display effect of the virtual resources is poor.
Disclosure of Invention
The embodiment of the application provides a virtual resource display method and device, electronic equipment and a storage medium, provides a novel and novel virtual resource display triggering mode, can promote the operation will of a user, improves the interestingness of the virtual resource display mode, and improves the display effect of virtual resources. The technical scheme is as follows:
in one aspect, a virtual resource display is provided, the method comprising:
in response to at least one target virtual prop of a virtual scene being destroyed, displaying at least one target virtual object in the virtual scene;
controlling the at least one target virtual object to move in the virtual scene in response to a shooting operation on the at least one target virtual object;
in response to the position of the at least one target virtual object meeting a first target condition, displaying a target virtual resource in the virtual scene.
In one aspect, a virtual resource display apparatus is provided, the apparatus including:
a display module to display at least one target virtual object in a virtual scene in response to at least one target virtual item of the virtual scene being destroyed;
the control module is used for responding to the shooting operation of the at least one target virtual object and controlling the at least one target virtual object to move in the virtual scene;
the display module is further configured to display a target virtual resource in the virtual scene in response to the position of the at least one target virtual object meeting a first target condition.
In one aspect, an electronic device is provided and includes one or more processors and one or more memories, where at least one program code is stored in the one or more memories and loaded by the one or more processors and executed to implement the operations performed by the virtual resource display method according to any one of the above aspects and any one of the possible implementations of any one of the above aspects.
In one aspect, a storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the operations performed by the virtual resource display method according to any one of the above aspects and any one of the possible implementation manners of the above aspects.
In one aspect, a computer program product or computer program is provided that includes one or more program codes stored in a computer-readable storage medium. One or more processors of the computer device can read the one or more program codes from the computer-readable storage medium, and the one or more processors execute the one or more program codes, so that the electronic device can execute the virtual resource display method of any one of the above-mentioned possible embodiments.
In the embodiment of the application, when at least one target virtual prop of a virtual scene is damaged, at least one target virtual object is displayed in the virtual scene, a flexible and interesting display triggering mode is provided for the at least one target virtual object, then the at least one target virtual object can be controlled to move in the virtual scene by shooting the at least one target virtual object, the target virtual object can be moved by the shooting operation instead of directly controlling the action of the target virtual object, the interest can be effectively improved by the novel control mode, then when the position of the at least one target virtual object meets a first target condition, target virtual resources can be displayed, a novel virtual resource display triggering mode is provided, and the target virtual resources need to be displayed through the operation triggering mode, the virtual resources are not directly displayed in the virtual scene when the competition starts, the triggering mode is novel, the operation intention of the user can be promoted, the interestingness of the virtual resource display mode is effectively improved, and the display effect of the virtual resources is better.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a virtual resource display method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a virtual resource display method according to an embodiment of the present application;
fig. 3 is a flowchart of a virtual resource display method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 9 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 10 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 11 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
fig. 12 is a flowchart of a virtual resource display method according to an embodiment of the present application;
FIG. 13 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 14 is a schematic diagram of a terminal interface provided by an embodiment of the present application;
FIG. 15 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
fig. 16 is a schematic structural diagram of a virtual resource display device according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of a
fig. 18 is a schematic structural diagram of a server 1800 according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms "first," "second," and the like in this application are used for distinguishing between similar items and items that have substantially the same function or similar functionality, and it should be understood that "first," "second," and "nth" do not have any logical or temporal dependency or limitation on the number or order of execution.
The term "at least one" in this application refers to one or more than one, "at least two" refers to two or more than two, e.g., at least two node devices refers to two or more than two node devices.
Hereinafter, terms related to the present application are explained.
Virtual scene: is a virtual scene that is displayed (or provided) by an application program when the application program runs on a terminal. The virtual scene may be a simulation environment of a real world, a semi-simulation semi-fictional virtual environment, or a pure fictional virtual environment. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene, and the dimension of the virtual scene is not limited in the embodiment of the present application. For example, a virtual scene may include sky, land, ocean, etc., the land may include environmental elements such as deserts, cities, etc., and a user may control a virtual object to move in the virtual scene.
Virtual object: refers to a movable object in a virtual scene. The movable object can be a virtual character, a virtual animal, an animation character, etc., such as: characters, animals, plants, oil drums, walls, stones, etc. displayed in the virtual scene. The virtual object may be an avatar in the virtual scene that is virtual to represent the user. The virtual scene may include a plurality of virtual objects, each virtual object having its own shape and volume in the virtual scene and occupying a portion of the space in the virtual scene.
Alternatively, the virtual object may be a Player Character controlled by an operation on the client, an Artificial Intelligence (AI) set in the virtual scene fight by training, or a Non-Player Character (NPC) set in the virtual scene interaction. Alternatively, the virtual object may be a virtual character playing a game in a virtual scene. Optionally, the number of virtual objects participating in the interaction in the virtual scene may be preset, or may be dynamically determined according to the number of clients participating in the interaction.
Taking a shooting game as an example, the user may control a virtual object to freely fall, glide, open a parachute to fall, run, jump, climb, bend over, and move on the land, or control a virtual object to swim, float, or dive in the sea, or the like, but the user may also control a virtual object to move in the virtual scene by riding a virtual vehicle, for example, the virtual vehicle may be a virtual car, a virtual aircraft, a virtual yacht, and the like, and the above-mentioned scenes are merely exemplified, and the present invention is not limited to this. The user can also control the virtual object to interact with other virtual objects in a fighting mode and other modes through the target virtual object, for example, the virtual weapon can be a throwing target virtual object such as a grenade, a cluster mine, a smoke bomb, a combustion bottle or a viscous grenade (called "viscous mine" for short), or a shooting target virtual object such as a machine gun, a pistol, a rifle and the like, and the type of the virtual weapon is not specifically limited in the application.
Fig. 1 is a schematic diagram of an implementation environment of a virtual resource display method provided in an embodiment of the present application, and referring to fig. 1, the implementation environment includes: a first terminal 120, a server 140, and a second terminal 160.
The first terminal 120 is installed and operated with an application program supporting a virtual scene. The application program may be any one of a First-Person shooter game (FPS), a third-Person shooter game, a Multiplayer Online Battle Arena game (MOBA), a virtual reality application program, a three-dimensional map program, a military simulation program, or a Multiplayer gunfight type live game. The first terminal 120 may be a terminal used by a first user, who uses the first terminal 120 to operate a first virtual object located in a virtual scene for activities including, but not limited to: adjusting at least one of body posture, crawling, walking, running, riding, jumping, driving, picking, shooting, attacking, throwing. Illustratively, the first virtual object is a first virtual character, such as a simulated persona or an animated persona. Illustratively, the first virtual object may be a first virtual animal, such as a simulated monkey or other animal.
The first terminal 120 and the second terminal 160 are connected to the server 140 through a wireless network or a wired network.
The server 140 may include at least one of a server, a plurality of servers, a cloud computing platform, or a virtualization center. The server 140 is used to provide background services for applications that support virtual scenarios. Alternatively, the server 140 may undertake primary computational tasks and the first and second terminals 120, 160 may undertake secondary computational tasks; alternatively, the server 140 undertakes the secondary computing work and the first terminal 120 and the second terminal 160 undertakes the primary computing work; alternatively, the server 140, the first terminal 120, and the second terminal 160 perform cooperative computing by using a distributed computing architecture.
Illustratively, the first terminal 120 and the second terminal 160 may transmit the generated data to the server 140, the server 140 may verify the data generated by itself with the data generated by the terminals, and if the verification result with any terminal indicates that the data is inconsistent, the data generated by the server may be transmitted to any terminal, and the data generated by any terminal is subject to the data generated by the server.
The second terminal 160 is installed and operated with an application program supporting a virtual scene. The application program can be any one of an FPS, a third person named shooting game, an MOBA, a virtual reality application program, a three-dimensional map program, a military simulation program or a multi-person gunfight survival game. The second terminal 160 may be a terminal used by a second user, who uses the second terminal 160 to operate a second virtual object located in the virtual scene for activities including, but not limited to: adjusting at least one of body posture, crawling, walking, running, riding, jumping, driving, picking, shooting, attacking, throwing. Illustratively, the second virtual object is a second virtual character, such as a simulated persona or an animated persona. Illustratively, the second virtual object may be a second virtual animal, such as a simulated monkey or other animal.
Optionally, the first virtual object controlled by the first terminal 120 and the second virtual object controlled by the second terminal 160 are in the same virtual scene, and the first virtual object may interact with the second virtual object in the virtual scene. In some embodiments, the first virtual object and the second virtual object may be in a hostile relationship, for example, the first virtual object and the second virtual object may belong to different teams and organizations, and the hostile virtual objects may interact with each other in a mutual shooting manner on land.
In other embodiments, the first virtual object and the second virtual object may be in a teammate relationship, for example, the first virtual character and the second virtual character may belong to the same team, the same organization, have a friend relationship, or have temporary communication rights.
Alternatively, 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 application of different operating system platforms. The first terminal 120 may generally refer to one of a plurality of terminals, and the second terminal 160 may generally refer to one of a plurality of terminals, and this embodiment is only illustrated by the first terminal 120 and the second terminal 160. The device types of the first terminal 120 and the second terminal 160 are the same or different, and include: at least one of a smart phone, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III), an MP4(Moving Picture Experts Group Audio Layer IV), a laptop portable computer, and a desktop computer. For example, the first terminal 120 and the second terminal 160 may be smart phones, or other handheld portable gaming devices. The following embodiments are illustrated with the terminal comprising a smartphone.
Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals may be only one, or several tens or hundreds of the terminals, or more. The number of terminals and the type of the device are not limited in the embodiments of the present application.
Fig. 2 is a flowchart of a virtual resource display method provided in an embodiment of the present application, and referring to fig. 2, the method may include the following steps:
201. the terminal responds to the destruction of at least one target virtual item of the virtual scene, and displays at least one target virtual object in the virtual scene.
The target virtual item is a virtual item capable of interacting with a virtual object. For the virtual props, some virtual props can be used by virtual objects, for example, shooting type virtual props, throwing type virtual props, etc., and some virtual props can be triggered by virtual object shooting, the target virtual props are used for providing virtual resources, and a user needs to control the virtual objects to shoot the target virtual props, and destroy the target virtual props to trigger the display of the virtual resources. The target virtual item is also used for triggering display of at least one target virtual object, and the user can trigger display of the at least one target virtual object when the target virtual item is damaged. The at least one target virtual object is used to trigger display of a target virtual resource.
The user can control the controlled virtual object to attack the target virtual item by using the shooting type virtual item or the throwing type virtual item in the virtual scene through operating on the terminal.
In one possible implementation, a durability may be set for the target virtual item, and when the durability of the target virtual item drops to zero, the target virtual item is considered to be destroyed.
In one possible implementation, the target virtual item may be a movable virtual item, for example, the target virtual item may be movable within a certain range of positions. For example, the target virtual prop may be a ricochet, the ricochet may be a kind of bomb that can jump in a virtual scene, and the user may control the controlled virtual object to shoot the ricochet, so that the ricochet explodes.
202. The terminal responds to the shooting operation of the at least one target virtual object and controls the at least one target virtual object to move in the virtual scene.
After the terminal displays the at least one target virtual object, the at least one target virtual object can move in a virtual scene when being shot, if the at least one target virtual object is not shot, the at least one target virtual object can keep a static state, and when the shooting operation of the at least one target virtual object is detected, the at least one target virtual object can be controlled to move in the virtual scene.
203. And the terminal responds to the condition that the position of the at least one target virtual object meets the first target condition, and displays the target virtual resource in the virtual scene.
In the embodiment of the application, a first target condition is set for the position of at least one target virtual object, and the first target condition is a display trigger condition of a target virtual resource. Therefore, the position of the at least one target virtual object is changed by shooting the at least one target virtual object, so that the first target condition is met, the display of the target virtual resource is triggered, compared with a mode of displaying the target virtual resource in a virtual scene at the beginning of a competition, the display of the target virtual resource can be effectively guided to operate by a user, the display of the target virtual resource is triggered by the user operation, the display mode is more interesting and novel, the interestingness of the virtual resource display mode is effectively improved, and the display effect of the virtual resource is better.
In the embodiment of the application, when at least one target virtual prop of a virtual scene is damaged, at least one target virtual object is displayed in the virtual scene, a flexible and interesting display triggering mode is provided for the at least one target virtual object, then the at least one target virtual object can be controlled to move in the virtual scene by shooting the at least one target virtual object, the target virtual object can be moved by shooting operation instead of directly controlling the action of the target virtual object, the novel control mode can effectively improve the interest, then when the position of the at least one target virtual object meets a first target condition, target virtual resources can be displayed, a novel virtual resource display triggering mode is provided, and the target virtual resources need to be displayed through the operation triggering, the virtual resources are not directly displayed in the virtual scene when the competition starts, the triggering mode is novel, the operation intention of the user can be promoted, the interestingness of the virtual resource display mode is effectively improved, and the display effect of the virtual resources is better.
Fig. 3 is a flowchart of a virtual resource display method provided in an embodiment of the present application, and referring to fig. 3, the method may include the following steps:
301. and the terminal displays at least one target virtual item in the virtual scene.
The at least one target virtual item may be displayed in the virtual scene at the beginning of the competition, or may be called by a virtual object, specifically, the following two cases.
In case one, the target virtual item may be displayed on the ground of the virtual scene or on a virtual article. In one possible implementation, the at least one target virtual item may be located at a specific location in the virtual scene, for example, the at least one target virtual item may be at least one ricochet, the at least one ricochet may be located in a "circus" in the virtual scene, and the "circus" is a location in the virtual scene, as shown in fig. 4, and in the user graphical interface 400, the location of the circus may be viewed through a small map 401. As shown in fig. 5, the user controls the controlled virtual object to arrive at the circus point, enters a certain building of the circus, and displays a plurality of
In one possible implementation, the target virtual item is a movable virtual item. The terminal can display that the at least one target virtual item moves in the virtual scene. For example, as shown in fig. 5, the terminal may display a plurality of
In case two, the at least one target virtual item is called by the virtual object. The terminal can display a calling control in the virtual scene, when a user calls the target virtual prop, the calling control can be triggered, and the terminal can receive a trigger signal of the calling control and generate a creation instruction, so that the target virtual prop can be created in response to the creation instruction. The calling control is used for calling the target virtual prop to enter the virtual scene, and the shape of the calling control can be a button which is displayed in a suspended mode in the virtual scene.
302. And the terminal responds to the shooting operation of any one target virtual prop and controls the controlled virtual object to shoot the target virtual prop.
After the terminal displays at least one target virtual item, the user can carry out shooting operation to attack any one target virtual item so as to obtain virtual resources in the target virtual item. The terminal detects the shooting operation and can control the controlled virtual object to shoot the target virtual prop.
In a possible implementation manner, a durability may be set for the target virtual prop, the terminal controls the virtual object to shoot the target virtual prop, and the durability of the target virtual prop is consumed when the target virtual prop is hit.
303. The terminal responds to the destruction of at least one target virtual item of the virtual scene, and displays at least one target virtual object in the virtual scene.
Through the step 302, the terminal controls the controlled virtual object to shoot the target virtual item, and if the durability of the target virtual item is reduced to zero, the target virtual item can be considered to be damaged. The user can control the controlled virtual objects to destroy at least one target virtual item one by one, and when all the target virtual items are destroyed, the at least one target virtual object can be triggered to be displayed in the virtual scene.
In a possible implementation manner, when the target virtual prop is damaged, the effect that the target virtual prop is damaged can be reflected through the animation, so that a prompt effect is achieved, and the impression of a user is improved. Specifically, the terminal may display a target animation in response to any one of the target virtual items being destroyed, where the target animation is used to represent that the target virtual item is destroyed. For example, the target animation may be a deformation animation through which a process of deformation of the target virtual item is expressed, or the target animation may be a special effect animation, such as an explosion special effect animation. As shown in fig. 6, a user attacks a target
In one possible implementation, the virtual resources in the target virtual item can drop out when the target virtual item is destroyed. Specifically, the terminal responds to the fact that any one of the target virtual items is damaged, and virtual resources in the target virtual item are displayed at a position corresponding to the target virtual item in the virtual scene. The virtual resources in the attack target virtual prop are acquired through the attack target virtual prop, a virtual resource providing mode is provided, the intention of user operation is promoted, the interactivity between the user and the virtual prop is improved, and the interestingness of the virtual resource acquiring process is further improved. For example, as shown in fig. 7, the user attacks the ricochet so that the
In a possible implementation manner, the terminal may further display a special effect in a target area where the at least one target virtual object is located in the virtual scene, and prompt the user of the target virtual object appearing here through the special effect. Therefore, other prompts are not needed, the user spontaneously discovers the target virtual object and further discovers how to trigger the display of the target virtual resource. For example, as shown in FIG. 8, a special effect 800 may be displayed in a display area of a target virtual object.
The step 302 and the step 303 are processes of executing the step of displaying at least one target virtual object in the virtual scene in response to that the durability of at least one target virtual item of the virtual scene is reduced to zero, and a user may control a controlled virtual object to attack the at least one target virtual item, where the number of the at least one target virtual item may be one or multiple, and if the number of the at least one target virtual item is multiple, when all the multiple target virtual items are damaged, the at least one target virtual object may be displayed. The number of the at least one target virtual object may be one or multiple, and the number of the target virtual items and the number of the target virtual objects are not limited in the embodiment of the present application.
304. The terminal responds to the shooting operation of any target virtual object and controls the controlled virtual object to shoot the target virtual object.
The at least one target virtual object is used for providing a target virtual resource, and the user needs to shoot the target virtual object to drive the target virtual object to move.
It should be noted that, a user may detect the view angle adjustment operation through the view angle adjustment operation, and may determine the target rotation angle of the view angle according to the view angle adjustment operation, so as to control the view angle of the virtual scene to rotate the target rotation angle. Through this visual angle adjustment operation, the user can adjust the position of aiming, can shoot the operation when the position that the affirmation was aimed, and the user can aim at the virtual object of target through this visual angle adjustment operation, and then shoots this virtual object of target through shooting the operation.
305. And the terminal controls the target virtual object to move in the virtual scene in response to the target virtual object being hit.
If the target virtual object is hit, the target virtual object may move in the virtual scene. If the target virtual object is not hit, it will stay in place.
In one possible implementation, the terminal controls the target virtual object to move a target distance in the virtual scene in response to the target virtual object being hit once. Therefore, the user can continuously keep shooting operation, and the terminal can control the target virtual object to move all the time when detecting the shooting operation so as to adjust the position of the target virtual object until the shooting operation is stopped. Through the setting of the target distance, an accurate moving operation mode can be provided for a user, and the target virtual object can be accurately moved to the position required by the user.
The target distance may be set by a related technician as required, which is not limited in the embodiment of the present application.
It should be noted that, the above steps 304 and 305 are processes for controlling the at least one target virtual object to move in the virtual scene in response to the shooting operation of the at least one target virtual object, and the processes may also adopt other manners, for example, a target moving speed may also be set for the movement of the target virtual object, and the target moving speed may be determined according to the number of times of being hit by the target virtual object, for example, the target moving speed may be directly related to the number of times of being hit. The embodiment of the present application does not specifically limit which manner is used.
306. And the terminal responds to the condition that the position of the at least one target virtual object meets the first target condition, and displays the target virtual resource in the virtual scene.
In the embodiment of the application, the trigger condition can be set for the display of the target virtual resource, compared with a mode that the virtual resource is displayed in a virtual scene at the beginning of competition in the related technology, a flexible and interesting display trigger mode is provided, the moving mode of the target virtual object is controlled by shooting the target virtual object, the interest can be effectively improved, the interaction between a user and a virtual prop is improved, the operation intention of the user can be promoted, the interest of the virtual resource display mode is effectively improved, and the display effect of the virtual resource is better.
In one possible implementation manner, two target virtual objects may be set, and specifically, the at least one target virtual object includes a first target virtual object and a second target virtual object, for example, as shown in fig. 9, the first target virtual object may be a virtual rabbit 901, and the second target virtual object may be a virtual tortoise 902.
Accordingly, the first target condition may be that the first target virtual object reaches the first target position and the second target virtual object reaches the second target position, that is, in step 306, the terminal may display the target virtual resource in the virtual scene in response to that the first target virtual object reaches the first target position and the second target virtual object reaches the second target position.
The first target position and the second target position may be set by a related technician as required, and may be the same as or different from each other, which is not limited in the embodiment of the present application.
Through the setting of above-mentioned first target location and second target location, improve the complexity of user operation, improve the interest of user operation, and then provide a nimble, novel virtual resource's the acquisition mode, improved the interest of virtual resource's demonstration, virtual resource's display effect is better.
In a possible implementation manner, an arrival time sequence can be set for the positions of the two target virtual objects, and when the arrival time sequence also meets the condition, the target virtual resources can be triggered to be displayed. Specifically, the terminal may respond that the first target virtual object reaches the first target position first and the second target virtual object reaches the second target position later, and display the target virtual resource in the virtual scene. That is, a first time that the first target virtual object reaches the first target location is prior to a second time that the second target virtual object reaches the second target location.
In the step 303, the at least one target virtual object is displayed at the initial display position, and if the position of the at least one target virtual object does not meet the first target condition but meets the second target condition, the at least one target virtual object may be controlled to return to the original position, and the at least one target virtual object may be controlled to move again. That is, in step 303, the terminal may display the at least one target virtual object in the virtual scene at the initial display position of the at least one target virtual object in response to the at least one target virtual item of the virtual scene being damaged, and in step 304, the terminal may display the at least one target virtual object back to the initial display position in response to the position of the at least one target virtual object meeting the second target condition.
In implementations where the at least one target virtual object includes a first target virtual object and a second target virtual object, the second target condition may be that the second target virtual object reaches a second target location, but the first target virtual object does not reach the first target location. Specifically, the terminal may display the at least one target virtual object back to the initial display position before the movement in response to the second target virtual object reaching the second target position but the first target virtual object not reaching the first target position. Through the setting, the mobile rule is set for the two target virtual objects, the trigger condition is set for the display of the target virtual resource, the complexity of user operation is improved, the operation intention of a user is promoted, and the interestingness is enhanced.
Optionally, the terminal may cancel the display of the first target virtual object and the second target virtual object when the virtual resource is targeted.
For example, in one particular example, the first target virtual object may be a virtual rabbit and the second target virtual object may be a virtual turtle. As shown in fig. 10, the terminal may display a virtual tree 1001 at a first target location and a race stop flag 1002 at a second target location, and if the user controls a virtual rabbit to reach the virtual tree first and then controls a virtual turtle to reach a stop, the display of the target virtual resource may be triggered, and the target virtual resource 1100 may be as shown in fig. 11. The virtual turtles and virtual rabbits disappeared. If the user controls the virtual tortoise to reach the end point first and does not control the virtual rabbit to reach the virtual tree, the virtual rabbit and the virtual tortoise can be controlled to return to the original point.
After the terminal displays the target virtual resource, the user can control the controlled virtual object to be close to the target virtual resource to pick up the target virtual resource. Specifically, when the distance between the virtual object corresponding to the terminal and the target virtual resource is smaller than a target threshold, a pickup option of the target virtual resource is displayed in the virtual scene, when a trigger operation on the pickup option is detected, the terminal may control the virtual object to pick up the target virtual resource, and after the pickup is completed, the target virtual resource is displayed on a target portion of the virtual object in the virtual scene, so as to indicate that the virtual object is equipped with the target virtual resource.
The target virtual resource may be a higher level resource relative to other virtual resources, e.g., a powerful equipment. Advanced equipment is obtained through complex operation, a more interesting obtaining mode can be provided for a user, and the interestingness of the display mode of the virtual resources is improved.
Optionally, the method for displaying the virtual resource may be provided in one competition mode, and the virtual resource may be displayed in other manners in other competition modes. The terminal can respond that the current competition mode is the target competition mode, execute the steps and achieve display of the virtual resources. For example, the target competition mode is a chicken eating mode.
As shown in fig. 12, in the method flow 1200, when a chicken eating mode is entered when starting a competition, the terminal may perform a step 1201 of determining whether a circus group position is reached, and if so, may perform a step 1202 of displaying a ricochet; if not, the method returns to the initial detection continuation. Where the jump is full, the player starts to use the weapon to destroy the jump, which is substantially the same as a character model, and has a damage detection box on his body, so that when the bullet is fired using the weapon, the bullet detects the physical crash box on his body, and then the damage can be calculated as if attacking an enemy, and the
In the embodiment of the application, when at least one target virtual prop of a virtual scene is damaged, at least one target virtual object is displayed in the virtual scene, a flexible and interesting display triggering mode is provided for the at least one target virtual object, then the at least one target virtual object can be controlled to move in the virtual scene by shooting the at least one target virtual object, the target virtual object can be moved by shooting operation instead of directly controlling the action of the target virtual object, the novel control mode can effectively improve the interest, then when the position of the at least one target virtual object meets a first target condition, target virtual resources can be displayed, a novel virtual resource display triggering mode is provided, and the target virtual resources need to be displayed through the operation triggering, the virtual resources are not directly displayed in the virtual scene when the competition starts, the triggering mode is novel, the operation intention of the user can be promoted, the interestingness of the virtual resource display mode is effectively improved, and the display effect of the virtual resources is better.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
Fig. 16 is a schematic structural diagram of a virtual resource display device according to an embodiment of the present application, please refer to fig. 16, where the device includes:
a
a
the
In one possible implementation, the
responding to the shooting operation of any target virtual object, and controlling the controlled virtual object to shoot the target virtual object;
in response to the target virtual object being hit, controlling the target virtual object to move in the virtual scene.
In one possible implementation, the
In one possible implementation, the at least one target virtual object includes a first target virtual object and a second target virtual object;
the
In one possible implementation, the
In one possible implementation, the
in one possible implementation, the
In one possible implementation, the at least one target virtual object includes a first target virtual object and a second target virtual object;
the
In one possible implementation, the
the
In one possible implementation, the
In one possible implementation manner, the
In one possible implementation, the
In one possible implementation, the
and responding to the damage of any one target virtual item, and displaying the virtual resource in the target virtual item at the position corresponding to the target virtual item in the virtual scene.
It should be noted that: in the virtual resource display apparatus provided in the foregoing embodiment, when displaying virtual resources, only the division of the functional modules is exemplified, and in practical applications, the function allocation may be completed by different functional modules according to needs, that is, the internal structure of the electronic device may be divided into different functional modules to complete all or part of the functions described above. In addition, the virtual resource display apparatus and the virtual resource display method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the virtual resource display method embodiments, and are not described herein again.
The electronic device may be provided as a terminal shown in fig. 17 described below, or may be provided as a server shown in fig. 18 described below, which is not limited in this embodiment of the present application.
Fig. 17 is a schematic structural diagram of a terminal 1700 according to an embodiment of the present application, where the terminal 1700 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1700 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
In general, terminal 1700 includes: a
The
The
In some embodiments, terminal 1700 may also optionally include: a
The
The
The
The
The
The
In some embodiments, terminal 1700 also includes one or more sensors 1710. The one or more sensors 1710 include, but are not limited to: acceleration sensor 1711, gyro sensor 1712, pressure sensor 1713, fingerprint sensor 1714, optical sensor 1715, and proximity sensor 1716.
The acceleration sensor 1711 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the
The gyro sensor 1712 may detect a body direction and a rotation angle of the terminal 1700, and the gyro sensor 1712 may cooperate with the acceleration sensor 1711 to acquire a 3D motion of the user on the
Pressure sensors 1713 may be disposed on the side frames of terminal 1700 and/or
The fingerprint sensor 1714 is configured to capture a fingerprint of the user, and the
The optical sensor 1715 is used to collect the ambient light intensity. In one embodiment, the
Proximity sensors 1716, also known as distance sensors, are typically disposed on the front panel of terminal 1700. Proximity sensor 1716 is used to gather the distance between the user and the front face of terminal 1700. In one embodiment, when proximity sensor 1716 detects that the distance between the user and the front surface of terminal 1700 is gradually reduced,
Those skilled in the art will appreciate that the architecture shown in fig. 17 is not intended to be limiting with respect to terminal 1700, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
Fig. 18 is a schematic structural diagram of a server 1800 according to an embodiment of the present application, where the server 1800 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1801 and one or more memories 1802, where the memory 1802 stores at least one program code, and the at least one program code is loaded and executed by the processors 1801 to implement the method steps on the server side in the virtual resource display method according to the foregoing embodiments. Of course, the server 1800 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server 1800 may also include other components for implementing device functions, which are not described herein again.
In an exemplary embodiment, a computer readable storage medium, such as a memory including at least one program code, which is executable by a processor in an electronic device to perform the virtual resource display method in the above embodiments, is also provided. For example, the computer-readable storage medium may be a ROM (Read-Only Memory), a RAM (Random-Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or a computer program is also provided, which comprises one or more program codes, which are stored in a computer-readable storage medium. The one or more program codes can be read from the computer-readable storage medium by one or more processors of the computer device, and the one or more processors execute the one or more program codes, so that the electronic device can execute the virtual resource display method.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:导航数据的处理方法及装置、存储介质、电子设备