Virtual magazine supplementing method, device, equipment, medium and program product
Through virtual magazine replenishment methods and devices, the ammunition replacement operation of virtual attack props is simplified, and the problem of single and cumbersome virtual magazine replacing methods in the existing technology is solved, achieving a diversified ammunition replacement mechanism and a more efficient gaming experience.
Patent Information
- Application Number
- CN202411295404.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-01-07
AI Technical Summary
In the existing technology, the ammunition replacement method of virtual attack props equipped with two virtual magazines is single and cumbersome. Players need to consume ammunition again after launching an attack to complete the ammunition replacement operation, and there is a lack of a diversified ammunition replacement mechanism.
Provide a virtual magazine replenishment method and device, by displaying a virtual character and controlling its use of virtual attack props, in response to the ammunition change operation, automatically replenishing virtual ammunition based on the status of the first virtual magazine and the second virtual magazine, and supporting Various ways to change bullets to simplify bullet changes.
It realizes the diversified ways to change bullets of virtual characters and virtual attack props, reducing the complexity and time-consuming of bullet changes, and improving game experience and player participation.
Smart Images

Figure CN119258540A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of human-computer interaction, and in particular to a virtual magazine replenishment method, device, equipment, medium and program product. Background Art
[0002] In shooting games, players can use virtual attack props to launch attacks, and each attack consumes a certain amount of virtual ammunition. The virtual attack props are equipped with virtual magazines, where the virtual magazines are used to load virtual ammunition, and the capacity of the virtual magazines is limited.
[0003] In the related art, a virtual attack prop can be equipped with two virtual magazines, namely a main magazine and a secondary magazine. When the virtual ammunition in the main magazine is used up or not full, the player chooses to change the ammunition, and the original secondary magazine is replaced with the main magazine, and the original main magazine is replaced with the secondary magazine. At this time, the ammunition cannot be changed any more. The player needs to launch an attack again, consume part of the virtual ammunition in the current main magazine, and then perform the reload again, so that the current main magazine and secondary magazine can be completely replaced with the new main magazine and secondary magazine.
[0004] However, the cartridge changing method in the related art is fixed and relatively simple. Summary of the invention
[0005] The present application provides a virtual magazine replenishment method, device, equipment, medium and program product. The technical solution is as follows:
[0006] On the one hand, a virtual magazine replenishment method is provided, the method comprising:
[0007] displaying a virtual character located in a virtual environment;
[0008] Controlling the virtual character to use a virtual attack prop, wherein the virtual attack prop is equipped with a first virtual magazine and a second virtual magazine, wherein the first virtual magazine is used to provide virtual ammunition required for using the virtual attack prop, and the second virtual magazine is used to replenish the virtual ammunition in the first virtual magazine;
[0009] In response to a reloading operation, the first virtual magazine or the second virtual magazine is replenished with the virtual ammunition based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine.
[0010] On the other hand, a virtual magazine replenishing device is provided, the device comprising:
[0011] A display module, used for displaying a virtual character in a virtual environment;
[0012] A control module, used for controlling the virtual character to use a virtual attack prop, wherein the virtual attack prop is equipped with a first virtual magazine and a second virtual magazine, wherein the first virtual magazine is used for providing virtual ammunition required for using the virtual attack prop, and the second virtual magazine is used for replenishing the virtual ammunition in the first virtual magazine;
[0013] The reloading module is used to replenish the virtual ammunition for the first virtual magazine or the second virtual magazine in response to the reloading operation based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine.
[0014] On the other hand, a computer device is provided, comprising: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the virtual magazine replenishment method as described above.
[0015] On the other hand, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the virtual magazine replenishment method as described above.
[0016] On the other hand, a computer program product is provided, which includes computer instructions stored in a computer-readable storage medium, and a processor obtains the computer instructions from the computer-readable storage medium, so that the processor loads and executes to implement the virtual magazine replenishment method as described above.
[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0018] The virtual attack props used by the virtual character are equipped with a first virtual magazine and a second virtual magazine. Based on different magazine states, it supports replenishing virtual ammunition for the first virtual magazine or the second virtual magazine, and provides multiple ways to change ammunition and a diversified mechanism for changing ammunition. Compared with the related technology, which requires first performing a change operation, launching an attack again, and then performing a change operation again after consuming a part of the virtual ammunition, this method only requires triggering a change operation once to change ammunition, and the change operation is simple, convenient, and time-saving. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;
[0021] Figure 2 is a schematic diagram of a virtual magazine replenishment method provided by an exemplary embodiment of the present application;
[0022] Figure 3 is a flow chart of a virtual magazine replenishment method provided by an exemplary embodiment of the present application;
[0023] Figure 4 is a schematic diagram of a first elastic quantity bar and a second elastic quantity bar provided by an exemplary embodiment of the present application;
[0024] Figure 5 is a schematic diagram of a first elastic quantity bar and a second elastic quantity bar provided by an exemplary embodiment of the present application;
[0025] Figure 6 is a schematic diagram of a first elastic quantity bar and a second elastic quantity bar provided by an exemplary embodiment of the present application;
[0026] Figure 7 is a schematic diagram of a first elastic quantity bar provided by an exemplary embodiment of the present application;
[0027] Figure 8 is a schematic diagram of replenishing a second virtual magazine provided by an exemplary embodiment of the present application;
[0028] Fig. 9 is a schematic diagram of replenishing a first virtual magazine provided by an exemplary embodiment of the present application;
[0029] Fig.10 is a schematic diagram of replenishing a first virtual magazine provided by an exemplary embodiment of the present application;
[0030] Fig.11 is a schematic diagram of replenishing a first virtual magazine provided by an exemplary embodiment of the present application;
[0031] Fig.12 is a schematic diagram of replenishing a first virtual magazine provided by an exemplary embodiment of the present application;
[0032] Fig.13 is a schematic diagram of a second virtual magazine replenishing a first virtual magazine provided by an exemplary embodiment of the present application;
[0033] Fig.14 is a schematic diagram of a second virtual magazine replenishing a first virtual magazine provided by an exemplary embodiment of the present application;
[0034] Fig.15 is a flow chart of a virtual magazine replenishment method provided by an exemplary embodiment of the present application;
[0035] Fig.16 is a schematic diagram of a virtual magazine replenishment method provided by an exemplary embodiment of the present application;
[0036] Fig.17 is a block diagram of a virtual magazine replenishing device provided by an exemplary embodiment of the present application;
[0037] Fig.18 It is a structural block diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0040] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0041] It should be understood that, although the terms first, second, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0042] It should be noted that before collecting relevant user data (for example, user account, control operation, and data related to bullet-changing operation) and during the process of collecting relevant user data, this application can display a prompt interface, pop-up window, or output voice prompt information. The prompt interface, pop-up window, or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining user-related data after obtaining the user's confirmation operation on the prompt interface or pop-up window, otherwise (that is, when the user's confirmation operation on the prompt interface or pop-up window is not obtained), the relevant steps of obtaining user-related data are terminated, that is, the user's relevant data is not obtained. In other words, all user data collected by this application are collected with the user's consent and authorization, and the collection, use, and processing of relevant user data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.
[0043] First, the nouns involved in the embodiments of the present application are briefly introduced:
[0044] Virtual environment: is a virtual environment displayed or provided when the client runs on the terminal. The virtual environment can be a simulation of the real world, a semi-simulation and semi-fictional three-dimensional world, or a purely fictional three-dimensional world. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment. Optionally, the virtual environment is also used for a virtual environment battle between at least two virtual characters, and the virtual environment has virtual resources that can be used by at least two virtual characters.
[0045] Virtual character: refers to an movable object in a virtual environment. The movable object may be at least one of a virtual person, a virtual animal, and a cartoon character. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual character may be a three-dimensional virtual model, and each virtual character has its own shape and volume in the three-dimensional virtual environment, and occupies a part of the space in the three-dimensional virtual environment. Optionally, the virtual character is a three-dimensional character constructed based on three-dimensional human skeleton technology, and the virtual character achieves different external images by wearing different skins. In some implementations, the virtual character may also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application.
[0046] In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed may be executed.
[0047] Figure 11 is a block diagram of a computer system 100 provided by an exemplary embodiment of the present application. The computer system 100 can be a system architecture for implementing a virtual magazine replenishment method. The computer system 100 includes: a first terminal 120, a server 140 and a second terminal 160.
[0048] The first terminal 120 is installed with a client supporting a virtual environment. The client may be any one of a battle royale shooting game, a virtual reality (VR) client, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online tactical competitive game (MOBA), and a simulation game (SLG).
[0049] The first terminal 120 is a terminal used by the first user, and the first user uses the first terminal 120 to control the virtual character in the virtual environment, and the control includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building virtual buildings. In some embodiments, the first user uses the first terminal 120 to perform a bullet replacement operation on the virtual attack props used by the virtual character to replenish the virtual ammunition required for using the virtual attack props.
[0050] The first terminal 120 and the second terminal 160 are connected to the server 140 via a wireless network or a wired network.
[0051] The server 140 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and cloud servers providing basic cloud computing services such as big data and artificial intelligence platforms. The server 140 includes at least one server, multiple servers, a cloud computing platform, and a virtualization center.
[0052] The server 140 includes a processor 144 and a memory 142, and the memory 142 includes a receiving module 1421, a control module 1422 and a sending module 1423. The receiving module 1421 is used to receive a request sent by the client; the control module 1422 is used to control the rendering of the virtual environment; the sending module 1423 is used to send a response to the client; the server 140 is used to provide background services for the clients of the first terminal 120 and the second terminal 160.
[0053] Optionally, the server 140 undertakes the main computing work, and the first terminal 120 and the second terminal 160 undertake the secondary computing work; or, the server 140 undertakes the secondary computing work, and the first terminal 120 and the second terminal 160 undertake the main computing work; or, the server 140, the first terminal 120 and the second terminal 160 adopt a distributed computing architecture to perform collaborative computing.
[0054] The second terminal 160 is installed with a client supporting a virtual environment. The client may be any one of a battle royale shooting game, a virtual reality (VR) client, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online tactical competitive game (MOBA), and a simulation game (SLG).
[0055] The second terminal 160 is a terminal used by the second user, and the second user uses the second terminal 160 to control the virtual character in the virtual environment, and the control includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building virtual buildings. In some embodiments, the second user uses the second terminal 160 to perform a bullet replacement operation on the virtual attack props used by the virtual character to replenish the virtual ammunition required for using the virtual attack props.
[0056] Optionally, the virtual characters controlled by the first user through the first terminal 120 and the second user through the second terminal 160 are located in different positions in the same virtual environment, that is, the first user and the second user are in the same battle. Alternatively, the virtual characters controlled by the first user through the first terminal 120 and the second user through the second terminal 160 are located in different positions in different virtual environments, that is, the first user and the second user are in different battles.
[0057] Optionally, the client installed on the first terminal 120 and the second terminal 160 is the same, or the client installed on the two terminals is the same type of client for different control system platforms. The embodiment of the present application does not limit the form of the client installed on the first terminal 120 and the second terminal 160, including but not limited to App (Application, client), applet, etc. installed in the first terminal 120 and the second terminal 160, and can also be in the form of a web page. The first terminal 120 can refer to one of multiple terminals, and the second terminal 160 can refer to one of multiple terminals. This embodiment only uses the first terminal 120 and the second terminal 160 as an example. The device type of the first terminal 120 and the second terminal 160 is the same, and the device model can be different. The device type includes at least one of: a smart phone, a tablet computer, a wearable device, a PC (Personal Computer, personal computer), a laptop portable computer, and a desktop computer. The following embodiments are illustrated by taking the terminal including a smart phone as an example.
[0058] Those skilled in the art can know that the number of the first terminal 120 and the second terminal 160 can be more or less. For example, the first terminal 120 and the second terminal 160 can be one each (i.e., a game between a user and an artificial intelligence), or the first terminal 120 and the second terminal 160 can be a total of 8 (1v1v1v1v1v1v1v1, 8 users play and eliminate each other in a cycle, and the winner is finally determined), or more. The embodiment of the present application does not limit the number and device type of the first terminal 120 and the second terminal 160.
[0059] Next, the client supporting the virtual environment is a shooting game as an example.
[0060] In shooting games, players can use virtual attack props to launch attacks, and each attack consumes a certain amount of virtual ammunition. The virtual attack props are equipped with virtual magazines, where the virtual magazines are used to load virtual ammunition, and the capacity of the virtual magazines is limited.
[0061] In the related art, the setting of virtual attack props includes one of the following two methods:
[0062] The first type: The virtual attack prop can be equipped with a virtual magazine, also called the main magazine. When the virtual ammunition in the main magazine is used up or not full, the player chooses to change the ammunition, and the number of virtual ammunition in the main magazine is updated to the upper threshold or maximum value;
[0063] Second type: Virtual attack props can be equipped with two virtual magazines, called the main magazine and the auxiliary magazine. When the virtual ammunition in the main magazine is used up or not full, the player chooses to change the bullets, and the original auxiliary magazine is replaced with the main magazine, and the original main magazine is replaced with the auxiliary magazine. At this time, the bullets cannot be changed. The player needs to launch an attack again and consume part of the virtual ammunition in the current main magazine before changing the bullets. Only then can the current main magazine and auxiliary magazine be replaced with new ones.
[0064] However, the related technology has at least the following disadvantages:
[0065] First: The way to change bullets is fixed and relatively simple;
[0066] Second: The reloading mechanism lacks sufficient gameplay mechanics;
[0067] Third: When there are two virtual magazines for a virtual attack item, the method of changing bullets is very cumbersome.
[0068] This embodiment provides a virtual magazine replenishment method. As an example, Figure 2 FIG. 1 is a schematic diagram of a virtual magazine replenishment method provided by an exemplary embodiment of the present application. Figure 1 Taking the first terminal 120 or a client supporting a virtual environment installed and running on the first terminal 120 as an example, the steps of the method are briefly described as follows:
[0069] Step 1: Display a virtual character in a virtual environment.
[0070] refer to Figure 2 As shown in (1) in FIG. 1 , the first terminal 120 displays a virtual character 10 in a virtual environment, and the player uses the first terminal 120 to control the virtual character 10 .
[0071] Step 2, controlling the virtual character to use the virtual attack props, the virtual attack props are equipped with a first virtual magazine and a second virtual magazine, the first virtual magazine is used to provide the virtual ammunition required for using the virtual attack props, and the second virtual magazine is used to replenish the virtual ammunition in the first virtual magazine.
[0072] refer to Figure 2As shown in (1), the player uses the first terminal 120 to control the virtual character 10 to use the virtual attack prop 20. During the use of the virtual attack prop 20, the aiming control 33 is also displayed. The aiming control 33 is used to aim at the enemy virtual character or virtual object. The virtual attack prop 20 is equipped with a first virtual magazine and a second virtual magazine. The first virtual magazine is used to provide virtual ammunition required for using the virtual attack prop 20, and the second virtual magazine is used to replenish the virtual ammunition in the first virtual magazine. The first virtual magazine corresponds to the first ammunition bar, and the second virtual magazine corresponds to the second ammunition bar. The first ammunition bar and the second ammunition bar are represented by bar elements, and the inside of the bar elements can also be filled with different colors. For example, the first bullet level bar of the first virtual magazine is currently displayed as an arc-shaped bar element 31, and there is a white element on the arc-shaped bar element 31. At this time, the length of the white element is the same as the length of the arc-shaped bar element 31, the first virtual magazine is full, and the first remaining bullet level of the first virtual magazine is 100% of the upper threshold value; the second bullet level bar of the second virtual magazine is currently displayed as an arc-shaped bar element 32, and there is a black element on the arc-shaped bar element 32. At this time, the length of the black element is the same as the length of the arc-shaped bar element 32, and the second virtual magazine is empty, that is, the second remaining bullet level of the second virtual magazine is the lower threshold value 0.
[0073] Step 3: In response to the reloading operation, based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine, replenish virtual ammunition for the first virtual magazine or the second virtual magazine.
[0074] The player uses the first terminal 120 to issue a reloading operation, and the first terminal 120 replenishes virtual ammunition for the first virtual magazine or the second virtual magazine based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine, wherein the first magazine state is characterized by a first remaining ammunition quantity, and the second magazine state is characterized by a second remaining ammunition quantity. Figure 2 As shown in (2), after the reloading operation, the virtual ammunition is replenished for the second virtual magazine, wherein the first ammunition quantity bar of the first virtual magazine is still displayed as the arc-shaped bar element 31 unchanged, and the second ammunition quantity bar of the second virtual magazine is currently displayed as the arc-shaped bar element 34, and the arc-shaped bar element 34 is a white element. At this time, the length of the white element is the same as the length of the arc-shaped bar element 34, and the second remaining ammunition quantity of the second virtual magazine is replenished to full after the reloading operation.
[0075] It should also be noted that Figure 2 Only a schematic diagram of an example virtual ammunition replenishment method is shown. Based on different first magazine states of the first virtual magazine and different second magazine states of the second virtual magazine, other examples can also be used to replenish virtual ammunition for the first virtual magazine or the second virtual magazine. Other examples will be described in the embodiments below.
[0076] In summary, the virtual magazine replenishment method provided in the embodiment of the present application provides a variety of ways to change bullets, making the ways to change bullets rich and diverse, thereby being able to provide enough ways to change bullets. In the related art, when a virtual attack prop is equipped with two virtual magazines, it is necessary to first perform a change operation, and then launch an attack again to consume a part of the virtual ammunition and then perform the change operation again to achieve the change method. In this embodiment, when the virtual attack prop is equipped with two virtual magazines, the change operation only needs to be triggered once to change bullets, so as to replenish virtual ammunition for the first virtual magazine and the second virtual magazine. The change operation is simple, convenient, and time-saving.
[0077] Figure 3 1 is a flowchart of a virtual magazine replenishment method provided by an exemplary embodiment of the present application. The method is executed by a computer device, and the computer device includes a first terminal 120 or a client supporting a virtual environment installed and run by the first terminal 120 or a second terminal 160 or a client supporting a virtual environment installed and run by the second terminal 160. The method includes at least some of steps 320, 340, and 360:
[0078] Step 320: Display the virtual character in the virtual environment.
[0079] The virtual environment is a virtual environment displayed or provided when the client is running in the terminal. The virtual environment can be a simulation of the real world, a semi-simulation and semi-fictional three-dimensional world, or a purely fictional three-dimensional world. A virtual character is a character in the virtual environment controlled by the player based on the terminal. The virtual character can be in a combat state or a non-combat state in a game match.
[0080] Exemplarily, the computer device displays a virtual character in a virtual environment.
[0081] Step 340, controlling the virtual character to use the virtual attack props, the virtual attack props are equipped with a first virtual magazine and a second virtual magazine, the first virtual magazine is used to provide the virtual ammunition required for using the virtual attack props, and the second virtual magazine is used to replenish the virtual ammunition in the first virtual magazine.
[0082] Virtual attack props are props that attack enemy virtual characters or virtual items by consuming virtual ammunition. Each time a virtual attack prop is used to launch an attack, a certain amount of virtual ammunition is consumed, and the amount of virtual ammunition consumed each time an attack is launched may be the same or different. When an enemy virtual character is hit by the virtual ammunition of a virtual attack prop, the enemy virtual character will lose health or receive a debuff or negative effect.
[0083] The virtual magazine of the virtual attack prop is used to load virtual ammunition. In this embodiment, the virtual attack prop is equipped with a first virtual magazine and a second virtual magazine. The first virtual magazine is also called a main magazine, and the second virtual magazine is also called a secondary magazine. The first virtual magazine is used to provide the virtual ammunition required for using the virtual attack prop, which can also be understood as directly providing virtual ammunition, and the second virtual magazine is used to supplement the virtual ammunition in the first virtual magazine, which can also be understood as indirectly providing virtual ammunition. Optionally, the types of virtual ammunition in the first virtual magazine can be the same or different, the types of virtual ammunition in the second virtual magazine can be the same or different, and the types of virtual ammunition in the first virtual magazine and the second virtual magazine can be the same or different. Specifically, the type of virtual ammunition includes at least one of a virtual Molotov cocktail, a virtual smoke bomb, and a virtual bullet. For the first virtual magazine, the proportion of each type of virtual ammunition in different types of virtual ammunition can also be the same or different. For the second virtual magazine, the proportion of each type of virtual ammunition in different types of virtual ammunition can also be the same or different.
[0084] It should also be noted that this embodiment only takes two virtual magazines as an example. Based on actual technical needs, a third virtual magazine, a fourth virtual magazine, and so on can be further set. These can all be called auxiliary magazines, which are used to replenish the virtual ammunition in the first virtual magazine in sequence according to the priority or set order. In other implementations, the second virtual magazine is also used to replace the first virtual magazine. For example, the original second virtual magazine is replaced by the first virtual magazine, and the original first virtual magazine is replaced by the second virtual magazine.
[0085] Exemplarily, the computer device controls the virtual character to use the virtual attack prop. Optionally, the computer device controls the virtual character to use the virtual attack prop in response to a selection operation on the virtual attack prop. Or, the computer device controls the virtual character to switch from the current virtual prop to the virtual attack prop in response to a switching operation from the current virtual prop to the virtual attack prop, and controls the virtual character to use the virtual attack prop.
[0086] Step 360 , in response to the reloading operation, based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine, replenish virtual ammunition for the first virtual magazine or the second virtual magazine.
[0087] The reloading operation is used to update or replenish the amount of virtual ammunition of the virtual attack prop. Optionally, the reloading operation is an operation of replenishing virtual ammunition for the first virtual magazine or the second virtual magazine of the virtual attack prop, or, an operation of replenishing or updating the virtual ammunition in the first virtual magazine or the second virtual magazine of the virtual attack prop from empty or not full to full.
[0088] The first magazine status is used to represent the magazine status of the first virtual magazine. Optionally, the first magazine status is represented based on at least one of the first remaining amount of bullets in the first virtual magazine, the type and attribute of the remaining virtual ammunition, the type and attribute of the consumed virtual ammunition, and the type and attribute of the virtual attack prop.
[0089] Optionally, the first remaining ammunition is the number of remaining virtual ammunition in the first virtual magazine. The first remaining ammunition is expressed as a percentage, the lower limit threshold is 0, and the upper limit threshold is 100%, or the first remaining ammunition is expressed as a specific value, the lower limit threshold is 0, and the upper limit threshold is the maximum capacity of the first virtual magazine, for example, the maximum capacity is 30 virtual ammunition, and the upper limit threshold includes 30. The types of remaining virtual ammunition or consumed virtual ammunition include: at least one of virtual Molotov cocktails, virtual smoke bombs, and virtual bullets, and the proportions of these different types of virtual ammunition in the remaining virtual ammunition or consumed virtual ammunition can be the same or different. The properties of the remaining virtual ammunition or consumed virtual ammunition include: at least one of caliber, damage value, range, and applicable virtual attack props. The properties of virtual attack props include: at least one of range, reloading time, continuous firing performance, power value, and aiming degree.
[0090] The second magazine status is used to characterize the magazine status of the second virtual magazine. Optionally, the second magazine status is characterized based on at least one of the second remaining amount of bullets in the second virtual magazine, the type and attribute of the remaining virtual ammunition, the type and attribute of the consumed virtual ammunition, and the type and attribute of the virtual attack prop.
[0091] Optionally, the second remaining ammunition is the number of remaining virtual ammunition in the second virtual magazine. The second remaining ammunition is expressed as a percentage, the lower threshold is 0, and the upper threshold is 100%, or the second remaining ammunition is expressed as a specific value, the lower threshold is 0, and the upper threshold is the maximum capacity of the second virtual magazine, for example, the maximum capacity is 30 virtual ammunition, and the upper threshold includes 30. The maximum capacity of the second virtual magazine is the same as or different from that of the first virtual magazine. The types of remaining virtual ammunition or consumed virtual ammunition include: at least one of virtual Molotov cocktails, virtual smoke bombs, and virtual bullets, and the properties of the remaining virtual ammunition or consumed virtual ammunition include: at least one of caliber, damage value, range, and applicable virtual attack props. The properties of virtual attack props include: at least one of range, loading time, continuous firing performance, power value, and aiming degree.
[0092] In some embodiments, the reloading operation is manually triggered based on an operation performed by the player. Specifically, the reloading operation is triggered based on a reloading button; or, based on a reloading control; or, based on a specified gesture, for example, the specified gesture includes at least one of waving to the left, waving to the right, and moving two fingers in an interlaced manner; or, based on a specified voice content, for example, the specified voice content is "reloading is needed now"; or, based on an external input device of a computer device, for example, the external input device includes at least one of an external keyboard, an external mouse, and a handheld game console. Exemplarily, the computer device responds to a trigger operation on a reloading button, or, in response to a trigger operation on a reloading control, or, in response to an input operation on a specified gesture, or, in response to detecting a specified voice content, or, in response to an input operation based on an external input device, based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine, replenishes virtual ammunition for the first virtual magazine or the second virtual magazine. The trigger operation includes at least one of a single click, a double click, a long press, and a slide. In this embodiment, multiple manual triggering methods for reloading are provided, which are applicable to various practical scenarios. Players can also flexibly choose whether to trigger the reloading operation according to the magazine status, and can also think about how to reload to be more conducive to the battle, thereby improving player participation and experience.
[0093] In other embodiments, the reloading operation is automatically triggered based on a neural network model. Specifically, the computer device stores a trained neural network model, and the neural network model includes at least one of a decision tree model, a vector regression model, a time series model, and a convolutional neural network. The neural network model is used to predict whether a reloading operation needs to be performed and a reloading method corresponding to the reloading operation based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine.
[0094] Exemplarily, in the training phase of the neural network model, the training data of the neural network model includes: sample operation data of the sample login account. Optionally, the sample operation data includes the account identifier of the sample login account, the operation time of the sample reloading operation performed by the sample login account, the first magazine state and the second magazine state corresponding to the sample reloading operation, and at least one of the reloading mode corresponding to the sample reloading operation. The first magazine state is characterized based on at least one of the first remaining amount of the first virtual magazine, the type and attributes of the remaining virtual ammunition, the type and attributes of the consumed virtual ammunition, and the type and attributes of the virtual attack props. The second magazine state is characterized based on at least one of the second remaining amount of the second virtual magazine, the type and attributes of the remaining virtual ammunition, the type and attributes of the consumed virtual ammunition, and the type and attributes of the virtual attack props.
[0095] The computer device obtains sample operation data of the sample login account, and the sample operation data is annotated with label information, and the label information includes whether the sample reloading operation needs to be performed and the reloading method corresponding to the sample reloading operation. The sample operation data is input into the neural network model to be trained, and the prediction information corresponding to the sample operation data is obtained, and the error between the prediction information and the label information is reduced as the training target, and the model parameters of the neural network model to be trained are adjusted to obtain the trained neural network model.
[0096] Exemplarily, in the prediction stage of the neural network model, the computer device obtains at least one of the first magazine state of the first virtual magazine and the second magazine state of the second virtual magazine, and obtains the account identifier of the currently logged-in account, and inputs at least one of the account identifier, the first magazine state and the second magazine state into the trained neural network model to obtain prediction information, and the prediction information is used to indicate whether a reloading operation needs to be performed, and the reloading method corresponding to the reloading operation. When the prediction information is used to indicate that a reloading operation needs to be performed, the computer device automatically triggers the reloading operation, and replenishes virtual ammunition for the first virtual magazine or the second virtual magazine based on the reloading method corresponding to the reloading operation indicated by the prediction information. In this embodiment, automatically helping the player to trigger the reloading operation can, on the one hand, improve the reloading efficiency and the accuracy of the reloading decision. On the other hand, in some complex game scenarios, this can reduce the difficulty of the reloading operation, reduce the player's thinking cost, and improve the player's experience.
[0097] In summary, the virtual magazine replenishment method provided by the embodiment of the present application, the computer device displays a virtual character in a virtual environment; controls the virtual character to use a virtual attack prop, the virtual attack prop is equipped with a first virtual magazine and a second virtual magazine, the first virtual magazine is used to provide the virtual ammunition required for using the virtual attack prop, and the second virtual magazine is used to replenish the virtual ammunition in the first virtual magazine; in response to the reloading operation, based on at least one of the first magazine state of the first virtual magazine and the second magazine state of the second virtual magazine, the virtual ammunition is replenished for the first virtual magazine or the second virtual magazine. Accordingly, the virtual attack prop used by the virtual character is equipped with a first virtual magazine and a second virtual magazine, and based on different magazine states, it supports replenishing virtual ammunition for the first virtual magazine or the second virtual magazine, providing a variety of reloading methods and diversified reloading mechanisms, thereby increasing more diversified reloading gameplay in the game. Moreover, compared with the related art in which the virtual attack prop has a double magazine and needs to perform the reloading operation multiple times to realize the reloading method, only one reloading operation is required to realize the reloading, and the reloading operation is simple, convenient, and time-consuming. For players, they can also flexibly choose whether to trigger the reload operation according to the magazine status, and can also think about how to reload to be more beneficial in combat, which improves player participation and experience.
[0098] Reloading mechanism:
[0099] Next, the bullet replacement mechanism provided by this embodiment is described in detail.
[0100] In some embodiments, considering that the purpose of the reloading operation is to replenish virtual ammunition, that is, to update the amount of virtual ammunition, the first magazine state is characterized by a first remaining ammunition quantity of the first virtual magazine, and the second magazine state is characterized by a second remaining ammunition quantity of the second virtual magazine. Step 360 is specifically implemented as step 400:
[0101] Step 400, in response to a reloading operation, replenishing virtual ammunition for the first virtual magazine or the second virtual magazine in a reloading manner that matches a first remaining amount of ammunition in the first virtual magazine and a second remaining amount of ammunition in the second virtual magazine.
[0102] The bullet changing mode matches the first remaining amount of bullets in the first virtual magazine and the second remaining amount of bullets in the second virtual magazine, and a matching relationship is preset. Exemplarily, in response to the bullet changing operation, the computer device replenishes virtual ammunition for the first virtual magazine or the second virtual magazine according to the bullet changing mode that matches the first remaining amount of bullets in the first virtual magazine and the second remaining amount of bullets in the second virtual magazine. The computer device determines the first remaining amount of bullets in the first virtual magazine and the second remaining amount of bullets in the second virtual magazine by detecting the client data, and determines the bullet changing mode that matches the first remaining amount of bullets in the first virtual magazine and the second remaining amount of bullets in the second virtual magazine based on the matching relationship between the preset first remaining amount of bullets in the first virtual magazine and the second remaining amount of bullets in the second virtual magazine and the bullet changing mode.
[0103] In this embodiment, the first remaining ammunition amount and the second remaining ammunition amount can accurately and objectively represent the first magazine state and the second magazine state, and support replenishing virtual ammunition for the first virtual magazine or the second virtual magazine according to different reloading methods, thereby adding more diverse reloading gameplay in the game.
[0104] As shown in reference table 1, the remaining amount of the first virtual magazine includes two categories of full or not: when the first virtual magazine is full, the first remaining amount is equal to the upper threshold; when the first virtual magazine is not full, the first remaining amount is greater than or equal to the lower threshold and less than the upper threshold; wherein, the first virtual magazine is not full, including being empty, the first remaining amount is equal to the lower threshold, and the first virtual magazine is not full, including not completely empty, the first remaining amount is greater than the lower threshold and less than the upper threshold. The remaining amount of the second virtual magazine includes two categories of full or empty. When the second virtual magazine is full, the second remaining amount is equal to the upper threshold, and when the second virtual magazine is empty, the second remaining amount is equal to the lower threshold.
[0105] Table 1
[0106]
[0107] (I) Reloading logic:
[0108] This embodiment provides three types of bullet changing methods, a total of five bullet changing methods.
[0109] 1. The first type of reloading method:
[0110] When the first virtual magazine is full and the second virtual magazine is empty, the virtual ammunition in the second virtual magazine needs to be replenished from the virtual backpack, which is also called replenishing the second virtual magazine, and the first virtual magazine remains unchanged. The virtual backpack is used to store various virtual items, virtual ammunition, virtual props, etc. of the virtual character.
[0111] 2. The second way to change bullets:
[0112] When the first virtual magazine is not full and the second virtual magazine is empty, the virtual ammunition in the first virtual magazine needs to be replenished from the virtual backpack, which further includes two ways of refilling ammunition:
[0113] 2-1. First reloading method: when the first virtual magazine is empty and the second virtual magazine is empty, the virtual ammunition in the first virtual magazine needs to be replenished from the virtual backpack, which is also called complete reloading of the first virtual magazine, and the second virtual magazine remains unchanged;
[0114] 2-2. Second reloading method: When the first virtual magazine is not completely empty and the second magazine is empty, the virtual ammunition in the first virtual magazine needs to be replenished from the virtual backpack, which is also called quick reloading of the first virtual magazine, and the second virtual magazine remains unchanged.
[0115] 3. The third way to change bullets:
[0116] When the first virtual magazine is not full and the second virtual magazine is full, the virtual ammunition in the second virtual magazine needs to be added to the first virtual magazine, which further includes two ways of changing ammunition:
[0117] 3-1. The third reloading method: when the first virtual magazine is empty and the second virtual magazine is full, the virtual ammunition in the second virtual magazine needs to be refilled into the first virtual magazine, which is also called the second virtual magazine fully refilling the first virtual magazine;
[0118] 3-2. Fourth reloading method: when the first virtual magazine is not completely empty and the second virtual magazine is full, the virtual ammunition in the second virtual magazine needs to be replenished to the first virtual magazine, which is also called the second virtual magazine quickly replenishing the first virtual magazine.
[0119] In this embodiment, for the second virtual magazine, only two situations are considered: the second virtual magazine is empty or full. The purpose is to simplify the operation so that the player does not need to pay attention to the specific remaining amount of bullets in the first virtual magazine and the second virtual magazine at the same time when changing bullets. The player only needs to focus on the first remaining amount of bullets in the first virtual magazine and the two situations of whether the second virtual magazine is full or empty. This avoids making the changing method too complicated and reduces the learning cost for players.
[0120] In some embodiments, the first virtual magazine corresponds to a first counter, and the first counter is used to count the first remaining amount of ammunition in the first virtual magazine in real time. The second virtual magazine corresponds to a second counter, and the second counter is used to count the second remaining amount of ammunition in the second virtual magazine in real time. The virtual backpack corresponds to a third counter, and the third counter is used to count the remaining amount of ammunition in the virtual backpack in real time. In a non-reloading process or a reloading process, based on the change of the amount of ammunition in the first virtual magazine, the value of the first counter is increased or decreased, based on the change of the amount of ammunition in the second virtual magazine, the value of the second counter is increased or decreased, and based on the change of the amount of ammunition in the virtual backpack, the value of the third counter is increased or decreased.
[0121] For the first type of cartridge replacement method: step 400 is implemented as step 410:
[0122] Step 410, in response to the reloading operation, when the first remaining ammunition quantity is an upper threshold value and the second remaining ammunition quantity is a lower threshold value, the virtual ammunition in the second virtual magazine is replenished from the virtual backpack according to the first type of reloading method.
[0123] Exemplarily, in response to the reloading operation, the computer device replenishes the virtual ammunition in the second virtual magazine from the virtual backpack in accordance with the first type of reloading method when the first remaining ammunition amount is the upper limit threshold and the second remaining ammunition amount is the lower limit threshold. Optionally, when the remaining ammunition amount in the virtual backpack is greater than or equal to the upper limit threshold of the second virtual magazine, the virtual ammunition in the second virtual magazine is replenished from the virtual backpack to the upper limit threshold of the second virtual magazine, and when the remaining ammunition amount in the virtual backpack is less than the upper limit threshold of the second virtual magazine, all or part of the virtual ammunition in the virtual backpack is replenished to the second virtual magazine.
[0124] Specifically, in response to the reloading operation, the computer device replenishes the fifth amount of virtual ammunition in the virtual backpack to the second virtual magazine when the first remaining amount of ammunition is the upper threshold and the second remaining amount of ammunition is the lower threshold. The fifth amount includes the upper threshold of the second virtual magazine or is less than the upper threshold.
[0125] In some embodiments, the first virtual magazine corresponds to a first counter, and the first counter is used to count the first remaining amount of ammunition in the first virtual magazine in real time. The second virtual magazine corresponds to a second counter, and the second counter is used to count the second remaining amount of ammunition in the second virtual magazine in real time. The virtual backpack corresponds to a third counter, and the third counter is used to count the remaining amount of ammunition in the virtual backpack in real time. After the virtual ammunition in the second virtual magazine is replenished from the virtual backpack, the value of the third counter is subtracted by a fifth amount, and the value of the second counter is increased by the fifth amount.
[0126] This embodiment provides a first type of reloading method, which directly refills virtual ammunition for the second virtual magazine, improves the efficiency of the reloading operation, and reduces the time consumed in reloading. Moreover, this method of directly refilling virtual ammunition for the second virtual magazine will not affect the first virtual magazine, thereby avoiding affecting the player's battle in the game, and also provides sufficient spare virtual ammunition support for virtual attack props.
[0127] For the second type of cartridge replacement method: step 400 is implemented as step 420:
[0128] Step 420, in response to the reloading operation, when the first remaining amount of bullets is greater than or equal to the lower threshold and less than the upper threshold, and the second remaining amount of bullets is the lower threshold, the virtual ammunition of the first virtual magazine is replenished from the virtual backpack according to the second type of reloading method.
[0129] Exemplarily, in response to the reloading operation, the computer device replenishes the virtual ammunition of the first virtual magazine from the virtual backpack in accordance with the second type of reloading method when the first remaining ammunition amount is greater than or equal to the lower threshold and less than the upper threshold, and the second remaining ammunition amount is the lower threshold. Optionally, when the remaining ammunition amount in the virtual backpack is greater than or equal to the upper threshold of the first virtual magazine, the virtual ammunition in the first virtual magazine is replenished from the virtual backpack to the upper threshold of the first virtual magazine, and when the remaining ammunition amount in the virtual backpack is less than the upper threshold of the first virtual magazine, all or part of the virtual ammunition in the virtual backpack is replenished to the first virtual magazine.
[0130] Optionally, when the first remaining ammunition amount of the first virtual magazine is greater than the lower threshold and less than the upper threshold, before the virtual ammunition of the first virtual magazine is replenished from the virtual backpack, the virtual ammunition in the first virtual magazine may be optionally recovered into the virtual backpack.
[0131] This embodiment provides a second type of bullet replacement method, which directly replenishes virtual ammunition for the first virtual magazine. Since the first virtual magazine is used to directly provide the virtual ammunition required when using virtual attack props, this method of directly replenishing virtual ammunition for the first virtual magazine improves the efficiency of using virtual attack props, and also increases the possibility of players winning battles in game matches, and the operation is convenient and simple.
[0132] Specifically, for the first bullet changing method in the second type of bullet changing method, step 420 is specifically implemented as step 421; for the second bullet changing method in the second type of bullet changing method, step 420 is specifically implemented as step 422:
[0133] Step 421, in response to the reloading operation, when the first remaining bullet quantity is equal to the lower threshold value and the second remaining bullet quantity is the lower threshold value, according to the first reloading method in the second type of reloading method, the first quantity of virtual ammunition in the virtual backpack is replenished to the first virtual magazine.
[0134] Exemplarily, in response to the reloading operation, the computer device replenishes the first quantity of virtual ammunition in the virtual backpack to the first virtual magazine in accordance with the first reloading method in the second type of reloading method, when the first remaining ammunition quantity is equal to the lower limit threshold and the second remaining ammunition quantity is the lower limit threshold. Optionally, when the remaining ammunition in the virtual backpack is greater than or equal to the upper limit threshold of the first virtual magazine, the first quantity includes the upper limit threshold of the first virtual magazine, and when the remaining ammunition in the virtual backpack is less than the upper limit threshold of the first virtual magazine, the first quantity is less than the upper limit threshold of the first virtual magazine, and the first quantity may be the quantity corresponding to all or part of the virtual ammunition in the virtual backpack.
[0135] In some embodiments, the first virtual magazine corresponds to a first counter, and the first counter is used to count the first remaining amount of ammunition in the first virtual magazine in real time. The second virtual magazine corresponds to a second counter, and the second counter is used to count the second remaining amount of ammunition in the second virtual magazine in real time. The virtual backpack corresponds to a third counter, and the third counter is used to count the remaining amount of ammunition in the virtual backpack in real time. After the first amount of virtual ammunition in the virtual backpack is replenished to the first virtual magazine, the value of the third counter is subtracted from the first amount, the first counter is increased by the first amount, and the second counter remains unchanged.
[0136] Step 422, in response to the reloading operation, when the first remaining ammunition quantity is greater than the lower threshold and less than the upper threshold, and the second remaining ammunition quantity is the lower threshold, the second quantity of virtual ammunition in the virtual backpack is replenished to the first virtual magazine according to the second reloading method in the second type of reloading method.
[0137] Exemplarily, in response to the reloading operation, the computer device replenishes the second quantity of virtual ammunition in the virtual backpack to the first virtual magazine in accordance with the second reloading method in the second type of reloading method, when the first remaining ammunition quantity is greater than the lower threshold and less than the upper threshold, and the second remaining ammunition quantity is the lower threshold. Optionally, when the remaining ammunition in the virtual backpack is greater than or equal to the difference between the upper threshold of the first virtual magazine and the first remaining ammunition quantity, the second quantity includes the difference between the upper threshold of the first virtual magazine and the first remaining ammunition quantity. When the remaining ammunition in the virtual backpack is less than the difference, the second quantity is less than the difference, and the second quantity may be the quantity corresponding to all or part of the virtual ammunition in the virtual backpack, that is, the second quantity is less than or equal to the remaining ammunition in the virtual backpack.
[0138] In some embodiments, the first virtual magazine corresponds to a first counter, and the first counter is used to count the first remaining amount of ammunition in the first virtual magazine in real time. The second virtual magazine corresponds to a second counter, and the second counter is used to count the second remaining amount of ammunition in the second virtual magazine in real time. The virtual backpack corresponds to a third counter, and the third counter is used to count the remaining amount of ammunition in the virtual backpack in real time. After the second amount of virtual ammunition in the virtual backpack is replenished to the first virtual magazine, the value of the third counter is subtracted from the second amount, the first counter is increased by the second amount, and the second counter remains unchanged.
[0139] This embodiment provides two specific bullet changing methods in the second type of bullet changing method. When the first virtual magazine is empty or not completely empty, virtual ammunition can be directly replenished for the first virtual magazine, providing a variety of bullet changing methods suitable for various game scenarios.
[0140] For the third type of cartridge replacement method: step 400 is implemented as step 430:
[0141] Step 430, in response to the reloading operation, when the first remaining amount of bullets is greater than or equal to the lower threshold and less than the upper threshold, and the second remaining amount of bullets is the upper threshold, the virtual ammunition in the second virtual magazine is replenished to the first virtual magazine according to the third type of reloading method.
[0142] Exemplarily, in response to the reloading operation, the computer device replenishes the virtual ammunition in the second virtual magazine to the first virtual magazine in accordance with the third type of reloading method when the first remaining ammunition quantity is greater than or equal to the lower threshold value and less than the upper threshold value, and the second remaining ammunition quantity is the upper threshold value. Optionally, when the second remaining ammunition quantity of the second virtual magazine is greater than or equal to the difference between the upper threshold value of the first virtual magazine and the first remaining ammunition quantity, a portion of the virtual ammunition in the second virtual magazine is replenished to the first virtual magazine so that the virtual ammunition in the first virtual magazine reaches the upper threshold value of the first virtual magazine; when the second remaining ammunition quantity of the second virtual magazine is less than the difference between the upper threshold value of the first virtual magazine and the first remaining ammunition quantity, all or a portion of the virtual ammunition in the second virtual magazine is replenished to the first virtual magazine.
[0143] Optionally, when the first remaining ammunition in the first virtual magazine is greater than a lower threshold and less than an upper threshold, before the virtual ammunition in the second virtual magazine is replenished to the first virtual magazine, the virtual ammunition in the first virtual magazine may be optionally recovered into the virtual backpack.
[0144] This embodiment provides a third type of bullet replacement method, which replenishes the virtual ammunition in the second virtual magazine to the first virtual magazine. On the one hand, there is no need to consume the remaining ammunition in the virtual backpack. On the other hand, the first virtual magazine and the second virtual magazine are closely linked, thereby improving the efficiency of replacing the first virtual magazine.
[0145] Specifically, for the third bullet changing method in the third type of bullet changing method, step 430 is specifically implemented as step 431; for the fourth bullet changing method in the third type of bullet changing method, step 430 is specifically implemented as step 432:
[0146] Step 431, in response to the reloading operation, when the first remaining bullet quantity is equal to the lower threshold value and the second remaining bullet quantity is the upper threshold value, according to the third reloading method in the third type of reloading method, the third quantity of virtual ammunition in the second virtual magazine is replenished to the first virtual magazine.
[0147] Exemplarily, in response to the reloading operation, the computer device replenishes the third quantity of virtual ammunition in the second virtual magazine to the first virtual magazine in accordance with the third reloading method in the third type of reloading method, when the first remaining ammunition quantity is equal to the lower threshold value and the second remaining ammunition quantity is the upper threshold value. Optionally, when the second remaining ammunition quantity of the second virtual magazine is greater than or equal to the upper threshold value of the first virtual magazine, the third quantity includes the upper threshold value of the first virtual magazine, and when the second remaining ammunition quantity of the second virtual magazine is less than the upper threshold value of the first virtual magazine, the third quantity is less than the upper threshold value of the first virtual magazine, and the third quantity may be the quantity corresponding to all or part of the virtual ammunition in the second virtual magazine, that is, the third quantity is less than or equal to the second remaining ammunition quantity.
[0148] In some embodiments, the first virtual magazine corresponds to a first counter, and the first counter is used to count the first remaining amount of ammunition in the first virtual magazine in real time. The second virtual magazine corresponds to a second counter, and the second counter is used to count the second remaining amount of ammunition in the second virtual magazine in real time. The virtual backpack corresponds to a third counter, and the third counter is used to count the remaining amount of ammunition in the virtual backpack in real time. After the third amount of virtual ammunition in the second virtual magazine is replenished to the first virtual magazine, the value of the second counter is subtracted by the third amount, and the value of the first counter is increased by the third amount.
[0149] Step 432, in response to the reloading operation, when the first remaining bullet quantity is greater than the lower threshold value and less than the upper threshold value, and the second remaining bullet quantity is the upper threshold value, according to the fourth reloading method in the third type of reloading method, the fourth quantity of virtual ammunition in the second virtual magazine is replenished to the first virtual magazine.
[0150] Exemplarily, in response to the reloading operation, the computer device replenishes the fourth quantity of virtual ammunition in the second virtual magazine to the first virtual magazine in accordance with the fourth reloading method in the third type of reloading method, when the first remaining ammunition quantity is greater than the lower threshold value and less than the upper threshold value, and the second remaining ammunition quantity is the upper threshold value. Optionally, when the second remaining ammunition quantity of the second virtual magazine is greater than or equal to the difference between the upper threshold value of the first virtual magazine and the first remaining ammunition quantity, the fourth quantity includes the difference between the upper threshold value of the first virtual magazine and the first remaining ammunition quantity, and when the second remaining ammunition quantity of the second virtual magazine is less than the difference, the fourth quantity is less than the difference, and the fourth quantity may be the quantity corresponding to all or part of the virtual ammunition in the second virtual magazine, that is, the fourth quantity is less than or equal to the second remaining ammunition quantity.
[0151] In some embodiments, the first virtual magazine corresponds to a first counter, and the first counter is used to count the first remaining amount of ammunition in the first virtual magazine in real time. The second virtual magazine corresponds to a second counter, and the second counter is used to count the second remaining amount of ammunition in the second virtual magazine in real time. The virtual backpack corresponds to a third counter, and the third counter is used to count the remaining amount of ammunition in the virtual backpack in real time. After the fourth amount of virtual ammunition in the second virtual magazine is replenished to the first virtual magazine, the fourth amount is subtracted from the value of the second counter, and the fourth amount is increased from the value of the first counter.
[0152] This embodiment provides two specific bullet changing methods in the third category of bullet changing methods. When the first virtual magazine is empty or not completely empty, the virtual ammunition in the second virtual magazine can be replenished to the first virtual magazine, providing a variety of bullet changing methods suitable for various game scenarios.
[0153] (II) Reloading time logic:
[0154] The reloading time is used to indicate the time consumption of the reloading method. The reloading time corresponding to different reloading methods is the same or different. In some embodiments, the reloading time of the first type of reloading method is less than or equal to the reloading time of the third type of reloading method, and less than or equal to the reloading time of the second type of reloading method; the reloading time of the third type of reloading method is less than or equal to the reloading time of the second type of reloading method;
[0155] The reloading time of the second reloading method in the second category of reloading methods is less than or equal to the reloading time of the first reloading method in the second category of reloading methods; the reloading time of the fourth reloading method in the third category of reloading methods is less than or equal to the reloading time of the third reloading method in the third category of reloading methods.
[0156] The reloading time is expressed as follows: replenish the second virtual magazine ≤ the second virtual magazine quickly replenishes the first virtual magazine ≤ the second virtual magazine fully replenishes the first virtual magazine ≤ the first virtual magazine quickly reloads ≤ the first virtual magazine fully reloads. In a specific example, replenish the second virtual magazine ≤ the second virtual magazine quickly replenishes the first virtual magazine < the second virtual magazine fully replenishes the first virtual magazine < the first virtual magazine quickly reloads < the first virtual magazine fully reloads.
[0157] In this embodiment, the reloading time for replenishing the second virtual magazine is set to be the shortest, followed by the reloading time when holding the second virtual magazine being shorter than the reloading time without the second virtual magazine, to ensure that in most game scenarios, players give priority to replenishing the second virtual magazine, or the reloading time benefit obtained by reloading while holding the second virtual magazine is the highest. Encouraged by the reloading time benefit, players will actively consider how to allocate their spare time during the game to replenish the second virtual magazine, thereby reducing the pressure during subsequent game games, and being more flexible and controllable.
[0158] It should be further explained that in other embodiments, when the second virtual magazine is not full, specifically including two situations where the second virtual magazine is completely empty or not completely empty, then based on the aforementioned reloading method, the computer device can further derive more reloading methods. For example, it can also optionally include:
[0159] 4. The fourth type of reloading method: when the first virtual magazine is not full and the second virtual magazine is not full, the virtual ammunition is replenished from the virtual backpack to the first virtual magazine or the second virtual magazine, or the virtual ammunition of the second virtual magazine is replenished to the first virtual magazine. For example, it may specifically include at least one of the following:
[0160] 4-1. It is necessary to switch the original second virtual magazine to the first virtual magazine, and then switch the original first virtual magazine to the second virtual magazine, and then initiate an attack again. After a certain amount of virtual ammunition in the current first virtual magazine is consumed, the reload operation is initiated again to replenish the virtual ammunition in the first virtual magazine and the second virtual magazine from the virtual backpack;
[0161] 4-2. It is necessary to refill virtual ammunition for the first virtual magazine from the virtual backpack, and the second virtual magazine remains unchanged. When the first virtual magazine is full or not full, the reloading logic of the second and third reloading methods described above will continue to be executed;
[0162] 4-3. It is necessary to refill virtual ammunition for the second virtual magazine from the virtual backpack, and the first virtual magazine remains unchanged. When the second virtual magazine is full, the reloading logic of the third type of reloading method described above will continue to be executed;
[0163] 4-4. It is necessary to refill the virtual ammunition in the second virtual magazine to the first virtual magazine. When the first virtual magazine is full or not full, the reloading logic of the second and third reloading methods described above will be executed.
[0164] In this embodiment, when the second virtual magazine is not full, specifically including two situations where the second virtual magazine is completely empty or not completely empty, then on the basis of the aforementioned reloading method, the computer device can further derive more reloading methods, further enriching the reloading methods, and the player can flexibly trigger the reloading operation according to actual technical needs. It should also be noted that the reloading method of this embodiment has increased some difficulty and complexity compared to the reloading method of the aforementioned embodiment, and is suitable for some players who prefer complex operations.
[0165] The interface displays:
[0166] In some embodiments, an ammo bar is used to represent a virtual magazine of a virtual attack item. The first virtual magazine corresponds to the first ammo bar, and the second virtual magazine corresponds to the second ammo bar. The first ammo bar and the second ammo bar are strip elements, and the strip elements can be straight or arc-shaped. Different filling elements can also be filled inside the strip elements, and the filling elements include: at least one of color elements, pattern elements, texture elements, line elements, and shape elements.
[0167] Exemplarily, the virtual attack props include a first virtual magazine and a second virtual magazine. When the virtual character is controlled to use the virtual attack props, the computer device continuously displays a first bullet quantity bar of the first virtual magazine and a second bullet quantity bar of the second virtual magazine of the virtual attack props. Alternatively, in other implementations, the computer device displays a first bullet quantity bar of the first virtual magazine and a second bullet quantity bar of the second virtual magazine of the virtual attack props in response to a bullet reload operation.
[0168] (I) Bullet bar display:
[0169] In some embodiments, for the first virtual magazine, the method further includes at least some of steps 511, 512, and 513:
[0170] Step 511, displaying a first bullet level bar of a first virtual magazine.
[0171] Exemplarily, the computer device displays the first bullet quantity bar of the first virtual magazine. Wherein, when the virtual character is controlled to use a virtual attack prop, the computer device continuously displays the first bullet quantity bar of the first virtual magazine of the virtual attack prop. Or, the computer device displays the first bullet quantity bar of the first virtual magazine of the virtual attack prop in response to the bullet changing operation. The first bullet quantity bar can be arc-shaped. The length of the first bullet quantity bar is fixed, or the length is determined based on the upper limit threshold of the first virtual magazine, and the higher the upper limit threshold, the longer the length of the first bullet quantity bar. In some examples, when the first virtual magazine is empty, the first bullet quantity bar is completely filled with black elements. When the first virtual magazine is full, the first bullet quantity bar is completely filled with white elements. It can be understood that the aforementioned white elements and black elements can also be replaced with other color elements, pattern elements, line elements, etc.
[0172] And, step 512, during a non-reloading process, a first filling element is displayed on the first ammunition bar, and the first filling element is used to indicate the first remaining ammunition of the first virtual magazine; or, step 513, during a reloading process of the first virtual magazine, a second filling element is displayed on the first ammunition bar, and the second filling element is used to indicate the progress of the reloading process of the first virtual magazine.
[0173] The non-reloading process refers to other processes except the reloading process, for example, the attack process of using virtual attack props to launch an attack, or at least one of the processes of a virtual character walking, running, and jumping in a virtual environment. Exemplarily, during the non-reloading process, the computer device displays a first filling element on the first bullet quantity bar, and the first filling element is used to indicate the first remaining bullet quantity of the first virtual magazine. For example, the first filling element is a white element.
[0174] The reloading process of the first virtual magazine is a process of replenishing virtual ammunition for the first virtual magazine. Exemplarily, during the reloading process of the first virtual magazine, the computer device displays a second filling element on the first ammunition quantity bar, and the second filling element is used to indicate the progress of the reloading process of the first virtual magazine. For example, the second filling element is an orange element. As the reloading process of the first virtual magazine continues, the length of the second filling element becomes longer and longer.
[0175] In some embodiments, during the process of controlling the virtual character to use the virtual attack prop, the computer device also displays an aiming control, which is used to aim at the enemy virtual character or virtual item. The computer device then displays a first bullet amount bar on one side of the aiming control. For example, the computer device displays the first bullet amount bar on the lower right side of the aiming control.
[0176] In this embodiment, the first bullet quantity bar of the first virtual magazine can be displayed. In the non-reloading process, the first filling element displayed on the first bullet quantity bar can represent the first remaining bullet quantity, so that the first remaining bullet quantity can be intuitively displayed in a visual form, which is convenient for the player to observe. In the reloading process of the first virtual magazine, the second filling element displayed on the first bullet quantity bar can represent the progress of the reloading process, so that the progress of the reloading process can be intuitively displayed in a visual form, which is convenient for the player to observe and is also beneficial to the next reloading decision.
[0177] In some other embodiments, in parallel with the aforementioned steps 511, 512, and 513, for the first virtual magazine, the method further includes at least part of the steps 521 and 522:
[0178] Step 521, displaying a first bullet quantity bar of a first virtual magazine.
[0179] Exemplarily, the computer device displays the first bullet quantity bar of the first virtual magazine. Wherein, when the virtual character is controlled to use a virtual attack prop, the computer device continuously displays the first bullet quantity bar of the first virtual magazine of the virtual attack prop. Or, the computer device displays the first bullet quantity bar of the first virtual magazine of the virtual attack prop in response to the bullet changing operation. The first bullet quantity bar can be arc-shaped. The length of the first bullet quantity bar is fixed, or the length is determined based on the upper limit threshold of the first virtual magazine, and the higher the upper limit threshold, the longer the length of the first bullet quantity bar. In some examples, when the first virtual magazine is empty, the first bullet quantity bar is completely filled with black elements. When the first virtual magazine is full, the first bullet quantity bar is completely filled with white elements. It can be understood that the aforementioned white elements and black elements can also be replaced with other color elements, pattern elements, line elements, etc.
[0180] And, step 522, displaying a first filling element on the first bullet quantity bar, the first filling element is used to indicate a first remaining bullet quantity of the first virtual magazine.
[0181] Exemplarily, the computer device displays a first filling element on the first bullet quantity bar, and the first filling element is used to indicate the first remaining bullet quantity of the first virtual magazine. For example, the first filling element is a white element. There is no distinction between a non-reloading process and a reloading process of the first virtual magazine. In a non-reloading process and in a reloading process of the first virtual magazine, the first filling element indicates the current first remaining bullet quantity of the first virtual magazine. For the reloading process of the first virtual magazine, as the reloading process of the first virtual magazine continues, the length of the first filling element becomes longer and longer.
[0182] In this embodiment, the first bullet quantity bar of the first virtual magazine can be displayed. In the non-reloading process and the reloading process of the first virtual magazine, the first filling element displayed on the first bullet quantity bar can represent the first remaining bullet quantity, so that the first remaining bullet quantity can be intuitively displayed in a visual form, which is easy for players to observe, and there is no need to appear the second filling element, making the reloading animation more concise and clear.
[0183] Exemplarily, displaying the first filling element on the first elastic bar in step 512 or step 522 is further specifically implemented as step 523:
[0184] Step 523: Display a first filling element of the current length on the first bullet bar, where the current length corresponds to the first remaining bullet.
[0185] Exemplarily, as the virtual ammunition in the first virtual magazine is continuously consumed during the non-reloading process, and as the virtual ammunition is continuously replenished during the reloading process of the first virtual magazine, the computer device displays a first filling element of the current length on the first ammunition bar, and the current length corresponds to the first remaining ammunition.
[0186] In this embodiment, the first filling element showing the current length can be displayed on the first bullet bar, so that the first remaining bullet can be intuitively displayed in a visual form, which is convenient for players to observe. It can also indicate the usage of virtual ammunition in the first virtual magazine, which is also helpful for players to determine whether to continuously fire virtual ammunition or indirectly fire virtual ammunition when launching subsequent attacks based on the number of attacks launched using virtual attack props and the usage of virtual ammunition, which can promote the progress of the player's game to a certain extent.
[0187] In some embodiments, in order to promptly remind the player when the first remaining bullet amount is too low, the first filling element on the first bullet amount bar is set to different colors according to different first remaining bullet amounts. Exemplarily, the first filling element is a color element. When the first remaining bullet amount is less than the first threshold and greater than the second threshold, the first filling element is displayed as the first color; or, when the first remaining bullet amount is less than the second threshold, the first filling element is displayed as the second color, and the first color is different from the second color.
[0188] It is understandable that when the first filling element is a pattern element, the first color can be replaced by the first pattern, and the second color can be replaced by the second pattern; when the first filling element is a line element, the first color can be replaced by the first line, and the second color can be replaced by the second line. It should also be noted that the first threshold and the second threshold are expressed in percentages or in specific numerical values. The values of the first threshold and the second threshold can be configured based on actual technical needs, for example, they are set to fixed values by computer equipment, or configured by the player. In an example, the first threshold is set to 10% and the second threshold is set to 25%. The first color is set to yellow and the second color is set to red.
[0189] In this embodiment, when the first remaining bullet quantity is too low, the player can be reminded in time, so that the player can know that a bullet reload operation needs to be triggered, which is beneficial to improving the efficiency of human-computer interaction.
[0190] In some embodiments, for the second virtual magazine, the method further includes step 530:
[0191] Step 530: Display a second bullet quantity bar of the second virtual magazine, where the second bullet quantity bar is used to indicate that the virtual attack prop is equipped with a second virtual magazine.
[0192] Exemplarily, the computer device displays the second bullet quantity bar of the second virtual magazine, and the second bullet quantity bar is used to indicate that the virtual attack prop is equipped with the second virtual magazine. Wherein, when the virtual character is controlled to use the virtual attack prop, the computer device continues to display the second bullet quantity bar of the second virtual magazine of the virtual attack prop. Or, the computer device displays the second bullet quantity bar of the second virtual magazine of the virtual attack prop in response to the bullet changing operation. The second bullet quantity bar can be an arc. The length of the second bullet quantity bar is fixed, or the length is determined based on the upper limit threshold of the second virtual magazine, and the higher the upper limit threshold, the longer the length of the second bullet quantity bar. In some examples, when the second virtual magazine is empty, the second bullet quantity bar is completely filled with black elements. When the second virtual magazine is full, the second bullet quantity bar is completely filled with white elements. It can be understood that the aforementioned white elements and black elements can also be replaced with other color elements, pattern elements, line elements, etc.
[0193] In some embodiments, if the maximum capacity of the first virtual magazine is the same as that of the second virtual magazine, the length of the first bullet quantity bar is consistent with that of the second bullet quantity bar. The first bullet quantity bar and the second bullet quantity bar can be displayed side by side, and the distance between the two is less than the distance threshold. In the process of controlling the virtual character to use the virtual attack props, the computer device also displays the aiming control, which is used to aim at the enemy virtual character or virtual item. The computer device displays the first bullet quantity bar and the second bullet quantity bar on the same side of the aiming control. The distance between the first bullet quantity bar and the aiming control is less than the distance between the second bullet quantity bar and the aiming control. For example, the computer device displays the first bullet quantity bar and the second bullet quantity bar side by side on the lower right side of the aiming control, wherein the first bullet quantity bar is closer to the aiming control.
[0194] In this embodiment, the second ammunition bar of the second virtual magazine can be displayed, and the second ammunition bar indicates whether the virtual attack prop is equipped with the second virtual magazine, which is convenient for players to observe without having to look up the type and attributes of the virtual attack prop. In addition, since the time to refill the virtual ammunition in the second virtual magazine is the shortest when the second virtual magazine is held, it is also helpful for players to make refill decisions.
[0195] In some embodiments, referring to Table 1, it can be seen that for the second virtual magazine, only two major situations of being full or empty are considered, and the second bullet quantity bar of the second virtual magazine has two corresponding display states. Specifically, the method further includes step 531 or step 532, and further includes step 533:
[0196] Step 531, display the second bullet bar as a first filling state, the first filling state is used to indicate that the second remaining bullet amount of the second virtual magazine is an upper limit threshold; or, step 532, display the second bullet bar as a second filling state, the second filling state is used to indicate that the second remaining bullet amount of the second virtual magazine is a lower limit threshold.
[0197] Exemplarily, when the second virtual magazine is full, the computer device displays the second bullet quantity bar as a first filling state, and the first filling state is used to indicate that the second remaining bullet quantity of the second virtual magazine is an upper threshold value. At this time, the second bullet quantity bar is completely filled with white elements. Or, when the virtual magazine is empty, the computer device displays the second bullet quantity bar as a second filling state, and the second filling state is used to indicate that the second remaining bullet quantity of the second virtual magazine is a lower threshold value. At this time, the second bullet quantity bar is completely filled with black elements. It can be understood that the aforementioned white elements and black elements can also be replaced by other color elements, pattern elements, line elements, etc. It can be understood that the aforementioned white elements and black elements can also be replaced by other color elements, pattern elements, line elements, etc.
[0198] Step 533: During the reloading process of the second virtual magazine, a third filling element is displayed on the second bullet quantity bar, and the third filling element is used to indicate the progress of the reloading process of the second virtual magazine.
[0199] The reloading process of the second virtual magazine is a process of replenishing virtual ammunition for the second virtual magazine. Exemplarily, during the reloading process of the second virtual magazine, the computer device displays a third filling element on the second ammunition quantity bar, and the third filling element is used to indicate the progress of the reloading process of the second virtual magazine. For example, the third filling element is an orange element. As the reloading process of the second virtual magazine continues, the length of the third filling element becomes longer and longer.
[0200] In this embodiment, by displaying the second bullet quantity bar in the first filling state, the player can know that the second virtual magazine is full at this time, and by displaying the second bullet quantity bar in the second filling state, the player can know that the second virtual magazine is empty at this time. During the reloading process of the second virtual magazine, the progress of the reloading process is indicated by the third filling element, which is convenient for the player to observe and estimate the reloading time, which is conducive to the next reloading decision.
[0201] It should also be noted that when the second virtual magazine is not full, the display logic of the second bullet bar of the second virtual magazine also follows the display logic of the first bullet bar of the first virtual magazine, and the two are consistent. In this case, the first virtual magazine in the aforementioned steps 511, 512 and 513, and the first bullet bar in steps 521 and 522 are replaced with the second virtual magazine, and the first bullet bar is replaced with the second bullet bar.
[0202] In some embodiments, the method further comprises step 540:
[0203] Step 540: When the second remaining bullet amount is at the lower threshold and the remaining bullet amount in the virtual backpack is at the lower threshold, hide the second bullet amount bar.
[0204] Exemplarily, when the second virtual magazine is empty and the remaining ammunition in the virtual backpack is insufficient to meet the requirement of reloading, the computer device hides the second ammunition bar when the second remaining ammunition is at a lower limit threshold and the remaining ammunition in the virtual backpack is at a lower limit threshold. The lower limit threshold of the remaining ammunition in the virtual backpack includes 0.
[0205] In this embodiment, by hiding the second bullet quantity bar, the player can be reminded in time that it is currently impossible to reload bullets, which is helpful for the player to replenish the virtual ammunition in the virtual backpack in time and adjust the bullet reload decision.
[0206] As an example, the specific method of displaying the bullet amount bar is described in combination with the schematic diagram.
[0207] refer to Figure 4 As shown, when the computer device controls the virtual character to use the virtual attack props, the aiming control 33 is also displayed. On the lower right side of the aiming control 33, the first bullet quantity bar of the first virtual magazine and the second bullet quantity bar of the second virtual magazine are displayed. The arc-shaped bar element 31 on the left side of the lower right side of the aiming control 33 is the first bullet quantity bar of the first virtual magazine. At this time, the arc-shaped bar element 31 is a white element, and the length of the white element is the same as the length of the arc-shaped bar element 31, indicating that the first virtual magazine is full. The arc-shaped bar element 32 on the right side of the lower right side of the aiming control 33 is the second bullet quantity bar of the second virtual magazine. At this time, the arc-shaped bar element 32 is a black element, and the length of the black element is the same as the length of the arc-shaped bar element 32, indicating that the second virtual magazine is empty.
[0208] refer to Figure 5 As shown, the arc-shaped bar element 35 on the lower right side of the aiming control 33 is the first bullet quantity bar of the first virtual magazine. At this time, the arc-shaped bar element 35 includes: a white bottom line bar element 35-1 and a black element 35-2. The length of the white bottom line bar element 35-1 represents the first remaining bullet quantity, which is greater than 10% and less than 25%. Figure 6 As shown, the arc-shaped strip element 35 on the lower right side of the aiming control 33 is the first bullet quantity bar of the first virtual magazine, and the arc-shaped strip element 35 includes: a white background dot element 35-3 and a black element 35-4. The length of the white background dot element 35-3 represents the first remaining bullet quantity, which is less than 10%. Figure 5 and Figure 6 The arc-shaped strip element 32 on the right lower right side of the aiming control 33 is the second bullet quantity bar of the second virtual magazine. At this time, there is a black element on the arc-shaped strip element 32, and the length of the black element is the same as the length of the arc-shaped strip element 32, indicating that the second virtual magazine is empty.
[0209] refer to Figure 7 As shown, when the second virtual magazine is empty and the remaining bullet amount in the virtual backpack is 0, the arc-shaped strip element 32 on the right side of the lower right side of the aiming control 33 is hidden, that is, the second bullet amount bar is hidden, and only the arc-shaped strip element 31 on the left side of the lower right side of the aiming control 33 is displayed, that is, the first bullet amount bar of the first virtual magazine is displayed.
[0210] (II) Reloading animation display:
[0211] In some embodiments, for different major types of reloading methods and further included reloading methods, corresponding reloading animations will be displayed during the reloading process. The method further includes step 600:
[0212] Step 600 , displaying a reloading animation of replenishing virtual ammunition for the first virtual magazine or the second virtual magazine.
[0213] When the computer device is in the process of replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine, it displays a reloading animation for replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine, and the reloading animation is used to describe the process of replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine in a visual form.
[0214] Optionally, the computer device further displays the action of the virtual character performing the bullet changing operation, such as the swinging action of the virtual attack prop, the loading action of loading virtual ammunition into the virtual attack prop, and the computer device further emits a sound effect of performing the bullet changing operation.
[0215] In this embodiment, the computer device also displays a bullet-changing animation, so that the player can observe the entire bullet-changing process.
[0216] For the first type of bullet changing animation: step 600 is implemented as step 610:
[0217] Step 610, for the first type of reloading method, displays a reloading animation for replenishing the virtual ammunition in the second virtual magazine, wherein the first ammunition bar remains unchanged, and the second filling state of the second ammunition bar is canceled, and the growth process of the third filling element is gradually displayed on the second ammunition bar. After the third filling element gradually grows from zero to the first length, the third filling element is canceled, and the second ammunition bar is displayed as the first filling state. The first length is used to indicate that the reloading process of the second virtual magazine is completed.
[0218] The first type of reloading method is to replenish the second virtual magazine. The first virtual magazine remains unchanged. The first virtual magazine is full. In the reloading animation corresponding to the first type of reloading method, the first bullet quantity bar of the first virtual magazine also remains unchanged, and only the second bullet quantity bar of the second virtual magazine changes dynamically.
[0219] Exemplarily, for the first type of reloading method, the computer device displays a reloading animation for replenishing the virtual ammunition in the second virtual magazine, wherein the first ammunition bar remains unchanged, and the second filling state of the second ammunition bar is canceled, and the growth process of the third filling element is gradually displayed on the second ammunition bar. After the third filling element gradually grows from zero to a first length, the third filling element is canceled, and the second ammunition bar is displayed as the first filling state, and the first length is used to indicate the end of the reloading process of the second virtual magazine.
[0220] In this embodiment, for the first type of reloading method, in the reloading animation, the first bullet quantity bar remains unchanged, and the second bullet quantity bar changes dynamically, so that the player can observe which virtual magazine is being replenished at this time, and observe the entire reloading process.
[0221] Optionally, step 600 further includes step 611:
[0222] Step 611, for the first type of ammunition replacement method, while the third filling element is gradually displayed on the second ammunition bar, the second ammunition bar is enlarged and displayed, and an identification element of the virtual ammunition is displayed on one side of the second ammunition bar.
[0223] Exemplarily, for the first type of bullet changing method, during the process of gradually displaying the growth of the third filling element on the second bullet quantity bar, the second bullet quantity bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second bullet quantity bar. Optionally, after the third filling element gradually grows from zero to the first length, the second bullet quantity bar is restored to its original size, and the identification element of the virtual ammunition is canceled. One side of the second bullet quantity bar includes any one of the upper side, the lower side, the left side, and the right side of the second bullet quantity bar. The identification element of the virtual ammunition can be an ammunition icon.
[0224] In this embodiment, for the first type of reloading method, in the reloading animation, the second bullet amount bar is displayed enlarged, which magnifies the difference between the first bullet amount bar and the second bullet amount bar in the interface display, making it easier for players to observe which virtual magazine is being replenished at this time, as well as observe the entire reloading process.
[0225] For a bullet changing animation of the second bullet changing method: step 600 is implemented as step 620A:
[0226] Step 620A, for the second type of reloading method, a reloading animation for replenishing the virtual ammunition in the first virtual magazine is displayed, wherein the first filling element of the current length on the first ammunition bar is canceled, and the growth process of the second filling element is gradually displayed on the first ammunition bar. After the second filling element gradually grows from zero to the second length, the second filling element is canceled, and the first filling element of the third length is displayed on the first ammunition bar, the second length is used to indicate the end of the reloading process of the first virtual magazine, and the third length is used to indicate the first remaining ammunition after reloading of the first virtual magazine, and the second ammunition bar is displayed as the second filling state unchanged.
[0227] The second type of reloading method is to replenish the first virtual magazine, and the second virtual magazine remains unchanged. If the second virtual magazine is empty, then in a reloading animation of the second type of reloading method, the second bullet quantity bar of the second virtual magazine also remains unchanged, and only the first bullet quantity bar of the first virtual magazine changes dynamically.
[0228] Exemplarily, for the second type of reloading method, the computer device displays a reloading animation for replenishing virtual ammunition in the first virtual magazine, wherein the first filling element of the current length on the first ammunition quantity bar is canceled, the growth process of the second filling element is gradually displayed on the first ammunition quantity bar, after the second filling element gradually grows from zero to the second length, the second filling element is canceled, and the first filling element of the third length is displayed on the first ammunition quantity bar, the second length is used to indicate the end of the reloading process of the first virtual magazine, the third length is used to indicate the first remaining ammunition quantity of the first virtual magazine after reloading, and the second ammunition quantity bar is displayed as the second filling state unchanged. The first remaining ammunition quantity after reloading is equal to or less than the upper limit threshold.
[0229] It should also be noted that, for the second type of bullet changing method, since the first virtual magazine is empty or not completely empty, when the first virtual magazine is empty, for the first filling element that cancels the display of the current length on the first bullet bar, the current length is 0; when the first virtual magazine is not completely empty, for the first filling element that cancels the display of the current length on the first bullet bar, the current length is greater than 0.
[0230] In this embodiment, for the second type of reloading method, in the reloading animation, the second bullet quantity bar remains unchanged, and the first bullet quantity bar changes dynamically, so that the player can see which virtual magazine is being replenished at this time, and observe the entire reloading process. In addition, the progress of the reloading process is displayed in the first bullet quantity bar through the second filling element, so that the player can see whether the reloading process is completed.
[0231] Optionally, step 600 further includes step 621A:
[0232] Step 621A, for the second type of ammunition replacement method, while the second filling element is gradually displayed on the first ammunition bar, the first ammunition bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second ammunition bar.
[0233] Exemplarily, for the second type of bullet changing method, during the process of gradually displaying the growth of the second filling element on the first bullet quantity bar, the first bullet quantity bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second bullet quantity bar. Optionally, after the second filling element gradually grows from zero to the second length, the first bullet quantity bar is restored to its original size, and the identification element of the virtual ammunition is canceled. One side of the second bullet quantity bar includes any one of the upper side, the lower side, the left side, and the right side of the second bullet quantity bar. The identification element of the virtual ammunition can be an ammunition icon.
[0234] In this embodiment, for the second type of reloading method, in the reloading animation, the first bullet amount bar is displayed enlarged, which magnifies the difference between the first bullet amount bar and the second bullet amount bar in the interface display, making it easier for players to observe which virtual magazine is being replenished at this time, as well as observe the entire reloading process.
[0235] For another bullet changing animation of the second bullet changing method: step 600 is implemented as step 620B:
[0236] Step 620B, for the second type of reloading method, displays a reloading animation for replenishing the virtual ammunition in the first virtual magazine, wherein the first filling element on the first ammunition bar gradually increases from the current length to a third length, the third length is used to indicate the first remaining ammunition of the first virtual magazine after reloading, and the second ammunition bar is displayed as unchanged in the second filling state.
[0237] The second type of reloading method is to replenish the first virtual magazine, and the second virtual magazine remains unchanged. If the second virtual magazine is empty, then in another reloading animation of the second type of reloading method, the second bullet quantity bar of the second virtual magazine also remains unchanged, and only the first bullet quantity bar of the first virtual magazine changes dynamically.
[0238] Exemplarily, for the second type of reloading method, the computer device displays a reloading animation for replenishing virtual ammunition in the first virtual magazine, wherein the first filling element on the first ammunition quantity bar gradually increases from the current length to a third length, the third length is used to indicate the first remaining ammunition quantity of the first virtual magazine after reloading, and the second ammunition quantity bar is displayed as a second filling state unchanged. The first remaining ammunition quantity after reloading is less than or equal to the upper limit threshold.
[0239] It should also be noted that, for the second type of bullet changing method, since the first virtual magazine is empty or not completely empty, when the first virtual magazine is empty, the current length of the aforementioned first filling element is 0; when the first virtual magazine is not completely empty, the current length of the aforementioned first filling element is greater than 0.
[0240] In this embodiment, for the second type of reloading method, in another reloading animation, the second bullet quantity bar remains unchanged, and the first bullet quantity bar changes dynamically, so that the player can see which virtual magazine is being replenished at this time, and can see the entire reloading process. Moreover, the first remaining bullet quantity is still displayed in the first filling element in the first bullet quantity bar, so that the player can see whether the first virtual magazine is full after reloading.
[0241] Optionally, step 600 further includes step 621B:
[0242] Step 621B, for the second type of bullet changing method, when the first filling element on the first bullet bar gradually increases from the current length to the third length, the first bullet bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second bullet bar.
[0243] Exemplarily, for the second type of bullet changing method, in the process of the first filling element on the first bullet quantity bar gradually growing from the current length to the third length, the first bullet quantity bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second bullet quantity bar. Optionally, after the first filling element gradually grows from the current length to the third length, the first bullet quantity bar is restored to its original size, and the identification element of the virtual ammunition is canceled. One side of the second bullet quantity bar includes any one of the upper side, the lower side, the left side, and the right side of the second bullet quantity bar. The identification element of the virtual ammunition can be an ammunition icon.
[0244] In this embodiment, for the second type of reloading method, in another reloading animation, the first bullet level bar is displayed enlarged, which magnifies the difference between the first bullet level bar and the second bullet level bar in the interface display, making it easier for players to observe which virtual magazine is being replenished at this time, and whether the first virtual magazine is full after reloading.
[0245] For a bullet changing animation of the third type of bullet changing method: step 600 is implemented as step 630A:
[0246] Step 630A, for the third type of reloading method, displays a reloading animation of replenishing the virtual ammunition in the second virtual magazine to the first virtual magazine, wherein the first filling element on the first ammunition bar switches from zero to a third length, the third length is used to indicate the first remaining ammunition of the first virtual magazine after reloading, and the second ammunition bar switches from the first filling state to the second filling state.
[0247] The third type of reloading method is to refill the virtual ammunition in the second virtual magazine into the first virtual magazine, and then dynamically change the first ammunition bar and the second ammunition bar. In the reloading animation of the third type of reloading method, the dynamic changes of the first ammunition bar and the second ammunition bar are instantaneous, which can also be understood as switching display.
[0248] Exemplarily, when the first virtual magazine is empty, for the third type of reloading method, the computer device displays a reloading animation of replenishing the virtual ammunition in the second virtual magazine to the first virtual magazine, wherein the first filling element on the first ammunition quantity bar switches from zero to a third length, the third length is used to indicate the first remaining ammunition quantity of the first virtual magazine after reloading, and the second ammunition quantity bar switches from the first filling state to the second filling state. The first remaining ammunition quantity after reloading is less than or equal to the upper limit threshold.
[0249] In this embodiment, for the third type of reloading method, in the reloading animation when the first virtual magazine is empty, this switching display method is beneficial for the player to directly observe the change results of the first bullet quantity bar and the second bullet quantity bar, and the display method is more intuitive.
[0250] Optionally, step 600 further includes step 631A:
[0251] Step 631A, for the third type of ammunition reloading method, when the first filling element on the first ammunition bar switches from zero to the third length, the identification element of the virtual ammunition is displayed on one side of the second ammunition bar.
[0252] Exemplarily, when the first virtual magazine is empty, for the third type of reloading method, in the process of the first filling element on the first bullet quantity bar switching from zero to the third length, the identification element of the virtual ammunition is displayed on one side of the second bullet quantity bar. Optionally, after the first filling element on the first bullet quantity bar switches from zero to the third length, the identification element of the virtual ammunition is canceled. One side of the second bullet quantity bar includes any one of the upper side, the lower side, the left side, and the right side of the second bullet quantity bar. The identification element of the virtual ammunition can be an ammunition icon.
[0253] In this embodiment, for the third type of reloading method, in the reloading animation when the first virtual magazine is empty, by displaying the identification element of the virtual ammunition, the player can be prompted that the reloading process is being performed at this time.
[0254] For another bullet changing animation of the third type of bullet changing method: step 600 is implemented as step 630B:
[0255] Step 630B, for the third type of reloading method, displays a reloading animation of replenishing the virtual ammunition in the second virtual magazine to the first virtual magazine, wherein the first filling element of the current length on the first ammunition bar is switched to the second filling element of the current length, the second filling element of the current length is switched to the first filling element of the third length, and the second ammunition bar is switched from the first filling state to the second filling state.
[0256] The third type of reloading method is to refill the virtual ammunition in the second virtual magazine into the first virtual magazine, and then dynamically change the first ammunition bar and the second ammunition bar. In the reloading animation of the third type of reloading method, the dynamic changes of the first ammunition bar and the second ammunition bar are instantaneous, which can also be understood as switching display.
[0257] Exemplarily, when the first virtual magazine is not completely empty, for the third type of reloading method, the computer device displays a reloading animation of replenishing the virtual ammunition in the second virtual magazine to the first virtual magazine, wherein the first filling element of the current length on the first bullet quantity bar is switched to be displayed as the second filling element of the current length, the second filling element of the current length is switched to be displayed as the first filling element of the third length, and the second bullet quantity bar is switched from the first filling state to the second filling state. The third length is used to indicate the first remaining bullet quantity of the first virtual magazine after reloading. The first remaining bullet quantity after reloading is less than or equal to the upper limit threshold.
[0258] In this embodiment, for the third type of reloading method, in the reloading animation when the first virtual magazine is not completely empty, this switching display method is conducive to the player directly observing the change results of the first bullet quantity bar and the second bullet quantity bar, and the display method is more intuitive. Moreover, the reloading animation also includes a step of switching the first filling element of the current length to the second filling element of the current length, indicating that the current reloading process continues to replenish virtual ammunition based on the first remaining bullet quantity, and there is no need to discard the original virtual ammunition in the first virtual magazine during replenishment, and the entire reloading process can be intuitively displayed in a visual form.
[0259] Optionally, step 600 further includes step 631B:
[0260] Step 631B, for the third type of bullet changing method, when the second filling element of the current length is switched to the first filling element of the third length, the identification element of the virtual ammunition is displayed on one side of the second bullet quantity bar.
[0261] Exemplarily, when the first virtual magazine is not completely empty, for the third type of reloading method, in the process of switching the second filling element of the current length to the first filling element of the third length, the identification element of the virtual ammunition is displayed on one side of the second bullet quantity bar. Optionally, after the second filling element of the current length is switched to the first filling element of the third length, the identification element of the virtual ammunition is canceled. One side of the second bullet quantity bar includes any one of the upper side, the lower side, the left side, and the right side of the second bullet quantity bar. The identification element of the virtual ammunition can be an ammunition icon.
[0262] In this embodiment, for the third type of reloading method, in the reloading animation when the first virtual magazine is not completely empty, by displaying the identification element of the virtual ammunition, the player can be prompted that the reloading process is being performed at this time.
[0263] As an example, the specific method of displaying the bullet changing animation is described in combination with the schematic diagram.
[0264] For the first type of reloading method, refer to Figure 8As shown in (1), before the reloading operation, the first bullet quantity bar and the second bullet quantity bar are displayed. The first bullet quantity bar is an arc-shaped bar element 31. At this time, the arc-shaped bar element 31 is a white element, and the length of the white element is the same as the length of the arc-shaped bar element 31, indicating that the first virtual magazine is full; the second bullet quantity bar is an arc-shaped bar element 32. At this time, the arc-shaped bar element 32 is a black element, and the length of the black element is the same as the length of the arc-shaped bar element 32, indicating that the second virtual magazine is empty. During the reloading process, the first bullet quantity bar is the arc-shaped bar element 31, which remains unchanged. Figure 8 As shown in (2), the second bullet quantity bar during the reloading process is an enlarged arc-shaped bar element 36, and the identification element 40 of the virtual ammunition is displayed on the right side of the arc-shaped bar element 36. The growth process of the third filling element 41 is gradually displayed on the arc-shaped bar element 36. After the third filling element 41 gradually grows from zero to the same length as the arc-shaped bar element 36, the third filling element 41 is cancelled and the second bullet quantity bar is restored to its original size, and the identification element 40 is cancelled, and the reloading process ends. Figure 8 As shown in (3), after the reloading process is completed, the second bullet quantity bar is now an arc-shaped bar element 34, and there is a white element on the arc-shaped bar element 34, and the length of the white element is the same as the length of the arc-shaped bar element 34, indicating that the second virtual magazine has been filled.
[0265] For the first reloading method in the second type of reloading method, refer to Fig. 9 As shown in (1), before the reloading operation, the first bullet quantity bar and the second bullet quantity bar are displayed. The first bullet quantity bar is an arc-shaped bar element 37. At this time, the arc-shaped bar element 37 is a black element, and the length of the black element is the same as the length of the arc-shaped bar element 37, indicating that the first virtual magazine is empty; the second bullet quantity bar is an arc-shaped bar element 32. At this time, the arc-shaped bar element 32 is a black element, and the length of the black element is the same as the length of the arc-shaped bar element 32, indicating that the second virtual magazine is empty. During the reloading process, the second bullet quantity bar is the arc-shaped bar element 32 unchanged, refer to Fig. 9 As shown in (2), during the reloading process, the identification element 40 of the virtual ammunition is displayed on the right side of the arc-shaped bar element 32, the first ammunition quantity bar during the reloading process is an enlarged arc-shaped bar element 38, and the growth process of the second filling element 42 is gradually displayed on the arc-shaped bar element 38. After the second filling element 42 gradually grows from zero to the same length as the arc-shaped bar element 38, the second filling element 42 is cancelled and the first ammunition quantity bar is restored to its original size, and the identification element 40 is cancelled, which is the result of the reloading process. Fig. 9As shown in (3), after the reloading process is completed, the first bullet quantity bar is now an arc-shaped bar element 31, and there is a white element on the arc-shaped bar element 31, and the length of the white element is the same as the length of the arc-shaped bar element 31, indicating that the first virtual magazine has been filled.
[0266] For the second reload method in the second type of reload method, refer to Fig.10 As shown in (1), before the reloading operation, the first bullet quantity bar and the second bullet quantity bar are displayed. The first bullet quantity bar is an arc-shaped bar element 39. At this time, the arc-shaped bar element 39 is covered with a first filling element 43 (white element) and a black element. The length of the first filling element 43 indicates the first remaining bullet quantity of the first virtual magazine, and the first virtual magazine is not completely empty. The second bullet quantity bar is an arc-shaped bar element 32. At this time, the arc-shaped bar element 32 is covered with a black element, and the length of the black element is the same as the length of the arc-shaped bar element 32, indicating that the second virtual magazine is empty. During the reloading process, the second bullet quantity bar is the arc-shaped bar element 32 unchanged. Fig.10 As shown in (2), during the reloading process, the identification element 40 of the virtual ammunition is displayed on the right side of the arc-shaped bar element 32, and the first ammunition bar during the reloading process is an enlarged arc-shaped bar element 38, and the growth process of the second filling element 42 is gradually displayed on the arc-shaped bar element 38. After the second filling element 42 gradually grows from zero to the same length as the arc-shaped bar element 38, the second filling element 42 is cancelled and the first ammunition bar is restored to its original size, and the identification element 40 is cancelled, and the reloading process ends. Fig.10 As shown in (3), after the reloading process is completed, the first bullet quantity bar is now an arc-shaped bar element 31, and there is a white element on the arc-shaped bar element 31, and the length of the white element is the same as the length of the arc-shaped bar element 31, indicating that the first virtual magazine has been filled.
[0267] For the first reloading method in the second type of reloading method, refer to Fig.11 As shown in (1), before the reloading operation, the first bullet quantity bar and the second bullet quantity bar are displayed. The first bullet quantity bar is an arc-shaped bar element 37. At this time, the arc-shaped bar element 37 is a black element, and the length of the black element is the same as the length of the arc-shaped bar element 37, indicating that the first virtual magazine is empty; the second bullet quantity bar is an arc-shaped bar element 32. At this time, the arc-shaped bar element 32 is a black element, and the length of the black element is the same as the length of the arc-shaped bar element 32, indicating that the second virtual magazine is empty. During the reloading process, the second bullet quantity bar is the arc-shaped bar element 32 unchanged, refer to Fig.11As shown in (2), during the reloading process, the identification element 40 of the virtual ammunition is displayed on the right side of the arc-shaped bar element 32, and the first ammunition quantity bar during the reloading process is an enlarged arc-shaped bar element 38, and the growth process of the first filling element 43 is gradually displayed on the arc-shaped bar element 38. After the first filling element 43 gradually grows from zero to the same length as the arc-shaped bar element 38, the first ammunition quantity bar is restored to its original size, and the identification element 40 is cancelled, and the reloading process ends. Fig.11 As shown in (3), after the reloading process is completed, the first bullet quantity bar is now an arc-shaped bar element 31, and there is a white element on the arc-shaped bar element 31, and the length of the white element is the same as the length of the arc-shaped bar element 31, indicating that the first virtual magazine has been filled.
[0268] For the second reload method in the second type of reload method, refer to Fig.12 As shown in (1), before the reloading operation, the first bullet quantity bar and the second bullet quantity bar are displayed. The first bullet quantity bar is an arc-shaped bar element 39. At this time, the arc-shaped bar element 39 is covered with a first filling element 43 (white element) and a black element. The length of the first filling element 43 indicates the first remaining bullet quantity of the first virtual magazine, and the first virtual magazine is not completely empty. The second bullet quantity bar is an arc-shaped bar element 32. At this time, the arc-shaped bar element 32 is covered with a black element, and the length of the black element is the same as the length of the arc-shaped bar element 32, indicating that the second virtual magazine is empty. During the reloading process, the second bullet quantity bar is the arc-shaped bar element 32 unchanged. Fig.12 As shown in (2), during the reloading process, the identification element 40 of the virtual ammunition is displayed on the right side of the arc-shaped bar element 32, and the first ammunition quantity bar during the reloading process is an enlarged arc-shaped bar element 38, and the growth process of the first filling element 43 is gradually displayed on the arc-shaped bar element 38. After the first filling element 43 gradually grows from the current length to the same length as the arc-shaped bar element 38, the first ammunition quantity bar is restored to its original size, and the identification element 40 is cancelled, and the reloading process ends. Fig.12 As shown in (3), after the reloading process is completed, the first bullet quantity bar is now an arc-shaped bar element 31, and there is a white element on the arc-shaped bar element 31, and the length of the white element is the same as the length of the arc-shaped bar element 31, indicating that the first virtual magazine has been filled.
[0269] For the third reload method in the third category, refer to Fig.13As shown in (1) in FIG. 1 , before the reloading operation, the first bullet quantity bar and the second bullet quantity bar are displayed. The first bullet quantity bar is an arc-shaped bar element 37. At this time, the arc-shaped bar element 37 is covered with a black element, and the length of the black element is the same as the length of the arc-shaped bar element 37, indicating that the first virtual magazine is empty; the second bullet quantity bar is an arc-shaped bar element 34. At this time, the arc-shaped bar element 34 is covered with a white element, and the length of the white element is the same as the length of the arc-shaped bar element 34, indicating that the second virtual magazine is full. Fig.13 As shown in (2), during the ammunition reload process, the identification element 40 of the virtual ammunition is displayed on the right side of the arc-shaped strip element 34, and the identification element 40 is cancelled after the ammunition reload is completed. Fig.13 As shown in (3), after the reloading is completed, the arc-shaped bar element 37 is switched to the arc-shaped bar element 31, that is, the first bullet quantity bar is now the arc-shaped bar element 31, the arc-shaped bar element 31 is a white element, and the length of the white element is the same as the length of the arc-shaped bar element 31, indicating that the first virtual magazine has been filled. After the reloading is completed, the arc-shaped bar element 34 is switched to the arc-shaped bar element 32, that is, the second bullet quantity bar is now the arc-shaped bar element 32, the arc-shaped bar element 32 is a black element, and the length of the black element is the same as the length of the arc-shaped bar element 32, indicating that the second virtual magazine is empty after the first virtual magazine is replenished with virtual ammunition.
[0270] For the fourth reloading method in the third category, refer to Fig.14 As shown in (1), before the reloading operation, the first bullet quantity bar and the second bullet quantity bar are displayed. The first bullet quantity bar is an arc-shaped bar element 39. At this time, the arc-shaped bar element 39 is covered with a first filling element 43 (white element) and a black element. The length of the first filling element 43 indicates the first remaining bullet quantity of the first virtual magazine, and the first virtual magazine is not completely empty. The second bullet quantity bar is an arc-shaped bar element 34. At this time, the arc-shaped bar element 34 is covered with a white element, and the length of the white element is the same as the length of the arc-shaped bar element 34, indicating that the second virtual magazine is full. Fig.14 As shown in (2), during the reloading process, the identification element 40 of the virtual ammunition is displayed on the right side of the arc strip element 34, and in the arc strip element 39, the first filling element 43 of the current length is switched to the second filling element 42 of the current length, which is used to indicate that the reloading process is being performed. After the reloading is completed, the identification element 40 is canceled, and, with reference to Fig.14As shown in (3), after the reload is completed, the second filling element 42 of the current length is switched to the first filling element 43 (white element) of the third length, that is, at this time, the first bullet quantity bar is the arc-shaped bar element 31, the arc-shaped bar element 31 is a white element, and the length of the white element is the same as the length of the arc-shaped bar element 31, indicating that the first virtual magazine has been filled. After the reload is completed, the arc-shaped bar element 34 is switched to the arc-shaped bar element 32, that is, at this time, the second bullet quantity bar is the arc-shaped bar element 32, the arc-shaped bar element 32 is a black element, and the length of the black element is the same as the length of the arc-shaped bar element 32, indicating that the second virtual magazine is empty after the first virtual magazine is replenished with virtual ammunition.
[0271] Technical implementation:
[0272] In some embodiments, the first magazine state is characterized by a first remaining amount of bullets in the first virtual magazine, and the second magazine state is characterized by a second remaining amount of bullets in the second virtual magazine. In the technical implementation, a computer device and a server are involved. The computer device and the server themselves have been synchronizing the first virtual magazine and the second virtual magazine and other related information. When a reloading operation is initiated, the computer device and the server simultaneously detect the first remaining amount of bullets and the second remaining amount of bullets and perform the corresponding reloading operation according to the reloading logic.
[0273] Exemplarily, step 360 is implemented as step 710, step 720 and step 730:
[0274] Step 710: In response to a cartridge replacement operation, detecting a first remaining cartridge amount and a second remaining cartridge amount, and determining a cartridge replacement method that matches the first remaining cartridge amount and the second remaining cartridge amount.
[0275] The computer device detects a first remaining amount of bullets and a second remaining amount of bullets in response to a reloading operation, wherein the computer device obtains client data, detects the first remaining amount of bullets and the second remaining amount of bullets based on the client data, and determines a reloading method that matches the first remaining amount of bullets and the second remaining amount of bullets.
[0276] Step 720, sending verification information to the server, and replenishing virtual ammunition for the first virtual magazine or the second virtual magazine according to the bullet replacement method.
[0277] The computer device generates verification information, sends the verification information to the server, and, at the same time, replenishes virtual ammunition for the first virtual magazine or the second virtual magazine according to the ammunition replacement method, and the ammunition replacement process is only performed in the computer device. The server is used to verify the rationality of the verification information and generate a verification result. In some examples, the server is used to compare the verification information with the synchronized client data, and when the two are consistent, determine that the verification result of the verification information is reasonable.
[0278] In some embodiments, the content of the verification information includes at least one of the following: whether the second virtual magazine exists, the first remaining amount of bullets, the second remaining amount of bullets, and the way to change bullets. Optionally, the content of the verification information also includes at least one of the following: the account identifier of the current login account, the type and attribute of the virtual attack prop, the upper limit threshold of the first virtual magazine, the upper limit threshold of the second virtual magazine, and the remaining amount of bullets in the virtual backpack.
[0279] Step 730, receiving the verification result of the verification information returned by the server, and when the verification result indicates that the verification information is reasonable, synchronizing the reloading result of replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine to the server, otherwise, returning the reloading result; wherein the content in the verification information includes at least one of the following: whether there is a second virtual magazine, the first remaining ammunition amount, the second remaining ammunition amount, and the reloading method.
[0280] The computer device receives the verification result of the verification information returned by the server. When the verification result indicates that the verification information is reasonable, the reloading result of replenishing virtual ammunition for the first virtual magazine or the second virtual magazine is synchronized to the server. Otherwise, the reloading result is rolled back, that is, the reloading operation is not performed this time.
[0281] This embodiment provides a background implementation method for replenishing virtual ammunition for the first virtual magazine or the second virtual magazine, providing technical support for successfully executing the ammunition replacement operation and interface display.
[0282] As an example, the technical implementation of the virtual magazine replenishment method is explained in conjunction with a flowchart.
[0283] (1) Overall process: The first virtual magazine is called the main magazine, and the second virtual magazine is called the auxiliary magazine. Replenishing the second virtual magazine is called replenishing the auxiliary magazine; fully changing the first virtual magazine is called fully changing the main magazine; quickly changing the first virtual magazine is called quickly changing the main magazine; fully replenishing the first virtual magazine with the second virtual magazine is called fully replenishing the main magazine with the auxiliary magazine; quickly replenishing the first virtual magazine with the second virtual magazine is called quickly replenishing the main magazine with the auxiliary magazine. Reference Fig.15 As shown, the process is as follows:
[0284] 1. Start reloading;
[0285] 2. Is the auxiliary magazine empty? If so, execute 8; otherwise, execute 3;
[0286] 3. Is the main magazine full? If yes, execute 7; otherwise, execute 4.
[0287] 4. Is the main magazine empty? If so, execute step 6; otherwise, execute step 5.
[0288] 5. Quickly reload the main magazine; execute 13 after reloading;
[0289] 6. Completely reload the main magazine. After reloading, execute 13.
[0290] 7. Refill the auxiliary magazine; after reloading, execute 13;
[0291] 8. Is the main magazine full? If yes, execute 11; otherwise, execute 9;
[0292] 9. Is the main magazine empty? If so, execute 12; otherwise, execute 10;
[0293] 10. The auxiliary magazine quickly replenishes the main magazine; after the reload is completed, execute 13;
[0294] 11. Do not trigger the reload; continue to execute 13;
[0295] 12. The auxiliary magazine completely refills the main magazine; after the reload is completed, execute 13;
[0296] 13.End reloading.
[0297] (2) Principle of reloading: The client and server of the computer device are always synchronizing client data, which includes the remaining amount of bullets in the main magazine and the auxiliary magazine, as well as relevant information on whether the bullets are held. When the player triggers the reloading operation, the computer device and the server will simultaneously detect the current remaining amount of bullets and execute the corresponding reloading method according to the reloading logic. Specifically, when the player triggers the reloading operation, the client of the computer device sends verification information to the server, and the client starts to reload. After the server receives the verification information and verifies that it is reasonable, it synchronizes the client information with the client and broadcasts the reloading result to other clients. Otherwise, the verification result is broadcast as failed and the client process is rolled back.
[0298] (3) Interface display principle: The client and server of the computer device synchronize client data, and display the first volume bar and the second volume bar according to the client data.
[0299] (4) Model appearance display principle: By binding and registering the relevant bone data and position in the three-dimensional model of the virtual attack prop, two different virtual magazines are mounted to different positions of the virtual attack prop model. Fig.16 (1) is the relevant skeleton data and position of the three-dimensional model of the virtual attack prop 20, Fig.16 (2) in the figure represents two virtual magazines 50 mounted at a position of the three-dimensional model. At the same time, the display and disappearance of the corresponding magazines are controlled by the related information of the two magazines in the client and the server.
[0300] In summary, when the virtual attack props in the related art have dual magazines, after the magazine has been replaced once, if the player wants to refill or reset the virtual ammunition in all magazines, he needs to launch an attack again and then change the bullets, that is, he needs to perform the firing process in addition to changing the bullets, and also needs to go through a cumbersome and lengthy changing process. This solution solves the problem of a single, cumbersome and lengthy changing process. When the player performs a changing operation in any magazine state, there is a corresponding changing method, and the changing operation is simple and convenient.
[0301] Fig.17 8 is a block diagram of a virtual magazine replenishment device 800 provided by an exemplary embodiment of the present application. The virtual magazine replenishment device 800 includes at least some modules of a display module 820, a control module 840 and a bullet replacement module 860:
[0302] A display module 820, used to display a virtual character in a virtual environment;
[0303] A control module 840 is used to control the virtual character to use a virtual attack prop, wherein the virtual attack prop is equipped with a first virtual magazine and a second virtual magazine, wherein the first virtual magazine is used to provide virtual ammunition required for using the virtual attack prop, and the second virtual magazine is used to replenish the virtual ammunition in the first virtual magazine;
[0304] The reloading module 860 is used to replenish the virtual ammunition for the first virtual magazine or the second virtual magazine in response to the reloading operation based on at least one of the first magazine state of the first virtual magazine and the second magazine state of the second virtual magazine.
[0305] In some embodiments, the first magazine state is based on a first remaining ammunition quantity representation of the first virtual magazine, and the second magazine state is based on a second remaining ammunition quantity representation of the second virtual magazine;
[0306] The ammunition reloading module 860 is used to:
[0307] In response to the reloading operation, the virtual ammunition is replenished for the first virtual magazine or the second virtual magazine in a reloading manner that matches the first remaining amount of ammunition in the first virtual magazine and the second remaining amount of ammunition in the second virtual magazine.
[0308] In some embodiments, the cartridge replacement module 860 is used for at least one of the following:
[0309] In response to the reloading operation, when the first remaining ammunition quantity is an upper threshold value and the second remaining ammunition quantity is a lower threshold value, replenishing the virtual ammunition in the second virtual magazine from the virtual backpack according to the first type of reloading method;
[0310] In response to the reloading operation, when the first remaining amount of ammunition is greater than or equal to the lower threshold and less than the upper threshold, and the second remaining amount of ammunition is the lower threshold, replenishing the virtual ammunition of the first virtual magazine from the virtual backpack according to a second type of reloading method;
[0311] In response to the reloading operation, when the first remaining amount of bullets is greater than or equal to the lower limit threshold and less than the upper limit threshold, and the second remaining amount of bullets is the upper limit threshold, the virtual ammunition in the second virtual magazine is replenished to the first virtual magazine in accordance with the third type of reloading method.
[0312] In some embodiments, the cartridge replacement module 860 is used for at least one of the following:
[0313] In response to the reloading operation, when the first remaining ammunition quantity is equal to the lower threshold value and the second remaining ammunition quantity is the lower threshold value, according to a first reloading method in the second type of reloading method, the first quantity of virtual ammunition in the virtual backpack is replenished to the first virtual magazine;
[0314] In response to a reloading operation, when the first remaining amount of ammunition is greater than the lower limit threshold and less than the upper limit threshold, and the second remaining amount of ammunition is the lower limit threshold, the second quantity of virtual ammunition in the virtual backpack is replenished to the first virtual magazine in accordance with a second reloading method in the second type of reloading method.
[0315] In some embodiments, the cartridge replacement module 860 is used for at least one of the following:
[0316] In response to the reloading operation, when the first remaining ammunition quantity is equal to the lower threshold value and the second remaining ammunition quantity is equal to the upper threshold value, according to a third reloading method in the third type of reloading method, a third quantity of the virtual ammunition in the second virtual magazine is replenished to the first virtual magazine;
[0317] In response to the reloading operation, when the first remaining amount of ammunition is greater than the lower limit threshold and less than the upper limit threshold, and the second remaining amount of ammunition is the upper limit threshold, the fourth quantity of virtual ammunition in the second virtual magazine is replenished to the first virtual magazine in accordance with a fourth reloading method in the third type of reloading method.
[0318] In some embodiments, the reloading time of the first type of reloading method is less than or equal to the reloading time of the third type of reloading method, and less than or equal to the reloading time of the second type of reloading method; the reloading time of the third type of reloading method is less than or equal to the reloading time of the second type of reloading method;
[0319] The reloading time of the second reloading method in the second type of reloading method is less than or equal to the reloading time of the first reloading method in the second type of reloading method; the reloading time of the fourth reloading method in the third type of reloading method is less than or equal to the reloading time of the third reloading method in the third type of reloading method.
[0320] In some embodiments, the display module 820 is used to:
[0321] Displaying a first bullet quantity bar of the first virtual magazine;
[0322] and, in a non-reloading process, displaying a first filling element on the first ammunition quantity bar, wherein the first filling element is used to indicate a first remaining ammunition quantity of the first virtual magazine; or,
[0323] During the process of reloading the first virtual magazine, a second filling element is displayed on the first bullet quantity bar, and the second filling element is used to indicate the progress of the process of reloading the first virtual magazine.
[0324] In some embodiments, the display module 820 is used to:
[0325] Displaying a first bullet quantity bar of the first virtual magazine;
[0326] And, a first filling element is displayed on the first bullet quantity bar, where the first filling element is used to indicate a first remaining bullet quantity of the first virtual magazine.
[0327] In some embodiments, the display module 820 is used to:
[0328] The first filling element of a current length is displayed on the first bullet amount bar, and the current length corresponds to the first remaining bullet amount.
[0329] In some embodiments, the display module 820 is used to:
[0330] When the first remaining bullet amount is less than a first threshold value and greater than a second threshold value, displaying the first filling element in a first color; or,
[0331] When the first remaining bullet amount is less than the second threshold, the first filling element is displayed in a second color, and the first color is different from the second color.
[0332] In some embodiments, the display module 820 is used to:
[0333] A second bullet quantity bar of the second virtual magazine is displayed, where the second bullet quantity bar is used to indicate that the virtual attack prop is equipped with the second virtual magazine.
[0334] In some embodiments, the display module 820 is used to:
[0335] Displaying the second bullet quantity bar as a first filling state, wherein the first filling state is used to indicate that the second remaining bullet quantity of the second virtual magazine is an upper limit threshold; or,
[0336] Displaying the second bullet quantity bar as a second filling state, wherein the second filling state is used to indicate that the second remaining bullet quantity of the second virtual magazine is a lower limit threshold; or,
[0337] During the reloading process of the second virtual magazine, a third filling element is displayed on the second bullet quantity bar, and the third filling element is used to indicate the progress of the reloading process of the second virtual magazine.
[0338] In some embodiments, the display module 820 is used to:
[0339] When the second remaining bullet amount is the lower limit threshold and the remaining bullet amount in the virtual backpack is the lower limit threshold, the second bullet amount bar is hidden.
[0340] In some embodiments, the display module 820 is used to:
[0341] A reloading animation for replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine is displayed.
[0342] In some embodiments, the display module 820 is used to:
[0343] For the first type of reloading method, a reloading animation for replenishing the virtual ammunition in the second virtual magazine is displayed, wherein the first ammunition bar remains unchanged, and the second filling state of the second ammunition bar is canceled, and the growth process of the third filling element is gradually displayed on the second ammunition bar. After the third filling element gradually grows from zero to a first length, the third filling element is canceled, and the second ammunition bar is displayed as the first filling state, and the first length is used to indicate the end of the reloading process of the second virtual magazine.
[0344] In some embodiments, the display module 820 is used to:
[0345] For the second type of reloading method, a reloading animation for replenishing the virtual ammunition in the first virtual magazine is displayed, wherein the first filling element of the current length on the first ammunition bar is canceled, and the growth process of the second filling element is gradually displayed on the first ammunition bar; after the second filling element gradually grows from zero to a second length, the second filling element is canceled, and the first filling element of a third length is displayed on the first ammunition bar, the second length is used to indicate the end of the reloading process of the first virtual magazine, and the third length is used to indicate the first remaining ammunition of the first virtual magazine after reloading, and the second ammunition bar is displayed as unchanged in the second filling state.
[0346] In some embodiments, the display module 820 is used to:
[0347] For the second type of reloading method, a reloading animation is displayed for replenishing the virtual ammunition in the first virtual magazine, wherein a first filling element on the first ammunition quantity bar gradually increases from a current length to a third length, wherein the third length is used to indicate a first remaining ammunition quantity of the first virtual magazine after reloading, and wherein the second ammunition quantity bar is displayed as unchanged in a second filling state.
[0348] In some embodiments, the display module 820 is used for at least one of the following:
[0349] For the third type of reloading mode, a reloading animation of replenishing the virtual ammunition in the second virtual magazine to the first virtual magazine is displayed, wherein the first filling element on the first ammunition quantity bar is switched from zero to a third length, the third length is used to indicate the first remaining ammunition quantity of the first virtual magazine after reloading, and the second ammunition quantity bar is switched from the first filling state to the second filling state;
[0350] For the third type of reloading method, a reloading animation of replenishing the virtual ammunition in the second virtual magazine to the first virtual magazine is displayed, wherein the first filling element of the current length on the first ammunition bar is switched to the second filling element of the current length, the second filling element of the current length is switched to the first filling element of the third length, and the second ammunition bar is switched from the first filling state to the second filling state.
[0351] In some embodiments, the display module 820 is further used for at least one of the following:
[0352] For the first type of ammunition replacement method, during the process of gradually displaying the third filling element on the second ammunition bar, the second ammunition bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second ammunition bar;
[0353] For the second type of ammunition replacement mode, during the process of gradually displaying the second filling element on the first ammunition bar, the first ammunition bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second ammunition bar;
[0354] For the second type of ammunition replacement mode, in the process that the first filling element on the first ammunition bar gradually increases from the current length to the third length, the first ammunition bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second ammunition bar;
[0355] For the third type of ammunition reloading mode, during the process of the first filling element on the first ammunition quantity bar switching from zero to a third length, the identification element of the virtual ammunition is displayed on one side of the second ammunition quantity bar;
[0356] For the third type of bullet replacement method, during the process of switching the second filling element of the current length to the first filling element of the third length, the identification element of the virtual ammunition is displayed on one side of the second bullet quantity bar.
[0357] In some embodiments, the first magazine state is based on a first remaining ammunition quantity representation of the first virtual magazine, and the second magazine state is based on a second remaining ammunition quantity representation of the second virtual magazine;
[0358] The ammunition reloading module 860 is used to:
[0359] In response to the reloading operation, detecting the first remaining amount of ammunition and the second remaining amount of ammunition, and determining a reloading method that matches the first remaining amount of ammunition and the second remaining amount of ammunition;
[0360] Sending verification information to a server, and replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine according to the ammunition replacement method;
[0361] receiving a verification result of the verification information returned by the server, and synchronizing a reloading result of replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine to the server if the verification result indicates that the verification information is reasonable, otherwise, rolling back the reloading result;
[0362] The content of the verification information includes at least one of the following: whether the second virtual magazine exists, the first remaining amount of bullets, the second remaining amount of bullets, and the bullet replacement method.
[0363] It should be noted that the specific limitations in the embodiments of the one or more virtual magazine replenishment devices 800 provided above can refer to the limitations of the virtual magazine replenishment method above, and will not be repeated here. Each module of the above device can be implemented in whole or in part by software, hardware, and a combination thereof. Each module can be embedded in or independent of the processor of the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0364] An embodiment of the present application also provides a computer device, which includes: a processor and a memory, wherein a computer program is stored in the memory; the processor is used to execute the computer program in the memory to implement the virtual magazine replenishment method provided by the above-mentioned method embodiments.
[0365] Fig.18 It is a structural block diagram of a computer device 1000 provided by an exemplary embodiment of the present application.
[0366] The computer device 1000 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), or a handheld game console. The computer device 1000 may also be called a user device, a portable terminal, or other names.
[0367] Typically, the computer device 1000 includes a processor 1001 and a memory 1002 .
[0368] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0369] The memory 1002 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the virtual magazine replenishment method provided in the embodiment of the present application.
[0370] In some embodiments, the computer device 1000 may further include: a peripheral device interface 1003 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1004 , a touch display screen 1005 , a camera 1006 , an audio circuit 1007 and a power supply 1008 .
[0371] The peripheral device interface 1003 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0372] The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0373] The touch display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. The touch display screen 1005 is used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the touch display screen 1005 may be one, and the front panel of the computer device 1000 is set; in other embodiments, the touch display screen 1005 may be at least two, which are respectively set on different surfaces of the computer device 1000 or are folded; in some embodiments, the touch display screen 1005 may be a flexible display screen, which is set on a curved surface or a folded surface of the computer device 1000. Even, the touch display screen 1005 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The touch display screen 1005 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0374] The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize the shooting of photos or videos. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0375] The audio circuit 1007 is used to provide an audio interface between the user and the computer device 1000. The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1000. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1007 may also include a headphone jack.
[0376] The power supply 1008 is used to power various components in the computer device 1000. The power supply 1008 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1008 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0377] In some embodiments, the computer device 1000 further includes one or more sensors 1009 , including but not limited to: an acceleration sensor 1010 , a gyroscope sensor 1011 , a pressure sensor 1012 , an optical sensor 1013 , and a proximity sensor 1014 .
[0378] The acceleration sensor 1010 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1000. For example, the acceleration sensor 1010 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1001 can control the touch display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1010. The acceleration sensor 1010 can also be used to collect motion data of games or users.
[0379] The gyro sensor 1011 can detect the body direction and rotation angle of the computer device 1000, and the gyro sensor 1011 can cooperate with the acceleration sensor 1010 to collect the user's 3D actions on the computer device 1000. The processor 1001 can implement the following functions based on the data collected by the gyro sensor 1011: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0380] The pressure sensor 1012 can be set on the side frame of the computer device 1000 and / or the lower layer of the touch display screen 1005. When the pressure sensor 1012 is set on the side frame of the computer device 1000, it can detect the user's grip signal of the computer device 1000, and perform left and right hand recognition or shortcut operation according to the grip signal. When the pressure sensor 1012 is set on the lower layer of the touch display screen 1005, it can control the operability control on the UI interface according to the user's pressure operation on the touch display screen 1005. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0381] The optical sensor 1013 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the touch display screen 1005 according to the ambient light intensity collected by the optical sensor 1013. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is reduced. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1013.
[0382] The proximity sensor 1014, also called a distance sensor, is usually arranged on the front of the computer device 1000. The proximity sensor 1014 is used to collect the distance between the user and the front of the computer device 1000. In one embodiment, when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually decreasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually increasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-off state to the screen-on state.
[0383] Those skilled in the art will understand that Fig.18 The structure shown in the figure does not constitute a limitation on the computer device 1000, and the computer device 1000 may include more or less components than those shown in the figure, or combine some components, or adopt a different arrangement of components.
[0384] In an exemplary embodiment, the present application provides a chip, which includes a programmable logic circuit and / or program instructions, and when the chip is run on a computer device, it is used to implement the virtual magazine replenishment method provided by the above method embodiment.
[0385] The present application provides a computer-readable storage medium, which stores a computer program. The computer program is loaded and executed by a processor to implement the virtual magazine replenishment method provided by the above method embodiment.
[0386] The present application provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the processor of the computer device loads and executes the virtual magazine replenishment method provided in the above method embodiment.
[0387] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0388] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned computer-readable storage medium may be a read-only memory, a disk or an optical disk, etc.
[0389] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0390] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A virtual magazine replenishment method, characterized in that: The method comprises: displaying a virtual character located in a virtual environment; Controlling the virtual character to use a virtual attack prop, wherein the virtual attack prop is equipped with a first virtual magazine and a second virtual magazine, wherein the first virtual magazine is used to provide virtual ammunition required for using the virtual attack prop, and the second virtual magazine is used to replenish the virtual ammunition in the first virtual magazine; In response to a reloading operation, the first virtual magazine or the second virtual magazine is replenished with the virtual ammunition based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine.
2. The method according to claim 1, characterized in that The first magazine state is characterized by a first remaining amount of ammunition in the first virtual magazine, and the second magazine state is characterized by a second remaining amount of ammunition in the second virtual magazine; In response to the reloading operation, replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine, comprises: In response to the reloading operation, the virtual ammunition is replenished for the first virtual magazine or the second virtual magazine in a reloading manner that matches the first remaining amount of ammunition in the first virtual magazine and the second remaining amount of ammunition in the second virtual magazine.
3. The method according to claim 2, characterized in that In response to the reloading operation, replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine in a reloading manner that matches the first remaining amount of ammunition in the first virtual magazine and the second remaining amount of ammunition in the second virtual magazine, comprises at least one of the following: In response to the reloading operation, when the first remaining ammunition quantity is an upper threshold value and the second remaining ammunition quantity is a lower threshold value, replenishing the virtual ammunition in the second virtual magazine from the virtual backpack according to the first type of reloading method; In response to the reloading operation, when the first remaining amount of ammunition is greater than or equal to the lower threshold and less than the upper threshold, and the second remaining amount of ammunition is the lower threshold, replenishing the virtual ammunition of the first virtual magazine from the virtual backpack according to a second type of reloading method; In response to the reloading operation, when the first remaining amount of bullets is greater than or equal to the lower limit threshold and less than the upper limit threshold, and the second remaining amount of bullets is the upper limit threshold, the virtual ammunition in the second virtual magazine is replenished to the first virtual magazine in accordance with the third type of reloading method.
4. The method according to claim 3, characterized in that In response to the reloading operation, when the first remaining ammunition quantity is greater than or equal to the lower threshold value and less than the upper threshold value, and the second remaining ammunition quantity is the lower threshold value, replenishing the virtual ammunition of the first virtual magazine from the virtual backpack according to the second type of reloading method, including at least one of the following: In response to the reloading operation, when the first remaining ammunition quantity is equal to the lower threshold value and the second remaining ammunition quantity is the lower threshold value, according to a first reloading method in the second type of reloading method, the first quantity of virtual ammunition in the virtual backpack is replenished to the first virtual magazine; In response to a reloading operation, when the first remaining amount of ammunition is greater than the lower limit threshold and less than the upper limit threshold, and the second remaining amount of ammunition is the lower limit threshold, the second quantity of virtual ammunition in the virtual backpack is replenished to the first virtual magazine in accordance with a second reloading method in the second type of reloading method.
5. The method according to claim 3, characterized in that: In response to the reloading operation, when the first remaining ammunition quantity is greater than or equal to the lower threshold value and less than the upper threshold value, and the second remaining ammunition quantity is the upper threshold value, replenishing the virtual ammunition in the second virtual magazine to the first virtual magazine according to the third type of reloading method, including at least one of the following: In response to the reloading operation, when the first remaining ammunition quantity is equal to the lower threshold value and the second remaining ammunition quantity is equal to the upper threshold value, according to a third reloading method in the third type of reloading method, a third quantity of the virtual ammunition in the second virtual magazine is replenished to the first virtual magazine; In response to the reloading operation, when the first remaining amount of ammunition is greater than the lower limit threshold and less than the upper limit threshold, and the second remaining amount of ammunition is the upper limit threshold, the fourth quantity of virtual ammunition in the second virtual magazine is replenished to the first virtual magazine in accordance with a fourth reloading method in the third type of reloading method.
6. The method according to any one of claims 3 to 5, characterized in that: The reloading time of the first type of reloading method is less than or equal to the reloading time of the third type of reloading method, and less than or equal to the reloading time of the second type of reloading method; the reloading time of the third type of reloading method is less than or equal to the reloading time of the second type of reloading method; A reloading time of a second reloading method in the second type of reloading method is less than or equal to a reloading time of a first reloading method in the second type of reloading method; The reloading time of the fourth reloading method in the third type of reloading method is less than or equal to the reloading time of the third reloading method in the third type of reloading method.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Displaying a first bullet quantity bar of the first virtual magazine; and In a non-reloading process, displaying a first filling element on the first ammunition quantity bar, wherein the first filling element is used to indicate a first remaining ammunition quantity of the first virtual magazine; During the process of reloading the first virtual magazine, a second filling element is displayed on the first bullet quantity bar, and the second filling element is used to indicate the progress of the process of reloading the first virtual magazine.
8. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Displaying a first bullet quantity bar of the first virtual magazine; and A first filling element is displayed on the first ammunition quantity bar, where the first filling element is used to indicate a first remaining ammunition quantity of the first virtual magazine.
9. The method according to claim 7 or 8, characterized in that: The step of displaying a first filling element on the first elastic bar includes: The first filling element of a current length is displayed on the first bullet amount bar, and the current length corresponds to the first remaining bullet amount.
10. The method according to claim 7 or 8, characterized in that: The method further comprises: When the first remaining bullet amount is less than a first threshold value and greater than a second threshold value, displaying the first filling element in a first color; or, When the first remaining bullet amount is less than the second threshold, the first filling element is displayed in a second color, and the first color is different from the second color.
11. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: A second bullet quantity bar of the second virtual magazine is displayed, where the second bullet quantity bar is used to indicate that the virtual attack prop is equipped with the second virtual magazine.
12. The method according to claim 11, characterized in that The method further comprises: Displaying the second bullet quantity bar as a first filling state, wherein the first filling state is used to indicate that the second remaining bullet quantity of the second virtual magazine is an upper limit threshold; or, Displaying the second bullet quantity bar as a second filling state, wherein the second filling state is used to indicate that the second remaining bullet quantity of the second virtual magazine is a lower limit threshold; During the reloading process of the second virtual magazine, a third filling element is displayed on the second bullet quantity bar, and the third filling element is used to indicate the progress of the reloading process of the second virtual magazine.
13. The method according to claim 12, characterized in that The method further comprises: When the second remaining bullet amount is the lower limit threshold and the remaining bullet amount in the virtual backpack is the lower limit threshold, the second bullet amount bar is hidden.
14. The method according to any one of claims 1 to 13, characterized in that: The method further comprises: A reloading animation for replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine is displayed.
15. The method according to claim 14, characterized in that The animation of refilling the virtual ammunition by displaying the first virtual magazine or the second virtual magazine includes: For the first type of reloading method, a reloading animation for replenishing the virtual ammunition in the second virtual magazine is displayed, wherein the first ammunition bar remains unchanged, and the second filling state of the second ammunition bar is canceled, and the growth process of the third filling element is gradually displayed on the second ammunition bar. After the third filling element gradually grows from zero to a first length, the third filling element is canceled, and the second ammunition bar is displayed as the first filling state, and the first length is used to indicate the end of the reloading process of the second virtual magazine.
16. The method according to claim 14, characterized in that The animation of refilling the virtual ammunition by displaying the first virtual magazine or the second virtual magazine includes: For the second type of reloading method, a reloading animation for replenishing the virtual ammunition in the first virtual magazine is displayed, wherein the first filling element of the current length on the first ammunition bar is canceled, and the growth process of the second filling element is gradually displayed on the first ammunition bar; after the second filling element gradually grows from zero to a second length, the second filling element is canceled, and the first filling element of a third length is displayed on the first ammunition bar, the second length is used to indicate the end of the reloading process of the first virtual magazine, and the third length is used to indicate the first remaining ammunition of the first virtual magazine after reloading, and the second ammunition bar is displayed as unchanged in the second filling state.
17. The method according to claim 14, characterized in that The animation of refilling the virtual ammunition by displaying the first virtual magazine or the second virtual magazine includes: For the second type of reloading method, a reloading animation is displayed for replenishing the virtual ammunition in the first virtual magazine, wherein a first filling element on the first ammunition quantity bar gradually increases from a current length to a third length, wherein the third length is used to indicate a first remaining ammunition quantity of the first virtual magazine after reloading, and wherein the second ammunition quantity bar is displayed as unchanged in a second filling state.
18. The method according to claim 14, characterized in that The reloading animation displayed as the first virtual magazine or the second virtual magazine replenishing the virtual ammunition includes at least one of the following: For the third type of reloading mode, a reloading animation of replenishing the virtual ammunition in the second virtual magazine to the first virtual magazine is displayed, wherein the first filling element on the first ammunition quantity bar is switched from zero to a third length, the third length is used to indicate the first remaining ammunition quantity of the first virtual magazine after reloading, and the second ammunition quantity bar is switched from the first filling state to the second filling state; For the third type of reloading method, a reloading animation of replenishing the virtual ammunition in the second virtual magazine to the first virtual magazine is displayed, wherein the first filling element of the current length on the first ammunition bar is switched to the second filling element of the current length, the second filling element of the current length is switched to the first filling element of the third length, and the second ammunition bar is switched from the first filling state to the second filling state.
19. The method according to any one of claims 14 to 18, characterized in that: The animation of refilling the virtual ammunition for the first virtual magazine or the second virtual magazine further includes at least one of the following: For the first type of ammunition replacement method, during the process of gradually displaying the third filling element on the second ammunition bar, the second ammunition bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second ammunition bar; For the second type of ammunition replacement mode, during the process of gradually displaying the second filling element on the first ammunition bar, the first ammunition bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second ammunition bar; For the second type of ammunition replacement mode, in the process that the first filling element on the first ammunition bar gradually increases from the current length to the third length, the first ammunition bar is enlarged and displayed, and the identification element of the virtual ammunition is displayed on one side of the second ammunition bar; For the third type of ammunition reloading mode, during the process of the first filling element on the first ammunition quantity bar switching from zero to a third length, the identification element of the virtual ammunition is displayed on one side of the second ammunition quantity bar; For the third type of bullet replacement method, during the process of switching the second filling element of the current length to the first filling element of the third length, the identification element of the virtual ammunition is displayed on one side of the second bullet quantity bar.
20. The method according to any one of claims 1 to 13, characterized in that: The first magazine state is characterized by a first remaining amount of ammunition in the first virtual magazine, and the second magazine state is characterized by a second remaining amount of ammunition in the second virtual magazine; In response to the reloading operation, replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine, comprises: In response to the reloading operation, detecting the first remaining amount of ammunition and the second remaining amount of ammunition, and determining a reloading method that matches the first remaining amount of ammunition and the second remaining amount of ammunition; Sending verification information to a server, and replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine according to the ammunition replacement method; receiving a verification result of the verification information returned by the server, and synchronizing a reloading result of replenishing the virtual ammunition for the first virtual magazine or the second virtual magazine to the server if the verification result indicates that the verification information is reasonable, otherwise, rolling back the reloading result; The content of the verification information includes at least one of the following: whether the second virtual magazine exists, the first remaining amount of bullets, the second remaining amount of bullets, and the bullet replacement method.
21. A virtual magazine replenishing device, characterized in that: The device comprises: A display module, used for displaying a virtual character in a virtual environment; A control module, used for controlling the virtual character to use a virtual attack prop, wherein the virtual attack prop is equipped with a first virtual magazine and a second virtual magazine, wherein the first virtual magazine is used for providing virtual ammunition required for using the virtual attack prop, and the second virtual magazine is used for replenishing the virtual ammunition in the first virtual magazine; The reloading module is used to replenish the virtual ammunition for the first virtual magazine or the second virtual magazine in response to the reloading operation based on at least one of a first magazine state of the first virtual magazine and a second magazine state of the second virtual magazine.
22. A computer device, characterized in that: The computer device comprises: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the virtual magazine replenishment method according to any one of claims 1 to 20.
23. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the virtual magazine replenishment method according to any one of claims 1 to 20.
24. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor obtains the computer instructions from the computer-readable storage medium, so that the processor loads and executes them to implement the virtual magazine replenishment method as described in any one of claims 1 to 20.