WO2020001155A1 - 虚拟背包展示界面的显示方法、装置、电子设备及存储介质 - Google Patents
虚拟背包展示界面的显示方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2020001155A1 WO2020001155A1 PCT/CN2019/084913 CN2019084913W WO2020001155A1 WO 2020001155 A1 WO2020001155 A1 WO 2020001155A1 CN 2019084913 W CN2019084913 W CN 2019084913W WO 2020001155 A1 WO2020001155 A1 WO 2020001155A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- virtual
- target
- backpack
- type
- item
- Prior art date
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/53—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
- A63F13/533—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/58—Controlling game characters or game objects based on the game progress by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
- A63F13/69—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/837—Shooting of targets
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/308—Details of the user interface
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/50—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
- A63F2300/57—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of game services offered to the player
- A63F2300/575—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of game services offered to the player for trading virtual items
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/80—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
- A63F2300/8076—Shooting
Definitions
- the embodiments of the present application relate to the field of computer technology, and in particular, to a method, a device, an electronic device, and a storage medium for displaying a virtual backpack display interface.
- the virtual item picked up by the virtual object can be viewed in the virtual backpack display interface.
- the virtual backpack display interface displays virtual items in the form of a list. In this list, all the picked up virtual items are displayed in a preset order.
- the preset arrangement order is medicine A, medicine B, butt stock a, grip b, and 5.56 millimeter bullets (abbreviation: 5.56 bullets).
- the virtual items picked up by the virtual character include medicine A, grip b, and 5.56 bullets
- the virtual items displayed in the virtual backpack display interface are medicine A, grip b, and 5.56 bullets from top to bottom.
- a display method of a virtual backpack display interface is executed by an electronic device. The method includes:
- main interface Displaying a main interface, where the main interface includes a screen where a virtual object observes the virtual environment during a virtual firearm battle;
- the virtual backpack display interface including at least two sub-lists, each of which is used to display the same type of virtual items, the type including medical drugs , At least one of gun accessories and weapons and ammunition.
- a display device for a virtual backpack display interface includes:
- a display module configured to display a main interface, where the main interface includes a picture of a virtual object observing the virtual environment during a virtual firearm battle;
- a receiving module for receiving a backpack display signal while the main interface is being displayed
- the display module is further configured to display the virtual backpack display interface according to the backpack display signal.
- the virtual backpack display interface includes at least two sub-lists, each of which is used to display the same type of virtual items.
- the type includes at least one of medical drugs, gun accessories and weapons and ammunition.
- the medical drug class corresponds to a first sub-list
- the gun accessories class corresponds to a second sub-list
- the weapon ammunition class corresponds to a third sub-list
- the display module is further configured to display the virtual backpack display interface according to the backpack display signal.
- the virtual backpack display interface includes the first sub-list and the second sub-list arranged in order from top to bottom. And the third sub-list.
- the receiving module is further configured to receive a virtual item pickup signal, where the virtual item pickup signal is used to instruct a target virtual item to be picked up;
- the device further includes:
- a type determining module configured to determine a type of the target virtual item
- a storage module configured to store the target virtual item in the corresponding sublist according to the type of the target virtual item.
- the medical drug category includes a first type, and the target virtual item is the first type of virtual item;
- the storage module is further configured to increase the first number to correspond to the target virtual item when the first sub-list corresponding to the medical drug category includes a first number of the first type of virtual items.
- the second quantity is the third quantity of the first type of virtual items in the first sub-list after picking up.
- the type of the target virtual item includes a gun accessory category
- the storage module is further configured to assemble the target virtual item to the virtual object when the virtual object is equipped with a virtual firearm in the virtual environment and the slot where the virtual firearm is equipped with the target virtual item is empty. In the slot;
- the storage module is further configured to, when the virtual object is equipped with the virtual firearm in the virtual environment, and the slot where the virtual firearm is equipped with the target virtual item is not empty, the target virtual
- the items are stored in a second sub-list corresponding to the firearm accessory category;
- the storage module is further configured to: when the virtual object is equipped with the virtual firearm in the virtual environment, and the virtual firearm does not include a slot in which the target virtual item is mounted, the target virtual item Stored in the second sub-list;
- the storage module is further configured to store the target virtual item into the second sub-list when the virtual object is not equipped with the virtual firearm in the virtual environment.
- the type of the target virtual item includes weapons and ammunition
- the storage module is further configured to: when the virtual object is equipped with a virtual firearm in the virtual environment, and the ammunition clip assembled by the virtual firearm matches the target virtual item, and the ammunition clip is empty, The target virtual item is assembled to the magazine;
- the storage module is further configured to: when the virtual object is equipped with the virtual firearm in the virtual environment, a magazine assembled by the virtual firearm matches the target virtual item, and the magazine is not empty When the target virtual item is stored in a third sub-list corresponding to the weapon ammunition class;
- the storage module is further configured to: when the virtual object is equipped with the virtual firearm in the virtual environment, and the magazine assembled by the virtual firearm does not match the target virtual item, the target virtual item Stored in the third sub-list;
- the storage module is further configured to store the target virtual item into the third sub-list when the virtual object is not equipped with the virtual firearm in the virtual environment.
- the type determining module is further configured to determine a capacity occupied by the target virtual item in the virtual backpack; determine an available capacity of the virtual backpack, and the available capacity is Calculated according to the difference between the total capacity of the virtual backpack and the occupied capacity of the virtual backpack; when the capacity occupied by the target virtual item in the virtual backpack is not greater than the available capacity, determine the Describe the type of target virtual item.
- An electronic device includes a processor and a memory, and the memory stores at least one computer-readable instruction, and the computer-readable instruction is loaded by the processor and executes the following steps:
- main interface Displaying a main interface, where the main interface includes a screen where a virtual object observes the virtual environment during a virtual firearm battle;
- the virtual backpack display interface including at least two sub-lists, each of which is used to display the same type of virtual items, the type including medical drugs , At least one of gun accessories and weapons and ammunition.
- a non-volatile computer-readable storage medium at least one instruction stored in the storage medium, and at least one computer-readable instruction stored in the computer-readable storage medium, where the computer-readable instruction is processed by a processor Load and perform the following steps:
- main interface Displaying a main interface, where the main interface includes a screen where a virtual object observes the virtual environment during a virtual firearm battle;
- the virtual backpack display interface including at least two sub-lists, each of which is used to display the same type of virtual items, the type including medical drugs , At least one of gun accessories and weapons and ammunition.
- a computer program product when the computer program product runs on a computer, causes the computer to execute a display method of a virtual backpack display interface as described in the embodiment of the present application.
- FIG. 1 is a structural block diagram of an electronic device according to an embodiment
- FIG. 2 is a structural block diagram of a computer system according to an embodiment
- FIG. 3 is a schematic interface diagram of an exemplary virtual backpack display interface
- FIG. 4 is a flowchart of a method for displaying a virtual backpack display interface according to an embodiment
- FIG. 5 is a schematic interface diagram of a virtual backpack display interface provided by an embodiment
- FIG. 6 is a flowchart of a method for displaying a virtual backpack display interface according to another embodiment
- FIG. 7 is a flowchart of a method for displaying a virtual backpack display interface according to another embodiment
- FIG. 8 is a flowchart of a method for displaying a virtual backpack display interface according to another embodiment
- FIG. 9 is a schematic interface diagram of a virtual backpack display interface provided by another embodiment.
- FIG. 10 is a structural block diagram of a display device of a virtual backpack display interface according to an embodiment
- FIG. 11 is a structural block diagram of a display device of a virtual backpack display interface according to another embodiment
- FIG. 12 is a structural block diagram of an electronic device according to an exemplary embodiment of the present application.
- Virtual environment A virtual environment that is displayed (or provided) when an application is run on an electronic device.
- the virtual environment may be a real-world simulation environment, a semi-simulation semi-fictional three-dimensional environment, or a purely fictional three-dimensional environment.
- the virtual environment may be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment.
- the following embodiments take the virtual environment as a three-dimensional virtual environment as an example, but it is not limited thereto.
- the virtual environment is also used for a virtual environment battle between at least two virtual characters.
- the virtual environment is further used for at least two virtual characters to use virtual guns for battle.
- the virtual environment is also used to battle at least two virtual characters using virtual firearms within a target area, and the target area will continuously decrease as time passes in the virtual environment.
- Virtual objects refer to movable objects in a virtual environment.
- the movable object may be at least one of a virtual character, a virtual animal, and an anime character.
- the virtual environment is a three-dimensional virtual environment
- the virtual object is a three-dimensional solid model created based on the animation bone technology.
- Each virtual object has its own shape and volume in the three-dimensional virtual environment, occupying a part of the space in the three-dimensional virtual environment.
- Virtual firearm refers to a virtual weapon that attacks by firing virtual bullets in a virtual environment.
- a virtual character can pick up a virtual firearm in the virtual environment, and attack it by picking up the virtual firearm.
- each virtual firearm can be provided with at least one slot, and each slot is used for assembling at least one virtual firearm accessory.
- the M16A4 automatic rifle is usually provided with a muzzle slot, a grip slot, and a magazine.
- Slot, butt slot, and sight slot, where the accessories that can be assembled on the grip slot include at least one of a vertical grip, a right-angle grip, a half-cut grip, a light grip, and a thumb grip .
- the virtual firearm includes a plurality of different firearm types, and each type of virtual firearm includes a plurality of different firearm models.
- the firearm types of the virtual firearm include at least: automatic rifle, sniper rifle, shotgun, handgun, Submachine guns, etc.
- automatic rifle firearm models include: LVOA-C automatic rifle, AKM automatic rifle, SCAR-L automatic rifle, AUG automatic rifle, M16A4 automatic rifle, GROZA automatic rifle and so on.
- a virtual gun battle refers to a game mode in which at least two virtual objects use virtual guns to battle in a virtual environment.
- the virtual gun battle is a single game where at least two virtual objects use virtual guns to battle. Battle mode.
- Each virtual gun battle corresponds to one battle duration / player number. When the virtual gun battle corresponds to the battle duration, the virtual object whose survival time reaches the length of the battle wins; when the virtual gun battle corresponds to the number of players, the last one or a group of survivors The virtual object wins.
- this type refers to the type of virtual items that can be picked up and / or purchased in the virtual environment.
- this type includes at least one of medical drugs, gun accessories and weapons and ammunition.
- Medical drugs are the types of virtual items that restore the health or energy of virtual objects.
- the virtual items included in the medical drugs include medical boxes, medical bags, bandages, sports drinks, At least one of analgesics and epinephrine, wherein the medical box, medical bag, and bandage can restore the life value of the virtual object.
- the medical box can restore the life value of the virtual object to a full value (that is, 100 %)
- the medical package can restore the health of the virtual object by 50%
- the single use of a bandage can restore the health of the virtual object by 15%, optionally, when the health of the virtual object is reduced to 0%, the virtual object In the virtual environment, it is determined to be a state of loss of life.
- the teammate of the virtual object When the teammate of the virtual object is in a state where the health value is greater than 0%, the teammate can increase the health value of the virtual object by supporting the teammate.
- the teammate of the virtual object When the teammate of the virtual object also When in a state of loss of life, the virtual object is directly in a dead state (that is, eliminated from the game); optionally, the above-mentioned medical drugs
- sports drinks, painkillers, and adrenaline can restore the energy value of virtual objects. Among them, a single use of sports drinks can restore the energy value of virtual objects by 40% (the total energy value does not exceed 100%).
- the second use of analgesics can restore the energy value of the virtual object by 60% (the total energy value does not exceed 100%), and the use of epinephrine can restore the energy value of the virtual object to 100%.
- the energy value can restore the life value of the virtual object, for example, every 20% of the energy value can restore 10% of the life value of the virtual object within a preset time period.
- the gun accessories category belongs to the virtual item that assembles the virtual guns equipped with the virtual object.
- the virtual items included in the gun accessories category include muzzle, grip, magazine, At least one of a buttstock and a sight, where virtual guns include automatic rifles, sniper rifles, shotguns, pistols, submachine guns and other types, muzzles, grips, magazines, butts and sights correspond to different types of firearms
- the virtual firearms of different types or virtual firearms of different firearm models are also different. For example, the stock of the M16A4 automatic rifle cannot be used on other virtual firearms.
- Weapons and ammunitions are used to assemble virtual firearms' cartridges or to be used for throwing virtual items.
- the weapons and ammunitions include virtual items including 5.56 bullets, 7.62 bullets, and 9 mm.
- 5.56 bullets, 7.62 bullets, 9 mm bullets, and .45 caliber bullets are used to assemble into the magazines of virtual firearms.
- the M16A4 automatic rifle's magazine is compatible with 5.56 bullets.
- the grenade and the smoke bomb are used to be thrown. After the grenade is thrown by a virtual object, the virtual object within the preset attack range is attacked to reduce the life of the virtual object within the preset attack range; After the bomb is thrown, it releases smoke within a preset smoke range.
- the electronic equipment in this application may be a desktop computer, a laptop portable computer, a mobile phone, a tablet computer, an e-book reader, MP3 (Moving Picture Experts Group Audio Layer III, a moving image expert compression standard audio layer 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, Motion Picture Expert Compression Standard Audio Level 4) Player and so on.
- An application program that supports a virtual environment such as an application program that supports a three-dimensional virtual environment, is installed and run in the electronic device.
- the application may be any one of a virtual reality application, a three-dimensional map program, a military simulation program, a TPS game, an FPS game, and a MOBA game.
- the application program may be a stand-alone version of the application program, such as a stand-alone version of a 3D game program, or may be an online version of the application program.
- FIG. 1 shows a structural block diagram of an electronic device according to an exemplary embodiment of the present application.
- the electronic device 100 includes: an operating system 120 and an application program 122.
- the operating system 120 is the basic software that provides application programs 122 with secure access to computer hardware.
- the application 122 is an application that supports a virtual environment.
- the application program 122 is an application program that supports a three-dimensional virtual environment.
- the application program 122 may be a virtual reality application, a three-dimensional map program, a military simulation program, a Third-Personal Shooting Game (TPS), a First-person Shooting Game (FPS), a MOBA game, Any of the multiplayer shooter survival games.
- the application program 122 may be a stand-alone version of an application program, such as a stand-alone version of a 3D game program.
- FIG. 2 shows a structural block diagram of a computer system provided by an exemplary embodiment of the present application.
- the computer system 200 includes a first device 220, a server 240, and a second device 260.
- the first device 220 installs and runs an application that supports a virtual environment.
- the application can be any one of a virtual reality application, a three-dimensional map program, a military simulation program, a TPS game, an FPS game, a MOBA game, and a multiplayer shooter survival game.
- the first device 220 is a device used by a first user.
- the first user uses the first device 220 to control a first virtual object located in a virtual environment to perform activities, including but not limited to: adjusting body posture, crawling, walking, running, At least one of riding, jumping, driving, picking, shooting, attacking, and throwing.
- the first virtual object is a first virtual character, such as a simulated character or an anime character.
- the first device 220 is connected to the server 240 through a wireless network or a wired network.
- the server 240 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center.
- the server 240 is configured to provide a background service for an application supporting a three-dimensional virtual environment.
- the server 240 undertakes the main calculation work, and the first device 220 and the second device 260 assume the secondary calculation work; or, the server 240 undertakes the secondary calculation work, and the first device 220 and the second device 260 undertake the main calculation work;
- the server 240, the first device 220, and the second device 260 use a distributed computing architecture for collaborative computing.
- the second device 260 installs and runs an application that supports a virtual environment.
- the application may be any one of a virtual reality application, a three-dimensional map program, a military simulation program, an FPS game, a MOBA game, and a multiplayer shooter survival game.
- the second device 260 is a device used by the second user.
- the second user uses the second device 260 to control the second virtual object located in the virtual environment for activities, including but not limited to: adjusting body posture, crawling, walking, running, At least one of riding, jumping, driving, picking, shooting, attacking, and throwing.
- the second virtual object is a second virtual character, such as a simulated character or an anime character.
- first virtual character and the second virtual character are in the same virtual environment.
- first virtual character and the second virtual character may belong to the same team, the same organization, have a friend relationship, or have temporary communication rights.
- first virtual character and the second virtual character may also belong to different teams, different organizations, or two hostile groups.
- the applications installed on the first device 220 and the second device 260 are the same, or the applications installed on the two devices are the same type of applications on different control system platforms.
- the first device 220 may refer to one of a plurality of devices
- the second device 260 may refer to one of a plurality of devices. In this embodiment, only the first device 220 and the second device 260 are used as examples.
- the device types of the first device 220 and the second device 260 are the same or different, and the device types include: game console, desktop computer, smartphone, tablet computer, e-book reader, MP3 player, MP4 player, and laptop portable At least one of the computers. In the following embodiments, the device is a desktop computer.
- the number of the foregoing devices may be larger or smaller.
- the above device may be only one, or the above device may be dozens or hundreds, or a larger number.
- the embodiment of the present application does not limit the number and types of devices.
- FIG. 3 is an exemplary schematic diagram of a virtual backpack display interface provided in the backpack display interface.
- a virtual item list 32 is displayed in 31, and virtual items picked up by virtual objects are displayed in the virtual item list 32.
- the virtual item list 32 displays the virtual items in a separate column, when there are many virtual items, and the user needs When viewing the target virtual items arranged later, the list needs to be scrolled down to search. The process of viewing the target virtual items by the user is less efficient, and there are more steps to view the target virtual items.
- FIG. 4 is a flowchart of a display method of a virtual backpack display interface provided by an exemplary embodiment of the present application.
- the method is applied to an electronic device as an example for description. The method includes:
- step 401 the main interface is displayed.
- the main interface includes a screen where the virtual object observes the virtual environment during the virtual firearm battle.
- the target virtual object is used to obtain a virtual item in a virtual environment.
- the virtual object may be obtained by picking up the virtual item, or may be obtained by purchasing, or may be obtained through a lottery.
- the virtual item is acquired in a manner, which is not limited in the embodiment of the present application.
- the posture of the virtual object includes at least one of standing, squatting, lying down, crouching, walking, and running.
- the virtual object may be in a gun-holding state. Yes, it can also be in an unarmed state.
- the main interface may include a picture for observing the virtual environment through a sight, or a picture for observing the virtual environment without using a sight.
- step 402 during the process of displaying the main interface, a backpack display signal is received.
- the backpack display signal is used to instruct displaying a virtual backpack display interface.
- the virtual backpack display interface is used to display virtual items already owned by the target virtual object.
- the manner in which the electronic device receives the backpack display signal includes at least one of the following manners:
- the shortcut key combination corresponding to the shortcut key operation signal is the target shortcut key combination
- the shortcut key operation signal may be triggered by an input operation of an external input device, such as triggering a shortcut key signal by clicking a left mouse button, or by using a keyboard. Typing the Tab key triggers a shortcut key signal.
- the shortcut key operation signal can be triggered by triggering a physical key on the mobile terminal or a virtual keyboard displayed on the touch screen. Triggered by an input operation.
- the main interface further includes a backpack display control.
- a click signal on the backpack display control is received, it is determined that the backpack display signal is received.
- the click signal when the electronic device is a desktop computer or a laptop laptop, the click signal may be triggered by an input operation of an external input device, such as: clicking the backpack display control by a mouse to trigger the click signal; when the electronic device is When a mobile terminal such as a mobile phone or a tablet computer is used, the click signal may be triggered by touching the backpack display control on the touch display screen.
- an external input device such as: clicking the backpack display control by a mouse to trigger the click signal
- the click signal when the electronic device is When a mobile terminal such as a mobile phone or a tablet computer is used, the click signal may be triggered by touching the backpack display control on the touch display screen.
- Step 403 Display a virtual backpack display interface according to the backpack display signal.
- the virtual backpack display interface includes at least two sub-lists.
- the virtual backpack display interface is used to display virtual items held by virtual objects.
- the virtual backpack display interface includes at least two sub-lists, and each sub-list is used to display the same type of virtual items.
- the type includes at least one of medical drugs, gun accessories and weapons and ammunition.
- the virtual backpack display interface includes two sub-lists as an example.
- the virtual backpack display interface includes at least a first sub-list and a second sub-list.
- the first sub-list is used to store and display the first type.
- Virtual items the second sub-list is used to store and display the second type of virtual items.
- the virtual backpack display interface may further include more sub-lists, which is not limited in the embodiment of the present application.
- the display order of the sub-lists in the virtual backpack display interface is determined according to the priority of the type of the virtual item corresponding to the sub-list.
- the sub-lists are sequentially displayed according to the display order.
- the sublists corresponding to the type are displayed in order from the top to the bottom in the virtual backpack display interface; or, according to the priority of the type, high to low, the sublist corresponding to the type is
- the virtual backpack display interface is displayed in order from bottom to top; or, according to the priority of the type, from high to low, and the sublist corresponding to the type is displayed in order from left to right in the virtual backpack display interface; or, the priority of the type is displayed from high to high. From low to high, the sub-lists corresponding to the types are displayed from right to left in the virtual backpack display interface.
- the embodiment of the present application does not specifically limit the arrangement direction of the sub-list.
- step 403 the priority of the type corresponding to each sub-list needs to be determined, and the display order of the sub-list in the virtual backpack display interface is determined according to the priority of the type corresponding to the above-mentioned sub-list.
- a manner of determining the display order of the sub-lists includes at least one of the following manners:
- the configuration file obtained by the electronic device from the server includes a display order of the sublist in the virtual backpack display interface
- the display coordinates of each sublist in the virtual backpack display interface can be directly configured, such as: setting the length and width of each sublist, and the upper left corner of each sublist in the virtual backpack display interface.
- the coordinate points in the configuration file can be set; in this configuration file, the arrangement order and length and width of each sublist can also be configured, where the width of each sublist is the same.
- the arrangement order of the sublist included in the configuration file For: sublist A (length: 15, width: 5), sublist C (length: 15, width: 5), sublist B (length: 10, width: 5), then in the virtual backpack display interface, use the The sub-list A, sub-list C, and sub-list B show the three sub-lists in order.
- the order of the sub-list A, sub-list C, and sub-list B is the priority of the type corresponding to the three sub-lists, that is, the sub-list.
- the type corresponding to list A is the highest priority
- the type corresponding to sublist C is the second priority
- the type corresponding to sublist B is the third priority.
- the priority is obtained by sorting the frequency of use of types.
- the historical item usage data includes the type usage frequency.
- the type usage frequency is obtained. Sort them to get the priority of the type;
- the historical item usage data may be all item usage data recorded in the client on the electronic device, or may be item usage data within a recently preset duration, or item usage data within a recently preset number of matches. .
- the frequency of use of this type refers to the frequency with which this type of virtual item is used.
- the frequency at which the virtual item is used may be calculated from at least one of the number of times the virtual item is picked up, the number of times it is assembled to a virtual firearm, the number of times it is thrown, and the number of times it is fired.
- the frequency of use of a type can be the average number of times that the virtual items included in the type are used, or it can be the sum of the frequencies of the virtual items included in the type, or the weight of the frequency of the virtual items included in the type.
- the embodiment of the present application does not limit the calculation method of this type of use frequency.
- the calculation of the frequency of smoke bombs is used as an example.
- the number of times that the smoke bomb has been picked up in the last 5 rounds is 3, the number of times it is thrown is 2, and the number of times it is thrown is used to calculate the smoke.
- a parameter of the frequency at which the bomb is used, then the frequency at which the smoke bomb is used is 40%.
- the usage frequency of the type is sorted to obtain the priority of the type.
- the usage frequency of the first type is 50%
- the usage frequency of the second type is 70%
- the usage frequency of the third type is The usage frequency is 25%
- the priority of the types from high to low is: the second type, the first type, and the third type.
- a priority ordering signal is received, and the priority ordering signal is used to instruct the priority of the types to be sorted according to the priority ordering signal.
- the priority ordering signal may be sent by the server to the electronic device, or may be generated by a user by operating on the electronic device.
- an example is generated by a user operating on an electronic device when the priority sorting signal is used.
- the user can adjust the arrangement order of the sublist in the virtual backpack display interface in the virtual backpack setting interface. After the adjustment is completed, After the user determines the adjustment result, a priority ranking signal is generated, and the priority ranking signal is generated according to the user's arrangement order of the sub-list.
- setting the target type corresponding to the target demand status to the highest priority includes any of the following situations:
- the medical drug class when the health value of the virtual object is less than 50%, the medical drug class is set as the highest priority. When the user needs to supplement the health value, the medical drug class is at the highest priority position, so that the user can quickly find it. Needed medicines.
- the weapon ammunition is set to the highest priority, and the user needs to discard the items in the virtual backpack , You can quickly find unwanted bullets and discard them.
- the display method of the virtual backpack display interface is to display multiple sub-lists in the virtual backpack display interface.
- Each sub-list stores and displays different types of virtual items.
- the method provided by this embodiment sequentially displays sub-lists corresponding to types according to the priority of the types, and displays virtual items of different priorities in different positions on the virtual backpack display interface.
- the priority and the search probability corresponds, the probability that the user searches for the virtual item at the fastest speed is increased.
- the virtual backpack in the above embodiment may be a virtual backpack obtained by picking up virtual objects in a virtual environment, that is, by picking up the virtual backpack, the virtual object acquires the ability to accommodate a certain amount of virtual items, and The back of the object shows a backpack.
- the virtual object does not pick up the virtual backpack, the virtual object also includes the ability to pick up virtual items, that is, the virtual object itself has a default backpack, but the default backpack is not displayed on the back of the virtual object.
- the default backpack can hold a small amount of virtual items.
- the above types include medical drugs, gun accessories, and weapons and ammunition.
- medical drugs correspond to the first sublist
- gun accessories correspond to the second sublist
- weapons and ammunition correspond to the third Sublist
- the virtual backpack display interface package includes a first sub-list, a second sub-list, and a third sub-list arranged in order from top to bottom.
- the virtual backpack display interface 51 includes a first sub-list 52, a second sub-list 53, and a third sub-list 54, where the first sub-list 52 is a sub-list corresponding to a medical drug class
- the second sub-list 53 is a sub-list corresponding to a gun accessory category
- the third sub-list 54 is a sub-list corresponding to a weapon ammunition category.
- the first sub-list 52 includes a medicine cell 521, a medicine cell 522, and a medicine cell 523.
- a medicine cell is used to store and display a medicine, and a number can be displayed in the medicine cell to indicate the quantity of the medicine.
- the medical pack icon is displayed in the medicine grid 521, and 6 is displayed in the lower left corner of the medicine grid 521, indicating that there are 6 medical packs in total.
- three medicine cells are taken as an example for description. In actual operation, the number of medicine cells may be more or less.
- the second sub-list 53 includes at least one line, and each line is used to display a gun accessory. As shown in FIG. 5, the first row of the second sub-list 53 displays a 4x scope.
- the third sub-list 54 includes at least one line, and each line is used to display a weapon ammunition.
- the first row of the third sub-list 54 has 5.56 bullets, and the number of 5.56 bullets is 50 rounds.
- the number of bullets in each row does not exceed 100, that is, when the number of bullets in the first row reaches 100, the remaining bullets are placed in the second row, and so on.
- the virtual items in the first sublist, the second sublist, and the third sublist can be displayed sequentially according to the frequency with which the virtual items are used, and can be displayed according to a preset display order or according to the virtual items. It is displayed in the order of picking up, and it can also be displayed according to the order set by the user.
- each sub list stores and displays different types of virtual items.
- searching for a virtual item you only need to search for the virtual item in the sublist corresponding to this type, and not because there are many virtual items in the virtual backpack, when you search for a virtual item, you need to change the virtual item.
- the problem of looking up a single list in the backpack more for searching improves the efficiency of searching for virtual items, reduces the steps of searching for virtual items, and is consistent with the need to quickly search for virtual items in a virtual gun battle. Requirements.
- FIG. 6 is a flowchart of a method for displaying a virtual backpack display interface according to another exemplary embodiment of the present application.
- the flowchart shown in FIG. 6 may be implemented before the foregoing steps 401 to 403, and may be implemented in After the above steps 401 to 403, it can also be implemented between the above steps 401 to 403.
- the embodiment of the present application does not limit the specific implementation timing of the flowchart shown in FIG. 6.
- the method includes:
- Step 601 Receive a virtual item pickup signal.
- the virtual item pickup signal is used to instruct the target virtual item to be picked up.
- the manner in which the electronic device receives the virtual item pickup signal includes at least one of the following manners:
- the shortcut key operation signal may be triggered by an input operation of an external input device, such as: clicking and dragging the left mouse button to trigger the shortcut key signal, Or press the F key on the keyboard to trigger the shortcut key signal.
- an external input device such as: clicking and dragging the left mouse button to trigger the shortcut key signal, Or press the F key on the keyboard to trigger the shortcut key signal.
- the shortcut key operation signal can be triggered by triggering a physical key on the mobile terminal, or it can be displayed on the touch screen. The input operation of the virtual keyboard is triggered.
- the user interface further includes a pick-up control.
- a click signal on the pick-up control is received, it is determined that a virtual item pick-up signal is received.
- the click signal when the electronic device is a desktop computer or a laptop laptop, the click signal may be triggered by an input operation of an external input device, such as: clicking the pickup control by a mouse to trigger the click signal; when the electronic device is a mobile phone
- the click signal When using a mobile terminal such as a tablet or a tablet computer, the click signal may be triggered by touching the pickup control on a touch display screen.
- Step 602 Determine the type of the target virtual item.
- each type corresponds to one or a set of sub-lists in the virtual backpack display interface.
- the type of the target virtual item is determined, that is, when the electronic device displays the virtual backpack display interface, the sub-list of the target virtual item is displayed.
- Step 603 Store the target virtual item in a corresponding sublist according to the type of the target virtual item.
- the target virtual item when stored, it includes any one of the following situations:
- the target virtual item can be directly stored in the form of parameters in the sublist of the virtual backpack display interface.
- the target virtual item can be stored in a data file corresponding to the sublist.
- each sub list stores and displays different types of virtual items.
- searching for a virtual item you only need to search for the virtual item in the sublist corresponding to this type, and not because there are many virtual items in the virtual backpack, when you search for a virtual item, you need to change the virtual item.
- the problem of looking up a single list in the backpack more for searching improves the efficiency of searching for virtual items, reduces the steps of searching for virtual items, and is consistent with the need to quickly search for virtual items in a virtual gun battle. Requirements.
- the above types include medical drugs, gun accessories, and weapons and ammunition.
- medical drugs correspond to the first sublist
- gun accessories correspond to the second sublist
- weapons and ammunition correspond to the third Sublist
- FIG. 7 is a flowchart of a method for displaying a virtual backpack display interface according to another exemplary embodiment of the present application. As shown in FIG. 7, the method includes:
- Step 701 Receive a virtual item pickup signal.
- the virtual item pickup signal is used to instruct the target virtual item to be picked up.
- Step 702 Determine the capacity occupied by the target virtual item in the virtual backpack.
- the electronic device when placing virtual items in a virtual backpack, a certain amount of capacity is occupied, and the capacity occupied by each virtual item may be preset or randomly generated.
- the electronic device stores a correspondence table between the virtual item and the capacity occupied by the virtual item in advance, and the electronic device can find the target in the correspondence table.
- the capacity occupied by the virtual item is shown in Table 1 below:
- the target virtual item is a cheek rest board
- the capacity occupied by the cheek rest board is 25.
- Step 703 Determine the available capacity of the virtual backpack.
- the occupable capacity of the virtual backpack can be calculated according to the difference between the total capacity of the virtual backpack and the occupied capacity.
- the total capacity of the virtual backpack varies according to the different virtual backpacks carried by the virtual object. Illustratively, when the virtual object does not pick up the backpack, the default total capacity of the backpack is 30. When the virtual object carries a primary package, the total capacity of the virtual backpack is 300. When the virtual object carries a secondary package, the virtual The total capacity of the backpack is 500. When the virtual object has a three-level bag, the total capacity of the virtual backpack is 800.
- the occupied capacity of the virtual backpack can be calculated based on the sum of the capacities occupied by the virtual items that have been picked up and not yet assembled to the virtual firearm.
- Step 704 When the capacity occupied by the target virtual item in the virtual backpack is not greater than the available capacity, determine the type of the target virtual item.
- the capacity occupied by the target virtual item in the virtual backpack is not greater than the available capacity, it indicates that the virtual backpack can also accommodate the target virtual item, and the type of the target virtual item is determined.
- Step 705 Store the target virtual item in the corresponding sublist according to the type of the target virtual item.
- the medical drug category includes the first type
- the target virtual item is the first type of virtual item.
- the first sub-list corresponding to the medical drug category includes the first quantity of the first type of virtual item
- the first A quantity is increased by a second quantity corresponding to the target virtual item to obtain a third quantity of the target virtual item in the first sub-list after picking up;
- the sub-list includes 3 (first number) medical kits, and the picked-up target If the virtual item is 1 (the second number) medical packages, the 3 medical packages in the sub-list are modified into 4 (3 + 1) medical packages.
- the target virtual item is stored in the first sub-list.
- the types of target virtual items include gun accessories.
- the virtual object is equipped with a virtual gun in a virtual environment, and the slot where the virtual gun is equipped with the target virtual item is empty, the target virtual item is assembled into the slot;
- the target virtual item is stored in the second sub-list corresponding to the gun accessory class
- the target virtual item is stored in the second sub-list
- the target virtual item is stored in a second sub-list.
- the types of target virtual items include weapons and ammunition.
- the magazines assembled by the virtual guns match the target virtual items, and when the magazines are empty, the target virtual items are assembled to clip;
- the target virtual item is stored in the third sublist corresponding to the weapon ammunition class;
- the target virtual item is stored in the third sub-list
- the target virtual item is stored in a third sub-list.
- the target virtual item When the target virtual item is stored in the third sub-list, it may be stored by modifying the number of existing target virtual items, or it may be directly stored separately.
- the virtual backpack involved in the embodiment of the present application does not specifically refer to a backpack in a virtual environment.
- the virtual object does not pick up the virtual backpack, the virtual object also includes a capacity for picking up virtual items.
- the display method of the virtual backpack display interface is to display multiple sub-lists in the virtual backpack display interface.
- Each sub-list stores and displays different types of virtual items.
- FIG. 8 is a flowchart of a display method of a virtual backpack display interface provided by another exemplary embodiment of the present application. As shown in FIG. 8, the method includes:
- Step 801 The virtual object picks up the target virtual item.
- Step 802 Determine whether the capacity of the virtual backpack is sufficient.
- Step 803 When the capacity of the virtual backpack is insufficient, the target virtual item fails to be picked up.
- Step 804 When the capacity of the virtual backpack is sufficient, determine the type of the target virtual item.
- Step 805 The target virtual item is a medical drug.
- Step 806 Determine whether there is a medicine in the medicine box corresponding to the target virtual medicine.
- step 807 when there is already a medicine in the medicine box corresponding to the target virtual medicine, the quantity of medicine is increased by one.
- the medicine box there are 6 medical packs in the medicine box.
- the number of medical packs is increased by one, that is, the medicine box includes 7 medical packs.
- a sub-list 92 corresponding to a medical drug category is included, and the sub-list 92 includes a medicine cell 93 corresponding to the medical package. 6 medical kits.
- a virtual object 95 is displayed in the second interface 94.
- the virtual environment in which the virtual object 95 is located includes a medical package 96.
- the medical package 96 is within a preset range of the virtual object 95.
- step 808 when there is no medicine in the medicine box corresponding to the target virtual medicine, the medicine is stored in the medicine box.
- Step 809 The target virtual item is a gun accessory category.
- Step 810 Determine whether the target virtual item can be directly assembled to the virtual firearm.
- the target virtual item can be directly mounted to the virtual firearm; otherwise, the target virtual item cannot be directly mounted to the virtual firearm.
- step 811 when the target virtual item cannot be directly assembled to the virtual firearm, the target virtual item is sequentially stored in the accessory column.
- Step 812 when the target virtual item can be directly assembled to the virtual firearm, assemble the target virtual item to the virtual firearm.
- Step 813 The target virtual item is a weapon or ammunition.
- Step 814 Determine whether the target virtual item can be directly assembled to the virtual firearm.
- step 815 when the target virtual item cannot be directly assembled to the virtual firearm, the target virtual item is sequentially stored in the accessory column.
- Step 816 when the target virtual item can be directly assembled to the virtual firearm, assemble the target virtual item to the virtual firearm.
- FIG. 10 is a structural block diagram of a display device for a virtual backpack display interface provided by an exemplary embodiment of the present application, and is applied in a virtual environment. As shown in FIG. 10, the device includes: a display module 1010 and a receiving module 1020;
- a display module 1010 is configured to display a main interface, where the main interface includes a screen where a target virtual object observes the virtual environment during a virtual firearm battle;
- a receiving module 1020 configured to receive a backpack display signal during a process of displaying the main interface
- the display module 1010 is further configured to display the virtual backpack display interface according to the backpack display signal.
- the virtual backpack display interface includes at least two sub-lists, each of which is used to display the same type of virtual display. Articles, the type including at least one of medical drugs, gun accessories and weapons and ammunition.
- the device further includes: a priority determination module 1030, a type determination module 1040, and a storage module 1050;
- a priority determining module 1030 configured to determine a priority of a type of the virtual item corresponding to the sublist
- the priority determining module 1030 is further configured to determine a display order of the sublist in the virtual backpack display interface according to the type of priority corresponding to the sublist;
- the display module 1010 is further configured to sequentially display the sublists on the virtual backpack display interface according to the display order according to the display order.
- the priority is obtained by sorting the frequency of use of the type
- the priority determining module 1030 includes:
- An acquisition submodule 1031 configured to acquire historical item usage data, where the historical item usage data includes the type of use frequency;
- a sorting sub-module 1032 is configured to sort the usage frequency of the type according to the historical item usage data to obtain the priority of the type.
- the priority determining module 1030 includes:
- the receiving sub-module 1033 is configured to receive a priority ordering signal, where the priority ordering signal is used to instruct to sort the priority of the type according to the priority ordering signal to obtain the priority of the type.
- the priority determining module 1030 is further configured to determine a demand state of the virtual object; and when the demand state meets the target demand state, set a target type corresponding to the target demand state Set as the highest priority; sort other types except the target type according to a preset priority; obtain the priority of the type according to the highest priority and the preset priority.
- the priority determining module 1030 is further configured to set the medical drug class as the highest priority when the life value of the virtual object is less than a target life value;
- the priority determining module 1030 is further configured to set the weapon ammunition category to the highest priority when the ammunition owned by the virtual object does not match the virtual firearms assembled by the virtual object;
- the priority determining module 1030 is further configured to: when the first accessory assembled in the target slot of the virtual firearm is damaged, and the virtual object has a second accessory capable of being assembled in the target slot, The gun accessory category is set to the highest priority.
- the medical drug class corresponds to a first sub-list
- the gun accessories class corresponds to a second sub-list
- the weapon ammunition class corresponds to a third sub-list
- the display module 1010 is further configured to display the virtual backpack display interface according to the backpack display signal.
- the virtual backpack display interface includes the first sublist, the second sub A list and the third sub-list.
- the receiving module 1020 is further configured to receive a virtual item pickup signal, where the virtual item pickup signal is used to instruct a target virtual item to be picked up;
- the device further includes:
- a type determining module 1040 configured to determine a type of the target virtual item
- the storage module 1050 is configured to store the target virtual item in the corresponding sublist according to the type of the target virtual item.
- the medical drug category includes a first type, and the target virtual item is the first type of virtual item;
- the storage module 1050 is further configured to: when the first sub-list corresponding to the medical drug category includes a first quantity of the first type of virtual items, increase the first quantity with the target virtual item A corresponding second quantity to obtain a third quantity of the first type of virtual item in the first sublist after picking up;
- the storage module 1050 is further configured to store the target virtual item in the first sublist when the target virtual item is not included in the sublist.
- the type of the target virtual item includes a gun accessory category
- the storage module 1050 is further configured to assemble the target virtual item when the virtual object is equipped with a virtual firearm in the virtual environment and the slot where the virtual firearm is equipped with the target virtual item is empty. Into the slot;
- the storage module 1050 is further configured to: when the virtual object is equipped with the virtual firearm in the virtual environment, and the slot where the virtual firearm is equipped with the target virtual item is not empty, the target The virtual item is stored in a second sub-list corresponding to the gun accessory category;
- the storage module 1050 is further configured to virtualize the target when the virtual object is equipped with the virtual firearm in the virtual environment and the virtual firearm does not include a slot in which the target virtual item is mounted. Items are stored in the second sub-list;
- the storage module 1050 is further configured to store the target virtual item into the second sub-list when the virtual object is not equipped with the virtual firearm in the virtual environment.
- the type of the target virtual item includes weapons and ammunition
- the storage module 1050 is further configured to: when the virtual object is equipped with a virtual firearm in the virtual environment, the magazines assembled by the virtual firearms match the target virtual item, and the magazines are empty, Assembling the target virtual item to the magazine;
- the storage module 1050 is further configured to: when the virtual object is equipped with the virtual firearm in the virtual environment, the magazine assembled by the virtual firearm matches the target virtual item, and the magazine is not Storing the target virtual item in a third sub-list corresponding to the weapon ammunition class when space is empty;
- the storage module 1050 is further configured to virtualize the target virtual object when the virtual object is equipped with the virtual firearm in the virtual environment, and when the magazine assembled by the virtual firearm does not match the target virtual item. Items are stored in the third sub-list;
- the storage module 1050 is further configured to store the target virtual item in the third sub-list when the virtual object is not equipped with the virtual firearm in the virtual environment.
- the type determining module 1040 is further configured to determine a capacity occupied by the target virtual item in the virtual backpack; determine an available capacity of the virtual backpack, and the available capacity Is calculated according to the difference between the total capacity of the virtual backpack and the occupied capacity of the virtual backpack; when the capacity occupied by the target virtual item in the virtual backpack is not greater than the available capacity, it is determined The type of the target virtual item.
- the display device of the virtual backpack display interface provided by an exemplary embodiment of the present application, in a virtual firearm battle, by displaying multiple sublists in the virtual backpack display interface, each sublist stores and displays different types of Virtual items.
- searching for virtual items users only need to search for virtual items in the sublist corresponding to this type, instead of searching for a virtual item because there are many virtual items in the virtual backpack.
- you need to turn down a single list in the virtual backpack to find more it improves the efficiency of searching for virtual items, reduces the steps of searching for virtual items, and meets the requirements of virtual gun battles. Requirements for fast virtual item search.
- FIG. 12 shows a structural block diagram of an electronic device 1200 provided by an exemplary embodiment of the present application.
- the electronic device 1200 may be: smartphone, tablet, MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Level 3), MP4 (Moving Picture Experts Group Audio Audio Layer IV, Moving Picture Experts Compression Standard Audio level 4) Player, laptop or desktop computer.
- the electronic device 1200 may also be called other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
- the electronic device 1200 includes a processor 1201 and a memory 1202.
- the processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
- the processor 1201 may use at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). achieve.
- the processor 1201 may also include a main processor and a coprocessor.
- the main processor is a processor for processing data in the awake state, also called a CPU (Central Processing Unit).
- the coprocessor is Low-power processor for processing data in standby.
- the processor 1201 may be integrated with a GPU (Graphics Processing Unit).
- the GPU is responsible for rendering and drawing content needed to be displayed on the display screen.
- the processor 1201 may further include an AI (Artificial Intelligence) processor, and the AI processor is configured to process computing operations related to machine learning.
- AI Artificial Intelligence
- the memory 1202 may include one or more computer-readable storage media, which may be non-transitory.
- the memory 1202 may further include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash storage devices.
- the non-transitory computer-readable storage medium in the memory 1202 is configured to store at least one computer-readable instruction, and the at least one computer-readable instruction is executed by the processor 1201 to implement the method in the present application.
- a method for displaying a virtual backpack display interface provided by the embodiment.
- the electronic device 1200 may further include a peripheral device interface 1203 and at least one peripheral device.
- the processor 1201, the memory 1202, and the peripheral device interface 1203 may be connected through a bus or a signal line.
- Each peripheral device can be connected to the peripheral device interface 1203 through a bus, a signal line, or a circuit board.
- the peripheral device includes at least one of a radio frequency circuit 1204, a touch display 1205, a camera 1206, an audio circuit 1207, a positioning component 1208, and a power supply 1209.
- the peripheral device interface 1203 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1201 and the memory 1202.
- the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 1201, the memory 1202, and the peripheral device interface 1203 or Both can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
- the radio frequency circuit 1204 is used to receive and transmit an RF (Radio Frequency) signal, also called an electromagnetic signal.
- the radio frequency circuit 1204 communicates with a communication network and other communication devices through electromagnetic signals.
- the radio frequency circuit 1204 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
- the radio frequency circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like.
- the radio frequency circuit 1204 can communicate with other electronic devices through at least one wireless communication protocol.
- the wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, mobile communication networks (2G, 3G, 4G, and 5G) of various generations, wireless local area networks, and / or WiFi (Wireless Fidelity) networks.
- the radio frequency circuit 1204 may further include circuits related to Near Field Communication (NFC), which is not limited in this application.
- NFC Near Field Communication
- the display 1205 is used to display a UI (UserInterface, user interface).
- the UI may include graphics, text, icons, videos, and any combination thereof.
- the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to collect touch signals on or above the surface of the display screen 1205.
- the touch signal can be input to the processor 1201 as a control signal for processing.
- the display 1205 may also be used to provide a virtual button and / or a virtual keyboard, which is also called a soft button and / or a soft keyboard.
- one display screen 1205 may be provided, and a front panel of the electronic device 1200 is provided.
- At least two display screens 1205 may be provided on different surfaces of the electronic device 1200 or have a folded design.
- the display screen 1205 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device 1200.
- the display screen 1205 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen.
- the display 1205 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
- the camera assembly 1206 is used to capture images or videos.
- the camera assembly 1206 includes a front camera and a rear camera.
- a front camera is disposed on a front panel of an electronic device
- a rear camera is disposed on a back of the electronic device.
- Integrate with a wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other fusion shooting functions.
- VR Virtual Reality, virtual reality
- the camera assembly 1206 may further include a flash.
- the flash can be a monochrome temperature flash or a dual color temperature flash.
- a dual color temperature flash is a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
- the audio circuit 1207 may include a microphone and a speaker.
- the microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 1201 for processing, or input to the radio frequency circuit 1204 to realize voice communication.
- the microphone can also be an array microphone or an omnidirectional acquisition microphone.
- the speaker is used to convert electrical signals from the processor 1201 or the radio frequency circuit 1204 into sound waves.
- the speaker can be a traditional film speaker or a piezoelectric ceramic speaker.
- the speaker When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for ranging purposes.
- the audio circuit 1207 may further include a headphone jack.
- the positioning component 1208 is used to locate the current geographic position of the electronic device 1200 to implement navigation or LBS (Location Based Service).
- the positioning component 1208 may be a positioning component based on the US GPS (Global Positioning System), the Beidou system in China, or the Galileo system in Russia.
- the power source 1209 is used to power various components in the electronic device 1200.
- the power source 1209 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
- the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery.
- the wired rechargeable battery is a battery charged through a wired line
- the wireless rechargeable battery is a battery charged through a wireless coil.
- the rechargeable battery can also be used to support fast charging technology.
- the electronic device 1200 further includes one or more sensors 1210.
- the one or more sensors 1210 include, but are not limited to, an acceleration sensor 1211, a gyro sensor 1212, a pressure sensor 1213, a fingerprint sensor 1214, an optical sensor 1215, and a proximity sensor 1216.
- the acceleration sensor 1211 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the electronic device 1200.
- the acceleration sensor 1211 may be used to detect components of the acceleration of gravity on three coordinate axes.
- the processor 1201 may control the touch display screen 1205 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1211.
- the acceleration sensor 1211 may also be used for collecting motion data of a game or a user.
- the gyro sensor 1212 can detect the body direction and rotation angle of the electronic device 1200, and the gyro sensor 1212 can cooperate with the acceleration sensor 1211 to collect a 3D motion of the user on the electronic device 1200. Based on the data collected by the gyro sensor 1212, the processor 1201 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
- the pressure sensor 1213 may be disposed on a side frame of the electronic device 1200 and / or a lower layer of the touch display screen 1205.
- a user's holding signal to the electronic device 1200 can be detected, and the processor 1201 performs left-right hand recognition or quick operation according to the holding signal collected by the pressure sensor 1213.
- the processor 1201 controls the operability controls on the UI interface according to the user's pressure operation on the touch display 1205.
- the operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
- the fingerprint sensor 1214 is used to collect a user's fingerprint, and the processor 1201 recognizes the identity of the user based on the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 recognizes the identity of the user based on the collected fingerprint. When the user's identity is identified as trusted, the processor 1201 authorizes the user to perform related sensitive operations, such as unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings.
- the fingerprint sensor 1214 may be disposed on the front, back, or side of the electronic device 1200. When a physical button or a manufacturer's logo is set on the electronic device 1200, the fingerprint sensor 1214 can be integrated with the physical button or the manufacturer's logo.
- the optical sensor 1215 is used to collect ambient light intensity.
- the processor 1201 may control the display brightness of the touch display screen 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of the touch display 1205 is increased; when the ambient light intensity is low, the display brightness of the touch display 1205 is decreased.
- the processor 1201 may also dynamically adjust the shooting parameters of the camera component 1206 according to the ambient light intensity collected by the optical sensor 1215.
- the proximity sensor 1216 also referred to as a distance sensor, is usually disposed on the front panel of the electronic device 1200.
- the proximity sensor 1216 is used to collect a distance between a user and a front surface of the electronic device 1200.
- the processor 1201 controls the touch display 1205 to switch from the bright screen state to the closed screen state; when the proximity sensor 1216 When it is detected that the distance between the user and the front face of the electronic device 1200 gradually increases, the processor 1201 controls the touch display screen 1205 to switch from the rest screen state to the bright screen state.
- FIG. 12 does not constitute a limitation on the electronic device 1200, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
- the computer-readable storage medium may be a computer-readable storage medium included in the memory in the foregoing embodiments; or it may be a computer-readable storage medium that exists separately and is not incorporated into an electronic device.
- the computer-readable storage medium stores at least one computer-readable instruction, at least one program, code set, or instruction set, and the at least one instruction, the at least one program, code set, or instruction set is processed by the processor Load and execute to implement the display method of the virtual backpack display interface as described in any one of FIG. 1 to FIG. 8.
- the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), solid state hard drives (SSD, Solid State Drives), or optical discs.
- the random access memory may include resistive random access memory (ReRAM, Resistance, Random Access Memory) and dynamic random access memory (DRAM, Dynamic Random Access Memory).
- ReRAM resistive random access memory
- DRAM Dynamic Random Access Memory
- the steps for implementing the foregoing embodiments may be implemented by hardware, or may be instructed by computer-readable instructions to complete related hardware.
- the computer-readable instructions may be stored in a non-easy manner.
- the volatile computer-readable storage media the aforementioned storage media may be read-only memory, magnetic disks, or optical disks.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种虚拟背包展示界面的显示方法,包括:显示主界面,主界面包括虚拟对象在虚拟枪械对战过程中对虚拟环境进行观察的画面;在显示主界面的过程中,接收背包展示信号;根据背包展示信号显示虚拟背包展示界面,虚拟背包展示界面中包括至少两个子列表,每个子列表用于展示同一种类型的虚拟物品。还提供了一种虚拟背包展示界面的显示装置、电子设备及计算机可读存储介质。提高了对虚拟物品进行查找的效率,减少了对虚拟物品进行查找的步骤。
Description
本申请要求于2018年06月27日提交中国专利局,申请号为201810680093.5,申请名称为“虚拟背包展示界面的显示方法、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及计算机技术领域,特别涉及一种虚拟背包展示界面的显示方法、装置、电子设备及存储介质。
在诸如智能手机、平板电脑之类的电子设备上,存在很多具有三维虚拟环境的应用程序,如:虚拟现实应用程序、三维地图程序、军事仿真程序、第三人称射击游戏(Third-Personal Shooting Game,TPS)、第一人称射击游戏(First-person shooting game,FPS)、多人在线战术竞技游戏(Multiplayer Online Battle Arena Games,MOBA)等,在上述应用程序中,虚拟对象(如:虚拟人物)可以通过捡拾、购买等动作对三维虚拟环境中的虚拟物品进行获取。
通常,当虚拟对象对虚拟物品进行捡拾后,在虚拟背包展示界面中可以对虚拟对象所捡拾的虚拟物品进行查看。虚拟背包展示界面中以列表的形式对虚拟物品进行展示。在该列表中,所有被捡拾的虚拟物品以预设顺序排列进行展示。示意性的,预设排列顺序为药品A、药品B、枪托a、握把b、5.56毫米子弹(简称:5.56子弹)。假设虚拟人物捡拾的虚拟物品包括药品A、握把b以及5.56子弹,则在虚拟背包展示界面中展示的虚拟物品由上至下为药品A、握把b以及5.56子弹。
发明内容
一种虚拟背包展示界面的显示方法,由电子设备执行,所述方法包括:
显示主界面,所述主界面包括虚拟对象在虚拟枪械对战过程中对所述虚拟环境进行观察的画面;
在显示所述主界面的过程中,接收背包展示信号;及
根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面中包括至少两个子列表,每个所述子列表用于展示同一种类型的虚拟物品,所述类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
一种虚拟背包展示界面的显示装置,所述装置包括:
显示模块,用于显示主界面,所述主界面包括虚拟对象在虚拟枪械对战过程中对所述虚拟环境进行观察的画面;
接收模块,用于在显示所述主界面的过程中,接收背包展示信号;及
所述显示模块,还用于根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面中包括至少两个子列表,每个所述子列表用于展示同一种类型的虚拟物品,所述类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
在一个可选的实施例中,所述医疗药品类对应第一子列表,所述枪支配件类对应第二子列表,所述武器弹药类对应第三子列表;
所述显示模块,还用于根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面包括由上至下依序排列的所述第一子列表、所述第二子列表以及所述第三子列表。
在一个可选的实施例中,所述接收模块,还用于接收虚拟物品捡拾信号,所述虚拟物品捡拾信号用于指示对目标虚拟物品进行捡拾;
所述装置,还包括:
类型确定模块,用于确定所述目标虚拟物品的类型;
存储模块,用于根据所述目标虚拟物品的类型在对应的所述子列表存储所述目标虚拟物品。
在一个可选的实施例中,所述医疗药品类包括第一类型,所述目标虚拟物品为所述第一类型的虚拟物品;
所述存储模块,还用于当所述医疗药品类对应的第一子列表中包括第一数量的所述第一类型的虚拟物品时,将所述第一数量增加与所述目标虚拟物品对应的第二数量,得到捡拾后所述第一子列表中所述第一类型的虚拟物品的第三数量。
在一个可选的实施例中,所述目标虚拟物品的类型包括枪支配件类;
所述存储模块,还用于当所述虚拟对象在所述虚拟环境中装配有虚拟枪械,且所述虚拟枪械装配所述目标虚拟物品的槽位为空时,将所述目标虚拟物品装配至所述槽位中;
所述存储模块,还用于当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,且所述虚拟枪械装配所述目标虚拟物品的槽位不为空时,将所述目标虚拟物品存储至所述枪支配件类对应的第二子列表中;
所述存储模块,还用于当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,且所述虚拟枪械不包括装配所述目标虚拟物品的槽位时,将所述目标虚拟物品存储至所述第二子列表中;
所述存储模块,还用于当所述虚拟对象在所述虚拟环境中未装配有所述虚拟枪械时,将所述目标虚拟物品存储至所述第二子列表中。
在一个可选的实施例中,所述目标虚拟物品的类型包括武器弹药类;
所述存储模块,还用于当所述虚拟对象在所述虚拟环境中装配有虚拟枪械,所述虚拟枪械装配的弹夹与所述目标虚拟物品匹配,且所述弹夹为空时,将所述目标虚拟物品装配至所述弹夹;
所述存储模块,还用于当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,所述虚拟枪械装配的弹夹与所述目标虚拟物品匹配,且所述弹夹不为空时,将所述目标虚拟物品存储至所述武器弹药类对应的第三子列表中;
所述存储模块,还用于当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,所述虚拟枪械装配的弹夹与所述目标虚拟物品不匹配时,将所述目标虚拟物品存储至所述第三子列表中;
所述存储模块,还用于当所述虚拟对象在所述虚拟环境中未装配有所述虚拟枪械时,将所述目标虚拟物品存储至所述第三子列表中。
在一个可选的实施例中,所述类型确定模块,还用于确定所述目标虚拟物品在所述虚拟背包中占用的容量;确定所述虚拟背包的可占用容量,所述可占用容量是根据所述虚拟背包的总容量和所述虚拟背包的已占用容量的差值计算得到的;当所述目标虚拟物品在所述虚拟背包中占用的容量不大于所述可占用容量时,确定所述目标虚拟物品的类型。
一种电子设备,所述电子设备包括处理器和存储器,所述存储器中存储有至少一条计算机可读指令,所述计算机可读指令由所述处理器加载并执行 以下步骤:
显示主界面,所述主界面包括虚拟对象在虚拟枪械对战过程中对所述虚拟环境进行观察的画面;
在显示所述主界面的过程中,接收背包展示信号;及
根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面中包括至少两个子列表,每个所述子列表用于展示同一种类型的虚拟物品,所述类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
一种非易失性的计算机可读存储介质,所述存储介质中存储有至少一条指令,所述计算机可读存储介质中存储有至少一条计算机可读指令,所述计算机可读指令由处理器加载并执行以下步骤:
显示主界面,所述主界面包括虚拟对象在虚拟枪械对战过程中对所述虚拟环境进行观察的画面;
在显示所述主界面的过程中,接收背包展示信号;及
根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面中包括至少两个子列表,每个所述子列表用于展示同一种类型的虚拟物品,所述类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得计算机执行如上述本申请的实施例中所述的虚拟背包展示界面的显示方法。
下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是一个实施例提供的电子设备的结构框图;
图2是一个实施例提供的计算机系统的结构框图;
图3是一个示例性的虚拟背包展示界面的界面示意图;
图4是一个实施例提供的虚拟背包展示界面的显示方法流程图;
图5是一个实施例提供的虚拟背包展示界面的界面示意图;
图6是另一个实施例提供的虚拟背包展示界面的显示方法流程图;
图7是又一个实施例提供的虚拟背包展示界面的显示方法流程图;
图8是再一个实施例提供的虚拟背包展示界面的显示方法流程图;
图9是另一个实施例提供的虚拟背包展示界面的界面示意图;
图10是一个实施例提供的虚拟背包展示界面的显示装置的结构框图;
图11是另一个实施例提供的虚拟背包展示界面的显示装置的结构框图;
图12是本申请一个示例性实施例提供的电子设备的结构框图。
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
首先,对本申请实施例涉及的若干个名词进行简单介绍:
虚拟环境:是应用程序在电子设备上运行时显示(或提供)的虚拟环境。该虚拟环境可以是对真实世界的仿真环境,也可以是半仿真半虚构的三维环境,还可以是纯虚构的三维环境。虚拟环境可以是二维虚拟环境、2.5维虚拟环境和三维虚拟环境中的任意一种,下述实施例以虚拟环境是三维虚拟环境来举例说明,但对此不加以限定。可选地,该虚拟环境还用于至少两个虚拟角色之间的虚拟环境对战。可选地,该虚拟环境还用于至少两个虚拟角色之间使用虚拟枪械进行对战。可选地,该虚拟环境还用于在目标区域范围内,至少两个虚拟角色之间使用虚拟枪械进行对战,该目标区域范围会随虚拟环境中的时间推移而不断变小。
虚拟对象:是指在虚拟环境中的可活动对象。该可活动对象可以是虚拟人物、虚拟动物、动漫人物中的至少一种。可选地,当虚拟环境为三维虚拟环境时,虚拟对象是基于动画骨骼技术创建的三维立体模型。每个虚拟对象在三维虚拟环境中具有自身的形状和体积,占据三维虚拟环境中的一部分空间。
虚拟枪械:是指在虚拟环境通过发射虚拟子弹进行攻击的虚拟武器,虚拟人物在虚拟环境中可以对虚拟枪械进行捡拾,并通过捡拾得到的虚拟枪械进行攻击。可选地,每个虚拟枪械都可以设置至少一个槽位,每个槽位用于装配至少一个虚拟枪械配件,如:M16A4自动步枪上通常设置有枪口槽位、握把槽位、弹夹槽位、枪托槽位以及瞄准镜槽位,其中,握把槽位上可以装 配的配件包括垂直握把、直角握把、半截式握把、轻制握把以及拇指握把中的至少一个。
可选地,虚拟枪械包括多种不同的枪械种类,每个种类的虚拟枪械又包括多种不同的枪械型号,如:虚拟枪械的枪械种类至少包括:自动步枪、狙击枪、霰弹枪、手枪、冲锋枪等,而自动步枪的枪械型号又包括:LVOA-C自动步枪、AKM自动步枪、SCAR-L自动步枪、AUG自动步枪、M16A4自动步枪、GROZA自动步枪等。
虚拟枪械对战:虚拟枪械对战是指在虚拟环境中,至少两个虚拟对象使用虚拟枪械进行对战的游戏模式,可选地,该虚拟枪械对战是至少两个虚拟对象使用虚拟枪械进行对战的单局对战模式。每局虚拟枪械对战对应一个对战时长/对战人数,当虚拟枪械对战对应对战时长时,存活时长达到该对战时长的虚拟对象获得胜利;当虚拟枪械对战对应对战人数时,最后一个或一组存活的虚拟对象获得胜利。
类型:可选地该类型是指在虚拟环境中能够被捡拾和/或购买的虚拟物品的类型,可选地,该类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
医疗药品类:医疗药品类是对虚拟对象的生命值或者能量进行恢复的虚拟物品所属的类,可选地,该医疗药品类所包括的虚拟物品包括医疗箱、医疗包、绷带、运动饮料、止痛药、肾上腺素中的至少一种,其中,医疗箱、医疗包以及绷带可以对虚拟对象的生命值进行恢复,示意性的,医疗箱可以将虚拟对象的生命值恢复至满值(即100%),医疗包可以将虚拟对象的生命值恢复50%,单次使用绷带可以将虚拟对象的生命值恢复15%,可选地,当虚拟对象的生命值降低至0%时,则虚拟对象在虚拟环境中被判定为丧失生命的状态,当虚拟对象的队友处于生命值大于0%的状态时,该队友可以通过扶起队友的方式为该虚拟对象增加生命值,当虚拟对象的队友也处于丧失生命的状态时,则该虚拟对象直接处于死亡状态(即从游戏中淘汰);可选地,上述医疗药品类的虚拟物品中,运动饮料、止痛药以及肾上腺素可以对虚拟对象的能量值进行恢复,其中,单次使用运动饮料可以将虚拟对象的能量值恢复40%(能量总值不超过100%),单次使用止痛药可以将虚拟对象的能量值恢复60%(能量总值不超过100%),使用肾上腺素可以将虚拟对象的能量值恢复至 100%。可选地,该能量值可以对虚拟对象的生命值进行恢复,如:每20%的能量值可以在预设时长内对虚拟对象的生命值的10%进行恢复。
枪支配件类:该枪支配件类是对虚拟对象所配有的虚拟枪械进行装配的虚拟物品所属的类,可选地,该枪支配件类所包括的虚拟物品包括枪口、握把、弹夹、枪托、瞄准镜中的至少一种,其中,由于虚拟枪械包括自动步枪、狙击枪、霰弹枪、手枪、冲锋枪等类型,枪口、握把、弹夹、枪托以及瞄准镜对应不同枪械种类的虚拟枪械或者不同枪械型号的虚拟枪械也是不同的,如:M16A4自动步枪上装配的枪托在其他虚拟枪械上无法使用。
武器弹药类:武器弹药类是对虚拟枪械的弹夹进行装配或者用于被投掷的虚拟物品所属的类,可选地,该武器弹药类所包括的虚拟物品包括5.56子弹、7.62子弹、9毫米子弹、.45口径子弹、手雷、烟雾弹中的至少一种。其中,5.56子弹、7.62子弹、9毫米子弹、.45口径子弹用于装配至虚拟枪械的弹夹中,示意性的,M16A4自动步枪的弹夹适配5.56子弹。可选地,手雷、烟雾弹用于被投掷,手雷在被某个虚拟对象投掷后,对预设攻击范围内的虚拟对象进行攻击,降低该预设攻击范围内的虚拟对象的生命值;烟雾弹被投掷后,在预设烟雾范围内释放烟雾。
本申请中的电子设备可以是台式计算机、膝上型便携计算机、手机、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器等等。该电子设备中安装和运行有支持虚拟环境的应用程序,比如支持三维虚拟环境的应用程序。该应用程序可以是虚拟现实应用程序、三维地图程序、军事仿真程序、TPS游戏、FPS游戏、MOBA游戏中的任意一种。可选地,该应用程序可以是单机版的应用程序,比如单机版的3D游戏程序,也可以是网络联机版的应用程序。
图1示出了本申请一个示例性实施例提供的电子设备的结构框图。该电子设备100包括:操作系统120和应用程序122。
操作系统120是为应用程序122提供对计算机硬件的安全访问的基础软 件。
应用程序122是支持虚拟环境的应用程序。可选地,应用程序122是支持三维虚拟环境的应用程序。该应用程序122可以是虚拟现实应用程序、三维地图程序、军事仿真程序、第三人称射击游戏(Third-Personal Shooting Game,TPS)、第一人称射击游戏(First-person shooting game,FPS)、MOBA游戏、多人枪战类生存游戏中的任意一种。该应用程序122可以是单机版的应用程序,比如单机版的3D游戏程序。
图2示出了本申请一个示例性实施例提供的计算机系统的结构框图。该计算机系统200包括:第一设备220、服务器240和第二设备260。
第一设备220安装和运行有支持虚拟环境的应用程序。该应用程序可以是虚拟现实应用程序、三维地图程序、军事仿真程序、TPS游戏、FPS游戏、MOBA游戏、多人枪战类生存游戏中的任意一种。第一设备220是第一用户使用的设备,第一用户使用第一设备220控制位于虚拟环境中的第一虚拟对象进行活动,该活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑行、跳跃、驾驶、拾取、射击、攻击、投掷中的至少一种。示意性的,第一虚拟对象是第一虚拟人物,比如仿真人物角色或动漫人物角色。
第一设备220通过无线网络或有线网络与服务器240相连。
服务器240包括一台服务器、多台服务器、云计算平台和虚拟化中心中的至少一种。服务器240用于为支持三维虚拟环境的应用程序提供后台服务。可选地,服务器240承担主要计算工作,第一设备220和第二设备260承担次要计算工作;或者,服务器240承担次要计算工作,第一设备220和第二设备260承担主要计算工作;或者,服务器240、第一设备220和第二设备260三者之间采用分布式计算架构进行协同计算。
第二设备260安装和运行有支持虚拟环境的应用程序。该应用程序可以是虚拟现实应用程序、三维地图程序、军事仿真程序、FPS游戏、MOBA游戏、多人枪战类生存游戏中的任意一种。第二设备260是第二用户使用的设备,第二用户使用第二设备260控制位于虚拟环境中的第二虚拟对象进行活动,该活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑行、跳跃、驾驶、拾取、射击、攻击、投掷中的至少一种。示意性的,第二虚拟对象是 第二虚拟人物,比如仿真人物角色或动漫人物角色。
可选地,第一虚拟人物和第二虚拟人物处于同一虚拟环境中。可选地,第一虚拟人物和第二虚拟人物可以属于同一个队伍、同一个组织、具有好友关系或具有临时性的通讯权限。可选地,第一虚拟人物和第二虚拟人物也可以属于不同队伍、不同组织、或具有敌对性的两个团体。
可选地,第一设备220和第二设备260上安装的应用程序是相同的,或两个设备上安装的应用程序是不同控制系统平台的同一类型应用程序。第一设备220可以泛指多个设备中的一个,第二设备260可以泛指多个设备中的一个,本实施例仅以第一设备220和第二设备260来举例说明。第一设备220和第二设备260的设备类型相同或不同,该设备类型包括:游戏主机、台式计算机、智能手机、平板电脑、电子书阅读器、MP3播放器、MP4播放器和膝上型便携计算机中的至少一种。以下实施例以设备是台式计算机来举例说明。
本领域技术人员可以知晓,上述设备的数量可以更多或更少。比如上述设备可以仅为一个,或者上述设备为几十个或几百个,或者更多数量。本申请实施例对设备的数量和设备类型不加以限定。
通常,在背包展示界面中展示虚拟物品时,是在背包展示界面中显示虚拟物品列表,如图3所示,图3是一个示例性的提供的虚拟背包展示界面的界面示意图,在背包展示界面31中显示有虚拟物品列表32,在该虚拟物品列表32中展示有虚拟对象捡拾得到的虚拟物品,然后,由于虚拟物品列表32以单独的一列展示虚拟物品,当虚拟物品较多,且用户需要对排列较靠后的目标虚拟物品进行查看时,需要将列表向下翻找,用户对目标虚拟物品进行查看的过程查看效率较低,对目标虚拟物品进行查看的步骤较多。
结合上述名词简介,对本申请实施例提供的虚拟背包展示界面的显示方法进行说明。请参考图4,图4是本申请一个示例性的实施例提供的虚拟背包展示界面的显示方法流程图,本实施例中以该方法应用于电子设备中为例进行说明,该方法包括:
步骤401,显示主界面。
可选地,该主界面包括虚拟对象在虚拟枪械对战过程中对虚拟环境进行观察的画面。可选地,该目标虚拟对象用于在虚拟环境中获取虚拟物品,其中,虚拟对象可以通过捡拾的方式对虚拟物品进行获取,也可以通过购买的方式对虚拟物品进行获取,还可以通过抽奖的方式对虚拟物品进行获取,本申请实施例对此不加以限定。
可选地,在该虚拟环境中,该虚拟对象所处的姿态包括站立、下蹲、趴下、匍匐、步行、奔跑中的至少一种,可选地,该虚拟对象可以是处于持枪状态的,也可以是处于未持枪状态的。可选地,当虚拟对象处于持枪状态时,该主界面可以包括通过瞄准镜对虚拟环境进行观察的画面,也可以包括不通过瞄准镜对虚拟环境进行观察的画面。
步骤402,在显示主界面的过程中,接收背包展示信号。
可选地,该背包展示信号用于指示对虚拟背包展示界面进行显示。可选地,该虚拟背包展示界面用于对目标虚拟对象已拥有的虚拟物品进行展示。
可选地,电子设备接收背包展示信号的方式包括如下方式中的至少一种:
第一,接收快捷键操作信号;
当快捷键操作信号对应的快捷键组合是目标快捷键组合时,确定接收到背包展示信号;或,当快捷键操作信号对应的快捷键是目标快捷键时,确定接收到背包展示信号。
其中,当电子设备为台式电脑或者膝上便携式笔记本电脑时,该快捷键操作信号可以是由外部输入设备的输入操作触发的,如:通过对鼠标左键进行点击触发快捷键信号,或者通过键盘键入Tab键触发快捷键信号;当电子设备为手机、平板电脑等移动终端时,该快捷键操作信号可以是通过触发在移动终端上的物理按键触发的,也可以是通过触摸屏上显示的虚拟键盘的输入操作触发的。
第二,主界面中还包括背包展示控件,当接收到在该背包展示控件上的点击信号时,确定接收到背包展示信号。
其中,当电子设备为台式电脑或者膝上便携式笔记本电脑时,该点击信号可以是由外部输入设备的输入操作触发的,如:通过鼠标对该背包展示控件进行点击触发点击信号;当电子设备为手机、平板电脑等移动终端时,该点击信号可以是通过在触摸显示屏上对该背包展示控件进行触摸触发的。
步骤403,根据背包展示信号显示虚拟背包展示界面,虚拟背包展示界面中包括至少两个子列表。
该虚拟背包展示界面用于对虚拟对象持有的虚拟物品进行展示,该虚拟背包展示界面中包括至少两个子列表,每个子列表用于展示同一种类型的虚拟物品。可选地,该类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
示意性的,以虚拟背包展示界面中包括两个子列表为例进行说明,该虚拟背包展示界面中至少包括第一子列表和第二子列表,该第一子列表用于存储并展示第一类型的虚拟物品,第二子列表用于存储并展示第二类型的虚拟物品。可选地,虚拟背包展示界面中还可以包括更多子列表,本申请实施例对此不加以限定。
可选地,上述子列表在虚拟背包展示界面中的显示顺序,是根据子列表对应的虚拟物品的类型的优先级确定的,在显示虚拟背包展示界面时,根据显示顺序依次显示子列表。
示意性的,根据类型的优先级由高到低,类型对应的子列表在虚拟背包展示界面中由上至下依次显示;或者,根据类型的优先级由高到低,类型对应的子列表在虚拟背包展示界面中由下至上依次显示;或者,根据类型的优先级由高到低,类型对应的子列表在虚拟背包展示界面中由左至右依次显示;或者,根据类型的优先级由高到低,类型对应的子列表在虚拟背包展示界面中由右至左依次显示。本申请实施例对子列表的排列方向不作具体限定。
可选地,在执行步骤403之前,首先需要对每个子列表对应的类型的优先级进行确定,并根据上述子列表对应的类型的优先级确定子列表在虚拟背包展示界面中的显示顺序。对子列表的显示顺序进行确定的方式包括如下方式中的至少一种:
第一,电子设备从服务器中获取的配置文件中包括子列表在虚拟背包展示界面中的显示顺序;
可选地,该配置文件中可以直接对每个子列表在虚拟背包展示界面中的显示坐标进行配置,如:对每个子列表的长宽进行设置,以及对每个子列表左上角在虚拟背包展示界面中的坐标点进行设置;该配置文件中也可以对每个子列表的排列顺序以及长宽进行配置,其中,每个子列表的宽度一致,示 意性的,配置文件中,包括的子列表的排列顺序为:子列表A(长:15,宽:5)、子列表C(长:15,宽:5)、子列表B(长:10,宽:5),则在虚拟背包展示界面中,以子列表A、子列表C以及子列表B的顺序展示上述三个子列表,其中,上述子列表A、子列表C以及子列表B的顺序即为上述三个子列表对应的类型的优先级,即子列表A对应的类型为最高优先级,子列表C对应的类型为第二优先级,子列表B对应的类型为第三优先级。
第二,上述优先级是通过对类型的使用频率进行排序得到的,则首先获取历史物品使用数据,该历史物品使用数据中包括类型的使用频率,根据该历史物品使用数据,对类型的使用频率进行排序,得到类型的优先级;
可选地,该历史物品使用数据可以是该电子设备上该客户端中记录的所有物品使用数据,也可以最近预设时长内的物品使用数据,或者最近预设对局数量内的物品使用数据。
可选地,该类型的使用频率,是指该类型的虚拟物品被使用的频率。可选地,虚拟物品被使用的频率可以由该虚拟物品被捡拾的次数,被装配至虚拟枪械的次数、被投掷的次数、被射击的次数中的至少一种参数计算得到,可选地,类型的使用频率,可以是该类型包括的虚拟物品被使用的频率的平均数,也可以是该类型包括的虚拟物品被使用的频率的总和,或者该类型包括的虚拟物品被使用的频率的加权和,本申请实施例对该类型的使用频率的计算方式不加以限定。
示意性的,以对烟雾弹被使用的频率进行计算为例进行说明,该烟雾弹在最近5局对局内被捡拾的次数为3,被投掷的次数为2,以被投掷的次数作为计算烟雾弹被使用的频率的参数,则该烟雾弹被使用的频率为40%。
获取类型的使用频率后,对该类型的使用频率进行排序,得到类型的优先级,示意性的,第一类型的使用频率为50%,第二类型的使用频率为70%,第三类型的使用频率为25%,则,类型的优先级由高到低依次为:第二类型、第一类型以及第三类型。
第三,接收优先级排序信号,该优先级排序信号用于指示根据优先级排序信号对类型的优先级进行排序。
可选地,该优先级排序信号可以是服务器发送至该电子设备的,也可以是用户通过在电子设备上进行操作生成的。示意性的,以该优先级排序信号 时用户在电子设备上进行操作生成的为例进行说明,用户可以在虚拟背包设置界面对虚拟背包展示界面中的子列表的排列顺序进行调整,调整完毕后,用户对调整结果进行确定后,生成优先级排序信号,该优先级排序信号是根据用户对子列表的排列顺序生成的。
第四,确定虚拟对象的需求状态,当需求状态符合目标需求状态时,将目标需求状态对应的目标类型设置为最高优先级,并将除目标类型之外的物品类型根据预设优先级进行排序,根据最高优先级和预设优先级得到该类型的优先级。
其中,当需求状态符合目标需求状态时,将目标需求状态对应的目标类型设置为最高优先级又包括如下情况中的任意一种:
一、当虚拟对象的生命值小于目标生命值时,将医疗药品类设置为最高优先级;
示意性的,当虚拟对象的生命值小于50%时,将医疗药品类设置为最高优先级,用户在需要对生命值进行补充时,医疗药品类处于优先级最高的位置,方便用户能够快速找到需要的药品。
二、当虚拟对象拥有的弹药与虚拟对象装配的虚拟枪械不匹配时,将武器弹药类设置为最高优先级;
示意性的,当虚拟对象拥有5.56子弹,而虚拟对象装配的虚拟枪械为AKM自动步枪(装配7.62子弹)时,将武器弹药类设置为最高优先级,用户在需要对虚拟背包中的物品进行丢弃时,能够快速找到不需要的子弹并丢弃。
三、当虚拟枪械的目标槽位中装配的第一配件损坏,且虚拟对象拥有能够装配至该目标槽位的第二配件时,将枪支配件类设置为最高优先级。
综上所述,本实施例提供的虚拟背包展示界面的显示方法,通过在虚拟背包展示界面中显示多个子列表,每个子列表存储并显示不同类型的虚拟物品,用户在对虚拟物品进行查找时,只需要在该类型对应的子列表中对虚拟物品进行查找,而不会因为虚拟背包中的虚拟物品较多而导致在对某个虚拟物品进行查找时,需要将虚拟背包中的单个列表向下翻看较多以进行查找的问题,提高了对虚拟物品进行查找的效率,减少了对虚拟物品进行查找的步骤。
本实施例提供的方法,根据类型的优先级依次显示类型对应的子列表,针对不同优先级的虚拟物品,显示在虚拟背包展示界面的不同位置,用户对虚拟物品进行查找时,当优先级与被查找的概率对应时,提高了用户以最快的速度查找虚拟物品的概率。
值得注意的是,上述实施例中的虚拟背包可以是在虚拟环境中虚拟对象通过捡拾获得的虚拟背包,即虚拟对象通过对虚拟背包进行捡拾,获取容纳一定容量的虚拟物品的能力,且在虚拟对象的背部显示有一个背包,当虚拟对象未捡拾虚拟背包时,虚拟对象也包括捡拾虚拟物品的能力,即该虚拟对象本身背有一个默认背包,但该默认背包不显示在虚拟对象的背部,但未捡拾虚拟背包时,该默认背包可容纳虚拟物品的容量较小。
在一个可选的实施例中,上述类型包括医疗药品类、枪支配件类以及武器弹药类,其中,医疗药品类对应第一子列表,枪支配件类对应第二子列表,武器弹药类对应第三子列表;
上述步骤403中根据背包展示信号显示虚拟背包展示界面时,该虚拟背包展示界面包由上至下依序排列的第一子列表、第二子列表以及第三子列表。
示意性的,请参考图5,虚拟背包展示界面51中包括第一子列表52、第二子列表53以及第三子列表54,其中,第一子列表52是与医疗药品类对应的子列表,第二子列表53是与枪支配件类对应的子列表,第三子列表54是与武器弹药类对应的子列表。
其中,第一子列表52中包括药品格521、药品格522以及药品格523,其中,一个药品格用于存储并展示一种药品,还可以在药品格内显示一个数字以表示该药品的数量,如:药品格521中显示医疗包的图标,并在药品格521的左下角显示6,表示共有6个医疗包。本实施例中以三个药品格为例进行说明,实际操作中,药品格的数量还可以更多或者更少。
第二子列表53中包括至少一行,每一行用于显示一个枪支配件,如图5所示,该第二子列表53的第一行中展示有4倍瞄准镜。
第三子列表54中包括至少一行,每一行用于显示一种武器弹药,示意性的,该第三子列表54的第一行中战士有5.56子弹,该5.56子弹的数量为50发,可选地,每一行子弹的数量不超过100发,即当第一行子弹数量达到100 发时,剩下的子弹放置到第二行,以此类推。
其中,第一子列表、第二子列表以及第三子列表中的虚拟物品进行展示时,可以根据虚拟物品被使用的频率依次进行显示,可以根据预设显示顺序进行显示,也可以根据虚拟物品被捡拾的顺序进行显示,还可以根据用户设置的顺序进行显示。
综上所述,本实施例提供的虚拟背包展示界面的显示方法,在虚拟枪械对战中,通过在虚拟背包展示界面中显示多个子列表,每个子列表存储并显示不同类型的虚拟物品,用户在对虚拟物品进行查找时,只需要在该类型对应的子列表中对虚拟物品进行查找,而不会因为虚拟背包中的虚拟物品较多而导致在对某个虚拟物品进行查找时,需要将虚拟背包中的单个列表向下翻看较多以进行查找的问题,提高了对虚拟物品进行查找的效率,减少了对虚拟物品进行查找的步骤,符合在虚拟枪械对战中,需要快速进行虚拟物品查找的要求。
本实施例提供的方法,由于用户对医疗药品的使用频率较高、其次是对枪支配件的使用频率,而对武器弹药通常为自动装配的,用户对武器弹药的使用频率较低,所以,在虚拟背包展示界面中对医疗药品类、枪支配件类、武器弹药类依次进行显示,提高了用户对虚拟物品进行查找的效率。
在一个可选的实施例中,当虚拟对象在虚拟环境中对虚拟物品进行捡拾后,需要在该虚拟物品对应的子列表中存储该虚拟物品。图6是本申请另一个示例性的实施例提供的虚拟背包展示界面的显示方法流程图,可选地,图6所示的流程图,可以实现在上述步骤401至步骤403之前,可以实现在上述步骤401至步骤403之后,还可以实现在上述步骤401至步骤403之间,本申请实施例对图6所示的流程图的具体实现时机不做限定。
如图6所示,该方法包括:
步骤601,接收虚拟物品捡拾信号。
该虚拟物品捡拾信号用于指示对目标虚拟物品进行捡拾。
可选地,电子设备接收虚拟物品捡拾信号的方式包括如下方式中的至少一种:
第一,接收快捷键操作信号;
当快捷键操作信号对应的快捷键组合是目标快捷键组合时,确定接收到虚拟物品捡拾信号;或,当快捷键操作信号对应的快捷键是目标快捷键时,确定接收到虚拟物品捡拾信号。
其中,当电子设备为台式电脑或者膝上便携式笔记本电脑时,该快捷键操作信号可以是由外部输入设备的输入操作触发的,如:通过对鼠标左键进行点击并拖动触发快捷键信号,或者通过键盘键入F键触发快捷键信号;当电子设备为手机、平板电脑等移动终端时,该快捷键操作信号可以是通过触发在移动终端上的物理按键触发的,也可以是通过触摸屏上显示的虚拟键盘的输入操作触发的。
第二,用户界面中还包括捡拾控件,当接收到在该捡拾控件上的点击信号时,确定接收到虚拟物品捡拾信号。
其中,当电子设备为台式电脑或者膝上便携式笔记本电脑时,该点击信号可以是由外部输入设备的输入操作触发的,如:通过鼠标对该捡拾控件进行点击触发点击信号;当电子设备为手机、平板电脑等移动终端时,该点击信号可以是通过在触摸显示屏上对该捡拾控件进行触摸触发的。
步骤602,确定目标虚拟物品的类型。
可选地,每个类型在虚拟背包展示界面中对应一个或一组子列表,确定该目标虚拟物品的类型即确定电子设备显示虚拟背包展示界面时,显示该目标虚拟物品的子列表。
步骤603,根据目标虚拟物品的类型在对应的子列表存储目标虚拟物品。
可选地,在对目标虚拟物品进行存储时,包括如下情况中的任意一种:
第一,当虚拟背包展示界面的配置文件中,包括子列表以及显示在该子列表中的虚拟物品的参数时,该目标虚拟物品可以以参数的形式直接存储在虚拟背包展示界面中的子列表中;
第二,对该虚拟背包展示界面进行显示时,首先读取虚拟背包展示界面的配置文件(包括子列表的配置数据),再读取显示在子列表中的虚拟物品的数据文件,两个文件结合对虚拟背包展示界面进行显示,则该目标虚拟物品可以存储在与该子列表对应的数据文件中。
综上所述,本实施例提供的虚拟背包展示界面的显示方法,在虚拟枪械对战中,通过在虚拟背包展示界面中显示多个子列表,每个子列表存储并显 示不同类型的虚拟物品,用户在对虚拟物品进行查找时,只需要在该类型对应的子列表中对虚拟物品进行查找,而不会因为虚拟背包中的虚拟物品较多而导致在对某个虚拟物品进行查找时,需要将虚拟背包中的单个列表向下翻看较多以进行查找的问题,提高了对虚拟物品进行查找的效率,减少了对虚拟物品进行查找的步骤,符合在虚拟枪械对战中,需要快速进行虚拟物品查找的要求。
本实施例提供的方法,在对目标虚拟物品进行存储时,首先确定该目标虚拟物品的类型,再根据该类型将该目标虚拟物品存储在对应的子列表中,用户对虚拟背包展示界面进行查看时,便可以根据类型对虚拟物品进行查看。
在一个可选的实施例中,上述类型包括医疗药品类、枪支配件类以及武器弹药类,其中,医疗药品类对应第一子列表,枪支配件类对应第二子列表,武器弹药类对应第三子列表;
图7是本申请另一个示例性的实施例提供的虚拟背包展示界面的显示方法流程图,如图7所示,该方法包括:
步骤701,接收虚拟物品捡拾信号。
该虚拟物品捡拾信号用于指示对目标虚拟物品进行捡拾。
步骤702,确定目标虚拟物品在虚拟背包中占用的容量。
可选地,将虚拟物品放置在虚拟背包中时,会占用一定的容量,每个虚拟物品所占用的容量可以是预先设置好的,也可以是随机生成的。以目标虚拟物品在虚拟背包中占用的容量是预先设置的为例,电子设备中预先存储有虚拟物品以及虚拟物品所占用的容量的对应关系表,电子设备可以在该对应关系表中查找该目标虚拟物品所占用的容量。示意性的,该对应关系表如下表一所示:
表一
序号 | 虚拟物品 | 所占容量 |
1 | 4倍镜 | 15/个 |
2 | 5.56子弹 | 0.5/发 |
3 | 托腮板 | 25/个 |
当目标虚拟物品为托腮板时,则确定该托腮板占用的容量为25。
步骤703,确定虚拟背包的可占用容量。
该虚拟背包的可占用容量可以根据该虚拟背包的总容量与已占用容量的差值计算得到。其中,虚拟背包的总容量根据虚拟对象所背的虚拟背包的不同而不同。示意性的,当虚拟对象未捡拾背包时,默认背包的总容量为30,当虚拟对象背有一级包时,该虚拟背包的总容量为300,当虚拟对象背有二级包时,该虚拟背包的总容量为500,当虚拟对象背有三级包时,该虚拟背包的总容量为800。
可选地,虚拟背包的已占用容量可以根据已捡拾并未装配至虚拟枪械的虚拟物品所占用的容量的总和计算得到。
步骤704,当目标虚拟物品在虚拟背包中占用的容量不大于可占用容量时,确定目标虚拟物品的类型。
可选地,当目标虚拟物品在虚拟背包中占用的容量不大于可占用容量时,则说明该虚拟背包还可以容纳该目标虚拟物品,则确定该目标虚拟物品的类型。
步骤705,根据目标虚拟物品的类型在对应的子列表存储目标虚拟物品。
可选地,以类型医疗药品类、枪支配件类以及武器弹药类分别进行说明:
第一,医疗药品类包括第一类型,该目标虚拟物品为第一类型的虚拟物品,则当医疗药品类对应的第一子列表中包括第一数量的第一类型的虚拟物品时,将第一数量增加与目标虚拟物品对应的第二数量,得到捡拾后第一子列表中目标虚拟物品的第三数量;示意性的,子列表中包括3(第一数量)个医疗包,捡拾的目标虚拟物品为1(第二数量)个医疗包,则将子列表中的3个医疗包修改为4(3+1)个医疗包。
当第一子列表中不包括所述目标虚拟物品时,将目标虚拟物品在第一子列表中进行存储。
第二,目标虚拟物品的类型包括枪支配件类,当虚拟对象在虚拟环境中配有虚拟枪械,且虚拟枪械装配目标虚拟物品的槽位为空时,将目标虚拟物品装配至槽位中;
当虚拟对象在虚拟环境中配有虚拟枪械,且虚拟枪械装配目标虚拟物品的槽位不为空时,将目标虚拟物品存储至枪支配件类对应的第二子列表中;
当虚拟对象在虚拟环境中配有虚拟枪械,且虚拟枪械不包括装配目标虚 拟物品的槽位时,将目标虚拟物品存储至第二子列表中;
当所述虚拟对象在虚拟环境中未配有虚拟枪械时,将目标虚拟物品存储至第二子列表中。
第三,目标虚拟物品的类型包括武器弹药类,当虚拟对象在虚拟环境中配有虚拟枪械,虚拟枪械装配的弹夹与目标虚拟物品匹配,且弹夹为空时,将目标虚拟物品装配至弹夹;
当虚拟对象在虚拟环境中配有虚拟枪械,虚拟枪械装配的弹夹与目标虚拟物品匹配,且弹夹不为空时,将目标虚拟物品存储至武器弹药类对应的第三子列表中;
当虚拟对象在虚拟环境中配有虚拟枪械,虚拟枪械装配的弹夹与目标虚拟物品不匹配时,将目标虚拟物品存储至第三子列表中;
当虚拟对象在虚拟环境中未配有虚拟枪械时,将目标虚拟物品存储至第三子列表中。
其中,将目标虚拟物品存储至第三子列表中时,可以是通过修改已有目标虚拟物品的数量进行存储,也可以是直接对目标虚拟物品进行另外存储。
值得注意的是,本申请实施例中所涉及的虚拟背包并非特指虚拟环境中的背包,当虚拟对象未对虚拟背包进行捡拾时,该虚拟对象也包括对虚拟物品进行捡拾的容量。
综上所述,本实施例提供的虚拟背包展示界面的显示方法,通过在虚拟背包展示界面中显示多个子列表,每个子列表存储并显示不同类型的虚拟物品,用户在对虚拟物品进行查找时,只需要在该类型对应的子列表中对虚拟物品进行查找,而不会因为虚拟背包中的虚拟物品较多而导致在对某个虚拟物品进行查找时,需要将虚拟背包中的单个列表向下翻看较多以进行查找的问题,提高了对虚拟物品进行查找的效率,减少了对虚拟物品进行查找的步骤。
本实施例提供的方法,在对目标虚拟物品进行存储时,首先确定该目标虚拟物品的类型,再根据该类型将该目标虚拟物品存储在对应的子列表中,用户对虚拟背包展示界面进行查看时,便可以根据类型对虚拟物品进行查看。
图8是本申请另一个示例性的实施例提供的虚拟背包展示界面的显示方 法流程图,如图8所示,该方法包括:
步骤801,虚拟对象拾取目标虚拟物品。
步骤802,判断虚拟背包容量是否足够。
首先,确定目标虚拟物品在虚拟背包中占用的容量,确定虚拟背包的可占用容量,当目标虚拟物品在虚拟背包中占用的容量不大于可占用容量时则虚拟背包的容量足够,反之,虚拟背包的容量不足够。
步骤803,当虚拟背包容量不足够时,拾取目标虚拟物品失败。
当虚拟背包容量不足够时,则虚拟对象无法对目标虚拟物品进行拾取,则拾取目标虚拟物品失败。
步骤804,当虚拟背包容量足够时,判断目标虚拟物品的类型。
步骤805,目标虚拟物品为医疗药品类。
步骤806,判断目标虚拟药品对应的药品格是否已有药品。
步骤807,当目标虚拟药品对应的药品格已有药品时,药品的数量加一。
示意性的,药品格中已有医疗包6个,目标虚拟物品为医疗包时,医疗包的数量加一,即药品格中包括7个医疗包。
示意性的,请参考图9,在第一虚拟背包展示界面91中,包括医疗药品类对应的子列表92,该子列表92中包括医疗包对应的药品格93,该药品格93中显示有6个医疗包。在第二界面94中,显示有虚拟对象95,该虚拟对象95所处的虚拟环境中包括医疗包96,可选地,该医疗包96在该虚拟对象95的预设范围内,当用户通过键盘输入“F”时,虚拟对象95对该医疗包96进行捡拾,并在第三虚拟背包展示界面97中的药品格93中,显示有7个医疗包。
步骤808,当目标虚拟药品对应的药品格无药品时,将药品存入药品格。
步骤809,目标虚拟物品为枪支配件类。
步骤810,判断目标虚拟物品能否直接装配至虚拟枪械。
当目标对象配有虚拟枪械,且该虚拟枪械装配目标虚拟物品的槽位为空时,该目标虚拟物品可以直接装配至虚拟枪械,否则,目标虚拟物品不能直接装配至虚拟枪械。
步骤811,当目标虚拟物品不能直接装配至虚拟枪械时,将目标虚拟物品按顺序存储至配件栏。
步骤812,当目标虚拟物品能直接装配至虚拟枪械时,将目标虚拟物品装配至虚拟枪械。
步骤813,目标虚拟物品为武器弹药类。
步骤814,判断目标虚拟物品能否直接装配至虚拟枪械。
步骤815,当目标虚拟物品不能直接装配至虚拟枪械时,将目标虚拟物品按顺序存储至配件栏。
步骤816,当目标虚拟物品能直接装配至虚拟枪械时,将目标虚拟物品装配至虚拟枪械。
图10是本申请一个示例性的实施例提供的虚拟背包展示界面的显示装置的结构框图,应用于虚拟环境中,如图10所示,该装置包括:显示模块1010以及接收模块1020;
显示模块1010,用于显示主界面,所述主界面包括目标虚拟对象在虚拟枪械对战过程中对所述虚拟环境进行观察的画面;
接收模块1020,用于在显示所述主界面的过程中,接收背包展示信号;
所述显示模块1010,还用于根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面中包括至少两个子列表,每个所述子列表用于展示同一种类型的虚拟物品,所述类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
在一个可选的实施例中,如图11所示,该装置还包括:优先级确定模块1030、类型确定模块1040以及存储模块1050;
优先级确定模块1030,用于确定所述子列表对应的所述虚拟物品的类型的优先级;
所述优先级确定模块1030,还用于根据所述子列表对应的所述类型的优先级确定所述子列表在所述虚拟背包展示界面中的显示顺序;
所述显示模块1010,还用于根据所述背包展示信号在所述虚拟背包展示界面,根据所述显示顺序依次显示所述子列表。
在一个可选的实施例中,所述优先级是通过对所述类型的使用频率进行排序得到的;
所述优先级确定模块1030,包括:
获取子模块1031,用于获取历史物品使用数据,所述历史物品使用数据中包括所述类型的使用频率;
排序子模块1032,用于根据所述历史物品使用数据,对所述类型的使用频率进行排序,得到所述类型的所述优先级。
在一个可选的实施例中,所述优先级确定模块1030,包括:
接收子模块1033,用于接收优先级排序信号,所述优先级排序信号用于指示对所述类型的优先级根据所述优先级排序信号进行排序,得到所述类型的所述优先级。
在一个可选的实施例中,所述优先级确定模块1030,还用于确定所述虚拟对象的需求状态;当所述需求状态符合目标需求状态时,将所述目标需求状态对应的目标类型设置为最高优先级;将除所述目标类型之外的其他类型根据预设优先级进行排序;根据所述最高优先级和所述预设优先级得到所述类型的所述优先级。
在一个可选的实施例中,所述优先级确定模块1030,还用于当所述虚拟对象的生命值小于目标生命值时,将所述医疗药品类设置为所述最高优先级;
或,
所述优先级确定模块1030,还用于当所述虚拟对象拥有的弹药与所述虚拟对象装配的虚拟枪械不匹配时,将所述武器弹药类设置为所述最高优先级;
或,
所述优先级确定模块1030,还用于当所述虚拟枪械的目标槽位中装配的第一配件损坏,且所述虚拟对象拥有能够装配至所述目标槽位的第二配件时,将所述枪支配件类设置为所述最高优先级。
在一个可选的实施例中,所述医疗药品类对应第一子列表,所述枪支配件类对应第二子列表,所述武器弹药类对应第三子列表;
所述显示模块1010,还用于根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面包括由上至下依序排列的所述第一子列表、所述第二子列表以及所述第三子列表。
在一个可选的实施例中,所述接收模块1020,还用于接收虚拟物品捡拾信号,所述虚拟物品捡拾信号用于指示对目标虚拟物品进行捡拾;
所述装置,还包括:
类型确定模块1040,用于确定所述目标虚拟物品的类型;
存储模块1050,用于根据所述目标虚拟物品的类型在对应的所述子列表存储所述目标虚拟物品。
在一个可选的实施例中,所述医疗药品类包括第一类型,所述目标虚拟物品为所述第一类型的虚拟物品;
所述存储模块1050,还用于当所述医疗药品类对应的第一子列表中包括第一数量的所述第一类型的虚拟物品时,将所述第一数量增加与所述目标虚拟物品对应的第二数量,得到捡拾后所述第一子列表中所述第一类型的虚拟物品的第三数量;
所述存储模块1050,还用于当所述子列表中不包括所述目标虚拟物品时,将所述目标虚拟物品在所述第一子列表中进行存储。
在一个可选的实施例中,所述目标虚拟物品的类型包括枪支配件类;
所述存储模块1050,还用于当所述虚拟对象在所述虚拟环境中装配有虚拟枪械,且所述虚拟枪械装配所述目标虚拟物品的槽位为空时,将所述目标虚拟物品装配至所述槽位中;
所述存储模块1050,还用于当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,且所述虚拟枪械装配所述目标虚拟物品的槽位不为空时,将所述目标虚拟物品存储至所述枪支配件类对应的第二子列表中;
所述存储模块1050,还用于当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,且所述虚拟枪械不包括装配所述目标虚拟物品的槽位时,将所述目标虚拟物品存储至所述第二子列表中;
所述存储模块1050,还用于当所述虚拟对象在所述虚拟环境中未装配有所述虚拟枪械时,将所述目标虚拟物品存储至所述第二子列表中。
在一个可选的实施例中,所述目标虚拟物品的类型包括武器弹药类;
所述存储模块1050,还用于当所述虚拟对象在所述虚拟环境中装配有虚拟枪械,所述虚拟枪械装配的弹夹与所述目标虚拟物品匹配,且所述弹夹为空时,将所述目标虚拟物品装配至所述弹夹;
所述存储模块1050,还用于当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,所述虚拟枪械装配的弹夹与所述目标虚拟物品匹配,且所述弹夹不为空时,将所述目标虚拟物品存储至所述武器弹药类对应的第三子列表 中;
所述存储模块1050,还用于当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,所述虚拟枪械装配的弹夹与所述目标虚拟物品不匹配时,将所述目标虚拟物品存储至所述第三子列表中;
所述存储模块1050,还用于当所述虚拟对象在所述虚拟环境中未装配有所述虚拟枪械时,将所述目标虚拟物品存储至所述第三子列表中。
在一个可选的实施例中,所述类型确定模块1040,还用于确定所述目标虚拟物品在所述虚拟背包中占用的容量;确定所述虚拟背包的可占用容量,所述可占用容量是根据所述虚拟背包的总容量和所述虚拟背包的已占用容量的差值计算得到的;当所述目标虚拟物品在所述虚拟背包中占用的容量不大于所述可占用容量时,确定所述目标虚拟物品的类型。
综上所述,本申请一个示例性的实施例提供的虚拟背包展示界面的显示装置,在虚拟枪械对战中,通过在虚拟背包展示界面中显示多个子列表,每个子列表存储并显示不同类型的虚拟物品,用户在对虚拟物品进行查找时,只需要在该类型对应的子列表中对虚拟物品进行查找,而不会因为虚拟背包中的虚拟物品较多而导致在对某个虚拟物品进行查找时,需要将虚拟背包中的单个列表向下翻看较多以进行查找的问题,提高了对虚拟物品进行查找的效率,减少了对虚拟物品进行查找的步骤,符合在虚拟枪械对战中,需要快速进行虚拟物品查找的要求。
图12示出了本申请一个示例性实施例提供的电子设备1200的结构框图。该电子设备1200可以是:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。电子设备1200还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。
通常,电子设备1200包括有:处理器1201和存储器1202。
处理器1201可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1201可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA (Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1201也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1201可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1201还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器1202可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1202还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1202中的非暂态的计算机可读存储介质用于存储至少一个计算机可读指令,该至少一个计算机可读指令用于被处理器1201所执行以实现本申请中方法实施例提供的虚拟背包展示界面的显示方法。
在一些实施例中,电子设备1200还可选包括有:外围设备接口1203和至少一个外围设备。处理器1201、存储器1202和外围设备接口1203之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口1203相连。具体地,外围设备包括:射频电路1204、触摸显示屏1205、摄像头1206、音频电路1207、定位组件1208和电源1209中的至少一种。
外围设备接口1203可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器1201和存储器1202。在一些实施例中,处理器1201、存储器1202和外围设备接口1203被集成在同一芯片或电路板上;在一些其他实施例中,处理器1201、存储器1202和外围设备接口1203中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。
射频电路1204用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路1204通过电磁信号与通信网络以及其他通信设备进行通信。射频电路1204将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路1204包括:天线系统、RF收发 器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路1204可以通过至少一种无线通信协议来与其它电子设备进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路1204还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。
显示屏1205用于显示UI(UserInterface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏1205是触摸显示屏时,显示屏1205还具有采集在显示屏1205的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器1201进行处理。此时,显示屏1205还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏1205可以为一个,设置电子设备1200的前面板;在另一些实施例中,显示屏1205可以为至少两个,分别设置在电子设备1200的不同表面或呈折叠设计;在再一些实施例中,显示屏1205可以是柔性显示屏,设置在电子设备1200的弯曲表面上或折叠面上。甚至,显示屏1205还可以设置成非矩形的不规则图形,也即异形屏。显示屏1205可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。
摄像头组件1206用于采集图像或视频。可选地,摄像头组件1206包括前置摄像头和后置摄像头。通常,前置摄像头设置在电子设备的前面板,后置摄像头设置在电子设备的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件1206还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。
音频电路1207可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器1201进行处理,或者输入至射频 电路1204以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在电子设备1200的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器1201或射频电路1204的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路1207还可以包括耳机插孔。
定位组件1208用于定位电子设备1200的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。定位组件1208可以是基于美国的GPS(Global Positioning System,全球定位系统)、中国的北斗系统或俄罗斯的伽利略系统的定位组件。
电源1209用于为电子设备1200中的各个组件进行供电。电源1209可以是交流电、直流电、一次性电池或可充电电池。当电源1209包括可充电电池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。
在一些实施例中,电子设备1200还包括有一个或多个传感器1210。该一个或多个传感器1210包括但不限于:加速度传感器1211、陀螺仪传感器1212、压力传感器1213、指纹传感器1214、光学传感器1215以及接近传感器1216。
加速度传感器1211可以检测以电子设备1200建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器1211可以用于检测重力加速度在三个坐标轴上的分量。处理器1201可以根据加速度传感器1211采集的重力加速度信号,控制触摸显示屏1205以横向视图或纵向视图进行用户界面的显示。加速度传感器1211还可以用于游戏或者用户的运动数据的采集。
陀螺仪传感器1212可以检测电子设备1200的机体方向及转动角度,陀螺仪传感器1212可以与加速度传感器1211协同采集用户对电子设备1200的3D动作。处理器1201根据陀螺仪传感器1212采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。
压力传感器1213可以设置在电子设备1200的侧边框和/或触摸显示屏1205的下层。当压力传感器1213设置在电子设备1200的侧边框时,可以检测用户对电子设备1200的握持信号,由处理器1201根据压力传感器1213采集的握持信号进行左右手识别或快捷操作。当压力传感器1213设置在触摸显示屏1205的下层时,由处理器1201根据用户对触摸显示屏1205的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。
指纹传感器1214用于采集用户的指纹,由处理器1201根据指纹传感器1214采集到的指纹识别用户的身份,或者,由指纹传感器1214根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器1201授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器1214可以被设置电子设备1200的正面、背面或侧面。当电子设备1200上设置有物理按键或厂商Logo时,指纹传感器1214可以与物理按键或厂商Logo集成在一起。
光学传感器1215用于采集环境光强度。在一个实施例中,处理器1201可以根据光学传感器1215采集的环境光强度,控制触摸显示屏1205的显示亮度。具体地,当环境光强度较高时,调高触摸显示屏1205的显示亮度;当环境光强度较低时,调低触摸显示屏1205的显示亮度。在另一个实施例中,处理器1201还可以根据光学传感器1215采集的环境光强度,动态调整摄像头组件1206的拍摄参数。
接近传感器1216,也称距离传感器,通常设置在电子设备1200的前面板。接近传感器1216用于采集用户与电子设备1200的正面之间的距离。在一个实施例中,当接近传感器1216检测到用户与电子设备1200的正面之间的距离逐渐变小时,由处理器1201控制触摸显示屏1205从亮屏状态切换为息屏状态;当接近传感器1216检测到用户与电子设备1200的正面之间的距离逐渐变大时,由处理器1201控制触摸显示屏1205从息屏状态切换为亮屏状态。
本领域技术人员可以理解,图12中示出的结构并不构成对电子设备1200的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机可读指令来指令相关的硬件来完成,该计算机可读指令可以存储于一计算机可读存储介质中,该计算机可读存储介质可以是上述实施例中的存储器中所包含的计算机可读存储介质;也可以是单独存在,未装配入电子设备中的计算机可读存储介质。该计算机可读存储介质中存储有至少一条计算机可读指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如图1至图8任一所述的虚拟背包展示界面的显示方法。
可选地,该计算机可读存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、固态硬盘(SSD,Solid State Drives)或光盘等。其中,随机存取记忆体可以包括电阻式随机存取记忆体(ReRAM,Resistance Random Access Memory)和动态随机存取存储器(DRAM,Dynamic Random Access Memory)。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过计算机可读指令来指令相关的硬件完成,所述的计算机可读指令可以存储于一种非易失性的计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。
Claims (20)
- 一种虚拟背包展示界面的显示方法,由电子设备执行,所述方法包括:显示主界面,所述主界面包括虚拟对象在虚拟枪械对战过程中对所述虚拟环境进行观察的画面;在显示所述主界面的过程中,接收背包展示信号;及根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面中包括至少两个子列表,每个所述子列表用于展示同一种类型的虚拟物品,所述类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
- 根据权利要求1所述的方法,其特征在于,所述根据所述背包展示信号显示所述虚拟背包展示界面之前,还包括:确定所述子列表对应的所述虚拟物品的类型的优先级;根据所述子列表对应的所述类型的优先级确定所述子列表在所述虚拟背包展示界面中的显示顺序;及所述根据所述背包展示信号显示所述虚拟背包展示界面,包括:根据所述背包展示信号在所述虚拟背包展示界面,根据所述显示顺序依次显示所述子列表。
- 根据权利要求2所述的方法,其特征在于,所述虚拟物品的类型的优先级是通过对属于所述类型的虚拟物品的使用频率进行排序得到的;所述确定所述子列表对应的所述虚拟物品的类型的优先级,包括:获取历史物品使用数据,所述历史物品使用数据中包括属于所述类型的虚拟物品的使用频率;及根据所述历史物品使用数据,对所述类型的使用频率进行排序,得到所述类型的所述优先级。
- 根据权利要求2所述的方法,其特征在于,所述确定所述子列表对应的所述虚拟物品的类型的优先级,包括:接收优先级排序信号,所述优先级排序信号用于指示根据所述优先级排序信号对所述类型的优先级进行排序,得到所述类型的所述优先级。
- 根据权利要求2所述的方法,其特征在于,所述确定所述子列表对应的所述虚拟物品的类型的优先级,包括:确定所述虚拟对象的需求状态;当所述需求状态符合目标需求状态时,将所述目标需求状态对应的目标类型设置为最高优先级;将除所述目标类型之外的其他类型根据预设优先级进行排序;及根据所述最高优先级和所述预设优先级得到所述类型的所述优先级。
- 根据权利要求5所述的方法,其特征在于,所述当所述需求状态符合目标需求状态时,将所述目标需求状态对应的目标类型设置为最高优先级,包括:当所述虚拟对象的生命值小于目标生命值时,将所述医疗药品类设置为所述最高优先级;或,当所述虚拟对象拥有的弹药与所述虚拟对象装配的虚拟枪械不匹配时,将所述武器弹药类设置为所述最高优先级;或,当所述虚拟枪械的目标槽位中装配的第一配件损坏,且所述虚拟对象拥有能够装配至所述目标槽位的第二配件时,将所述枪支配件类设置为所述最高优先级。
- 根据权利要求1所述的方法,其特征在于,所述医疗药品类对应第一子列表,所述枪支配件类对应第二子列表,所述武器弹药类对应第三子列表;所述根据所述背包展示信号显示所述虚拟背包展示界面,包括:根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面包括由上至下依序排列的所述第一子列表、所述第二子列表以及所述第三子列表。
- 根据权利要求1至7任一所述的方法,其特征在于,所述方法还包括:接收虚拟物品捡拾信号,所述虚拟物品捡拾信号用于指示对目标虚拟物品进行捡拾;确定所述目标虚拟物品的类型;及根据所述目标虚拟物品的类型在对应的所述子列表存储所述目标虚拟物品。
- 根据权利要求8所述的方法,其特征在于,所述医疗药品类包括第一类型,所述目标虚拟物品为所述第一类型的虚拟物品;所述根据所述目标虚拟物品的类型在对应的所述子列表存储所述目标虚拟物品,包括:当所述医疗药品类对应的第一子列表中包括第一数量的所述第一类型的虚拟物品时,将所述第一数量增加与所述目标虚拟物品对应的第二数量,得到捡拾后所述第一子列表中所述第一类型的虚拟物品的第三数量。
- 根据权利要求8所述的方法,其特征在于,所述目标虚拟物品的类型包括枪支配件类;所述根据所述目标虚拟物品的类型在对应的所述子列表存储所述目标虚拟物品,包括:当所述虚拟对象在所述虚拟环境中装配有虚拟枪械,且所述虚拟枪械装配所述目标虚拟物品的槽位为空时,将所述目标虚拟物品装配至所述槽位中;当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,且所述虚拟枪械装配所述目标虚拟物品的槽位不为空时,将所述目标虚拟物品存储至所述枪支配件类对应的第二子列表中;当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,且所述虚拟枪械不包括装配所述目标虚拟物品的槽位时,将所述目标虚拟物品存储至所述第二子列表中;及当所述虚拟对象在所述虚拟环境中未装配有所述虚拟枪械时,将所述目标虚拟物品存储至所述第二子列表中。
- 根据权利要求8所述的方法,其特征在于,所述目标虚拟物品的类型包括武器弹药类;所述根据所述目标虚拟物品的类型在对应的所述子列表存储所述目标虚拟物品,包括:当所述虚拟对象在所述虚拟环境中装配有虚拟枪械,所述虚拟枪械装配的弹夹与所述目标虚拟物品匹配,且所述弹夹为空时,将所述目标虚拟物品装配至所述弹夹;当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,所述虚拟枪械装配的弹夹与所述目标虚拟物品匹配,且所述弹夹不为空时,将所述目标虚拟物品存储至所述武器弹药类对应的第三子列表中;当所述虚拟对象在所述虚拟环境中装配有所述虚拟枪械,所述虚拟枪械装配的弹夹与所述目标虚拟物品不匹配时,将所述目标虚拟物品存储至所述第三子列表中;及当所述虚拟对象在所述虚拟环境中未装配有所述虚拟枪械时,将所述目标虚拟物品存储至所述第三子列表中。
- 根据权利要求8所述的方法,其特征在于,所述确定所述目标虚拟物品的类型,包括:确定所述目标虚拟物品在所述虚拟背包中占用的容量;确定所述虚拟背包的可占用容量,所述可占用容量是根据所述虚拟背包的总容量和所述虚拟背包的已占用容量的差值计算得到的;当所述目标虚拟物品在所述虚拟背包中占用的容量小于或等于所述可占用容量时,确定所述目标虚拟物品的类型。
- 一种虚拟背包展示界面的显示装置,所述装置包括:显示模块,用于显示主界面,所述主界面包括虚拟对象在虚拟枪械对战过程中对所述虚拟环境进行观察的画面;接收模块,用于在显示所述主界面的过程中,接收背包展示信号;所述显示模块,还用于根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面中包括至少两个子列表,每个所述子列表用于展示同一种类型的虚拟物品,所述类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
- 根据权利要求13所述的装置,其特征在于,所述装置还包括:优先级确定模块,用于确定所述子列表对应的所述虚拟物品的类型的优先级;所述优先级确定模块,还用于根据所述子列表对应的所述类型的优先级确定所述子列表在所述虚拟背包展示界面中的显示顺序;及所述显示模块,还用于根据所述背包展示信号在所述虚拟背包展示界面,根据所述显示顺序依次显示所述子列表。
- 根据权利要求14所述的装置,其特征在于,所述优先级是通过对所述类型的使用频率进行排序得到的;所述优先级确定模块,包括:获取子模块,用于获取历史物品使用数据,所述历史物品使用数据中包括所述类型的使用频率;及排序子模块,用于根据所述历史物品使用数据,对所述类型的使用频率进行排序,得到所述类型的所述优先级。
- 根据权利要求14所述的装置,其特征在于,所述优先级确定模块包括:接收子模块,用于接收优先级排序信号,所述优先级排序信号用于指示对所述类型的优先级根据所述优先级排序信号进行排序,得到所述类型的所述优先级。
- 根据权利要求14所述的装置,其特征在于,所述优先级确定模块还用于确定所述虚拟对象的需求状态;当所述需求状态符合目标需求状态时,将所述目标需求状态对应的目标类型设置为最高优先级;将除所述目标类型之外的其他类型根据预设优先级进行排序;根据所述最高优先级和所述预设优先级得到所述类型的所述优先级。
- 根据权利要求16所述的装置,其特征在于,所述优先级确定模块,还用于当所述虚拟对象的生命值小于目标生命值时,将所述医疗药品类设置为所述最高优先级;或,所述优先级确定模块,还用于当所述虚拟对象拥有的弹药与所述虚拟对象装配的虚拟枪械不匹配时,将所述武器弹药类设置为所述最高优先级;或,所述优先级确定模块,还用于当所述虚拟枪械的目标槽位中装配的第一配件损坏,且所述虚拟对象拥有能够装配至所述目标槽位的第二配件时,将所述枪支配件类设置为所述最高优先级。
- 一种电子设备,所述电子设备包括处理器和存储器,所述存储器中存储有至少一条计算机可读指令,所述计算机可读指令由所述处理器加载并执行以下步骤:显示主界面,所述主界面包括虚拟对象在虚拟枪械对战过程中对所述虚拟环境进行观察的画面;在显示所述主界面的过程中,接收背包展示信号;及根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面中包括至少两个子列表,每个所述子列表用于展示同一种类型的虚拟物品,所述类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
- 一种非易失性的计算机可读存储介质,所述计算机可读存储介质中存储有至少一条计算机可读指令,所述计算机可读指令由处理器加载并执行以下步骤:显示主界面,所述主界面包括虚拟对象在虚拟枪械对战过程中对所述虚拟环境进行观察的画面;在显示所述主界面的过程中,接收背包展示信号;及根据所述背包展示信号显示所述虚拟背包展示界面,所述虚拟背包展示界面中包括至少两个子列表,每个所述子列表用于展示同一种类型的虚拟物品,所述类型包括医疗药品类、枪支配件类以及武器弹药类中的至少一种。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/931,262 US12023582B2 (en) | 2018-06-27 | 2020-07-16 | Virtual backpack interface |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810680093.5 | 2018-06-27 | ||
CN201810680093.5A CN108888956B (zh) | 2018-06-27 | 2018-06-27 | 虚拟背包展示界面的显示方法、设备及存储介质 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/931,262 Continuation US12023582B2 (en) | 2018-06-27 | 2020-07-16 | Virtual backpack interface |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020001155A1 true WO2020001155A1 (zh) | 2020-01-02 |
Family
ID=64346807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/084913 WO2020001155A1 (zh) | 2018-06-27 | 2019-04-29 | 虚拟背包展示界面的显示方法、装置、电子设备及存储介质 |
Country Status (3)
Country | Link |
---|---|
US (1) | US12023582B2 (zh) |
CN (1) | CN108888956B (zh) |
WO (1) | WO2020001155A1 (zh) |
Families Citing this family (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108888956B (zh) * | 2018-06-27 | 2022-02-25 | 腾讯科技(深圳)有限公司 | 虚拟背包展示界面的显示方法、设备及存储介质 |
CN111790161A (zh) * | 2019-10-25 | 2020-10-20 | 厦门雅基软件有限公司 | Avg道具处理方法、装置、电子设备及计算机可读存储介质 |
CN110888671B (zh) * | 2019-11-26 | 2021-05-11 | 腾讯科技(深圳)有限公司 | 虚拟道具的配置方法和装置、存储介质及电子装置 |
CN111552795B (zh) * | 2020-04-24 | 2021-07-20 | 掌阅科技股份有限公司 | 书籍榜单页面的展示方法、电子设备及存储介质 |
CN111589148B (zh) * | 2020-05-15 | 2023-02-24 | 腾讯科技(深圳)有限公司 | 用户界面的显示方法、装置、终端及存储介质 |
CN111701233B (zh) * | 2020-06-18 | 2023-04-07 | 网易(杭州)网络有限公司 | 界面显示控制方法、装置、设备及存储介质 |
CN111701243A (zh) * | 2020-06-19 | 2020-09-25 | 腾讯科技(深圳)有限公司 | 一种虚拟物件的配置方法、虚拟物件的展示方法及装置 |
CN111744175B (zh) * | 2020-06-29 | 2024-03-22 | 网易(杭州)网络有限公司 | 一种游戏中、游戏外道具操作控制方法及装置 |
CN111773695B (zh) * | 2020-07-10 | 2024-06-21 | 网易(杭州)网络有限公司 | 一种游戏中的显示控制方法及装置 |
CN111803933B (zh) * | 2020-07-22 | 2024-02-09 | 网易(杭州)网络有限公司 | 游戏中的道具操控方法、终端、电子设备及可读存储介质 |
CN111888760B (zh) * | 2020-07-31 | 2022-02-08 | 腾讯科技(深圳)有限公司 | 虚拟物品的显示方法和装置、存储介质及电子装置 |
CN112156470A (zh) * | 2020-10-21 | 2021-01-01 | 腾讯科技(深圳)有限公司 | 基于虚拟场景的资源处理方法、装置和计算机设备 |
CN112295215B (zh) * | 2020-10-30 | 2024-05-24 | 腾讯科技(深圳)有限公司 | 虚拟道具展示方法、装置、设备及存储介质 |
CN112843707B (zh) * | 2021-03-17 | 2024-05-28 | 网易(杭州)网络有限公司 | 游戏对象的换装处理方法、设备、介质和产品 |
KR20220138862A (ko) * | 2021-03-22 | 2022-10-13 | 텐센트 테크놀로지(센젠) 컴퍼니 리미티드 | 가상 아이템을 디스플레이하기 위한 방법과 장치, 전자 디바이스, 및 저장 매체 |
CN113384885B (zh) * | 2021-06-22 | 2024-04-09 | 网易(杭州)网络有限公司 | 游戏对象的控制方法及装置、存储介质、电子设备 |
CN113457169A (zh) * | 2021-07-21 | 2021-10-01 | 北京字跳网络技术有限公司 | 一种虚拟物品展示方法及装置 |
CN113426123B (zh) * | 2021-07-23 | 2024-05-10 | 网易(杭州)网络有限公司 | 一种游戏中虚拟道具的装配方法、装置、设备及存储介质 |
CN113546425B (zh) * | 2021-07-27 | 2024-03-01 | 网易(杭州)网络有限公司 | 游戏中虚拟物品处理方法、装置、终端和存储介质 |
CN113694513B (zh) * | 2021-08-16 | 2024-08-20 | 网易(杭州)网络有限公司 | 游戏中拾取物品的方法、装置、存储介质及电子设备 |
CN114210057B (zh) * | 2021-11-02 | 2023-07-25 | 腾讯科技(深圳)有限公司 | 虚拟道具的拾取处理方法、装置、设备、介质及程序产品 |
CN115193041A (zh) * | 2022-07-08 | 2022-10-18 | 网易(杭州)网络有限公司 | 虚拟物品的展示方法、装置、计算机设备及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103617029A (zh) * | 2013-11-20 | 2014-03-05 | 中网一号电子商务有限公司 | 一种3d即时通讯系统 |
CN106779933A (zh) * | 2016-12-06 | 2017-05-31 | 腾讯科技(深圳)有限公司 | 一种虚拟道具推荐方法及客户端 |
CN107930120A (zh) * | 2017-12-12 | 2018-04-20 | 苏州蜗牛数字科技股份有限公司 | 一种vr游戏中的背包模型及其交互方法 |
WO2018104921A1 (en) * | 2016-12-08 | 2018-06-14 | Digital Pulse Pty. Limited | A system and method for collaborative learning using virtual reality |
CN108888956A (zh) * | 2018-06-27 | 2018-11-27 | 腾讯科技(深圳)有限公司 | 虚拟背包展示界面的显示方法、设备及存储介质 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9183588B2 (en) * | 2011-01-20 | 2015-11-10 | Ebay, Inc. | Three dimensional proximity recommendation system |
WO2013190853A1 (ja) * | 2012-06-21 | 2013-12-27 | グリー株式会社 | ゲーム制御方法、ゲームサーバ、及びプログラム |
US9480926B2 (en) * | 2013-04-19 | 2016-11-01 | Gree, Inc. | Game server item notification system and method |
US10255765B2 (en) * | 2015-08-20 | 2019-04-09 | Synergy Blue, Llc | Gaming aspects relating to multiplayer/tournament hybrid arcade/wager-based games |
US10311679B2 (en) * | 2014-12-12 | 2019-06-04 | Synergy Blue, Llc | First person shooter, RPG and sports themed hybrid arcade-type, wager-based gaming techniques |
US9542799B2 (en) * | 2014-12-12 | 2017-01-10 | Synergy Blue, Llc | Hybrid arcade-type, wager-based gaming techniques and predetermined RNG outcome batch retrieval techniques |
CN108159696B (zh) * | 2017-12-19 | 2021-12-28 | 网易(杭州)网络有限公司 | 信息处理方法、装置、电子设备及存储介质 |
-
2018
- 2018-06-27 CN CN201810680093.5A patent/CN108888956B/zh active Active
-
2019
- 2019-04-29 WO PCT/CN2019/084913 patent/WO2020001155A1/zh active Application Filing
-
2020
- 2020-07-16 US US16/931,262 patent/US12023582B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103617029A (zh) * | 2013-11-20 | 2014-03-05 | 中网一号电子商务有限公司 | 一种3d即时通讯系统 |
CN106779933A (zh) * | 2016-12-06 | 2017-05-31 | 腾讯科技(深圳)有限公司 | 一种虚拟道具推荐方法及客户端 |
WO2018104921A1 (en) * | 2016-12-08 | 2018-06-14 | Digital Pulse Pty. Limited | A system and method for collaborative learning using virtual reality |
CN107930120A (zh) * | 2017-12-12 | 2018-04-20 | 苏州蜗牛数字科技股份有限公司 | 一种vr游戏中的背包模型及其交互方法 |
CN108888956A (zh) * | 2018-06-27 | 2018-11-27 | 腾讯科技(深圳)有限公司 | 虚拟背包展示界面的显示方法、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
US12023582B2 (en) | 2024-07-02 |
CN108888956A (zh) | 2018-11-27 |
CN108888956B (zh) | 2022-02-25 |
US20200346113A1 (en) | 2020-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020001155A1 (zh) | 虚拟背包展示界面的显示方法、装置、电子设备及存储介质 | |
US11229840B2 (en) | Equipment display method, apparatus, device and storage medium in virtual environment battle | |
CN108671544B (zh) | 虚拟环境中的枪械装配方法、设备及存储介质 | |
CN108815851B (zh) | 在虚拟环境中射击时的界面显示方法、设备及存储介质 | |
US11656755B2 (en) | Method and apparatus for controlling virtual object to drop virtual item and medium | |
WO2020253832A1 (zh) | 控制虚拟对象对虚拟物品进行标记的方法、装置及介质 | |
WO2020029817A1 (zh) | 虚拟环境中的配件选择方法、装置、设备及可读存储介质 | |
CN108509039B (zh) | 在虚拟环境中拾取物品的方法、装置、设备及存储介质 | |
WO2021036577A1 (zh) | 控制虚拟对象的方法和相关装置 | |
CN108579088B (zh) | 控制虚拟对象对虚拟物品进行拾取的方法、装置及介质 | |
CN111001159B (zh) | 虚拟场景中的虚拟道具控制方法、装置、设备及存储介质 | |
CN111921190B (zh) | 虚拟对象的道具装备方法、装置、终端及存储介质 | |
CN112295215B (zh) | 虚拟道具展示方法、装置、设备及存储介质 | |
WO2021031765A1 (zh) | 虚拟环境中瞄准镜的应用方法和相关装置 | |
WO2022143142A1 (zh) | 人机交互界面的控制方法、装置、设备及介质 | |
US11786817B2 (en) | Method and apparatus for operating virtual prop in virtual environment, device and readable medium | |
CN112402969B (zh) | 虚拟场景中虚拟对象控制方法、装置、设备及存储介质 | |
CN113599804A (zh) | 虚拟道具的控制方法、装置、设备及介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19824533 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19824533 Country of ref document: EP Kind code of ref document: A1 |