Method, device, terminal and computer program for displaying virtual items

The method and device facilitate efficient swapping of virtual item positions in shooting games by allowing users to drag and drop items with exchange prompts, improving interaction efficiency and clarity in the virtual scene.

JP7547650B2Active Publication Date: 2024-09-09TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023557375
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-08-03
Filing Date
2022-06-23
Publication Date
2024-09-09
Estimated Expiration
2042-06-23

AI Technical Summary

Technical Problem

Existing methods for exchanging the display positions of virtual items in shooting games are complicated and obscure the virtual scene, leading to low efficiency in human-computer interaction.

Method used

A method and device for displaying virtual items that allows users to swap the positions of virtual items by performing a trigger operation and dragging, with exchange prompt information displayed to indicate swap readiness and execute the swap upon satisfying exchange conditions.

Benefits of technology

Enables easy and efficient swapping of virtual item positions through intuitive drag-and-drop interactions, enhancing user experience and interaction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547650000002
    Figure 0007547650000002
  • Figure 0007547650000010
    Figure 0007547650000010
  • Figure 0007547650000003
    Figure 0007547650000003
Patent Text Reader

Abstract

A method, device, terminal and storage medium for displaying a virtual item are provided in the field of terminal technology. The method includes the steps of: displaying a virtual scene, in which a first virtual item and a second virtual item are displayed in the virtual scene (201); displaying exchange prompt information on the second virtual item in response to a first trigger operation on the first virtual item, the exchange prompt information indicating that the second virtual item is in an exchangeable state (202); and displaying the first virtual item at the original position of the second virtual item and displaying the second virtual item at the original position of the first virtual item (203) when the current position of the first virtual item and the current position of the second virtual item satisfy an exchange condition based on a drag operation on the first virtual item. According to the method, the position of the first virtual item can be exchanged with the position of the second virtual item by dragging the first virtual item, and the exchange of positions can be realized by simply dragging the virtual items, so that the operation is simple and convenient, and the efficiency of human-computer interaction is high.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to a Chinese patent application filed on August 3, 2021, bearing application number 202110886878.X and entitled "Method, device, terminal and storage medium for displaying virtual items," the entire contents of which are incorporated herein by reference.

[0002] FIELD OF THE DISCLOSURE The present invention relates to the field of terminal technology, and in particular to a method, device, terminal and storage medium for displaying a virtual item. [Background technology]

[0003] With the development of terminal technology, a terminal can install and run various types of game programs, such as shooting games, role-playing games, real-time strategy games, etc. Taking a shooting game as an example, a virtual object can be equipped with two virtual weapons in a virtual scene of a shooting game, and the two virtual weapons are displayed at different positions in the virtual scene. Summary of the Invention

[0004] An embodiment of the present invention provides a method, device, terminal, and storage medium for displaying a virtual item.

[0005] In one aspect, a method for displaying a virtual item, executed by a terminal, is provided, the method including: displaying a virtual scene, in which a first virtual item and a second virtual item are displayed in the virtual scene; displaying exchange prompt information on the second virtual item in response to a first trigger operation on the first virtual item, the exchange prompt information indicating that the second virtual item is in an exchangeable state; and displaying the first virtual item at an original position of the second virtual item and the second virtual item at an original position of the first virtual item when the first virtual item is dragged to a position that satisfies an exchange condition with the second virtual item based on a drag operation on the first virtual item.

[0006] In another aspect, a virtual item display device is provided, the device including: a first display module that displays a virtual scene, where a first virtual item and a second virtual item are displayed in the virtual scene; a second display module that displays exchange prompt information on the second virtual item in response to a first trigger operation on the first virtual item, where the exchange prompt information indicates that the second virtual item is in an exchangeable state; and an item exchange module that, based on a drag operation on the first virtual item, displays the first virtual item in an original position of the second virtual item and displays the second virtual item in an original position of the first virtual item when the first virtual item is dragged to a position that satisfies an exchange condition with the second virtual item.

[0007] In another aspect, a terminal is provided that includes a processor and a memory having stored therein at least one computer program, the at least one computer program being loaded and executed by the processor to implement a method for displaying a virtual item according to an embodiment of the present invention.

[0008] In another aspect, there is provided a computer readable storage medium having stored thereon at least one computer program, the at least one computer program being loaded and executed by a processor so as to realise a method for displaying a virtual item as claimed in any one of claims 1 to 10.

[0009] In another aspect, a computer program product is provided, the computer program product including a computer program code stored in a computer-readable storage medium, the computer program code being read by a processor of a terminal from the computer-readable storage medium and executed to cause the terminal to perform the above-mentioned method for displaying a virtual item.

[0010] According to the new virtual item display method of the embodiment of the present invention, when a first trigger operation is performed on a first virtual item, exchange prompt information is displayed on a second virtual item, thereby indicating that the position of the first virtual item and the position of the second virtual item can be swapped. Then, the position of the first virtual item and the position of the second virtual item can be swapped by dragging the first virtual item. Since the position swap can be realized by simply dragging the virtual items, the operation is simple and convenient, and the efficiency of human-computer interaction is high. [Brief description of the drawings]

[0011] [Figure 1] FIG. 2 is a schematic diagram of an example of an environment in which a method for displaying a virtual item according to an embodiment of the present invention is implemented. [Diagram 2] 4 is a flowchart of an example of a method for displaying a virtual item according to an embodiment of the present invention. [Diagram 3] 11 is a flowchart of another example of a method for displaying a virtual item according to an embodiment of the present invention. [Figure 4] FIG. 2 is a schematic diagram of an example of a virtual scene according to an embodiment of the present invention. [Diagram 5]4 is a schematic diagram of an example of exchange prompt information according to an embodiment of the present invention; [Figure 6] FIG. 2 is a schematic diagram of an example of dragging a first virtual item in accordance with an embodiment of the present invention. [Figure 7] FIG. 13 is a schematic diagram of another example of dragging a first virtual item according to an embodiment of the present invention. [Figure 8] FIG. 2 is a schematic diagram of an example of an exchange range according to an embodiment of the present invention. [Figure 9] 11 is a flowchart of another example of a method for displaying a virtual item according to an embodiment of the present invention. [Figure 10] FIG. 2 is a block diagram of an example of a display device for a virtual item according to an embodiment of the present invention. [Figure 11] FIG. 2 is a block diagram of another example of a virtual item display device according to an embodiment of the present invention. [Figure 12] FIG. 2 is a block diagram of an example of a configuration of a terminal according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] In order to make the objectives, technical means and advantages of the present invention clearer, the following describes the embodiments of the present invention in more detail with reference to the drawings.

