Material picking method and device, electronic equipment and computer readable storage medium
By automatically picking virtual materials in the game, the problem of inefficient manual pickup of players is solved, and a more efficient gaming experience is achieved.
Patent Information
- Application Number
- CN202510428858.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2045-04-07
AI Technical Summary
In the game, when players obtain virtual materials through picking, the picking efficiency is inefficient and requires manual operation.
The game screen is displayed through a graphical user interface, and in response to the orientation adjustment and movement of the controlled virtual character, it determines whether there are pickable virtual materials within its field of view, and automatically picks them up in the presence.
It improves the efficiency of picking virtual materials, saves computer resources manually picked up by players, and improves the game experience.
Smart Images

Figure CN120022602A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a material picking method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the development of the Internet, games have become a common form of entertainment. In games, players can use virtual materials to complete game tasks, and players can obtain virtual materials by picking them up or purchasing them.
[0003] If virtual supplies are obtained by picking up, players need to pick up the virtual supplies manually when they encounter them, and the efficiency of picking up virtual supplies is low. Summary of the invention
[0004] The embodiments of the present application provide a material picking method, device, electronic device and computer-readable storage medium, which can virtualize the material picking efficiency.
[0005] In a first aspect, an embodiment of the present application provides a material picking method, wherein a game screen is displayed through a graphical user interface, the game screen includes at least part of a game scene, the game scene includes a controlled virtual character, and the method includes:
[0006] In response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, determining the current field of view of the controlled virtual character in the game field of view corresponding to the game screen, and judging whether there is a first virtual material that can be picked up within the current field of view;
[0007] In the case that there is a first virtual material that can be picked up within the current field of view of the controlled virtual character, an automatic picking operation is performed on the first virtual material within a preset range from the controlled virtual character.
[0008] In a second aspect, an embodiment of the present application further provides a material picking device, which displays a game screen through a graphical user interface, wherein the game screen includes at least part of a game scene, and the game scene includes a controlled virtual character, and the device includes:
[0009] a determination module, configured to determine a current field of view of the controlled virtual character in a game field of view corresponding to the game screen in response to a direction adjustment operation and / or a movement control operation of the controlled virtual character, and to determine whether there is a first virtual material that can be picked up within the current field of view;
[0010] The picking module is used to automatically pick up the first virtual material within a preset range from the controlled virtual character when there is a first virtual material that can be picked up within the current field of view of the controlled virtual character.
[0011] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory storing a plurality of instructions; the above-mentioned processor loads instructions from the above-mentioned memory to execute any one of the material picking methods provided in the embodiments of the present application.
[0012] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute any one of the material picking methods provided in the embodiments of the present application.
[0013] In an embodiment of the present application, a game screen is displayed through a graphical user interface, the game screen includes at least a portion of a game scene, the game scene includes a controlled virtual character, and in response to an orientation adjustment operation and / or a movement control operation of the controlled virtual character, the current field of view of the controlled virtual character in the game field of view corresponding to the game screen is determined, and a judgment is made as to whether there is a first virtual material that can be picked up within the current field of view; when there is a first virtual material that can be picked up within the current field of view of the controlled virtual character, an automatic picking up operation is performed on the first virtual material within a preset range from the controlled virtual character, thereby realizing automatic picking up of the virtual material without the need for the player to pick it up manually, thereby saving computer resources consumed in responding to the player's manual operation and improving the efficiency of picking up the virtual material. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] 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 those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0015] Figure 1 This is a schematic diagram of an embodiment of the material picking method provided in the embodiment of the present application;
[0016] Figure 2 is a schematic diagram of the game field of view provided in an embodiment of the present application;
[0017] Figure 3 is another schematic diagram of the game field of view provided in the embodiment of the present application;
[0018] Figure 4 is a schematic diagram of the current field of view and the game field of view provided in an embodiment of the present application;
[0019] Figure 5 is a schematic diagram of the projection of the second viewing cone range in the game scene provided in an embodiment of the present application;
[0020] Figure 6 is a schematic diagram of a first target prompt mark provided in an embodiment of the present application;
[0021] Figure 7 is a schematic diagram of the picking progress provided in an embodiment of the present application;
[0022] Figure 8 is another schematic diagram of the picking progress provided in the embodiment of the present application;
[0023] Fig. 9 is a schematic diagram of a material picking mark provided in an embodiment of the present application;
[0024] Fig.10 is a schematic diagram of each sub-area provided in an embodiment of the present application;
[0025] Fig.11 is another schematic diagram of each sub-area provided in an embodiment of the present application;
[0026] Fig.12 is another schematic diagram of each sub-area provided in an embodiment of the present application;
[0027] Fig.13 is a schematic diagram of the structure of a material picking device provided in an embodiment of the present application;
[0028] Fig.14 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0030] Before explaining the embodiments of the present application in detail, some terms involved in the embodiments of the present application are first explained.
[0031] Among them, in the description of the embodiments of the present application, the terms "first", "second", etc. may be used in this article to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] The embodiments of the present application provide a material picking method, device, electronic device and computer-readable storage medium. Specifically, the material picking method of the embodiments of the present application can be executed by an electronic device, wherein the electronic device can be a terminal or a server.
[0033] The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), etc. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client, etc.
[0034] The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), as well as big data and artificial intelligence platforms.
[0035] The following is a detailed description of the embodiments in conjunction with the accompanying drawings. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.
[0036] In this embodiment, a terminal is used as an example for explanation. This embodiment provides a material picking method, wherein a game screen is displayed through a graphical user interface, the game screen includes at least part of a game scene, and the game scene includes a controlled virtual character. The material picking method is as follows: Figure 1 As shown, the specific process of the material picking method can be as follows:
[0037] 101. In response to a direction adjustment operation and / or a movement control operation of the controlled virtual character, determine a current field of view of the controlled virtual character in a game field of view corresponding to the game screen, and determine whether there is a first virtual material that can be picked up within the current field of view.
[0038] The graphical user interface (GUI) refers to an interface for a user to interact with a terminal. In this embodiment, the graphical user interface can be used for a player to interact with a terminal in a game, thereby implementing game logic.
[0039] Optionally, the graphical user interface may also display game controls (such as skill controls, movement controls, function controls, etc.), indicators (such as direction indicators, character indicators, etc.), information display areas (such as number of kills, match time, etc.), or game setting controls (such as system settings, stores, gold coins, etc.).
[0040] The game screen refers to the screen displayed when the application is running on the terminal and displays the game scene. The game screen can display the entire game scene or a part of the game scene.
[0041] The game scene refers to the virtual world in which the player is in the game. Optionally, the game scene is a simulation environment of the real world, or a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The game scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene.
[0042] A virtual character refers to a dynamic object that can be controlled in a game scene. Optionally, the dynamic object can be a virtual person, a virtual animal, a cartoon character, etc. The virtual character is a character controlled by a player through an input device, or an artificial intelligence (AI) set in a virtual environment battle through training, or a non-player character (NPC) set in a virtual scene battle. Optionally, the virtual character is a virtual character that competes in a game scene. Optionally, the number of virtual characters in the game scene battle is preset, or is dynamically determined according to the number of clients joining the battle, and the embodiments of the present application are not limited to this.
[0043] In one possible implementation, the user can control the virtual character to move in the game scene, for example, control the virtual object to run, jump, crawl, etc., and can also control the virtual character to fight with other virtual characters using skills and virtual props provided by the application. Virtual props refer to virtual items that can be used by virtual characters in a virtual environment to speed up their own attributes, assist in combat, or cause damage to other virtual characters, including but not limited to shields, springboards, puppets, extended magazines, aiming scopes, flash suppressors, etc.
[0044] The controlled virtual character refers to the virtual character controlled by the terminal. The orientation adjustment operation of the controlled virtual character refers to the operation of adjusting the orientation of the controlled virtual character, and its type can be set according to actual conditions. The orientation adjustment operation can be a sliding operation or a clicking operation, which is not limited in this embodiment.
[0045] The movement control operation of the controlled virtual character refers to the operation of changing the position of the controlled virtual character, which can control the controlled virtual character to sprint, jump, crawl, fly, etc. The type of movement control operation can be set according to actual conditions, for example, the movement control operation can be a sliding operation or a long press operation, which is not limited in this embodiment.
[0046] It can be understood that in response to the orientation adjustment operation of the controlled virtual character, the orientation of the controlled virtual character can be adjusted to update the game scene presented on the game screen, and in response to the movement operation of the controlled virtual character, the position of the controlled virtual character can be adjusted to update the game scene presented on the game screen.
[0047] The controlled virtual character has a corresponding virtual camera for presenting the game screen. The game field of view refers to the spatial range that can be captured by the virtual camera, which is used to indicate the range of the game world that the player can see through the virtual camera. In response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, the target orientation and / or target position of the controlled virtual character is determined, and based on the target orientation and / or target position, the virtual camera is adjusted so that the game field of view is determined through the adjusted virtual camera, and the game scene in the game screen is updated based on the target orientation and / or target position and the game field of view. In the updated game scene, the orientation of the controlled virtual character is the target orientation, and the position of the controlled virtual character is the target position.
[0048] The current field of view refers to a certain range in the game field of view, and its outline may be the same as or different from the outline of the game field of view. For example, the game field of view is a cone range, and the field of view angle of the cone range is 60°. The current field of view may also be a cone range, but the field of view angle of the cone range representing the current field of view is 30°. For another example, the game field of view is a cone range, and the field of view angle of the cone range is 80°. The current field of view may be a three-dimensional fan range, and the field of view angle of the three-dimensional fan range is 50°. This embodiment does not limit this.
[0049] Virtual supplies refer to virtual items in the game world, which can be used to enhance the attributes of the controlled virtual character, assist in combat, or cause damage to other virtual characters. The type of virtual supplies can be set according to actual conditions. For example, virtual supplies can be at least one of virtual equipment, virtual food, and virtual books. Virtual equipment can include at least one of virtual weapons, virtual decorations, virtual props, and virtual vehicles. This embodiment is not limited here. The virtual supplies in the current field of view are the first virtual supplies that can be picked up. The first virtual supplies can be at least one of the virtual supplies.
[0050] After determining the current visual range, the terminal detects the virtual materials in the current visual range to determine whether there is a first virtual material that can be picked up in the virtual materials in the current visual range.
[0051] In this embodiment, in response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, the current field of view of the controlled virtual character in the game field of view corresponding to the game screen is determined, and it is judged whether there is a first virtual material that can be picked up within the current field of view, so that the first virtual material that can be picked up is the virtual material within the current field of view, rather than the virtual material in the game field of view except the current field of view, so that the virtual materials that are automatically picked up subsequently are the virtual materials within the current field of view, thereby enhancing the realism and immersion of the game.
[0052] In some embodiments, in response to a direction adjustment operation and / or a movement control operation of the controlled virtual character, determining a current field of view of the controlled virtual character in a game field of view corresponding to the game screen includes:
[0053] In response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, adjusting the virtual camera corresponding to the controlled virtual character;
[0054] Based on the adjusted virtual camera, determine the game field of view corresponding to the game screen;
[0055] Determine the current field of view of the controlled virtual character in the game field of view.
[0056] Among them, when the virtual camera corresponding to the controlled virtual character is adjusted, the game field of view presenting the game screen is also updated accordingly. Therefore, based on the adjusted virtual camera, the game field of view corresponding to the game screen is determined.
[0057] It is understandable that, based on the adjusted virtual camera, the method of determining the game field of view corresponding to the game screen can be set according to actual conditions, and this embodiment does not limit this.
[0058] Exemplarily, when the game field of view is a cone range, based on the adjusted virtual camera, the process of determining the game field of view corresponding to the game screen can be: obtaining a first preset field of view angle, a first preset distance and a second preset distance (the first preset field of view angle, the first preset distance and the second preset distance are all preset parameters), and based on the adjusted virtual camera, the first preset field of view angle and the first preset distance, calculating a first plane, the first plane being the near plane of the virtual camera; and based on the adjusted virtual camera, the first preset field of view angle and the second preset distance, calculating a second plane, the second plane being the far plane of the virtual camera. The range formed by the first plane and the second plane is the game field of view. The game scenes within the first plane and the second plane are game scenes that can be seen by the player, that is, the game scenes presented on the game screen. The game scenes within the first plane and the virtual camera and the game scenes outside the second plane are all invisible game scenes.
[0059] For example, the adjusted virtual camera and the controlled virtual character can be Figure 2 As shown, the first plane, the second plane and the game field of view calculated based on the adjusted virtual camera can be as follows: Figure 2 shown.
[0060] In this implementation, the game field of view can be determined based on the first preset field of view angle, the first preset distance, the second preset distance and the adjusted virtual camera, so that not only can the game scene be limited to be presented within the game field of view and the rendering performance can be optimized, but the user can also set the first preset field of view angle, the first preset distance and the second preset distance according to actual needs, so that the presented game scene is more in line with the user's needs and the user's gaming experience is enhanced.
[0061] As another example, when the game field of view is a viewing cone range, based on the adjusted virtual camera, the process of determining the game field of view corresponding to the game screen can also be: obtaining a first preset field of view angle and a target distance (the target distance can be a pre-set distance), and calculating the target plane based on the adjusted virtual camera, the first preset field of view angle and the target distance. The range formed by the adjusted virtual camera and the target plane is the game field of view. The game scenes within the adjusted virtual camera and the target plane are the game scenes that can be seen by the player, that is, the game scenes presented on the game screen, and the game scenes outside the target plane are all invisible game scenes.
[0062] For example, the adjusted virtual camera and the controlled virtual character can be Figure 3 As shown, the target plane and the game field of view calculated based on the adjusted virtual camera can be Figure 3 shown.
[0063] In this implementation, the game field of view can be determined based on the adjusted virtual camera, the first preset field of view angle, and the target distance, so that not only can the game scene be limited to be presented within the game field of view and the rendering performance can be optimized, but the user can also set the first preset field of view angle and the target distance according to actual needs, so that the presented game scene is more in line with the user's needs and the user's gaming experience is enhanced.
[0064] It can be understood that since the first preset field of view angle is used to indicate the opening angle of the viewing cone range, for example, the first preset field of view angle is 60°, the first preset field of view angle is used to calculate the size of the first plane, the size of the second plane or the size of the target plane. Therefore, in the process of determining the field of view of the game based on the adjusted virtual camera and the first preset field of view angle, if the first plane is calculated based on the first position of the adjusted virtual camera, the first preset field of view angle and the first preset distance, the position and size of the first plane can be obtained, but the orientation of the first plane cannot be determined. Similarly, the orientation of the second plane or the orientation of the target plane cannot be determined.
[0065] In one possible implementation, since there is a crosshair in the game scene, the crosshair is located at the center of the graphical user interface, that is, the crosshair is located at the player's visual center. Therefore, the scene object at the position of the crosshair is located at the center of the game field of view. Therefore, the orientation of the first plane, the second plane or the target plane can be determined based on the position of the crosshair, that is, the game field of view can be determined based on the adjusted first position of the virtual camera, the first preset field of view angle and the position of the crosshair.
[0066] Optionally, the game field of view can be determined based on the first preset field of view angle, with the first position of the adjusted virtual camera as the starting point and the line between the adjusted virtual camera and the crosshairs as the field of view centerline of the game field of view.
[0067] Specifically, taking the first position of the adjusted virtual camera as the starting point, and the line between the adjusted virtual camera and the crosshairs as the midline of the game field of view, based on the first preset field of view angle, the first target field of view angle is determined, and based on the first target field of view angle, the game field of view is determined.
[0068] The first target field of view angle is a specific azimuth angle, for example, the first preset field of view angle is 60°, and the first target field of view angle can be in the direction of 30° to 90°. After obtaining the first target field of view angle, the first plane can be calculated based on the first target field of view angle and the first preset distance, the second plane can be calculated based on the first target field of view angle and the second preset distance, and the target plane can be calculated based on the first target field of view angle and the target distance.
[0069] For example, Figure 2 As shown, since the first preset distance and half of the first target field of view angle are both known parameters, the first plane can be calculated based on the first preset distance and half of the first target field of view angle through the basic theorem of triangles.
[0070] In this implementation, the game field of view is determined based on the adjusted first position of the virtual camera, the first preset field of view angle, and the position of the crosshairs, so that the determined game field of view is a field of view centered on the crosshairs, thereby improving the accuracy of the determined game field of view.
[0071] In another possible implementation method, the orientation of the first plane, the orientation of the second plane or the orientation of the target plane can be calculated based on the adjusted first orientation of the virtual camera, that is, the game field of view is determined based on the first position, the first orientation and the first preset field of view angle of the adjusted virtual camera. For example, the first plane is determined based on the first position, the first orientation, the first preset field of view angle and the first preset distance, and the second plane is determined based on the first position, the first orientation, the first preset field of view angle and the second preset distance. The game field of view is determined based on the first plane and the second plane.
[0072] The first position and the first preset distance are used to determine the position of the first plane, the first preset field of view angle is used to determine the size of the first plane, and the first orientation is used to determine the orientation of the first plane. The first orientation can be determined according to the current orientation of the controlled virtual character, for example, the adjusted first orientation of the virtual camera is the orientation of the controlled virtual character.
[0073] In this implementation, the game field of view is determined based on the adjusted first position, first orientation and first preset field of view angle of the virtual camera, and the orientation of each plane (such as the target plane, the first plane or the second plane) is determined based on the adjusted orientation of the virtual camera, thereby improving the speed of determining the game field of view.
[0074] After obtaining the game field of view, the terminal determines the current field of view of the controlled virtual character in the game field of view. Optionally, the terminal can determine the current field of view of the controlled virtual character in the game field of view based on the target field of view angle corresponding to the current field of view and the adjusted virtual camera, or the terminal can also determine the current field of view of the controlled virtual character in the game field of view based on the game field of view, the first preset field of view angle and the target field of view angle, which is not limited in this embodiment.
[0075] In this embodiment, in response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, the virtual camera corresponding to the controlled virtual character is adjusted, and based on the adjusted virtual camera, the game field of view corresponding to the game screen is determined, and the current field of view of the controlled virtual character in the game field of view is determined, so that the game field of view and the current field of view are updated in real time according to the virtual camera, and the accuracy of the game field of view and the current field of view is improved, thereby ensuring the accuracy of the presented game scene and the determined first virtual material that can be picked up.
[0076] In some embodiments, the orientation adjustment operation includes a sliding operation on the graphical user interface or a triggering operation on a virtual joystick on the graphical user interface, and / or the movement control operation includes a triggering operation on a virtual joystick on the graphical user interface.
[0077] Among them, the type of trigger operation on the virtual joystick can be set according to actual conditions. For example, the trigger operation on the virtual joystick can be a sliding operation or a long press operation, which is not limited in this embodiment.
[0078] In the embodiment itself, the direction adjustment operation includes a sliding operation on the graphical user interface or a triggering operation on the virtual joystick on the graphical user interface. The sliding operation or the triggering operation can be used to adjust the direction of the controlled virtual character, thereby improving the convenience of adjusting the direction. The movement control operation includes a triggering operation on the virtual joystick on the graphical user interface, thereby intuitively providing a way to control the movement of the controlled virtual character, so that the player can directly control the movement of the controlled virtual character through the virtual joystick, thereby improving the convenience of controlling the movement of the controlled virtual character.
[0079] In some embodiments, determining the current field of view of the controlled virtual character in the field of view of the game includes:
[0080] Get the target field of view angle corresponding to the current field of view;
[0081] Based on the target field of view angle, the current field of view of the controlled virtual character in the game field of view is determined.
[0082] The target visual angle is used to indicate the mouth opening angle of the current visual range, which may be a preset angle, or may be an angle adjusted in real time, which is not limited in this embodiment. The target visual angle is smaller than the first preset visual angle.
[0083] After obtaining the target field of view angle corresponding to the current field of view, the terminal can determine the current field of view of the controlled virtual character in the game field of view based on the target field of view angle and the adjusted virtual camera, or, it can determine the current field of view of the controlled virtual character in the game field of view based on the target field of view angle, the game field of view and a first preset field of view angle.
[0084] The process of determining the current field of view of the controlled virtual character in the game field of view based on the target field of view angle and the adjusted virtual camera can refer to the process of determining the game field of view based on the first preset field of view angle and the adjusted virtual camera, and this embodiment will not be traced here.
[0085] Since the graphic indicating the game field of view and the graphic indicating the current field of view can be similar, when determining the current field of view of the controlled virtual character in the game field of view based on the target field of view angle, the game field of view and the first preset field of view angle, the current field of view of the controlled virtual character in the game field of view can be determined based on the target field of view angle, the game field of view and the first preset field of view angle through the principle of similar triangles.
[0086] In this embodiment, the target field of view angle corresponding to the current field of view is obtained, and based on the target field of view angle, the current field of view range of the controlled virtual character in the game field of view is determined, so that the current field of view range is determined based on the target field of view angle, the steps of determining the current field of view range are simplified, and the convenience of determining the current field of view range is improved.
[0087] In some embodiments, when the target field of view is an angle adjusted in real time, obtaining the target field of view angle corresponding to the current field of view includes:
[0088] When it is detected that the controlled virtual character is equipped with the target virtual equipment, the preset field of view angle is increased to obtain the target field of view angle corresponding to the current field of view range.
[0089] The controlled virtual character is equipped with the target virtual equipment, which can be understood as the controlled virtual character wearing the target virtual equipment, or can also be understood as the controlled virtual character holding the target virtual equipment, which is not limited in this embodiment.
[0090] The type of target virtual equipment can be set according to actual conditions. For example, the target virtual equipment can be a virtual decoration or a virtual prop. The virtual decoration can be a virtual ring or virtual clothing, and the virtual prop can be a virtual magnifying glass or a virtual staff. This embodiment does not limit this.
[0091] In this embodiment, when it is detected that the controlled virtual character is equipped with target virtual equipment, the preset field of view angle is increased to obtain the target field of view angle corresponding to the current field of view range; if it is not detected that the controlled virtual character is equipped with target virtual equipment, the preset field of view angle is determined as the target field of view angle, so that the target field of view angle can be dynamically adjusted through the target virtual equipment, thereby dynamically adjusting the current field of view range, enriching the gameplay, and further enhancing the gaming experience.
[0092] In some embodiments, obtaining a target field of view angle corresponding to a current field of view includes:
[0093] Based on the environmental information of the controlled virtual character's environment, the preset field of view angle is adjusted to obtain the target field of view angle corresponding to the current field of view range.
[0094] Among them, the environmental information of the environment in which the controlled virtual character is located can be used to indicate the visibility of the environment in which the controlled virtual character is located, and its type can be set according to actual conditions. For example, the environmental information can be the weather information, time information and / or lighting information of the environment in which the controlled virtual character is located, which is not limited in this embodiment.
[0095] Optionally, when the visibility indicated by the environmental information of the controlled virtual character's environment is higher, the target field of view angle is larger; when the visibility indicated by the environmental information of the controlled virtual character's environment is lower, the target field of view angle is smaller.
[0096] For example, when the environmental information is weather information, if the weather information is clear weather, the visibility indicated by the environmental information is relatively high. At this time, the preset viewing angle is increased to obtain the target viewing angle. If the weather information is foggy weather, the visibility indicated by the environmental information is relatively low. At this time, the preset viewing angle is lowered to obtain the target viewing angle.
[0097] For another example, when the environmental information is lighting information, the stronger the lighting information is, the higher the visibility indicated by the environmental information is. At this time, the preset field of view angle is increased to obtain the target field of view angle. The weaker the lighting information is, the lower the visibility indicated by the environmental information is. At this time, the preset field of view angle is lowered to obtain the target field of view angle.
[0098] For another example, when the environmental information is time information, if the time indicated by the time information is daytime, the visibility indicated by the environmental information is relatively high. In this case, the preset viewing angle is increased to obtain the target viewing angle. If the time indicated by the time information is nighttime, the visibility indicated by the environmental information is relatively low. In this case, the preset viewing angle is lowered to obtain the target viewing angle.
[0099] In this embodiment, based on the environmental information of the controlled virtual character's environment, the preset field of view angle is adjusted to obtain the target field of view angle corresponding to the current field of view range, so that the target field of view angle changes with the change of the environment in which the controlled virtual character is located, thereby making the change of the target field of view angle more in line with the real logic, further enhancing the immersion of the game, and thus improving the gaming experience.
[0100] In some embodiments, the game field of view includes the adjusted first view cone range of the virtual camera, the current field of view includes the adjusted second view cone range of the virtual camera, and the field of view angle corresponding to the second view cone range is smaller than the field of view angle of the first view cone range.
[0101] Among them, the field of view angle corresponding to the second viewing cone range is the above-mentioned target field of view angle, and the field of view angle of the first viewing cone range is the above-mentioned first preset field of view angle.
[0102] The game field of view includes a first field of view, indicating that the game field of view is represented by the first field of view. The current field of view includes a second field of view, indicating that the current field of view is represented by the second field of view. The first field of view is larger than the second field of view.
[0103] The first viewing cone range or the second viewing cone range of the adjusted virtual camera refers to the viewing cone range with the adjusted virtual camera as the vertex. For example, the first viewing cone range and the second viewing cone range can be as follows: Figure 4 shown.
[0104] In this embodiment, the game field of view includes the adjusted first view cone range of the virtual camera, and the current field of view includes the adjusted second view cone range of the virtual camera. The field of view angle corresponding to the second view cone range is smaller than the field of view angle of the first view cone range, so that the game field of view and the current field of view are represented by the view cone, so that the game field of view and the current field of view are similar field of view, so that both the game field of view and the current field of view simulate the human field of view, and thus make the game field of view and the current field of view more in line with the real logic, help create a more realistic visual experience, and further enhance the gaming experience.
[0105] In some embodiments, the projection of the first viewing cone range in the game scene is a circle or an ellipse, and / or the projection of the second viewing cone range in the game scene is a circle or an ellipse.
[0106] For example, when the projection of the second viewing cone range in the game scene is a circle, the projection of the second viewing cone range in the game scene can be as follows: Figure 5 shown.
[0107] In this embodiment, the projection of the first view cone range in the game scene is a circle or an ellipse, and / or the projection of the second view cone range in the game scene is a circle or an ellipse, so that the game field of view and / or the current field of view more naturally simulates the human field of view, helps players focus on the scene elements in the center of the screen, reduces interference from the edge of the player's field of view, and further enhances the gaming experience.
[0108] It can be understood that the game screen can be a game screen presented from a first-person perspective, or a game screen presented from a third-person perspective. When the game screen switches between the first-person perspective and the third-person perspective, the current field of view before and after the switch is the same. For example, when the game screen is presented from a first-person perspective, the current field of view is A. In response to the perspective switching operation, the game screen is presented from a third-person perspective, and the current field of view is also A.
[0109] 102. When there is a first virtual material that can be picked up within the current field of view of the controlled virtual character, automatically pick up the first virtual material within a preset range from the controlled virtual character.
[0110] Among them, the first virtual material within the preset range of the controlled virtual character can be called the second virtual material. The preset range can be a preset parameter, which can be set according to actual conditions. The first virtual material within the preset range of the controlled virtual character is a virtual material to be automatically picked up, that is, the first virtual material within the preset range of the controlled virtual character is a virtual material that can be picked up and is to be picked up, and the first virtual material outside the preset range of the controlled virtual character is a virtual material that can be picked up but cannot be automatically picked up.
[0111] When the terminal obtains the first virtual material that can be picked up within the current field of view, it determines the distance between the first virtual material that can be picked up and the controlled virtual character, and performs an automatic picking operation on the first virtual material whose distance is within the preset range, thereby realizing an automatic picking mechanism for virtual materials. There is no need for players to manually pick up virtual materials, which not only improves the efficiency of picking up virtual materials, but also allows players to focus more on the current game situation and enhance the immersion of the game. Moreover, the automatically picked up virtual materials are the first virtual materials within the preset range of the controlled virtual character, which makes the automatically picked up virtual materials more in line with real logic and further enhances the gaming experience.
[0112] In some embodiments, the present embodiment further includes:
[0113] The display style of the first virtual material that can be picked up is updated to a target display style, and / or a target prompt mark corresponding to the first virtual material that can be picked up is displayed on the graphical user interface.
[0114] The display style is used to indicate the display effect of the first virtual material. When the virtual material is not the first virtual material that can be picked up, the display style of the virtual material may be an initial display style, and the initial display style and the target display style are different display styles. The type of the target display style may be set according to actual conditions, for example, the target display style may be a light-emitting display or a darkened display.
[0115] The target prompt mark corresponding to the first virtual material that can be picked up can be displayed near the first virtual material that can be picked up. The type of the target prompt mark can be set according to actual conditions, for example, the target prompt mark can be text or graphics, which is not limited in this embodiment.
[0116] In this embodiment, the display style of the first virtual material that can be picked up is updated to a target display style, and / or a target prompt mark corresponding to the first virtual material that can be picked up is displayed on the graphical user interface to highlight the first virtual material that can be picked up, so that the player can intuitively know the first virtual material that can be picked up, thereby further improving the gaming experience.
[0117] In some embodiments, the target display style includes a first target display style, the target prompt identifier includes a first target prompt identifier, and updating the display style of the first virtual material that can be picked up to the target display style, and / or displaying the target prompt identifier corresponding to the first virtual material that can be picked up on the graphical user interface, includes:
[0118] The display style of the second virtual material is updated to the first target display style, and / or the first target prompt mark corresponding to the second virtual material is displayed on the graphical user interface, and the second virtual material is the first virtual material that can be picked up and is within a preset range of the controlled virtual character.
[0119] For example, the first target prompt mark is a graphic and the first target prompt mark is a circle, the first target prompt mark and the second virtual material can be as follows: Figure 6 shown.
[0120] In this embodiment, the display style of the second virtual material is updated to the first target display style, and / or the first target prompt mark corresponding to the second virtual material is displayed on the graphical user interface, and the second virtual material is the first virtual material that can be picked up and is within the preset range of the controlled virtual character, so as to highlight the second virtual material, so that the player can more intuitively know the second virtual material that is automatically picked up, further improving the game experience. Moreover, the method of displaying the first target prompt mark corresponding to the second virtual material on the graphical user interface is relatively simple to implement compared to the method of updating the display of the second virtual material to the first target display style, and only needs to add relevant marks in the UI layer, without the need for custom shaders and processing pipelines, simplifying rendering complexity, and reducing rendering overhead.
[0121] In some embodiments, the target display style includes a second target display style, the target prompt identifier includes a second target prompt identifier, and updating the display style of the first virtual material that can be picked up to the target display style, and / or displaying the target prompt identifier corresponding to the first virtual material that can be picked up on the graphical user interface includes:
[0122] The display style of the third virtual material is updated to the second target display style, and / or the second target prompt mark corresponding to the third virtual material is displayed on the graphical user interface, and the third virtual material is the first virtual material among the pickable first virtual materials that is not within the preset range of the controlled virtual character.
[0123] The second target display style and the first target display style are different display styles, and the second target prompt identifier and the first target prompt identifier are different prompt identifiers.
[0124] In this embodiment, the display style of the third virtual material is updated to the second target display style, and / or the second target prompt mark corresponding to the third virtual material is displayed on the graphical user interface, and the third virtual material is the first virtual material among the pickable first virtual materials whose distance is not within the preset range of the controlled virtual character, so that not only the third virtual material can be highlighted, but also the display effect of the third virtual material can be different from the display effect of the second virtual material, so that the player can intuitively distinguish the third virtual material from the second virtual material, and then the player can control the direction and / or movement of the controlled virtual character according to the degree of demand for the third virtual material, thereby further improving the gaming experience.
[0125] In some embodiments, the target display style and / or target prompt identification is determined based on at least one of the material level of the pickable first virtual material, the type of the pickable first virtual material, and the target distance between the pickable first virtual material and the controlled virtual character.
[0126] Optionally, the first target display style and / or the first target prompt identifier may be determined based on at least one of the material level of the second virtual material, the type of the second virtual material, and the target distance between the second virtual material and the controlled virtual character. The second target display style and / or the second target prompt identifier may be determined based on at least one of the material level of the third virtual material, the type of the third virtual material, and the target distance between the third virtual material and the controlled virtual character.
[0127] For example, the first target display style is yellow luminous display, the higher the material level of the second virtual material, the more obvious the yellow luminescence, and the lower the material level of the second virtual material, the less obvious the yellow luminescence; the second target display style is blue luminous display, the higher the material level of the third virtual material, the more obvious the blue luminescence, and the lower the material level of the second virtual material, the less obvious the blue luminescence.
[0128] For another example, the display style of the first target is yellow luminous display, the type of the second virtual material is the first type, the yellow luminescence is very obvious, the type of the second virtual material is the second type, the yellow luminescence is relatively obvious, the type of the second virtual material is the third type, the yellow luminescence is obvious, the display style of the second target is blue luminous display, the type of the third virtual material is the first type, the blue luminescence is very obvious, the type of the third virtual material is the second type, the blue luminescence is relatively obvious, and the type of the third virtual material is the third type, the blue luminescence is obvious.
[0129] For another example, the first target display style is yellow luminous display, the smaller the target distance between the second virtual material and the controlled virtual character, the more obvious the yellow luminescence is, and the larger the target distance between the second virtual material and the controlled virtual character, the less obvious the yellow luminescence is; the second target display style is blue luminous display, the smaller the target distance between the third virtual material and the controlled virtual character, the more obvious the blue luminescence is, and the larger the target distance between the third virtual material and the controlled virtual character, the less obvious the blue luminescence is.
[0130] In this embodiment, the target display style and / or target prompt mark is determined based on at least one of the material level of the pickable first virtual material, the type of the pickable first virtual material, and the target distance between the pickable first virtual material and the controlled virtual character, so that different pickable first virtual materials have different display effects, so that players can intuitively know the different pickable first virtual materials, further enhancing the gaming experience.
[0131] In some embodiments, performing an automatic picking operation on a first virtual resource within a preset range from a controlled virtual character includes:
[0132] Automatically picking up the first virtual material within a preset range from the controlled virtual character, and displaying the picking progress;
[0133] When the picking progress meets the preset progress condition, it is determined that the automatic picking of the first virtual material within the preset range of the controlled virtual character is completed.
[0134] The preset progress condition can be set according to the actual situation. For example, when starting automatic picking, the picking progress can be 0. Figure 7 As shown in 701, as the picking time increases, the picking progress increases. When the picking progress is 100%, the picking progress meets the preset progress condition, such as Figure 7 As shown in 702, for example, when the automatic picking starts, the picking progress can be 100%, such as Figure 8 As shown in 801, as the picking time increases, the picking progress decreases. When the picking progress is 0, the picking progress meets the preset progress condition, such as Figure 8 As shown in 802.
[0135] The automatic picking up of the first virtual material within the preset range from the controlled virtual character is completed, indicating that the first virtual material within the preset range from the controlled virtual character is a virtual material owned by the controlled virtual character.
[0136] In this embodiment, the automatic picking up of the first virtual material within the preset range of the controlled virtual character is started, and the picking up progress is displayed. When the picking up progress meets the preset progress condition, it is determined that the automatic picking up of the first virtual material within the preset range of the controlled virtual character is completed, so that the automatic picking up takes a certain amount of time instead of being completed instantly, thereby ensuring the fairness of the game while improving the efficiency of picking up virtual materials.
[0137] In some embodiments, the updating speed of the picking progress may be a preset parameter, and the picking progress is updated according to the preset parameter. For example, if the preset parameter is Vm / s, the picking progress increases by V meters per second or decreases by V meters per second.
[0138] In some embodiments, displaying the picking progress includes:
[0139] The picking progress is updated based on an automatic picking speed corresponding to a second virtual material, where the second virtual material is a first virtual material within a preset range from the controlled virtual character.
[0140] In this embodiment, the picking progress is updated based on the automatic picking speed corresponding to the second virtual material. The second virtual material is the first virtual material within a preset range from the controlled virtual character, so that the second virtual material has different automatic picking speeds, so that the time consumed to complete the automatic picking of different second virtual speeds is different, further balancing the fairness of the game and the efficiency of picking up virtual materials.
[0141] In some embodiments, the present embodiment further includes:
[0142] The automatic picking-up speed is determined based on at least one of a target distance between the controlled virtual character and the second virtual goods, a difficulty of picking up the second virtual goods, and a picking-up quantity of the second virtual goods.
[0143] Wherein, when there are multiple second virtual goods, the target distance between the controlled virtual character and the second virtual goods may be the sum of the distances between the controlled virtual character and each second virtual good, or may be the average of the distances between the controlled virtual character and each second virtual good. When there are multiple second virtual goods, the difficulty of picking up the second virtual goods may be the sum of the difficulty of picking up each second virtual good, or may be the average of the difficulty of picking up each second virtual good.
[0144] In this embodiment, the automatic picking speed is determined based on at least one of the target distance between the controlled virtual character and the second virtual material, the difficulty of picking up the second virtual material, and the number of second virtual materials to be picked up, so that the automatic picking speeds of different second virtual materials are more in line with real logic, thereby improving the authenticity of the game and further balancing the efficiency of picking up virtual materials and the fairness of the game.
[0145] It is understandable that, in the process of automatically picking up the second virtual material, if the target distance changes, the automatic picking speed also changes accordingly, so that in the process of picking up the second virtual material, the automatic picking speed changes dynamically.
[0146] In some embodiments, the larger the target distance, the slower the automatic picking speed, the greater the picking difficulty, the slower the automatic picking speed and / or the larger the number of picks, the slower the automatic picking speed.
[0147] Among them, the faster the automatic pickup speed, the shorter the automatic pickup time of the second virtual material, and the slower the automatic pickup speed, the longer the automatic pickup time of the second virtual material. When the target distance is larger, the automatic pickup time of the second virtual material is longer, when the target distance is smaller, the automatic pickup time of the second virtual material is shorter, when the difficulty of picking is greater, the automatic pickup time of the second virtual material is longer, when the difficulty of picking is smaller, the automatic pickup time of the second virtual material is shorter, when the number of picking is larger, the automatic pickup time of the second virtual material is longer, when the number of picking is smaller, the automatic pickup time of the second virtual material is shorter, so that the pickup time of the second virtual material is more in line with the real logic, and further balance the efficiency of picking up virtual materials and the fairness of the game.
[0148] In some embodiments, the difficulty of picking up is determined based on regional information of the area where the second virtual supplies are located, and the regional information includes at least one of terrain information of the area where the second virtual supplies are located, obstacle information on the area where the second virtual supplies are located, and weather information of the area where the second virtual supplies are located.
[0149] Among them, the terrain information of the area where the second virtual material is located is used to indicate the terrain type of the area where the second virtual material is located. For example, the terrain type of the area where the second virtual material is located can be a steep type, a low-lying type, a water type, a flat land type, and a mountain type, etc. This embodiment is not limited here.
[0150] When the terrain information of the second virtual goods includes the steep type, the low-lying type, the water type, and the mountain type, it is difficult to pick up the goods. When the terrain information of the second virtual goods includes the flat type, it is difficult to pick up the goods.
[0151] The obstacle information on the area where the second virtual goods are located refers to the information of the virtual items that prevent the controlled virtual character from picking up the second virtual goods. It can be set according to the actual situation. For example, the obstacle information on the area where the second virtual goods are located can be virtual rocks, virtual items covering the second virtual goods, virtual roadblocks between the second virtual goods and the controlled virtual character, etc. This embodiment does not limit this. When the obstacle information on the area where the second virtual goods are located indicates a higher degree of obstruction to picking up, the difficulty of picking up is greater. When the obstacle information on the area where the second virtual goods are located indicates a lower degree of obstruction to picking up, the difficulty of picking up is smaller.
[0152] The weather information of the area where the second virtual goods are located is used to indicate the weather conditions of the area where the second virtual goods are located, which can be set according to the actual situation. For example, the weather information of the area where the second virtual goods are located can be rainstorm weather, foggy weather or heavy snow weather. When the weather in the area where the second virtual goods are located is rainstorm weather, foggy weather or heavy snow weather, it is more difficult to pick up the goods. When the weather in the area where the second virtual goods are located is clear weather, it is less difficult to pick up the goods.
[0153] In this embodiment, the difficulty of picking up is determined based on regional information of the area where the second virtual material is located, and the regional information includes at least one of terrain information of the area where the second virtual material is located, obstacle information on the area where the second virtual material is located, and weather information of the area where the second virtual material is located, so that the determination of the difficulty of picking up is more in line with real logic, and further balances the efficiency of picking up virtual materials and the fairness of the game.
[0154] In some embodiments, displaying the progress of picking up includes:
[0155] Displaying a material pickup indicator on the graphical user interface, the material pickup indicator including a progress bar area and a cancel control;
[0156] The progress of picking is displayed through the progress bar area;
[0157] Before the picking progress meets the preset progress condition, this embodiment further includes:
[0158] In response to the triggering operation of the cancel control, the automatic picking up of the first virtual material within the preset range of the controlled virtual character is canceled.
[0159] The shape of the material picking mark can be set according to the actual situation. For example, the shape of the material picking mark can be circular or rectangular. When the shape of the material picking mark is rectangular, the material picking mark can be as follows: Fig. 9 shown.
[0160] The type of the triggering operation for canceling the control can be set according to the actual situation. For example, the triggering operation for canceling the control can be a single-click operation or a double-click operation, which is not limited in this embodiment.
[0161] In this embodiment, a material pickup mark is displayed on the graphical user interface, and the material pickup mark includes a progress bar area and a cancel control. The picking progress is displayed through the progress bar area. In response to the triggering operation of the cancel control, the automatic picking of the first virtual material within the preset range of the controlled virtual character is canceled, so that the player can cancel the automatic picking of virtual materials according to the actual situation, so that the player does not need to cancel the automatic picking of virtual materials by canceling the automatic picking function, thereby improving the convenience of controlling the cancellation of automatic picking of virtual materials.
[0162] In some embodiments, before the picking progress meets the preset progress condition, the embodiment further includes:
[0163] When it is detected that the current field of view is updated and the updated current field of view does not include the first virtual goods within the preset range of the controlled virtual character, the automatic picking up of the first virtual goods within the preset range of the controlled virtual character is cancelled.
[0164] Among them, when the orientation of the controlled virtual character changes and / or the controlled virtual character moves, the current field of view is also updated. When the current field of view is updated, the first virtual material within the preset range of the controlled virtual character may be located within the updated current field of view, or may not be located within the updated current field of view. When the first virtual material within the preset range of the controlled virtual character is not located within the updated current field of view, the automatic picking up of the first virtual material within the preset range of the controlled virtual character is canceled, so that there is no need for the player to manually trigger the cancellation of the automatic picking up of the first virtual material within the preset range of the controlled virtual character, so that the convenience of canceling the automatic picking up is improved while the cancellation of the automatic picking up of the virtual material is in line with the logic of reality.
[0165] In some embodiments, when the picking progress satisfies a preset progress condition, determining that the automatic picking of the first virtual resource within a preset range from the controlled virtual character is completed includes:
[0166] When the picking progress meets the preset progress condition, the first virtual material within the preset range of the controlled virtual character is stored in the virtual storage space corresponding to the controlled virtual character, so as to automatically pick up the first virtual material within the preset range of the controlled virtual character.
[0167] Among them, the controlled virtual character can have at least one virtual storage space for storing the virtual materials owned by the controlled virtual character. The at least one virtual storage space can be at least one of a backpack, a pocket and an equipment bar. The equipment bar can be at least one of a weapon bar, an accessories bar and a clothing bar.
[0168] In this embodiment, when the picking progress meets the preset progress conditions, the first virtual material within the preset range of the controlled virtual character is stored in the virtual storage space corresponding to the controlled virtual character, so as to automatically pick up the first virtual material within the preset range of the controlled virtual character, and automatically store the successfully picked up virtual materials in the virtual storage space corresponding to the controlled virtual character, thereby improving the efficiency of storing the automatically picked up successful virtual materials.
[0169] In some embodiments, the picking progress is displayed on the progress bar area, which includes different sub-areas. Different sub-areas correspond to different space identifiers. The space identifier is used to indicate the virtual storage space corresponding to the first virtual material within a preset range of the controlled virtual character after the progress of the sub-area is reached.
[0170] Among them, the sub-area of the virtual storage space that needs to be triggered to display the stored virtual materials is smaller than the virtual storage space that directly displays the stored virtual materials on the graphical user interface. The virtual storage space that needs to be triggered to display the stored virtual materials is, for example, a backpack or a pocket, and the virtual storage space that directly displays the stored virtual materials on the graphical user interface is, for example, an equipment bar.
[0171] When the virtual storage space of the controlled virtual character includes a backpack and an equipment bar, the sub-area includes a backpack sub-area and an equipment bar sub-area, such as Fig.10 As shown, the space of the backpack sub-area is marked as "backpack", and the space of the equipment bar sub-area is marked as "equipment bar". After the progress of the backpack sub-area is completed, the first virtual material within the preset range of the controlled virtual character is stored in the backpack, such as Fig.11 As shown in 1101, after the progress of the equipment column sub-area is completed, the first virtual material within the preset range of the controlled virtual character is stored in the equipment column, such as Fig.11 As shown in 1102.
[0172] It can be understood that after the progress of a certain sub-area is achieved, if there is a sub-area where the progress has not been achieved, the first virtual material within the preset range of the controlled virtual character can be stored in a certain sub-area in response to the confirmation operation on the certain sub-area. If the player does not confirm the certain sub-area, then after the progress of the sub-area where the progress has not been achieved is achieved, the first virtual material within the preset range of the controlled virtual character will be stored in the sub-area.
[0173] For example, the sub-area includes a backpack sub-area and an equipment bar sub-area. When the progress of the backpack sub-area is achieved, the progress of the equipment bar sub-area is not achieved. At this time, in response to the confirmation operation of a certain sub-area, the first virtual material within the preset range of the controlled virtual character can be stored in the backpack. If the player does not confirm the backpack sub-area, then after the progress of the equipment bar sub-area is achieved, the first virtual material within the preset range of the controlled virtual character will be stored in the equipment bar.
[0174] In this embodiment, the picking progress is displayed on the progress bar area, and the progress bar area includes different sub-areas. Different sub-areas correspond to different space identifiers. The space identifier is used to indicate the virtual storage space corresponding to the first virtual material within a preset range of the controlled virtual character after the progress of the sub-area is reached, so that the automatically picked up first virtual material can be stored in different virtual storage spaces, thereby improving the flexibility of storing the first virtual material.
[0175] In some embodiments, the picking progress is displayed on the progress bar area, and the progress bar area includes different sub-areas, and different sub-areas are correspondingly displayed with different management identifiers, and different management identifiers are used to indicate the management action corresponding to the first virtual material within the preset range of the controlled virtual character after the progress of the sub-area is achieved. Among them, the management action may include an equipment action and a storage action. The equipment action means that the first virtual material within the preset range of the controlled virtual character is equipped on the controlled virtual character, and the storage action means that the first virtual material within the preset range of the controlled virtual character is stored in the virtual storage space of the controlled virtual character.
[0176] For example, Fig.12 As shown, the management identifier includes "storage" and "equipment", "storage" is used to indicate storage actions, and "equipment" is used to indicate equipment actions. The sub-areas include storage sub-areas and equipment sub-areas. After the progress of the storage sub-area is completed, the first virtual material within the preset range of the controlled virtual character is stored in the backpack. After the progress of the equipment sub-area is completed, the first virtual material within the preset range of the controlled virtual character is equipped on the controlled virtual character.
[0177] It is understandable that after the progress of the storage sub-area is achieved, the progress of the equipment sub-area is not achieved. At this time, in response to the confirmation operation of the storage sub-area, the first virtual material within the preset range of the controlled virtual character can be stored in the virtual storage space. If the player does not confirm the storage sub-area, then after the progress of the equipment sub-area is achieved, the first virtual material within the preset range of the controlled virtual character will be equipped on the controlled virtual character.
[0178] In this embodiment, the picking progress is displayed on the progress bar area, and the progress bar area includes different sub-areas. Different sub-areas correspond to different management identifiers. Different management identifiers are used to indicate the management action corresponding to the first virtual material within a preset range of the controlled virtual character after the progress of the sub-area is reached, so that the automatically picked up virtual materials can be stored or equipped without the need for manual triggering by the player, and the automatically picked up virtual materials can also be equipped, thereby improving the convenience of equipping the automatically picked up virtual materials, thereby improving the efficiency of equipping the automatically picked up virtual materials.
[0179] In some embodiments, when the picking progress meets the preset progress condition, storing the first virtual resource within the preset range of the controlled virtual character into the virtual storage space corresponding to the controlled virtual character includes:
[0180] When the picking progress meets the preset progress condition, the free storage area of the virtual storage space corresponding to the controlled virtual character is detected;
[0181] If there is an idle storage area in the virtual storage space, the first virtual material within a preset range from the controlled virtual character is stored in the virtual storage space.
[0182] In this embodiment, when the picking progress meets the preset progress conditions, the free storage area of the virtual storage space corresponding to the controlled virtual character is detected. If there is a free storage area in the virtual storage space, the first virtual material within the preset range of the controlled virtual character is stored in the virtual storage space. This ensures that the first virtual material within the preset range of the controlled virtual character is stored in the virtual storage space only when there is a free storage area in the virtual storage space. This makes the storage of automatically picked up virtual materials conform to the real logic, further enhancing the gaming experience.
[0183] In some embodiments, when the picking progress meets the preset progress condition, after detecting the free storage area of the virtual storage space corresponding to the controlled virtual character, this embodiment further includes:
[0184] If the virtual storage space does not have the free storage area, a prompt message is displayed, where the prompt message is used to prompt that there is no free storage area and to prompt to replace the virtual material.
[0185] The display form of the prompt information can be set according to actual conditions. For example, the prompt information can be displayed in the form of a pop-up window, or the prompt information can be directly displayed on the graphical user interface. This embodiment does not limit this.
[0186] In this embodiment, if there is no such free storage area in the virtual storage space, a prompt message is displayed. The prompt message is used to prompt the non - existence of the free storage area and prompt to replace virtual items, so that players can intuitively know that there is no free storage area and replace virtual items, thereby increasing the probability of successfully automatically picking up virtual items.
[0187] In some embodiments, the prompt message further includes a fourth virtual item recommended to be discarded in the virtual storage space. This embodiment further includes:
[0188] In response to the discard confirmation operation for the fourth virtual item, discard the fourth virtual item and store the first virtual item within a preset range from the controlled virtual character into the virtual storage space.
[0189] Among them, the type of the discard confirmation operation for the fourth virtual item can be set according to the actual situation. For example, a confirmation control and a cancel control can also be displayed on the graphical user interface. The discard confirmation operation is a trigger operation for the confirmation control. The trigger operation for the confirmation control can be, for example, a click operation or a double - click operation. In response to the trigger operation for the confirmation control, the second virtual item (the second virtual item refers to the first virtual item within a preset range from the controlled virtual character) is discarded, the fourth virtual item is discarded, and it is determined that the picking up of the second virtual item is completed. In response to the trigger operation for the cancel control, it is determined that the automatic picking up of the second virtual item fails.
[0190] Optionally, the second virtual item can also be displayed on the prompt message, so that players can intuitively compare the automatically picked - up second virtual item with the recommended - to - be - discarded fourth virtual item, and thus determine whether to discard the fourth virtual item and pick up the second virtual item.
[0191] In this embodiment, in response to the discard confirmation operation for the fourth virtual item, discard the fourth virtual item and store the first virtual item within a preset range from the controlled virtual character into the virtual storage space, so that there is no need for players to manually trigger a jump to the backpack interface and then discard the virtual items in the backpack interface, improving the convenience of discarding virtual items, thereby improving the efficiency of discarding virtual items, and further improving the picking - up efficiency of the second virtual item.
[0192] In some embodiments, if there is no free storage area in the virtual storage space, the displayed prompt message includes:
[0193] If there is no free storage area in the virtual storage space, based on at least one of the popularity of the virtual materials in the virtual storage space, the hierarchical relationship between the virtual materials and the first virtual materials within the preset range of the controlled virtual character, the difficulty of obtaining the virtual materials, and the degree of demand of the controlled virtual character for the virtual materials, determine a fourth virtual material recommended to be discarded from the virtual materials;
[0194] Based on the fourth virtual material, prompt information is displayed.
[0195] The higher the popularity of the virtual goods, the lower the probability of the virtual goods being discarded, and the lower the popularity of the virtual goods, the greater the probability of the virtual goods being discarded. For example, if the virtual goods are shrinking props, which can make the controlled virtual character smaller, the popularity of the shrinking props is high, and therefore, the probability of the shrinking props being discarded is low.
[0196] If the level of the virtual material owned is higher than the level of the first virtual material within the preset range of the controlled virtual character, the probability of the virtual material being discarded is small. If the level of the virtual material owned is lower than the level of the first virtual material within the preset range of the controlled virtual character, the probability of the virtual material being discarded is large. For example, if the level of the virtual material owned is rare, if the level of the second virtual material (the first virtual material within the preset range of the controlled virtual character) is legendary, and the legendary level is higher than the rare level, the probability of the virtual material being discarded is large. If the level of the second virtual material is ordinary, and the ordinary level is lower than the rare level, the probability of the virtual material being discarded is small.
[0197] The more difficult it is to obtain the virtual goods you own, the lower the probability that the virtual goods will be discarded. The lower the difficulty of obtaining the virtual goods you own, the higher the probability that the virtual goods will be discarded. For example, the difficulty of obtaining the virtual goods you own includes easy to obtain, medium to obtain, difficult to obtain, and extremely difficult to obtain. The probability that easy to obtain virtual goods will be discarded is greater than the probability that medium to obtain virtual goods will be discarded. The probability that medium to obtain virtual goods will be discarded is greater than the probability that difficult to obtain virtual goods will be discarded. The probability that extremely difficult to obtain virtual goods will be discarded is greater than the probability that difficult to obtain virtual goods will be discarded.
[0198] The greater the controlled virtual character's demand for the virtual supplies it possesses, the lower the probability that the virtual supplies will be discarded. For example, if the controlled virtual character is an ice-type character and the virtual supplies it possesses are flame virtual weapons, the controlled virtual character has a lower demand for the virtual supplies and the probability that the virtual supplies will be discarded is higher. For another example, if the controlled virtual character is in a water shortage state and the virtual supplies it possesses include virtual snacks, the second virtual supply is water, the controlled virtual character has a lower demand for the virtual snacks and the probability that the virtual snacks will be discarded is higher.
[0199] In this embodiment, if there is no free storage area in the virtual storage space, based on the popularity of the virtual materials in the virtual storage space, the hierarchical relationship between the virtual materials and the first virtual materials within a preset range of the controlled virtual character, the difficulty of obtaining the virtual materials, and at least one of the demand degree of the controlled virtual character for the virtual materials, a fourth virtual material recommended for discarding is determined from the virtual materials owned, and based on the fourth virtual material, prompt information is displayed, so that the fourth virtual material recommended for discarding is more in line with the needs of the player, further improving the efficiency of discarding virtual materials.
[0200] In some embodiments, after the prompt information is displayed, the embodiment further includes:
[0201] In response to a triggering operation on the prompt information, a backpack interface is displayed, wherein the backpack interface includes virtual supplies owned by the controlled virtual character;
[0202] In response to a discard operation on the fifth virtual material in the owned virtual material, the fifth virtual material is discarded, and the first virtual material within a preset range from the controlled virtual character is stored in the virtual storage space.
[0203] The type of triggering operation for the prompt information may be set according to actual conditions. For example, the triggering operation for the prompt information may be a click operation or a double-click operation, which is not limited in this embodiment.
[0204] The fifth virtual material may be any of the owned virtual materials. The discarding operation of the fifth virtual material may be set according to actual conditions, for example, the discarding operation of the fifth virtual material may be a click operation or a double-click operation of the fifth virtual material, which is not limited in this embodiment.
[0205] In this embodiment, in response to the triggering operation of the prompt information, a backpack interface is displayed, the backpack interface includes the virtual supplies owned by the controlled virtual character, and in response to the discarding operation of the fifth virtual supply among the owned virtual supplies, the fifth virtual supply is discarded, and the first virtual supply within a preset range from the controlled virtual character is stored in the virtual storage space, so that there is no need to display the backpack interface by triggering the backpack control, which prompts the convenience of displaying the backpack interface, thereby prompting the efficiency of discarding the fifth virtual supply.
[0206] In some embodiments, the present embodiment further includes:
[0207] If no triggering operation on the prompt information is detected within a preset time period after the prompt information is displayed, the prompt information is canceled, and it is determined that the automatic picking up of the first virtual material within the preset range of the controlled virtual character has failed.
[0208] Among them, the type of triggering operation on the prompt information can be set according to actual conditions. The triggering operation on the prompt information can be a long press operation or a sliding operation on the prompt information, which is not limited in this embodiment.
[0209] In this embodiment, if no triggering operation on the prompt information is detected within a preset time after the prompt information is displayed, it means that the player does not want to discard the virtual materials in the virtual storage space, the prompt information is canceled, and it is determined that the automatic pickup of the first virtual material within the preset range of the controlled virtual character has failed, so that the player does not need to manually cancel the display of the prompt information, thereby improving the convenience of canceling the display of the prompt information.
[0210] From the above content, it can be seen that in an embodiment of the present application, a game screen is displayed through a graphical user interface, the game screen includes at least a part of the game scene, the game scene includes a controlled virtual character, and in response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, the current field of view of the controlled virtual character in the game field of view corresponding to the game screen is determined, and it is determined whether there is a first virtual material that can be picked up within the current field of view; when there is a first virtual material that can be picked up within the current field of view of the controlled virtual character, an automatic picking operation is performed on the first virtual material within a preset range from the controlled virtual character, thereby realizing automatic picking up of the virtual material without the need for the player to pick it up manually, saving computer resources consumed by responding to the player's manual operation, and improving the efficiency of picking up virtual materials.
[0211] In order to better implement the above method, the embodiment of the present application also provides a material picking device, which can be specifically integrated into an electronic device, such as a computer device, which can be a terminal, a server, or other device.
[0212] Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a personal computer and other devices; the server can be a single server or a server cluster composed of multiple servers.
[0213] For example, in this embodiment, the material picking device is specifically integrated in the terminal as an example to describe the method of the embodiment of the present application in detail. This embodiment provides a material picking device, which displays a game screen through a graphical user interface. The game screen includes at least part of the game scene, and the game scene includes a controlled virtual character. The material picking device is as follows: Fig.13 As shown, the material picking device may include:
[0214] The determination module 1301 is used to determine the current field of view of the controlled virtual character in the game field of view corresponding to the game screen in response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, and judge whether there is a first virtual material that can be picked up in the current field of view.
[0215] The picking module 1302 is used to automatically pick up the first virtual material within a preset range from the controlled virtual character when there is a first virtual material that can be picked up within the current field of view of the controlled virtual character.
[0216] In some embodiments, the determination module 1301 is specifically configured to execute:
[0217] In response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, adjusting the virtual camera corresponding to the controlled virtual character;
[0218] Based on the adjusted virtual camera, determine the game field of view corresponding to the game screen;
[0219] Determine the current field of view of the controlled virtual character in the game field of view.
[0220] In some embodiments, the game field of view includes the adjusted first view cone range of the virtual camera, the current field of view includes the adjusted second view cone range of the virtual camera, and the field of view angle corresponding to the second view cone range is smaller than the field of view angle of the first view cone range.
[0221] In some embodiments, the projection of the first viewing cone range in the game scene is a circle or an ellipse, and / or the projection of the second viewing cone range in the game scene is a circle or an ellipse.
[0222] In some embodiments, the determination module 1301 is specifically configured to execute:
[0223] Get the target field of view angle corresponding to the current field of view;
[0224] Based on the target field of view angle, the current field of view of the controlled virtual character in the game field of view is determined.
[0225] In some embodiments, the determination module 1301 is specifically configured to execute:
[0226] When it is detected that the controlled virtual character is equipped with the target virtual equipment, the preset field of view angle is increased to obtain the target field of view angle corresponding to the current field of view range.
[0227] In some embodiments, the determination module 1301 is specifically configured to execute:
[0228] Based on the environmental information of the controlled virtual character's environment, the preset field of view angle is adjusted to obtain the target field of view angle corresponding to the current field of view range.
[0229] In some embodiments, the orientation adjustment operation includes a sliding operation on the graphical user interface or a triggering operation on a virtual joystick on the graphical user interface, and / or the movement control operation includes a triggering operation on a virtual joystick on the graphical user interface.
[0230] In some embodiments, the material picking device further includes a display module for executing:
[0231] The display style of the first virtual material that can be picked up is updated to a target display style, and / or a target prompt mark corresponding to the first virtual material that can be picked up is displayed on the graphical user interface.
[0232] In some embodiments, the target display style includes a first target display style, the target prompt identifier includes a first target prompt identifier, and the display module is specifically configured to:
[0233] The display style of the second virtual material is updated to the first target display style, and / or the first target prompt mark corresponding to the second virtual material is displayed on the graphical user interface, and the second virtual material is the first virtual material that can be picked up and is within a preset range of the controlled virtual character.
[0234] In some embodiments, the target display style includes a second target display style, the target prompt identifier includes a second target prompt identifier, and the display module is specifically configured to:
[0235] The display style of the third virtual material is updated to the second target display style, and / or the second target prompt mark corresponding to the third virtual material is displayed on the graphical user interface, and the third virtual material is the first virtual material among the pickable first virtual materials that is not within the preset range of the controlled virtual character.
[0236] In some embodiments, the target display style and / or target prompt identification is determined based on at least one of the material level of the pickable first virtual material, the type of the pickable first virtual material, and the target distance between the pickable first virtual material and the controlled virtual character.
[0237] In some embodiments, the picking module 1302 is specifically used for:
[0238] Automatically picking up the first virtual material within a preset range from the controlled virtual character, and displaying the picking progress;
[0239] When the picking progress meets the preset progress condition, it is determined that the automatic picking of the first virtual material within the preset range of the controlled virtual character is completed.
[0240] In some embodiments, the picking module 1302 is specifically used for:
[0241] The picking progress is updated based on an automatic picking speed corresponding to a second virtual material, where the second virtual material is a first virtual material within a preset range from the controlled virtual character.
[0242] In some embodiments, the automatic pickup speed is determined based on at least one of a target distance between the controlled virtual character and the second virtual resource, a difficulty of picking up the second virtual resource, and a pickup quantity of the second virtual resource.
[0243] In some embodiments, the larger the target distance, the slower the automatic picking speed, the greater the picking difficulty, the slower the automatic picking speed and / or the larger the number of picks, the slower the automatic picking speed.
[0244] In some embodiments, the difficulty of picking up is determined based on regional information of the area where the second virtual supplies are located, and the regional information includes at least one of terrain information of the area where the second virtual supplies are located, obstacle information on the area where the second virtual supplies are located, and weather information of the area where the second virtual supplies are located.
[0245] In some embodiments, the picking module 1302 is specifically used for:
[0246] Displaying a material pickup indicator on the graphical user interface, the material pickup indicator including a progress bar area and a cancel control;
[0247] The progress of picking is displayed through the progress bar area;
[0248] Before the picking progress meets the preset progress condition, the picking module 1302 is further used to execute:
[0249] In response to the triggering operation of the cancel control, the automatic picking up of the first virtual material within the preset range of the controlled virtual character is canceled.
[0250] In some embodiments, before the picking progress meets the preset progress condition, the picking module 1302 is further used to:
[0251] When it is detected that the current field of view is updated and the updated current field of view does not include the first virtual goods within the preset range of the controlled virtual character, the automatic picking up of the first virtual goods within the preset range of the controlled virtual character is cancelled.
[0252] In some embodiments, the picking module 1302 is specifically used for:
[0253] When the picking progress meets the preset progress condition, the first virtual material within the preset range of the controlled virtual character is stored in the virtual storage space corresponding to the controlled virtual character, so as to automatically pick up the first virtual material within the preset range of the controlled virtual character.
[0254] In some embodiments, the picking progress is displayed on the progress bar area, which includes different sub-areas. Different sub-areas correspond to different space identifiers. The space identifier is used to indicate the virtual storage space corresponding to the first virtual material within a preset range of the controlled virtual character after the progress of the sub-area is reached.
[0255] In some embodiments, the picking module 1302 is specifically used for:
[0256] When the picking progress meets the preset progress condition, the free storage area of the virtual storage space corresponding to the controlled virtual character is detected;
[0257] If there is an idle storage area in the virtual storage space, the first virtual material within a preset range from the controlled virtual character is stored in the virtual storage space.
[0258] In some embodiments, the display module is further used for:
[0259] If there is no free storage area in the virtual storage space, a prompt message is displayed, and the prompt message is used to prompt that there is no free storage area and to prompt to replace the virtual materials.
[0260] In some embodiments, the prompt information further includes a fourth virtual resource in the virtual storage space that is recommended to be discarded, and the picking module 1302 is further used to:
[0261] In response to the discard confirmation operation on the fourth virtual material, the fourth virtual material is discarded, and the first virtual material within a preset range from the controlled virtual character is stored in the virtual storage space.
[0262] In some embodiments, the display module is specifically used for:
[0263] If there is no free storage area in the virtual storage space, based on at least one of the popularity of the virtual materials in the virtual storage space, the hierarchical relationship between the virtual materials and the first virtual materials within the preset range of the controlled virtual character, the difficulty of obtaining the virtual materials, and the degree of demand of the controlled virtual character for the virtual materials, determine a fourth virtual material recommended to be discarded from the virtual materials;
[0264] Based on the fourth virtual material, prompt information is displayed.
[0265] In some embodiments, the display module is further used for:
[0266] In response to the triggering operation of the prompt information, a backpack interface is displayed, and the backpack interface includes virtual supplies owned by the controlled virtual character.
[0267] The picking module 1302 is also used for:
[0268] In response to a discard operation on the fifth virtual material in the owned virtual material, the fifth virtual material is discarded, and the first virtual material within a preset range from the controlled virtual character is stored in the virtual storage space.
[0269] In some embodiments, the display module is further used for:
[0270] If no triggering operation on the prompt information is detected within a preset time period after the prompt information is displayed, the prompt information is canceled, and it is determined that the automatic picking up of the first virtual material within the preset range of the controlled virtual character has failed.
[0271] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0272] Accordingly, an embodiment of the present application further provides an electronic device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Fig.14 As shown, Fig.14A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1400 includes a processor 1401 having one or more processing cores, a memory 1402 having one or more computer-readable storage media, and a computer program stored in the memory 1402 and executable on the processor. The processor 1401 is electrically connected to the memory 1402. It will be understood by those skilled in the art that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0273] Processor 1401 is the control center of electronic device 1400. It uses various interfaces and lines to connect various parts of the entire electronic device 1400, executes various functions of electronic device 1400 and processes data by running or loading software programs and / or modules stored in memory 1402, and calling data stored in memory 1402, thereby monitoring electronic device 1400 as a whole.
[0274] In the embodiment of the present application, the processor 1401 in the electronic device 1400 will load instructions corresponding to the processes of one or more application programs into the memory 1402 according to the following steps, and the processor 1401 will run the application programs stored in the memory 1402 to implement various functions, such as:
[0275] In response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, determining the current field of view of the controlled virtual character in the game field of view corresponding to the game screen, and judging whether there is a first virtual material that can be picked up within the current field of view;
[0276] When there is a first virtual material that can be picked up within the current field of view of the controlled virtual character, an automatic picking operation is performed on the first virtual material within a preset range from the controlled virtual character.
[0277] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the material picking method above, which will not be elaborated here.
[0278] Optional, such as Fig.14 As shown, the electronic device 1400 further includes: a touch screen 1403, a radio frequency circuit 1404, an audio circuit 1405, an input unit 1406, and a power supply 1407. The processor 1401 is electrically connected to the touch screen 1403, the radio frequency circuit 1404, the audio circuit 1405, the input unit 1406, and the power supply 1407, respectively. Those skilled in the art can understand that Fig.14The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0279] The touch display screen 1403 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 1403 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-EmittingDiode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1401, and can receive the command sent by the processor 1401 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1401 to determine the type of touch event, and then the processor 1401 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1403 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1403 can also be used as a part of the input unit 1406 to realize the input function.
[0280] The radio frequency circuit 1404 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals between the network device or other electronic devices.
[0281] The audio circuit 1405 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 1405 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1405 and converted into audio data, and then the audio data is output to the processor 1401 for processing, and then sent to another electronic device through the radio frequency circuit 1404, or the audio data is output to the memory 1402 for further processing. The audio circuit 1405 may also include an earplug jack to provide communication between an external headset and an electronic device.
[0282] The input unit 1406 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0283] The power supply 1407 is used to supply power to various components of the electronic device 1400. Optionally, the power supply 1407 can be logically connected to the processor 1401 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 1407 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0284] although Fig.14 Not shown, the electronic device 1400 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0285] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0286] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0287] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer program can be loaded by a processor to execute any of the material picking methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:
[0288] In response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, determining the current field of view of the controlled virtual character in the game field of view corresponding to the game screen, and judging whether there is a first virtual material that can be picked up within the current field of view;
[0289] When there is a first virtual material that can be picked up within the current field of view of the controlled virtual character, an automatic picking operation is performed on the first virtual material within a preset range from the controlled virtual character.
[0290] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the material picking method above, which will not be elaborated here.
[0291] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0292] Since the computer program stored in the computer-readable storage medium can execute any of the material picking methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any of the material picking methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0293] The material picking method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A material picking method, characterized in that: Displaying a game screen by a graphical user interface, the game screen including at least a portion of a game scene, the game scene including a controlled virtual character, the method comprising: In response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, determining the current field of view of the controlled virtual character in the game field of view corresponding to the game screen, and judging whether there is a first virtual material that can be picked up within the current field of view; In the case that there is a first virtual material that can be picked up within the current field of view of the controlled virtual character, an automatic picking operation is performed on the first virtual material within a preset range from the controlled virtual character.
2. The material picking method according to claim 1, characterized in that: The determining, in response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, a current field of view of the controlled virtual character in a game field of view corresponding to the game screen comprises: In response to the orientation adjustment operation and / or movement control operation of the controlled virtual character, adjusting the virtual camera corresponding to the controlled virtual character; Determining a game field of view corresponding to the game screen based on the adjusted virtual camera; Determine the current field of view of the controlled virtual character in the game field of view.
3. The material picking method according to claim 2, characterized in that: The game field of view includes the first viewing cone range of the adjusted virtual camera, and the current field of view includes the second viewing cone range of the adjusted virtual camera, and the field of view angle corresponding to the second viewing cone range is smaller than the field of view angle of the first viewing cone range.
4. The material picking method according to claim 3, characterized in that: The projection of the first viewing cone range in the game scene is a circle or an ellipse, and / or the projection of the second viewing cone range in the game scene is a circle or an ellipse.
5. The material picking method according to claim 2, characterized in that: The determining the current field of view of the controlled virtual character in the field of view of the game includes: Obtaining a target viewing angle corresponding to the current viewing range; Based on the target field of view angle, a current field of view range of the controlled virtual character in the game field of view range is determined.
6. The material picking method according to claim 5, characterized in that: The obtaining of the target viewing angle corresponding to the current viewing range includes: When it is detected that the controlled virtual character is equipped with target virtual equipment, the preset field of view angle is increased to obtain the target field of view angle corresponding to the current field of view range.
7. The material picking method according to claim 5, characterized in that: The obtaining of the target viewing angle corresponding to the current viewing range includes: Based on the environmental information of the environment in which the controlled virtual character is located, the preset field of view angle is adjusted to obtain a target field of view angle corresponding to the current field of view range.
8. The material picking method according to claim 1, characterized in that: The orientation adjustment operation includes a sliding operation on the graphical user interface or a triggering operation on a virtual joystick on the graphical user interface, and / or the movement control operation includes a triggering operation on a virtual joystick on the graphical user interface.
9. The material picking method according to claim 1, characterized in that: The method further comprises: The display style of the first virtual material that can be picked up is updated to a target display style, and / or, a target prompt mark corresponding to the first virtual material that can be picked up is displayed on the graphical user interface.
10. The material picking method according to claim 9, characterized in that: The target display style includes a first target display style, the target prompt identifier includes a first target prompt identifier, and updating the display style of the first virtual material that can be picked up to the target display style, and / or displaying the target prompt identifier corresponding to the first virtual material that can be picked up on the graphical user interface, includes: The display style of the second virtual material is updated to the first target display style, and / or, a first target prompt mark corresponding to the second virtual material is displayed on the graphical user interface, wherein the second virtual material is the first virtual material among the pickable first virtual materials within a preset range from the controlled virtual character.
11. The material picking method according to claim 9, characterized in that: The target display style includes a second target display style, the target prompt identifier includes a second target prompt identifier, and updating the display style of the first virtual material that can be picked up to the target display style, and / or displaying the target prompt identifier corresponding to the first virtual material that can be picked up on the graphical user interface, includes: The display style of the third virtual material is updated to the second target display style, and / or, a second target prompt mark corresponding to the third virtual material is displayed on the graphical user interface, wherein the third virtual material is the first virtual material among the pickable first virtual materials that is not within the preset range of the controlled virtual character.
12. The material picking method according to claim 9, characterized in that: The target display style and / or the target prompt mark are determined based on at least one of the material level of the pickable first virtual material, the type of the pickable first virtual material, and the target distance between the pickable first virtual material and the controlled virtual character.
13. The material picking method according to any one of claims 1 to 12, characterized in that: Performing an automatic picking operation on a first virtual material within a preset range from the controlled virtual character includes: Automatically picking up the first virtual material within a preset range from the controlled virtual character, and displaying the picking progress; When the picking progress meets a preset progress condition, it is determined that the automatic picking up of the first virtual material within a preset range from the controlled virtual character is completed.
14. The material picking method according to claim 13, characterized in that: The display picking progress includes: The picking progress is updated based on an automatic picking speed corresponding to a second virtual material, where the second virtual material is a first virtual material within a preset range from the controlled virtual character.
15. The material picking method according to claim 14, characterized in that: The method further comprises: The automatic picking speed is determined based on at least one of a target distance between the controlled virtual character and the second virtual goods, a difficulty of picking up the second virtual goods, and a picking-up quantity of the second virtual goods.
16. The material picking method according to claim 15, characterized in that: The larger the target distance is, the slower the automatic picking speed is; the greater the picking difficulty is, the slower the automatic picking speed is and / or the larger the number of items to be picked up is, the slower the automatic picking speed is.
17. The material picking method according to claim 15, characterized in that: The picking difficulty is determined based on area information of an area where the second virtual goods are located, wherein the area information includes at least one of terrain information of the area where the second virtual goods are located, obstacle information on the area where the second virtual goods are located, and weather information of the area where the second virtual goods are located.
18. The material picking method according to claim 13, characterized in that: The displaying of the picking progress includes: Displaying a material pickup mark on the graphical user interface, wherein the material pickup mark includes a progress bar area and a cancel control; Displaying the picking progress through the progress bar area; Before the picking progress meets the preset progress condition, the method further includes: In response to the triggering operation of the cancel control, the automatic picking up of the first virtual material within a preset range from the controlled virtual character is canceled.
19. The material picking method according to claim 13, characterized in that: Before the picking progress meets the preset progress condition, the method further includes: When it is detected that the current field of view is updated and the updated current field of view does not include the first virtual goods within the preset range from the controlled virtual character, automatically picking up the first virtual goods within the preset range from the controlled virtual character is canceled.
20. The material picking method according to claim 13, characterized in that: When the picking progress satisfies a preset progress condition, determining that the automatic picking up of the first virtual material within a preset range from the controlled virtual character is completed includes: When the picking progress meets the preset progress condition, the first virtual material within the preset range of the controlled virtual character is stored in the virtual storage space corresponding to the controlled virtual character, so as to automatically pick up the first virtual material within the preset range of the controlled virtual character.
21. The material picking method according to claim 20, characterized in that: The picking progress is displayed on a progress bar area, which includes different sub-areas. Different sub-areas correspond to different space identifiers, and the space identifier is used to indicate the virtual storage space corresponding to the first virtual material within a preset range of the controlled virtual character after the progress of the sub-area is reached.
22. The material picking method according to claim 20, characterized in that: When the picking progress meets the preset progress condition, storing the first virtual material within the preset range of the controlled virtual character into the virtual storage space corresponding to the controlled virtual character includes: When the picking progress meets a preset progress condition, detecting a free storage area of the virtual storage space corresponding to the controlled virtual character; If there is an idle storage area in the virtual storage space, the first virtual material within a preset range from the controlled virtual character is stored in the virtual storage space.
23. The material picking method according to claim 22, characterized in that: When the picking progress meets the preset progress condition, after detecting the free storage area of the virtual storage space corresponding to the controlled virtual character, the method further includes: If the virtual storage space does not have the free storage area, a prompt message is displayed, wherein the prompt message is used to prompt that the free storage area does not exist and to prompt to replace the virtual material.
24. The material picking method according to claim 23, characterized in that: The prompt information also includes a fourth virtual material in the virtual storage space that is recommended to be discarded, and the method further includes: In response to a discard confirmation operation on the fourth virtual material, the fourth virtual material is discarded, and the first virtual material within a preset range from the controlled virtual character is stored in the virtual storage space.
25. The material picking method according to claim 24, characterized in that: If the virtual storage space does not have the free storage area, displaying prompt information includes: If the virtual storage space does not have the free storage area, based on at least one of the popularity of the virtual goods in the virtual storage space, the hierarchical relationship between the virtual goods and the first virtual goods within a preset range from the controlled virtual character, the difficulty of obtaining the virtual goods, and the degree of demand of the controlled virtual character for the virtual goods, determining a fourth virtual good recommended for discarding from the virtual goods; Based on the fourth virtual material, prompt information is displayed.
26. The material picking method according to claim 23, characterized in that: After displaying the prompt information, the method further includes: In response to a triggering operation on the prompt information, displaying a backpack interface, the backpack interface including virtual supplies owned by the controlled virtual character; In response to a discard operation on a fifth virtual material in the owned virtual materials, the fifth virtual material is discarded, and the first virtual material within a preset range from the controlled virtual character is stored in the virtual storage space.
27. The material picking method according to claim 23, characterized in that: The method further comprises: If no triggering operation on the prompt information is detected within a preset time period after the prompt information is displayed, the prompt information is canceled, and it is determined that the automatic picking up of the first virtual material within a preset range from the controlled virtual character has failed.
28. A material picking device, characterized in that: The game screen is displayed by a graphical user interface, wherein the game screen includes at least a part of a game scene, and the game scene includes a controlled virtual character, and the device includes: a determination module, configured to determine a current field of view of the controlled virtual character in a game field of view corresponding to the game screen in response to a direction adjustment operation and / or a movement control operation of the controlled virtual character, and to determine whether there is a first virtual material that can be picked up within the current field of view; The picking module is used to automatically pick up the first virtual material within a preset range from the controlled virtual character when there is a first virtual material that can be picked up within the current field of view of the controlled virtual character.
29. An electronic device, characterized in that: It includes a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the material picking method as described in any one of claims 1 to 27.
30. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the material picking method described in any one of claims 1 to 27.
Citation Information
Patent Citations
Virtual item pickup method and device, computer equipment and storage medium
CN115040870A
Virtual material pickup method and device, computer equipment and storage medium
CN118341076A
Heater device of electric motor vehicle
KR102844645B1