[0013] In this specification, the terms "first" and "second" are used to distinguish between identical or similar items having substantially the same or similar actions and functions. Note that "first", "second", and "nth" do not have a logical or temporal dependency, and do not limit the number and execution order.

[0014] As used herein, the term "at least one" means one or more, and "plurality" means two or more.

[0015] The following describes terms used in this specification.

[0016] Virtual scene: a virtual scene displayed (or provided) when an application program is executed on a terminal. Preferably, the virtual scene may be a simulation environment for the real world, a semi-simulation and semi-fictional environment, or a purely fictional environment. Preferably, the virtual scene may be either a 2D virtual scene, a 2.5D virtual scene, or a 3D virtual scene, but the present invention is not limited to the dimension of the virtual scene. For example, the virtual scene may include the sky, land, sea, etc., the land may include environmental elements such as desert, city, etc., and the user may control the virtual object to move within the virtual scene.

[0017] Shooting Game (STG): A game in which a virtual object uses a shooting virtual item to perform remote interaction. The shooting game is a type of action game and has typical characteristics of action games. Preferably, the shooting game includes, but is not limited to, a first-person shooter game, a third-person shooter game, a top-view shooter game, a horizontal-view shooter game, a platform shooter game, a scroll-type shooter game, a key-mouse shooter game, a shooting arena game, etc., and the embodiment of the present invention is not specifically limited to the type of the shooting game. In a shooting game, a virtual object is equipped with one or more virtual weapons. For example, if a virtual object is equipped with two virtual weapons, the two weapons are divided into a main weapon and a sub weapon, where the main weapon and the sub weapon are for distinguishing the two virtual weapons.

[0018] Virtual object: refers to an object capable of movement in a virtual world. The capable object is at least one of a virtual character, a virtual animal, and a cartoon or animation character. Preferably, when the virtual world is a three-dimensional virtual world, the virtual object is a three-dimensional solid model. Each virtual object has its own shape and volume in the three-dimensional virtual world and occupies a part of space in the three-dimensional virtual world. Preferably, the virtual object is a three-dimensional object constructed based on three-dimensional human body skeletal animation technology, and the virtual object realizes different appearance images by wearing different skins. In some aspects, the virtual object is realized using a 2.5-dimensional or two-dimensional model, but the embodiment of the present invention is not limited thereto.

[0019] Virtual item: An item used by a virtual object, including a virtual gun, a virtual medicine, a virtual vehicle, a virtual throwable object, etc. In the embodiment of the present invention, a virtual item is a virtual gun as an example.

[0020] Pouch interface: an interface that displays virtual items owned by a virtual object. Preferably, the pouch interface is divided into two areas: a left area that displays virtual items equipped by the virtual object, and a right area that displays virtual items not equipped by the virtual object. A user can exchange the virtual items equipped by the virtual object by dragging, and can also exchange the positions of the equipped virtual items.

[0021] At present, a terminal can install and run various types of game programs, such as shooting games, role-playing games, real-time strategy games, etc. Taking a shooting game as an example, a virtual object can be equipped with two virtual weapons in a virtual scene of a shooting game, and the two virtual weapons are displayed at different positions in the virtual scene. When exchanging the display positions of the two virtual weapons, it is necessary to turn on the pouch interface and exchange the positions of the two virtual weapons in the pouch interface, so as to exchange the display positions of the two virtual weapons in the virtual scene. The above exchange method is complicated in operation, obscures the contents in the virtual scene, and has low efficiency of human-computer interaction.

[0022] In view of the above problems, an embodiment of the present invention provides a method for displaying a virtual item, which can be executed by a terminal. The following describes an implementation environment of the method for displaying a virtual item according to an embodiment of the present invention. FIG. 1 is a schematic diagram of an example of an implementation environment of the method for displaying a virtual item according to an embodiment of the present invention. As shown in FIG. 1, the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 can be directly or indirectly connected to each other through a wired or wireless communication method, but the present invention is not limited thereto.

[0023] In some embodiments, the terminal 101 is, but is not limited to, a smartphone, a tablet computer, a laptop computer, a desktop computer, etc. The terminal 101 installs and executes an application program supporting a virtual scene. The application is any one of a first-person shooter game (FPS), a third-person shooter game, a virtual reality application program, a three-dimensional map program, or a multiplayer survival game. For example, the terminal 101 is a terminal used by a user, and the user uses the terminal 101 to operate a virtual object located in a virtual scene to move. The movement includes, but is not limited to, at least one of adjusting a body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, and throwing. For example, the virtual object is a virtual character, such as a simulated character or an animated character. Preferably, the number of the above terminals may be a larger number or a smaller number. For example, the number of the above terminals may be one, or tens, or hundreds, or more. The embodiment of the present invention is not limited to the number of terminals and the type of device.

[0024] In some embodiments, the server 102 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server 102 is used to provide background services to application programs supporting virtual scenes. In some embodiments, the server 102 performs primary computing tasks, and the terminal 101 performs secondary computing tasks, or the server 102 performs secondary computing tasks, and the terminal 101 performs primary computing tasks, or the server 102 and the terminal 101 adopt a distributed computing architecture to perform collaborative computing.

[0025] 2 is a flowchart of an example of a method for displaying a virtual item according to an embodiment of the present invention. As shown in FIG. 2, the embodiment of the present invention takes an example of being executed by a terminal. The method for displaying a virtual item includes the following steps:

[0026] Step 201: A terminal displays a virtual scene, in which a first virtual item and a second virtual item are displayed.

[0027] In an embodiment of the present invention, the virtual scene includes a virtual object being controlled, and the first virtual item and the second virtual item are virtual weapons wielded by the virtual object being controlled.

[0028] Step 202: In response to a first trigger operation on the first virtual item, the terminal displays exchange prompt information on the second virtual item, where the exchange prompt information indicates that the second virtual item is in an exchangeable state.

[0029] In an embodiment of the present invention, a user can change a first virtual item into a draggable state by performing a first trigger operation on the first virtual item, and the terminal displays exchange prompt information on the second virtual item in response to the first trigger operation, so as to indicate to the user that the second virtual item can exchange positions with the first virtual item.

[0030] Step 203: Based on the drag operation on the first virtual item, if the current position of the first virtual item and the current position of the second virtual item satisfy an exchange condition, the terminal displays the first virtual item at the original position of the second virtual item, and displays the second virtual item at the original position of the first virtual item.

[0031] In other words, when the first virtual item is dragged to a position that satisfies an exchange condition with the second virtual item based on a drag operation on the first virtual item, the terminal displays the first virtual item at the original position of the second virtual item and displays the second virtual item at the original position of the first virtual item.

[0032] In an embodiment of the present invention, the terminal moves a position of a first virtual item based on a drag operation on the first virtual item, and then, when the first virtual item is moved to a position that satisfies an exchange condition, swaps the position of the first virtual item with the position of the second virtual item, i.e., displays the second virtual item at the original position of the first virtual item and displays the first virtual item at the original position of the second virtual item, where the original position is the position of the virtual item before being dragged.

[0033] According to the new virtual item display method of the embodiment of the present invention, when a first trigger operation is performed on a first virtual item, exchange prompt information is displayed on a second virtual item, thereby indicating that the position of the first virtual item and the position of the second virtual item can be swapped. Then, the position of the first virtual item and the position of the second virtual item can be swapped by dragging the first virtual item. Since the position swap can be realized by simply dragging the virtual items, the operation is simple and convenient, and the efficiency of human-computer interaction is high.

[0034] The above FIG. 2 shows the main flow of the method for displaying virtual items according to an embodiment of the present invention. The following describes the method for displaying virtual items in detail based on an application scenario. FIG. 3 is a flowchart of another example of the method for displaying virtual items according to an embodiment of the present invention. As shown in FIG. 3, the embodiment of the present invention takes the execution by a terminal as an example to describe the method for displaying virtual items, including the following steps:

[0035] Step 301: A terminal displays a virtual scene, in which a first virtual item and a second virtual item are displayed.

[0036] In the embodiment of the present invention, the virtual scene is a virtual scene of a shooting game. A controlled virtual object and a plurality of virtual items are displayed in the virtual scene. The plurality of virtual items are virtual items that are already equipped by the controlled virtual object or virtual items that can be used by the controlled virtual object. The plurality of virtual items include a first virtual item and a second virtual item. In the embodiment of the present invention, the first virtual item and the second virtual item are both virtual weapons equipped by the controlled virtual object.

[0037] In some embodiments, the first virtual item and the second virtual item are virtual items of the same type, for example, the first virtual item and the second virtual item are both shooting-type virtual items, or the first virtual item and the second virtual item are virtual items of different types, for example, the first virtual item is a shooting-type virtual item and the second virtual item is a throwing-type virtual item, embodiments of the present invention are not limited thereto.

[0038] For example, Figure 4 is a schematic diagram of an example virtual scene according to an embodiment of the present invention. As shown in Figure 4, a first virtual item 401 and a second virtual item 402 are displayed in the virtual scene. The first virtual item and the second virtual item are virtual weapons equipped by the virtual object being controlled.

[0039] In some embodiments, the second virtual item is a virtual item that is not equipped by the virtual object being controlled, for example, the second virtual item is a virtual weapon in the pouch of the virtual object being controlled, and although the second virtual item is displayed in the virtual scene to indicate the presence of a virtual weapon in the pouch, the user cannot directly use the second virtual item by triggering the second virtual item, but must equip the second virtual item to use the second virtual item.

[0040] The first virtual item and the second virtual item are used to distinguish between different virtual items, and in this embodiment of the present invention, the virtual item that is triggered by the following first trigger operation is defined as the first virtual item.

[0041] Step 302: In response to a first trigger operation on the first virtual item, the terminal displays exchange prompt information on the second virtual item, where the exchange prompt information indicates that the second virtual item is in an exchangeable state.

[0042] In an embodiment of the present invention, a user can trigger the first virtual item by a first trigger operation. In response to the first trigger operation on the first virtual item, the terminal displays the first virtual item as if it is floating, so as to indicate that the first virtual item is freely draggable. Preferably, the first trigger operation is a long press operation, a double click operation, or a slide operation, etc., but the embodiment of the present invention is not limited thereto. When the terminal detects the first trigger operation, it displays exchange prompt information on the second virtual item, thereby presenting to the user that the second virtual item is in an exchangeable state. Preferably, the exchange prompt information is displayed in the form of characters, still images, dynamic images, animations, dynamic effects, etc. Here, the long press operation is an operation in which the pressing time exceeds a period threshold, and the period threshold is any numerical value greater than 0.

[0043] For example, Fig. 5 is a schematic diagram of an example of exchange prompt information according to an embodiment of the present invention. As shown in Fig. 5, after a user long presses a first virtual item, the terminal sets the first virtual item to a highlighted state and displays exchange prompt information 501 on the second virtual item. The exchange prompt information 501 is a dynamic bidirectional arrow, that is, the exchange prompt information 501 is displayed in the form of a dynamic image on the second virtual item.

[0044] In some embodiments, since a plurality of virtual items are displayed in the virtual scene, positions can be exchanged between associated virtual items, but positions cannot be exchanged between unassociated virtual items. Thus, in response to a first trigger operation on a first virtual item, the terminal obtains configuration information. The configuration information indicates a second virtual item associated with the first virtual item. Then, the terminal displays the exchange prompt information on the second virtual item based on the configuration information. By obtaining the configuration information, the second virtual item associated with the first virtual item can be accurately determined based on the configuration information, so that the exchange prompt information corresponding to the second virtual item can be displayed and presented to the user, thereby improving the user's operation efficiency and improving the human-computer interaction efficiency.

[0045] In addition, the first virtual item can be associated with one or more virtual items, and when the multiple virtual items associated with the first virtual item are displayed in the virtual scene, the terminal displays exchange prompt information for each virtual item among the multiple virtual items, so as to present a virtual item that can exchange positions with the first virtual item.

[0046] In some embodiments, the terminal may determine whether the position of the second virtual item can be swapped before displaying swap prompt information for the second virtual item. If the current state of the second virtual item is position-swappable, the terminal displays forbidden prompt information for the second virtual item, where the forbidden prompt information indicates that the second virtual item is in a non-swappable state.

[0047] For example, if the second virtual item is not associated with the first virtual item, the second virtual item is damaged, the number of uses of the second virtual item has expired, or the charge capacity of the second virtual item is insufficient, the terminal determines that the position of the second virtual item cannot be exchanged, and displays a prohibited exchange image on the second virtual item to indicate that the position of the second virtual item cannot be exchanged.

[0048] Step 303: In response to the drag operation on the first virtual item, the terminal displays a placeholder frame, which indicates an original position of the first virtual item.

[0049] In an embodiment of the present invention, in response to a drag operation on the first virtual item, the terminal controls the first virtual item to move according to the drag operation. After the first virtual item is dragged away from its original position, the terminal may display a placeholder frame at the original position of the first virtual item. The placeholder frame can ensure the visual stability of the interface display, that is, after the first virtual item is dragged, the original position of the first virtual item becomes blank, which can avoid affecting the aesthetics of the interface and distracting the user.

[0050] For example, Figure 6 is a schematic diagram of an example of dragging a first virtual item according to an embodiment of the present invention. The terminal drags the first virtual item to the position shown in Figure 6(a) according to the drag operation, and displays a placeholder frame at the original position of the first virtual item.

[0051] It should be noted that step 303 is an optional step, that is, after performing step 302, the terminal may directly perform the following step 304.

[0052] Step 304: Based on the drag operation on the first virtual item, if the current position of the first virtual item and the current position of the second virtual item satisfy an exchange condition, the terminal displays the first virtual item at the original position of the second virtual item, and displays the second virtual item at the original position of the first virtual item.

[0053] In other words, when the first virtual item is dragged to a position that satisfies an exchange condition with the second virtual item based on a drag operation on the first virtual item, the terminal displays the first virtual item at the original position of the second virtual item and displays the second virtual item at the original position of the first virtual item.

[0054] In an embodiment of the present invention, based on a drag operation on a first virtual item, the terminal controls to move the first virtual item in accordance with the drag operation, and then, since the second virtual item has not moved, when the first virtual item is moved to a position that satisfies an exchange condition, the terminal may exchange the positions of the first virtual item and the second virtual item, so as to display the first virtual item at the original position of the second virtual item and display the second virtual item at the original position of the first virtual item.

[0055] For example, as shown in Fig. 6, the terminal drags the first virtual item to the position shown in Fig. 6(a) in response to a drag operation, and if the terminal determines that the position satisfies an exchange condition, adjusts the positions of the first virtual item and the second virtual item, and the positions of the first virtual item and the second virtual item after the adjustment are shown in Fig. 6(b).

[0056] In some embodiments, the terminal may determine whether the exchange condition is satisfied based on an overlap ratio between the first virtual item and the second virtual item. Since the first virtual item is moved by controlling the drag operation, the terminal determines a current position of the first virtual item based on the drag operation on the first virtual item, and determines an overlap ratio between the first virtual item and the second virtual item in real time based on the current position of the first virtual item and the current position of the second virtual item. Then, when the overlap ratio is greater than a ratio threshold, the terminal displays the first virtual item at an original position of the second virtual item and displays the second virtual item at an original position of the first virtual item in response to the end of the drag operation on the first virtual item. When the overlap ratio is equal to or less than the ratio threshold, the terminal restores the first virtual item to a position before the drag, i.e., to the original position of the first virtual item in response to the end of the drag operation on the first virtual item.

[0057] In some embodiments, the terminal may determine the overlap ratio after the drag operation is terminated. Thus, in response to the end of the drag operation on the first virtual item, the terminal determines an overlap ratio between the first virtual item and the second virtual item based on the current position of the first virtual item and the current position of the second virtual item. Then, if the overlap ratio is greater than a ratio threshold, the terminal displays the first virtual item at the original position of the second virtual item and displays the second virtual item at the original position of the first virtual item. If the overlap ratio is equal to or less than the ratio threshold, the terminal restores the first virtual item to its position before the drag, i.e., to the original position of the first virtual item.

[0058] Here, since the second virtual item has not moved, the current position of the second virtual item is the original position of the second virtual item. The overlap ratio is the ratio of the area of ​​the overlapping part between the first virtual item and the second virtual item to the total area of ​​the second virtual item. Preferably, the ratio threshold is a value between 0 and 1, for example, the ratio threshold is 0.5, 0.6, or 0.7, and the embodiment of the present invention is not limited thereto. The end of the drag operation means that the finger is released from the screen of the terminal.

[0059] For example, as shown in (a) of FIG. 6, a first virtual item may be dragged to a position where it overlaps with a second virtual item, and when the terminal detects that the drag operation is ended, it may determine an overlap ratio, and if the overlap ratio is greater than a ratio threshold, it may display the first virtual item at the original position of the second virtual item and display the second virtual item at the original position of the first virtual item.

[0060] In some embodiments, the terminal may determine an overlap ratio when detecting that the drag operation has stopped but not ended, and may exchange the position of the first virtual item with the position of the second virtual item when the drag operation has stopped and has not been dragged again and has ended. Thus, in response to the drag operation on the first virtual item being stopped, the terminal determines an overlap ratio between the first virtual item and the second virtual item based on the current position of the first virtual item and the current position of the second virtual item. In response to the end of the drag operation, if the overlap ratio is greater than an overlap threshold, the terminal displays the first virtual item at the original position of the second virtual item, and displays the second virtual item at the original position of the first virtual item. If the overlap ratio is equal to or less than a ratio threshold, the terminal restores the first virtual item to the position before the drag, i.e., restores the first virtual item to the original position of the first virtual item. Here, the drag operation being stopped means that the finger is not displaced on the screen of the terminal, and the finger is not lifted off the screen of the terminal.

[0061] In some embodiments, the terminal may determine an overlap ratio when detecting that the drag operation has stopped but not ended, and may exchange the position of the first virtual item with the position of the second virtual item when the drag operation has stopped but not been dragged again and the drag operation has ended. Thus, in response to the drag operation on the first virtual item being stopped, the terminal may determine an overlap ratio between the first virtual item and the second virtual item based on the current position of the first virtual item and the current position of the second virtual item. If the overlap ratio is greater than a ratio threshold, the second virtual item is displayed at the original position of the first virtual item, and in response to the end of the drag operation, the first virtual item is displayed at the original position of the second virtual item. If the overlap ratio is equal to or less than the ratio threshold, in response to the end of the drag operation, the terminal may restore the first virtual item to its position before the drag, i.e., restore the first virtual item to its original position. If the second virtual item is displayed at the original position of the first virtual item before the drag operation is completed, and the overlapping ratio between the first virtual item and the second virtual item is again detected to be greater than the ratio threshold, the second virtual item is restored to the original position of the second virtual item. By displaying the second virtual item at the original position of the first virtual item before the drag operation is completed, the user can immediately check whether the exchange is feasible and the effect after the exchange, and can exchange the virtual item again to restore it during the drag operation, thereby preventing erroneous exchange and improving the efficiency of human-computer interaction.

[0062] For example, FIG. 7 is a schematic diagram of another example of dragging a first virtual item according to an embodiment of the present invention. As shown in FIG. 7, the terminal drags the first virtual item to a position shown in FIG. 7(a) in response to a drag operation. If the terminal determines that the position satisfies an exchange condition, that is, if the overlapping ratio between the first virtual item and the second virtual item is greater than a ratio threshold, the terminal displays the second virtual item at the original position of the first virtual item as shown in FIG. 7(b), and keeps the current position of the first virtual item as it is. If the terminal detects a drag end operation, the terminal displays the first virtual item at the original position of the second virtual item as shown in FIG. 7(c).

[0063] The above process shows an aspect in which the position of the first virtual item and the position of the second virtual item are exchanged after the drag operation on the first virtual item is completed. In some embodiments, the terminal does not need to detect whether the drag operation is completed, and while the user is performing the drag operation, the terminal determines the current position of the first virtual item in real time, and determines the overlap ratio between the first virtual item and the second virtual item in real time based on the current position of the first virtual item and the current position of the second virtual item. If it is detected that the overlap ratio is greater than the ratio threshold, the terminal displays the first virtual item at the original position of the second virtual item and the second virtual item at the original position of the first virtual item. In this way, the first virtual item moves with the user's drag, and if the exchange condition is met, it automatically moves to the original position of the second virtual item, and the second virtual item also switches from its original position to the original position of the first virtual item, and thus the virtual items can be triggered to exchange positions without the user releasing their hands, which can improve the efficiency of human-computer interaction.

[0064] In some embodiments, a first item frame and a second item frame are displayed in the virtual scene, the first virtual item is displayed in the first item frame, and the second virtual item is displayed in the second item frame. The item frames can move to follow the virtual items. Thus, in response to a drag operation on the first virtual item, the terminal displays the first item frame to move with the first virtual item when the first virtual item is moved by controlling the drag operation. The terminal determines an overlapping ratio between the first item frame and the second item frame as an overlapping ratio between the first virtual item and the second virtual item based on a current position of the first virtual item and a current position of the second virtual item.

[0065] For example, the terminal may determine an overlapping area of ​​an overlapping portion between a first item frame and a second item frame, and determine the ratio of the overlapping area to the total area of ​​the second item frame as the overlapping ratio.

[0066] In some embodiments, the terminal may determine whether the exchange condition is met based on whether the first virtual item has moved into the exchange range of the second virtual item. Thus, the terminal determines the current position of the first virtual item based on the drag operation on the first virtual item, for example, the terminal determines the current position of the first virtual item in response to the end of the drag operation on the first virtual item. Then, when the current position of the first virtual item is in the exchange range of the second virtual item, the terminal displays the first virtual item at the original position of the second virtual item and displays the second virtual item at the original position of the first virtual item. The exchange range is determined based on the current position of the second virtual item. Preferably, the exchange range is a region around the second virtual item, and the embodiment of the present invention is not limited to the size of the exchange range.

[0067] For example, Fig. 8 is a schematic diagram of an example of an exchange range according to an embodiment of the present invention. As shown in Fig. 8, the exchange range is a rectangular area 801 around the second virtual item, and exchange prompt information is displayed in the rectangular area 801. It should be noted that the exchange range may be a circular area or may be an area with a larger area.

[0068] In order to make the display method of the virtual item described in the above steps 301 to 304 easier to understand, the method will be described with reference to FIG. 9. FIG. 9 is a flowchart of another example of the display method of the virtual item according to the embodiment of the present invention. As shown in FIG. 9, the display method of the virtual item includes the following steps. In step 901, the first weapon bar is long-pressed in response to the operation. In step 902, it is determined whether the long-pressing period is satisfied, and if the long-pressing period is satisfied, step 903 is executed. In step 903, the first weapon bar is displayed as if it is floating, and a dynamic effect of position exchange is displayed on the second weapon bar. In step 904, it is determined whether the overlapping area between the first weapon bar and the second weapon bar reaches a predetermined value, and if YES, step 905 is executed, and if not, step 906 is executed. In step 905, in response to the operation of releasing the hand, the first weapon bar is displayed in the original position of the second weapon bar, and the second weapon bar is displayed in the original position of the first weapon bar. In step 906, in response to a release, the first weapon bar is restored to its original position.

[0069] If the second virtual item is a virtual item that is not equipped by the controlled virtual object, that is, if the second virtual item is an item in the pouch of the controlled virtual object, the terminal may display the first virtual item at the original position of the second virtual item, and after displaying the second virtual item at the original position of the first virtual item, control the controlled virtual object to equip the second virtual item, and unequip the first virtual item. Thus, after the user turns on the pouch interface of the controlled virtual object, the first virtual item is displayed in the area where the unequipped virtual item is located, and the second virtual item is displayed in the area where the equipped virtual item is located.

[0070] Note that, although the above steps 301 to 304 are preferred aspects of the virtual item display method according to the embodiment of the present invention, the virtual item display method may be realized in other aspects. In some embodiments, the first virtual item and the second virtual item are displayed in an item display area in the virtual scene. When a second trigger operation is detected in the item display area, the terminal displays the first virtual item at an original position of the second virtual item, and displays the second virtual item at an original position of the first virtual item. Here, the second trigger operation includes a slide operation, a click operation, or a multi-finger operation.

[0071] For example, when the terminal detects a left-to-right sliding operation or a right-to-left sliding operation in the item display area, the terminal displays the first virtual item in the original position of the second virtual item and displays the second virtual item in the original position of the first virtual item.

[0072] Also, for example, when the terminal detects a click operation such as a double click operation or a triple click operation in the item display area, it displays the first virtual item in the original position of the second virtual item and displays the second virtual item in the original position of the first virtual item.

[0073] Also, for example, when the terminal detects a multi-finger operation such as a two-finger click operation, a two-finger slide operation, a three-finger click operation, or a three-finger slide operation in the item display area, the terminal displays the first virtual item in the original position of the second virtual item, and displays the second virtual item in the original position of the first virtual item.

[0074] In some embodiments, the virtual scene further displays an item exchange widget for exchanging the position of the first virtual item with the position of the second virtual item. In response to a trigger operation on the item exchange widget, the first virtual item is displayed at the original position of the second virtual item, and the second virtual item is displayed at the original position of the first virtual item. Note that the user can again exchange the positions of the first virtual item and the second virtual item by triggering the item exchange widget again, that is, in response to another trigger operation on the item exchange widget, the terminal may display the first virtual item at the original position of the first virtual item, and the second virtual item at the original position of the second virtual item.

[0075] According to the new virtual item display method of the embodiment of the present invention, when a first trigger operation is performed on a first virtual item, exchange prompt information is displayed on a second virtual item, thereby indicating that the position of the first virtual item and the position of the second virtual item can be swapped. Then, the position of the first virtual item and the position of the second virtual item can be swapped by dragging the first virtual item. Since the position swap can be realized by simply dragging the virtual items, the operation is simple and convenient, and the efficiency of human-computer interaction is high.

[0076] 10 is a block diagram of an example of a virtual item display device according to an embodiment of the present invention. The device is for performing the steps of the above-mentioned virtual item display method. As shown in FIG. 10, the device includes a first display module 1001, a second display module 1002, and an item exchange module 1003.

[0077] The first display module 1001 displays a virtual scene in which a first virtual item and a second virtual item are displayed.

[0078] The second display module 1002 displays exchange prompt information on the second virtual item in response to a first trigger operation on the first virtual item, the exchange prompt information indicating that the second virtual item is in an exchangeable state.

[0079] When the current position of the first virtual item and the current position of the second virtual item satisfy an exchange condition based on the drag operation on the first virtual item, the item exchange module 1003 displays the first virtual item at the original position of the second virtual item and displays the second virtual item at the original position of the first virtual item. In other words, when the first virtual item is dragged to a position that satisfies an exchange condition with the second virtual item based on the drag operation on the first virtual item, the item exchange module 1003 displays the first virtual item at the original position of the second virtual item and displays the second virtual item at the original position of the first virtual item.

[0080] In some embodiments, Figure 11 is a block diagram of another example of a display device for displaying virtual items according to an embodiment of the present invention. As shown in Figure 11, the item exchange module 1003 includes the following components:

[0081] The determination unit 10031 determines an overlap ratio between the first virtual item and the second virtual item based on a current position of the first virtual item and a current position of the second virtual item in response to the end of the drag operation on the first virtual item. In other words, the determination unit 10031 determines an overlap ratio between the first virtual item and the second virtual item based on the current position of the first virtual item and the current position of the second virtual item determined by the drag operation.

[0082] If the overlap ratio is greater than a ratio threshold, the exchange unit 10032 displays the first virtual item at an original position of the second virtual item and displays the second virtual item at an original position of the first virtual item.

[0083] In some embodiments, the first virtual item is displayed in a first item pane and the second virtual item is displayed in a second item pane. As shown in FIG. 11, the apparatus further includes the following modules:

[0084] A third display module 1004, in response to a drag operation on the first virtual item, displays the first item frame to move along with the first virtual item when the first virtual item is moved under the control of the drag operation.

[0085] The determination unit 10031 determines an overlap ratio between the first item frame and the second item frame as an overlap ratio between the first virtual item and the second virtual item based on a current position of the first virtual item and a current position of the second virtual item.

[0086] In some embodiments, the exchange unit 10032 restores the first virtual item to its original position before being dragged if the overlap percentage is less than or equal to the percentage threshold.

[0087] In some embodiments, as shown in FIG. 11, the item exchange module 1003 includes the following components:

[0088] The determination unit 10031 determines the current position of the first virtual item in response to the end of the drag operation on the first virtual item. In other words, the determination unit 10031 determines the current position of the first virtual item based on the drag operation on the first virtual item.

[0089] When the current position of the first virtual item is within the exchange range of the second virtual item, the exchange unit 10032 displays the first virtual item at the original position of the second virtual item and displays the second virtual item at the original position of the first virtual item. The exchange range is determined based on the current position of the second virtual item.

[0090] In some examples, the second display module 1002 retrieves configuration information in response to a first trigger operation on the first virtual item, the configuration information indicating the second virtual item associated with the first virtual item, and the second display module 1002 displays the replacement prompt information on the second virtual item based on the configuration information.

[0091] 11, the device further includes a fourth display module 1005. The fourth display module 1005 displays a placeholder frame in response to a drag operation on the first virtual item, the placeholder frame indicating an original location of the first virtual item.

[0092] In some embodiments, the first virtual item and the second virtual item are displayed in an item display area in the virtual scene, and the item exchange module 1003 displays the first virtual item at an original position of the second virtual item and displays the second virtual item at an original position of the first virtual item when a second trigger operation is detected in the item display area.

[0093] In some embodiments, the second trigger action includes a sliding action, a clicking action, or a multi-finger action.

[0094] In some embodiments, the virtual scene further displays an item exchange widget for exchanging a position of the first virtual item with a position of the second virtual item, and the item exchange module 1003 displays the first virtual item at an original position of the second virtual item and displays the second virtual item at an original position of the first virtual item in response to a trigger operation on the item exchange widget.

[0095] According to the virtual item display device of the embodiment of the present invention, when a first trigger operation is performed on a first virtual item, exchange prompt information is displayed on a second virtual item, thereby indicating that the position of the first virtual item and the position of the second virtual item can be swapped. Then, by dragging the first virtual item, the position of the first virtual item and the position of the second virtual item can be swapped. Since the position swap can be realized by simply dragging the virtual items, the operation is simple and convenient, and the efficiency of human-computer interaction is high.

[0096] Although the above-mentioned functional block divisions have been used to illustrate the display of virtual items by the virtual item display device according to the above-mentioned embodiment, in actual applications, the above-mentioned functions may be performed by different functional blocks as necessary, i.e., the internal structure of the device may be divided into different functional blocks to complete all or part of the above-mentioned functions. Furthermore, the virtual item display device according to the above-mentioned embodiment belongs to the same concept as the embodiment of the virtual item display method, and the specific implementation method thereof may refer to the details of the embodiment of the method, and the description thereof will be omitted here.

[0097] 12 is a block diagram of an example of a configuration of a terminal 1200 according to an embodiment of the present invention. Preferably, the terminal 1200 may be a portable mobile terminal, such as a smartphone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a notebook computer, or a desktop computer. The terminal 1200 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal, or other names.

[0098] Generally, the terminal 1200 includes a processor 1201 and a memory 1202 .

[0099] The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Preferably, the processor 1201 may include a main processor and a coprocessor. The main processor is a processor used to process data in an awake state, also referred to as a CPU (Central Processing Unit). The coprocessor is a low-power processor used to process data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit), which is used to render and draw content that needs to be displayed on a display. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor, which is used to process computational operations related to machine learning.

[0100] The memory 1202 may include one or more computer readable storage media, which may be non-transitory. The memory 1202 may further include high speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer readable storage medium in the memory 1202 is used to store at least one computer program, which is executed by the processor 1201 to implement a method for displaying a virtual item according to an embodiment of the present invention.

[0101] In some embodiments, the terminal 1200 may preferably further include a peripheral interface 1203 and at least one peripheral. The processor 1201, the memory 1202, and the peripheral interface 1203 are connected via a bus or signal lines. Each peripheral is connected to the peripheral interface 1203 via a bus, signal line, or circuit board. Preferably, the peripheral includes a display 1205.

[0102] The peripheral interface 1203 can be used to connect at least one peripheral associated with I / O (Input / Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, the memory 1202, and the peripheral interface 1203 are integrated on the same chip or circuit board. In some other embodiments, any one or two of the processor 1201, the memory 1202, and the peripheral interface 1203 are implemented on separate chips or circuit boards, and this embodiment is not limited thereto.

[0103] The display 1205 is used to display a user interface (UI). The UI includes graphics, text, icons, videos, and any combination thereof. If the display 1205 is a touch display, the display 1205 is further capable of collecting touch signals on or at the surface of the display 1205. The touch signals are input as control signals to the processor 1201 for processing. In this case, the display 1205 is further used to provide virtual buttons and / or virtual keyboards, i.e., soft buttons and / or soft keyboards. In some embodiments, the display 1205 is a single display disposed on the front panel of the terminal 1200. In another embodiment, the display 1205 is at least two displays disposed on different surfaces of the terminal 1200, respectively, or designed to fold. In another embodiment, the display 1205 is a flexible display disposed on a curved or folding surface of the terminal 1200. Furthermore, the display 1205 may be configured as a non-rectangular irregular shape, i.e., an irregular screen. The display 1205 is made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0104] In some embodiments, terminal 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 gyroscope sensor 1212, and a pressure sensor 1213.

[0105] The acceleration sensor 1211 detects the magnitude of acceleration in three coordinate axes of a coordinate system established by the terminal 1200. For example, the acceleration sensor 1211 is used to detect components of gravitational acceleration in three coordinate axes. The processor 1201 controls the display 1205 to display a user interface in a landscape view or a portrait view based on the gravitational acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 is also used to collect game or user movement data.

[0106] The gyroscope sensor 1212 is for detecting the body orientation and rotation angle of the terminal 1200, and in cooperation with the acceleration sensor 1211, the gyroscope sensor 1212 obtains the user's 3D motion with respect to the terminal 1200. Based on the data collected by the gyroscope sensor 1212, the processor 1201 realizes functions such as motion sensing (e.g., changing the UI according to the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0107] The pressure sensor 1213 is disposed on a side frame of the terminal 1200 and / or under the display 1205. When the pressure sensor 1213 is provided on the side frame of the terminal 1200, it detects a gripping signal of the user with respect to the terminal 1200, and the processor 1201 recognizes the left and right hands or performs a shortcut operation based on the gripping signal acquired by the pressure sensor 1213. When the pressure sensor 1213 is disposed under the display 1205, the processor 1201 operates in response to the pressure applied by the user to the display 1205, and controls an operability widget in the UI interface. The operability widget includes at least one of a button widget, a scroll bar widget, an icon widget, and a menu widget.

[0108] Those skilled in the art will appreciate that the structure of terminal 1200 is not limited to that shown in FIG. 12, but may include more or fewer components than those shown, combine some components, or employ a different arrangement of components.

[0109] In addition, the embodiment of the present invention further provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor of a terminal so as to realize the operation performed by the terminal in the method for displaying a virtual item of the above embodiment. For example, the computer-readable storage medium is a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a flexible disk, an optical data storage device, etc.

[0110] In some embodiments, the computer program according to the embodiment of the present invention is executed on one terminal, or on multiple terminals located at one location, or on multiple terminals located at multiple locations and connected to each other via a communication network. The multiple terminals located at multiple locations and connected to each other via a communication network constitute a blockchain system.

[0111] An embodiment of the present invention further provides a computer program product including a computer program code stored in a computer-readable storage medium, wherein a processor of a terminal reads the computer program code from the computer-readable storage medium and executes the computer program code to cause the terminal to perform the methods for displaying virtual items according to the various preferred embodiments described above.

[0112] Those skilled in the art will understand that all or part of the steps for implementing the above embodiments can be performed by hardware, or can be performed by associated hardware according to instructions of a program stored in a computer-readable storage medium.

[0113] The above only describes the exemplary embodiments of the present invention, and does not limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are included within the protection scope of the present invention.

Claims

1. A method for displaying a virtual item, executed by a terminal, comprising: displaying a virtual scene, the virtual scene displaying a first virtual item and a second virtual item; displaying exchange prompt information on the second virtual item in response to a first trigger operation on the first virtual item, the exchange prompt information indicating that the second virtual item is in an exchangeable state; and when the first virtual item is dragged to a position that satisfies an exchange condition with the second virtual item based on a drag operation on the first virtual item, displaying the first virtual item at an original position of the second virtual item and displaying the second virtual item at an original position of the first virtual item.

2. a step of displaying the first virtual item at an original position of the second virtual item and displaying the second virtual item at an original position of the first virtual item when the first virtual item is dragged to a position that satisfies an exchange condition with the second virtual item based on a drag operation on the first virtual item, determining an overlap ratio between the first virtual item and the second virtual item based on a current position of the first virtual item and a current position of the second virtual item determined by the drag operation; and if the overlap percentage is greater than a percentage threshold, displaying the first virtual item at an original position of the second virtual item and displaying the second virtual item at an original position of the first virtual item.

3. the first virtual item is displayed in a first item pane, and the second virtual item is displayed in a second item pane; The method comprises: and displaying the first item frame in response to a drag operation on the first virtual item so that the first item frame moves along with the first virtual item when the first virtual item is moved by controlling the drag operation, determining an overlap ratio between the first virtual item and the second virtual item based on a current position of the first virtual item and a current position of the second virtual item determined by the drag operation, 3. The method of claim 2, comprising: determining an overlap percentage between the first item frame and the second item frame as an overlap percentage between the first virtual item and the second virtual item based on a current position of the first virtual item and a current position of the second virtual item.

4. The method of claim 2 , further comprising: if the overlap percentage is less than or equal to the percentage threshold, restoring the first virtual item to its original position before being dragged.

5. a step of displaying the first virtual item at an original position of the second virtual item and displaying the second virtual item at an original position of the first virtual item when the first virtual item is dragged to a position that satisfies an exchange condition with the second virtual item based on a drag operation on the first virtual item, determining a current position of the first virtual item based on a drag operation on the first virtual item; 2. The method of claim 1, comprising: if a current position of the first virtual item is within an exchange range of the second virtual item, displaying the first virtual item at an original position of the second virtual item and displaying the second virtual item at an original position of the first virtual item, wherein the exchange range is determined based on the current position of the second virtual item.

6. The step of displaying exchange prompt information on the second virtual item in response to a first trigger operation on the first virtual item includes: obtaining configuration information in response to a first trigger operation on the first virtual item, the configuration information indicating the second virtual item associated with the first virtual item; and displaying the exchange prompt information for the second virtual item based on the configuration information.

7. 6. The method of claim 1, further comprising: in response to a drag operation on the first virtual item, displaying a placeholder frame, the placeholder frame indicating an original location of the first virtual item.

8. the first virtual item and the second virtual item are displayed in an item display area in the virtual scene; The method comprises:

6. The method of claim 1, further comprising: when a second trigger operation is detected in the item display area, displaying the first virtual item at an original position of the second virtual item and displaying the second virtual item at an original position of the first virtual item.

9. The method of claim 8 , wherein the second trigger operation includes a slide operation, a click operation, or a multi-finger operation.

10. an item exchange widget for exchanging a position of the first virtual item with a position of the second virtual item is further displayed in the virtual scene; The method comprises: The method of claim 1 , further comprising: displaying the first virtual item at an original position of the second virtual item and displaying the second virtual item at an original position of the first virtual item in response to a trigger operation on the item exchange widget.

11. A display device for a virtual item, comprising: a first display module for displaying a virtual scene, the first virtual item and a second virtual item being displayed in the virtual scene; a second display module configured to display exchange prompt information on the second virtual item in response to a first trigger operation on the first virtual item, the exchange prompt information indicating that the second virtual item is in an exchangeable state; and and an item exchange module that, when the first virtual item is dragged to a position that satisfies an exchange condition with the second virtual item based on a drag operation on the first virtual item, displays the first virtual item at an original position of the second virtual item and displays the second virtual item at an original position of the first virtual item.

12. A terminal comprising a processor and a memory having stored therein at least one computer program, the at least one computer program being loaded and executed by the processor to implement a method for displaying a virtual item according to any one of claims 1 to 5.

13. A computer program for causing a computer to execute the method for displaying a virtual item according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Virtual article processing method and device

    CN112023392A

  • Virtual weapon control method and device in game, electronic equipment and storage medium

    CN112138391A

  • Program, image synthesizing device and virtual society construction device

    JP2008217143A

  • Program for providing game, system, and method

    JP2017018565A

  • Equipment display method, apparatus, device, storage medium, and computer program for virtual environment battles

    JP2021514701A