WO2022257653A1 - Virtual prop display method and apparatus, electronic device and storage medium - Google Patents

Virtual prop display method and apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2022257653A1
WO2022257653A1 PCT/CN2022/090964 CN2022090964W WO2022257653A1 WO 2022257653 A1 WO2022257653 A1 WO 2022257653A1 CN 2022090964 W CN2022090964 W CN 2022090964W WO 2022257653 A1 WO2022257653 A1 WO 2022257653A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
target
sliding operation
item
terminal
Prior art date
Application number
PCT/CN2022/090964
Other languages
French (fr)
Chinese (zh)
Inventor
吴湉
柴若冰
钟俊雄
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to JP2023558624A priority Critical patent/JP2024512582A/en
Publication of WO2022257653A1 publication Critical patent/WO2022257653A1/en
Priority to US18/296,684 priority patent/US20230241501A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling 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/537Controlling 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 using indicators, e.g. showing the condition of a game character on screen
    • A63F13/5372Controlling 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 using indicators, e.g. showing the condition of a game character on screen for tagging characters, objects or locations in the game scene, e.g. displaying a circle under the character controlled by the player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • A63F13/426Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle involving on-screen location information, e.g. screen coordinates of an area at which the player is aiming with a light gun
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling 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/533Controlling 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/30Features 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/308Details of the user interface

Definitions

  • the present application relates to the field of computer technology, in particular to a display method, device, electronic equipment and storage medium for virtual props.
  • the terminal displays a virtual scene in the game application, and virtual objects and virtual props available for picking are displayed in the virtual scene. Since there are various types of virtual props, each virtual prop is usually displayed in a virtual prop list.
  • Embodiments of the present application provide a method, device, electronic equipment and storage medium for displaying virtual props.
  • a method for displaying virtual props comprising: displaying a list of virtual props in a virtual scene, the list of virtual props includes at least one interaction option for picking up virtual props; The sliding operation of the interactive option of the target virtual prop in the list, if the sliding operation meets the first target condition, the first target area is displayed in the virtual scene; the end point of the operation in response to the sliding operation is located at the first In the target area, the target virtual prop is displayed differently in the virtual scene.
  • a display device for virtual props comprising: a first display module, configured to display a list of virtual props in a virtual scene, the list of virtual props includes at least one interactive option of a pickable virtual prop;
  • the second display module is used to respond to the sliding operation on the interactive option of the target virtual prop in the virtual prop list, if the sliding operation meets the first target condition, display the first target area in the virtual scene;
  • the second A display module configured to display the target virtual prop differently in the virtual scene in response to the operation end point of the sliding operation being located in the first target area.
  • an electronic device includes one or more processors and one or more memories, at least one computer program is stored in the one or more memories, and the at least one computer program is executed by the one or more Multiple processors are loaded and executed to realize the above-mentioned method for displaying virtual props.
  • a storage medium is provided, and at least one computer program is stored in the storage medium, and the at least one computer program is loaded and executed by a processor to realize the above-mentioned method for displaying virtual props.
  • a computer program product or computer program comprising one or more pieces of program code stored in a computer-readable storage medium.
  • One or more processors of the electronic device can read the one or more program codes from the computer-readable storage medium, and the one or more processors execute the one or more program codes, so that the electronic device can Execute the above method for displaying virtual props.
  • the technical solution provided by the embodiment of the present application provides a new type of human-computer interaction method for marking virtual items.
  • the first target area is displayed, and
  • the user drags the interaction option to the first target area it is deemed that the target virtual item has been marked, and the target virtual item is displayed differently, compared to adding a mark on the right side of the interaction option of each virtual item in the list of virtual items.
  • buttons because this solution needs to drag the interactive option to the first target area to complete the marking, which greatly reduces the false touch rate of user operation, and the operation method is simple and convenient, so it can improve the efficiency of human-computer interaction .
  • FIG. 1 is a schematic diagram of an implementation environment of a method for displaying virtual props provided by an embodiment of the present application
  • FIG. 2 is a flow chart of a method for displaying virtual props provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a sliding operation provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a drag-and-drop interaction option provided by an embodiment of the present application.
  • Fig. 5 is a flow chart of a method for displaying virtual props provided by an embodiment of the present application.
  • Fig. 6 is a schematic diagram of an interface of a first target area provided by an embodiment of the present application.
  • Fig. 7 is a schematic diagram of an interface for distinguishing and displaying target virtual props provided by the embodiment of the present application.
  • FIG. 8 is a schematic diagram of an interface in the field of view of a friendly virtual object provided by an embodiment of the present application.
  • Fig. 9 is a schematic diagram of an interface of a second target area provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of a method for displaying virtual props provided by an embodiment of the present application.
  • Fig. 11 is a schematic diagram of a horizontal sliding operation provided by an embodiment of the present application.
  • Fig. 12 is a schematic diagram showing multiple target areas provided by an embodiment of the present application.
  • Fig. 13 is a schematic structural diagram of a display device for virtual props provided by an embodiment of the present application.
  • Fig. 14 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • first and second are used to distinguish the same or similar items with basically the same function and function. It should be understood that “first”, “second” and “nth” There are no logical or timing dependencies, nor are there restrictions on quantity or order of execution.
  • the term "at least one" means one or more, and the meaning of "multiple” means two or more.
  • a plurality of virtual objects means two or more virtual objects.
  • the terminal displays a virtual scene in the game application, and virtual objects and virtual props available for picking are displayed in the virtual scene. Since there are various types of virtual props, each virtual prop is usually displayed in a virtual prop list.
  • each virtual item will be provided Mark button, the user finds the virtual item that needs to be marked in the list of virtual items, and clicks the mark button provided on the right side of the virtual item to mark the virtual item.
  • the overall human-computer interaction method has a high rate of false touch. The complexity is high and the convenience is poor, so the efficiency of human-computer interaction is low.
  • Virtual scene it is a virtual scene displayed (or provided) when the application program is running on the terminal.
  • the virtual scene is a simulation environment of the real world, or a half-simulation and half-fictional virtual environment, or a purely fictitious virtual environment.
  • the virtual scene is any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene, and this embodiment of the present application does not limit the dimensions of the virtual scene.
  • the virtual scene includes sky, land, ocean, etc.
  • the land includes environmental elements such as deserts and cities, and the user can control virtual objects to move in the virtual scene.
  • the virtual scene is also used for virtual scene confrontation between at least two virtual objects, and there are virtual resources available for the at least two virtual objects in the virtual scene.
  • Virtual object refers to the movable object in the virtual scene.
  • the movable object is a virtual character, virtual animal, virtual elf, animation character, etc., such as: characters, animals, plants, oil barrels, walls, stones, etc. displayed in the virtual scene.
  • the virtual object is a virtual avatar representing the user in the virtual scene.
  • multiple virtual objects are included in the virtual scene, each virtual object has its own shape and volume in the virtual scene, and occupies a part of space in the virtual scene.
  • the virtual object is a three-dimensional model
  • the three-dimensional model is a three-dimensional character based on three-dimensional human skeleton technology.
  • the same virtual object can display different skins by wearing different skins. external image.
  • the virtual object is implemented using a 2.5-dimensional or 2-dimensional model, and the embodiment of the present application does not limit the model dimension of the virtual object.
  • the virtual object is a player character controlled through operations on the client, or a non-player character (Non-Player Character, NPC) set in a virtual scene.
  • the virtual object is a virtual character competing in a virtual scene.
  • the number of virtual objects participating in the interaction in the virtual scene is preset, or dynamically determined according to the number of clients participating in the interaction.
  • MOBA Multiplayer Online Battle Arena
  • It is a game that provides several strongholds in a virtual scene, and users in different camps control virtual objects to fight in the virtual scene, occupy strongholds or destroy strongholds of different camps .
  • users are divided into at least two camps, and different virtual teams belonging to at least two camps occupy their respective map areas, and the virtual objects controlled by users are scattered in the virtual scene to compete with each other to destroy or occupy all of the opponent's stronghold as a victory condition.
  • Shooter Game refers to a type of game in which virtual objects use virtual props such as hot weapons for long-range attacks.
  • Shooter games are a type of action games with obvious characteristics of action games.
  • shooting games include but are not limited to first-person shooting games, third-person shooting games, top-down shooting games, head-up shooting games, platform shooting games, scrolling shooting games, light gun shooting games, keyboard and mouse shooting games, and shooting range games etc., the embodiment of the present application does not specifically limit the type of shooting games.
  • First-person shooting game (First-Person Shooting game, FPS): It refers to the shooting game played by the user from the first-person perspective.
  • the virtual scene screen in the FPS game is a screen to observe the virtual scene from the perspective of the virtual object controlled by the terminal.
  • at least two virtual objects are in a single-game confrontation mode in the virtual scene, and the virtual objects achieve the goal of surviving in the virtual scene by avoiding the attacks launched by other virtual objects and the dangers (such as swamps) in the virtual scene.
  • the competition mode of the game includes a single-player confrontation mode, a two-person team confrontation mode, or a multiplayer large-group confrontation mode, etc., and the embodiment of the present application does not specifically limit the competition mode.
  • the user can control the virtual object to freely fall, glide, or open a parachute to fall in the sky of the virtual scene, and can also control the virtual object to run, jump, crawl, bend forward, etc. on land.
  • the virtual object swims, floats, or dives in the ocean.
  • the user can also control the virtual object to move in the virtual scene on a virtual vehicle.
  • the virtual vehicle includes a virtual car, a virtual aircraft, and a virtual yacht.
  • the user can also control the virtual object to interact with other virtual objects through virtual props, the virtual props include: throwing props that can only take effect after throwing, shooting props that launch certain projectiles by aiming and shooting, Cold weapon props for close combat.
  • the method for displaying virtual items provided by the embodiments of the present application can be applied to the virtual item markings of MOBA games, can also be applied to the virtual item markings of FPS games, and can also be applied to the virtual item markings of games combining MOBA and FPS, or It is applicable to other types of game applications that provide virtual props that can be picked up, and this embodiment of the present application does not specifically limit it.
  • FIG. 1 is a schematic diagram of an implementation environment of a method for displaying virtual props provided by an embodiment of the present application.
  • the implementation environment includes: a first terminal 120 , a server 140 and a second terminal 160 .
  • the first terminal 120 is installed and runs an application program supporting a virtual scene.
  • the application program includes any one of MOBA games, FPS games, third-person shooter games, virtual reality applications, three-dimensional map programs or multiplayer survival games.
  • the first terminal 120 is a terminal used by the first user.
  • the user interface of the application is displayed on the screen of the first terminal 120, and based on the first user's The opening operation in the interface, the virtual scene is loaded and displayed in the application program, the first user uses the first terminal 120 to operate the first virtual object located in the virtual scene to perform activities, the activities include but not limited to: adjusting body posture, crawling, At least one of walking, running, riding, jumping, driving, picking up, shooting, throwing.
  • the first virtual object is a first virtual character, such as a simulated character or an anime character.
  • the first terminal 120 and the second terminal 160 communicate directly or indirectly with the server 140 through wired or wireless communication.
  • the server 140 includes at least one of a server, multiple servers, a cloud computing platform, or a virtualization center.
  • the server 140 is used to provide background services for applications supporting virtual scenes.
  • the server 140 undertakes the main calculation work, and the first terminal 120 and the second terminal 160 undertake the secondary calculation work; or, the server 140 undertakes the secondary calculation work, and the first terminal 120 and the second terminal 160 undertake the main calculation work;
  • the server 140, the first terminal 120, and the second terminal 160 use a distributed computing architecture to perform collaborative computing.
  • the server 140 is an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication Cloud servers for basic cloud computing services such as middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN) and big data and artificial intelligence platforms.
  • cloud services such as middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN) and big data and artificial intelligence platforms.
  • CDN Content Delivery Network
  • the second terminal 160 is installed and runs an application program supporting a virtual scene.
  • the application program includes any one of FPS games, third-person shooter games, MOBA games, virtual reality application programs, three-dimensional map programs or multiplayer survival games.
  • the second terminal 160 is a terminal used by the second user.
  • the user interface of the application is displayed on the screen of the second terminal 160, and based on the second user's The opening operation in the interface, the virtual scene is loaded and displayed in the application program, and the second user uses the second terminal 160 to operate the second virtual object located in the virtual scene to perform activities, such activities include but not limited to: adjusting body posture, crawling, At least one of walking, running, riding, jumping, driving, picking up, shooting, throwing.
  • the second virtual object is a second virtual character, such as a simulated character or an anime character.
  • the first virtual object controlled by the first terminal 120 and the second virtual object controlled by the second terminal 160 are in the same virtual scene, and at this time, the first virtual object can interact with the second virtual object in the virtual scene.
  • the first virtual object and the second virtual object are in a confrontational relationship, for example, the first virtual object and the second virtual object belong to different teams or camps, and the virtual objects in the confrontational relationship can be on land Fight each other by shooting each other, such as shooting shooting props at each other.
  • the first virtual object and the second virtual object are in a friendly relationship, for example, the first virtual character and the second virtual character belong to the same camp, the same team, have friendship or have temporary communication authority.
  • the application programs installed on the first terminal 120 and the second terminal 160 are the same, or the application programs installed on the two terminals are the same type of application programs on different operating system platforms.
  • the first terminal 120 or the second terminal 160 generally refers to one of multiple terminals, and this embodiment only uses the first terminal 120 and the second terminal 160 as an example for illustration.
  • the device types of the first terminal 120 and the second terminal 160 are the same or different, and the device types include: at least one of a smart phone, a tablet computer, a smart speaker, a smart watch, a laptop computer, and a desktop computer, but not limited to this.
  • the first terminal 120 and the second terminal 160 are smart phones, or other handheld portable game devices. The following embodiments are described by taking a terminal including a smart phone as an example.
  • the number of the above terminals can be more or less. For example, there is only one terminal, or there are dozens or hundreds of terminals, or more.
  • the embodiment of the present application does not limit the number of terminals and device types.
  • Fig. 2 is a flow chart of a method for displaying virtual props provided by an embodiment of the present application. Referring to FIG. 2, this embodiment is executed by an electronic device. The following takes the electronic device as an example for description.
  • the terminal is the first terminal 120 or the second terminal 160 shown in FIG. 1, and this embodiment includes the following steps:
  • the terminal displays a list of virtual props in a virtual scene, where the list of virtual props includes at least one interactive option of a virtual prop that can be picked up.
  • the terminal is an electronic device used by any user, for example, the terminal is a smart phone, a smart handheld, a portable game device, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.
  • the virtual props refer to the virtual resources that can be picked up by the controlled virtual objects in the virtual scene, for example, the virtual props are virtual weapons, virtual items, virtual armor, virtual ammunition, virtual accessories, etc.
  • the type is not specifically limited.
  • the controlled virtual object refers to the virtual object controlled by the user using the terminal in the virtual scene, that is, refers to the virtual object associated with the terminal.
  • the interaction option refers to the list item used to uniquely identify the virtual item in the virtual item list. For example, each column in the virtual item list is presented as an interaction option that can be interacted with the user, and each interaction option is associated with a virtual item. Props maintain a one-to-one correspondence.
  • the interactive options present different interactive functions according to different types of interactive operations performed by the user on the interactive options, and the embodiments of the present application do not specifically limit the types of interactive functions that the interactive options can provide.
  • the interaction option of virtual props when the user clicks on the interaction option of any virtual item, the floating window is triggered to display the detailed introduction of the virtual item; when the user double-clicks the interaction option of any virtual item, the controlled virtual object is triggered to pick up the virtual item;
  • the interaction option of virtual props is slid vertically, it triggers the display of the collapsed virtual props in the virtual props list, for example, when sliding up, the virtual props folded up are displayed, and when sliding down, the virtual props folded down are displayed, that is, vertical sliding can browse the entire All virtual props in the virtual props list; when the user presses the interactive option of any virtual prop and slides horizontally, the interactive option can be dragged out of the virtual props list, and different functions can be realized when dragging to different areas, for example , when the interactive option
  • the terminal starts the application program in response to the user's start operation on the application program, and the application program is any application program supporting virtual scenes.
  • the start operation is that the user touches the icon of the application on the desktop of the terminal, or the user inputs an instruction to start the application to the intelligent voice assistant, and the start instruction includes a voice instruction or a text instruction.
  • the application program is a game application, for example, the game application is a MOBA game, MMORPG (Massive Multiplayer Online Role-Playing Game, massively multiplayer online role-playing game) game, FPS game, third-person shooting game, virtual reality Any one of application programs, three-dimensional map programs, or multiplayer survival games.
  • the application program is a game-like embedded program (commonly known as a "game applet") in other applications.
  • the type of the application is not specifically limited.
  • the terminal when the user sets the automatic start condition for the application, the terminal automatically starts the application by the terminal operating system when it detects that the automatic start condition of the application is met.
  • the automatic start condition is The application program is started periodically, for example, the application program is started at 8 o'clock every night, or the automatic start condition is automatic start after power-on, and the embodiment of the present application does not specifically limit the automatic start condition of the application program.
  • the terminal starts an application program, and displays a deployment configuration interface in the application program, which includes account setting controls, competition mode selection controls, virtual object selection controls, and virtual scenes (commonly known as "scenes"). Map" selection controls and opening options, etc.
  • the user sets the control based on the account and selects the game account to be logged in in the application, which can be logged in through the account password, or by binding the registered account in other applications, so that the registered account can be used in the game application.
  • Authorized login after the login is complete, you can also exit the login state through the logout operation.
  • the user selects the competition mode to participate in based on the selection control of the competition mode.
  • the competition mode includes 2V2, 3V3, 5V5, etc.
  • the embodiment of the present application does not specifically limit the competition mode.
  • the user selects the controlled virtual object to play in this game.
  • the virtual object to be controlled it is necessary to select from the virtual objects that the user has opened (that is, has the right to use), and some virtual objects that the user has not yet opened (that is, does not have the right to use) cannot be selected
  • the charged virtual object used by this Bureau the user can temporarily have the right to use some virtual objects, so that the user can experience the gameplay and feel of some virtual objects. However, if you have the temporary right to use the virtual object, you can still select the virtual object as the controlled virtual object used by the Bureau.
  • the user selects the virtual scene to be loaded in the current game (that is, selects a scene map of the current game).
  • user-defined selection of virtual scenes is supported in some competitive modes, and user-defined selection of virtual scenes may not be supported in some competitive modes.
  • only the virtual scenes bound to the selected competitive mode can be loaded , or the server randomly selects a virtual scene from multiple virtual scenes bound to the competitive mode as the virtual scene loaded in the local game.
  • the embodiment of the present application does not specifically limit whether the virtual scene can be independently selected.
  • the selection operations taken by the user include but are not limited to: click operations, long press operations, double-click operations, voice commands, based on For the trigger operation of the shortcut key, etc., the embodiment of the present application does not limit the type of the selection operation.
  • the terminal is triggered to start the current game by triggering the start option, and the terminal loads the virtual scene of the current game.
  • the virtual scene is displayed, and the virtual objects controlled by the terminals of the users participating in the current game are all displayed in the virtual scene.
  • the virtual object controlled by the terminal in the virtual scene is called a controlled virtual object, and the virtual object belonging to the same camp or team as the controlled virtual object is called a friendly virtual object.
  • Avatars that belong to different camps or teams are called non-friendly avatars.
  • the user can control the controlled virtual object to perform the following activities in the virtual scene: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, fighting, etc.
  • at least one prop model of a virtual prop that can be picked up is also displayed in the virtual scene (2D model if it is a 2D virtual scene, or 3D model if it is a 3D virtual scene), and the terminal controls the controlled virtual prop
  • the distance threshold is any value greater than or equal to 0.
  • the list of virtual items when displaying the list of virtual items, is displayed in the form of a pop-up window or a floating layer.
  • the distance between the virtual object and the controlled virtual object is less than the distance threshold and can be picked up, and the corresponding interaction options are displayed for each virtual prop in the virtual props list, for example, the virtual props in the virtual props list
  • Each list item is offered as an interactive option for a virtual item.
  • each interaction option displays at least one item of the corresponding virtual item's item name, item image, item level, item description information, or item quantity.
  • the terminal responds to a sliding operation of an interaction option of a target virtual item in the virtual item list, and if the sliding operation meets a first target condition, displays a first target area in the virtual scene.
  • the target virtual item refers to any virtual item displayed in the virtual item list, and the embodiment of the present application does not limit which virtual item the target virtual item is.
  • the terminal when the terminal detects the user's sliding operation on the interaction option of the target virtual prop, if the sliding operation meets the first target condition, the first target area is displayed in the virtual scene.
  • the terminal detects whether the user's finger touches the terminal screen through the contact sensor of the terminal screen. If the user's finger touches the terminal screen, the contact sensor is called to determine the screen coordinates of the touch point. If the screen of the touch point The coordinates are located in the area covered by the interactive option of the target virtual prop on the terminal screen, and it is determined that a touch operation on the interactive option of the target virtual prop is detected. In the case where the touch point of the touch point has a displacement over time, it is determined that a sliding operation on the interactive option of the target virtual prop is detected.
  • the duration threshold is any value greater than 0.
  • the first target condition is set based on the type of the sliding operation, for example, the first target condition includes that the sliding operation is a horizontal sliding operation, in other words, when the sliding operation is a horizontal sliding operation, it represents The sliding operation conforms to the first target condition, and the operation of displaying the first target area in the virtual scene is performed.
  • the terminal responds to the horizontal sliding operation of the interactive option of the target virtual prop, in the virtual scene The first target area is displayed.
  • the horizontal sliding operation triggers the display of the first target area.
  • the vertical sliding operation triggers the browsing of the entire virtual item list to be collapsed. For example, slide up to view the virtual items before the first virtual item in the current virtual item list, and slide down to view the virtual items after the last virtual item in the current list of virtual items.
  • the terminal when determining whether the sliding operation is a horizontal sliding operation, determines the sliding direction of the sliding operation, and when the angle between the sliding direction of the sliding operation and the horizontal direction is within the target angle range, It is determined that the sliding operation is a horizontal sliding operation.
  • the target angle range is [- ⁇ , ⁇ ], where ⁇ is an empirical value set by the technician based on experience, or, because different users have different finger widths, the terminal collects multiple sliding operations of the user As well as the final desired operation result, different values of ⁇ are finally configured for different users.
  • can be modified or updated by the server on the cloud, and the embodiment of the present application does not specifically limit the value of ⁇ .
  • the terminal when determining the sliding direction of the sliding operation, determines the operation starting point of the sliding operation (that is, the initial touch point), and then determines the touch point of the user's finger at the current moment (that is, the latest touch point), A ray is determined by two touch points (the ray takes the initial touch point as the endpoint and extends to the direction indicated by the latest touch point). The direction indicated by this ray is also the sliding direction of the sliding operation, so that the sliding direction can be simplified determination process.
  • the terminal when determining the sliding direction of the sliding operation, determines the sliding track of the sliding operation, and determines the tangent direction of the touch point (that is, the latest touch point) of the user's finger on the sliding track at the current moment as
  • the sliding direction of the sliding operation can determine a more accurate sliding direction when the user slides along a curve, and the embodiment of the present application does not specifically limit the manner of obtaining the sliding direction.
  • the angle between the sliding direction and the horizontal direction is determined. It should be noted that the included angle in this embodiment of the application refers to the sliding direction and the horizontal direction An included angle less than or equal to 90 degrees, not another supplementary angle greater than 90 degrees.
  • the included angle after determining the angle value of the included angle, it is judged whether the included angle is greater than or equal to the minimum value (ie the lower limit) of the target angle range and less than or equal to the maximum value (ie the upper limit) of the target angle range , if the angle is greater than or equal to the minimum value of the target angle range and less than or equal to the maximum value of the target angle range, it is determined that the angle is within the target angle range, that is, the sliding operation is a horizontal sliding operation, otherwise , if the included angle is smaller than the minimum value of the target angle range, or the included angle is larger than the maximum value of the target angle range, then it is determined that the included angle is not within the target angle range, and the sliding operation is not a horizontal sliding operation.
  • the horizontal sliding operation is also specifically divided into left sliding operation and right sliding operation.
  • the first target condition is that the sliding operation is a right sliding operation, that is, only when the user slides the interaction option of the target virtual prop to the right, the display of the first target area will be triggered; or, the first target condition If the sliding operation is a left sliding operation, that is, only when the user slides the interaction option of the target virtual prop to the left, the display of the first target area will be triggered; or, the first target condition is that the sliding operation is a left sliding operation or a right The sliding operation, that is, whether the user slides to the left or right to the interaction option of the target virtual item, will trigger the display of the first target area, and the embodiment of the present application does not specifically limit the content of the first target condition.
  • the horizontal sliding operation when determining whether the horizontal sliding operation is a left sliding operation or a right sliding operation, it is determined according to the positional relationship between the latest touch point and the original touch point, on the premise that the sliding operation is determined to be a horizontal sliding operation , if the initial touch point is on the left side of the latest touch point, then it is determined as a right swipe operation, and if the initial touch point is on the right side of the latest touch point, then it is determined as a left swipe operation.
  • the screen coordinates of the two touch points can be obtained respectively, and the screen coordinates of the two touch points can be determined according to the size relationship of the abscissa Make a judgment, and the size relationship needs to be determined according to the origin position of the screen coordinate system and the positive direction of the horizontal axis, so I won’t go into details here.
  • Fig. 3 is a schematic diagram of a sliding operation provided by the embodiment of the present application.
  • the first target condition is that the sliding operation is a right
  • the area division of the sliding operation the shaded part 302 on the right shows the area division of the vertical sliding operation (and the left sliding operation).
  • the sliding operation is determined to be a right sliding operation That is, the sliding operation meets the first target condition and triggers the display of the first target area.
  • the interaction option 310 may present the effect of being dragged by the user's finger. Otherwise, when the sliding direction of the sliding operation triggered by the user's finger is within the angle range shown by the shaded part 302, in other words, when the user's finger drags from the touch point 300 to the shaded part 302, it is determined to trigger the function of sliding to browse the list of virtual items, At this time, the interaction option 310 will not appear to be dragged by the user's finger.
  • the first target area when the sliding operation meets the first target condition, when the terminal displays the first target area, the first target area is displayed on the right side of the virtual props list in the virtual scene. That is to say, the first target area is located on the right side of the virtual item list.
  • the first target area is a rectangular area, and the height of the rectangular area is the same as the height of the virtual item list, which can achieve a relatively neat Beautiful visuals.
  • the first target area can also be a circular area, a diamond-shaped area, an irregular area, etc. The embodiment of the present application does not specifically limit the shape of the first target area.
  • the first target area is located on the left side of the list of virtual items, or above the list of virtual items, or below the list of virtual items, or anywhere in the virtual scene (for example, above Edge, side edge, center, etc.), the embodiment of the present application does not specifically limit the position of the first target area.
  • the display position of the first target area has a corresponding relationship with the operation type of the sliding operation indicated by the first target condition. For example, when the first target condition is that the sliding operation is a left sliding operation, the first target area It is located on the left side of the virtual item list, or when the first target condition is that the sliding operation is a right sliding operation, the first target area is located on the right side of the virtual item list, which can reduce the complexity of user operations. After sliding in a direction and triggering a specified type of sliding operation, you can continue to slide in this direction and slide naturally into the first target area, which is convenient for users to quickly drag and drop interactive options to the first target area, improving the efficiency of human-computer interaction.
  • the display position of the first target area does not correspond to the operation type of the sliding operation indicated by the first target condition.
  • the first target condition is that the sliding operation is a left sliding operation
  • the first target The area is located on the right side of the virtual item list, so that even if the user accidentally swipe left on the interaction option due to a mistaken operation, then the virtual item needs to be dragged around the virtual item list to the first target area on the right to complete the marking of the virtual item Therefore, as long as you let go as soon as possible, you can give up marking the target virtual item, further reducing the probability of false touch.
  • the process of the user performing a sliding operation on the interactive option is a process of pressing and holding the interactive option and then continuing to move
  • the terminal is "dragged" out of the virtual item list by the user's finger by presenting the interactive option, and follows Moving along the sliding track of the user's finger can achieve more intuitive and interesting visual effects and improve the efficiency of human-computer interaction.
  • the terminal responds to the sliding operation of the interactive option of the target virtual prop, in the virtual scene, the interactive option displayed on the target virtual prop moves along with the sliding track of the sliding operation;
  • the interaction option displaying the target virtual item returns to the operation start point of the sliding operation.
  • the terminal determines the relative position of the starting point of the sliding operation in the entire interactive option, and during the movement process of displaying the interactive option, the display of the entire interactive option takes the starting point of the operation as the starting point and proceeds along the sliding track. Panning, during the panning process, ensure that the relative position of the touch point of the sliding operation and the entire interaction option remains unchanged at each moment.
  • the display interactive option when the interactive option reaches the operation end point of the sliding operation, the display interactive option teleports back to the operation start point, which can save the processing resources of the terminal, or, the display interaction option gradually moves from the operation end point to the operation start point During the moving process, it can prevent the interactive option from abruptly returning to the starting point of the operation to achieve better visual effects, or play the animation (or special effects, dynamic effects, etc.) that the interactive option flies back to the starting point of the operation, which can optimize the display effect of the terminal , Rich display methods.
  • the animation played is that the interactive option flies back to the starting point of the operation after a small shake, making the entire sliding process more interesting.
  • Fig. 4 is a schematic diagram of a dragging interaction option provided by the embodiment of the present application. It is illustrated by taking the first target condition as the sliding operation as the right sliding operation as an example. As shown on the left side of Fig. 4, when the sliding When the operation is a right-swipe operation, that is, when the user’s finger starts to drag the interactive option 310 from the touch point 300 to the shaded part 301, it means that the sliding operation is a right-sliding operation, that is, the sliding operation meets the first target condition, and triggers the right-hand function in the virtual item list.
  • the first target area 320 is displayed on the side, and the height of the first target area 320 is equal to the height of the virtual item list.
  • the terminal screen will present the visual effect as shown on the right side of FIG. That is to say, the display interaction option 310 moves along with the sliding track of the sliding operation.
  • the terminal responds to the operation end point of the sliding operation being located in the first target area, and distinguishably displays the target virtual prop in the virtual scene.
  • the terminal continues to detect the touch operation of the user's finger on the terminal screen through the touch sensor until the user releases the hand, that is, when the touch sensor no longer detects the touch operation, the touch point when the user releases the hand is used as the end point of the operation.
  • the end point also represents the end point of the sliding track of the sliding operation.
  • the terminal determines the screen coordinates of the end point of the operation, and detects whether the screen coordinates of the end point of the operation are within the first target area. The screen at the end point of the operation If the coordinates are within the first target area, execute the step of distinguishing the target virtual props; if the screen coordinates of the operation end point are not within the first target area, exit the procedure.
  • the terminal displays the target virtual item differently, which refers to: displaying the interactive options of the target virtual item in a display manner different from other virtual items in the list of virtual items, that is, displaying the interactive options of the target virtual item in the list of virtual items. or, in the virtual scene, display the prop model of the target virtual prop in a display manner different from that of other virtual props, that is, in the virtual scene, carry out the prop model of the target virtual prop itself.
  • the interactive options are displayed differently in the list of virtual props, and the prop models are displayed differently in the virtual scene.
  • the embodiment of the present application does not specifically limit the manner of distinguishing display.
  • the terminal displays interactive options of the target virtual item in the list of virtual items in a differentiated manner.
  • the controlled virtual object or its friendly virtual object can clearly see which items are controlled by itself through the virtual item list when picking up items.
  • marked by team members in the case of marking virtual props with strong auxiliary functions or attack functions, it is convenient for self-confrontation and team cooperation, and improves the efficiency of human-computer interaction.
  • the terminal changes the color of the interaction option so that the color of the interaction option is different from the colors of other interaction options.
  • each interaction option in the original virtual item list has a black background.
  • the options are modified to a white background or a colored background (such as a red background, a green background, etc.), and this embodiment of the present application does not specifically limit the colors of the interactive options.
  • the terminal modifies the transparency of the interaction option, so that the transparency of the interaction option is greater than that of other interaction options, so that the interaction option can be highlighted in the virtual item list, for example, each interaction option in the original virtual item list Transparency is 50%, and the transparency of the interactive option is changed to 100% (or 80%, 90%, etc.) when performing differential display.
  • This embodiment of the present application does not specifically limit the transparency of the interactive option.
  • the terminal displays a target icon on the interaction option, and the target icon is used to indicate that the target virtual prop has been specially marked, and the target icon can be in any form, for example, the target icon is a green circular icon
  • the target icon can also be set in other colors or shapes, and this embodiment of the present application does not specifically limit the display manner of the target icon.
  • the terminal displays the target icon at any position of the interactive option, for example, displays the target icon in the upper right corner of the interactive option, or displays the target icon in the upper left corner of the interactive option. The display position of the icon is specifically limited.
  • the terminal highlights the edge of the interactive option, so that the edge of the interactive option has a luminous effect, so as to highlight the interactive option in the list of virtual props, presenting a "hooked edge” effect on the interactive option.
  • "Special Effects" visual effect for example, highlight the edge of the interactive option in blue, so that the edge of the interactive option has a blue light effect.
  • the terminal can also play a marker animation on this interactive option, or display a text prompt message on this interactive option "has been used by XXX (nickname of the accused virtual object) mark", etc., this embodiment of the present application does not specifically limit the distinguishing display methods of the interaction options.
  • the terminal displays a marker graphic on the prop model of the target virtual prop displayed in the virtual scene. Since the list of virtual props is only a menu bar for convenient overview of each virtual prop, the prop model of each virtual prop will also be displayed in the virtual scene. Optionally, the 2D prop model will be displayed in the 2D virtual scene, and the For the 3D prop model, the embodiment of the present application does not specifically limit the dimensions of the virtual scene or the prop model.
  • the embodiment of the present application does not specifically limit the dimensions of the virtual scene or the prop model.
  • After marking the target virtual prop through the sliding operation in addition to distinguishing the interactive options of the target virtual prop in the virtual prop list, it is also possible to distinguish the prop model of the target virtual prop in the virtual scene, so that The display effect of the marked target virtual props is more intuitive. Whether viewing the virtual props list or viewing the props model, you can quickly notice the marked target virtual props, which is convenient for deciding how to use the target virtual props to fight against the interactive strategy, which improves the Human-computer interaction efficiency.
  • the marking graphic is used to indicate that the target virtual prop has been specially marked
  • the marking graphic is any form of graphics
  • the marking graphic is a circular buoy
  • the target virtual prop is displayed in the center of the circular buoy
  • the mark graphic can also be provided in other display forms, such as a red buoy set in the shape of an exclamation mark, etc., and the embodiment of the present application does not specifically limit the display mode of the mark figure.
  • the terminal displays the marker graphic around the prop model of the target virtual prop, for example, displays the marker graphic at a preset height above the prop model of the target virtual prop, and the preset height is any value greater than or equal to 0, or the terminal displays the marker graphic at any position around the prop model, for example, displayed on the center, left side, right side, bottom, etc. of the prop model, the embodiment of the present application does not The location is specifically limited.
  • some prompt information is displayed around the mark graphic, the prompt information includes but not limited to: the prop name of the target virtual prop, the nickname of the controlled virtual object that marks the target virtual prop, the target virtual For the current distance between the prop and the controlled virtual object, etc., the embodiment of the present application does not specifically limit the prompt information displayed around the marking pattern.
  • the marker graphic is only displayed on the terminal marked with the target virtual prop, so that the marker graphic displayed on the prop model can be seen within the field of view of the controlled virtual object.
  • this marker graphic is also displayed It can be synchronized to each terminal corresponding to the friendly virtual object belonging to the same faction or team as the controlled virtual object through the server, so that the terminal corresponding to the friendly virtual object can also display the mark on the prop model of the target virtual prop Graphics, in other words, the marker graphics displayed on the prop model can also be seen within the field of view of the friendly virtual object.
  • the marker graphic is visible in the field of view of both the controlled virtual object and the friendly virtual object, and the friendly virtual object is in the same team or the same camp as the controlled virtual object.
  • the terminal when performing information synchronization, when the operation end point of the sliding operation is located within the first target area, the terminal sends an item marking instruction to the server, and the item marking instruction carries at least the item identification of the target virtual item ( Identification, ID) and the object ID of the controlled virtual object.
  • the prop marking instruction can also carry the end time of the sliding operation, etc.
  • the server After the server receives the item marking instruction, it sends the item marking instruction to the terminal corresponding to each friendly virtual object of the controlled virtual object, and after the terminal corresponding to the friendly virtual object receives the item identification instruction, it also In the virtual scene, the target virtual prop is displayed differently, and the way of different display is similar to that of the terminal, so it will not be repeated here.
  • the terminal displays marking prompt information in the virtual scene, and the marking prompt information is used to prompt the controlled virtual object to mark the target virtual prop, which can bring more benefits to the user who manipulates the controlled virtual object.
  • the marking prompt information is "the controlled virtual object marks the target virtual item", or has other prompt content, and this embodiment of the present application does not specifically limit the text content of the marking prompt information.
  • the marker prompt information can also be synchronized to each terminal corresponding to the friendly virtual object through the server, that is to say , the marked prompt information is visible in the field of view of the controlled virtual object and the friendly virtual object, and the friendly virtual object and the controlled virtual object are in the same team or camp.
  • the synchronization method of marking prompt information is similar to the synchronization method of marking graphics, which will not be repeated here.
  • the method provided in the embodiment of the present application provides a new type of human-computer interaction method for marking virtual items.
  • the first target area is displayed, and
  • the user drags the interaction option to the first target area it is deemed that the target virtual item has been marked, and the target virtual item is displayed differently, compared to adding a mark on the right side of the interaction option of each virtual item in the list of virtual items.
  • buttons because this solution needs to drag the interactive option to the first target area to complete the marking, which greatly reduces the false touch rate of user operation, and the operation method is simple and convenient, so it can improve the efficiency of human-computer interaction .
  • Fig. 5 is a flowchart of a method for displaying virtual props provided by an embodiment of the present application. Referring to FIG. 5, this embodiment is executed by an electronic device. The following takes the electronic device as an example for description.
  • the terminal is the first terminal 120 or the second terminal 160 shown in FIG. 1. This embodiment includes the following steps:
  • the terminal displays a list of virtual props in a virtual scene, where the list of virtual props includes at least one interactive option of a virtual prop that can be picked up.
  • the foregoing step 501 is similar to the foregoing step 201, and details are not repeated here.
  • the terminal responds to the user's sliding operation on the interaction option of the target virtual item in the virtual item list, and if the sliding operation meets the first target condition, display the first target area in the virtual scene.
  • the foregoing step 502 is similar to the foregoing step 202, and details are not described here.
  • the terminal displays the interactive option of the target virtual item to move along with the sliding track of the sliding operation.
  • the terminal determines the relative position of the starting point of the sliding operation in the entire interactive option, and during the movement process of displaying the interactive option, the display of the entire interactive option takes the starting point of the operation as the starting point and proceeds along the sliding track. Panning, during the panning process, it can ensure that the relative position of the touch point of the sliding operation and the entire interaction option remains unchanged at each moment.
  • the terminal displays that the interaction option of the target virtual item returns to the operation start point of the sliding operation.
  • the terminal continues to detect the touch operation of the user's finger on the terminal screen through the touch sensor until the user releases the hand, that is, when the touch sensor no longer detects the touch operation, the touch point when the user releases the hand is used as the end point of the operation.
  • the end point also represents the end point of the sliding track of the sliding operation.
  • the interactive option when the interactive option reaches the end point of the sliding operation, it is displayed that the interactive option has teleported back to the starting point of the operation, which can save processing resources of the terminal, or play an animation of the interactive option flying back to the starting point of the operation (or special effects, dynamic effects, etc.), which can optimize the display effect of the terminal and enrich the display methods.
  • the animation played is that the interactive option flies back to the starting point of the operation after a small shake, making the whole sliding process more interesting.
  • the terminal responds to the sliding operation where the operation end point is located in the first target area, and displays the target virtual prop differently in the virtual scene.
  • the above-mentioned step 505 is similar to the above-mentioned step 203, and details are not repeated here.
  • Fig. 6 is a schematic diagram of the interface of a first target area provided by the embodiment of the present application.
  • a list of virtual props 601 is displayed in the virtual scene 600.
  • the terminal displays the first target area 603 in the virtual scene 600, and when the user drags the interaction option 602 into the first target area 603, that is, when the operation end point is located in the first target area 603, the terminal is triggered to select the target area 603.
  • the virtual props are displayed differently.
  • the terminal displays marking prompt information in the virtual scene, where the marking prompt information is used to prompt the controlled virtual object to mark the target virtual prop.
  • the marking prompt information is "the controlled virtual object marks the target virtual item", or has other prompt content, and this embodiment of the present application does not specifically limit the text content of the marking prompt information.
  • the terminal displays the marker prompt information at any position in the virtual scene, for example, displays the marker prompt information on the left side of the small map control in the virtual scene, or displays the marker prompt information at the center of the virtual scene, or , to display the marker prompt information above the virtual item list, or to display the marker prompt information above the item model of the target virtual item.
  • the marker prompt information is no longer displayed after the marker prompt information reaches the display time threshold, and the display
  • the time threshold is any value greater than 0, such as 3 seconds, 5 seconds, etc., so as to avoid long-term blockage of the visual field of the controlled virtual object by the marked prompt information, and further optimize the user on the basis of providing interactive feedback on sliding operations experience.
  • the marker prompt information is scrolled and displayed in a manner similar to a scrolling subtitle, for example, after the marker prompt information is displayed on the left side of the mini-map control, an upward scrolling animation of the marker prompt information is played until The mark prompt information exits the terminal screen, making the fade-out effect of the mark prompt information more interesting and the visual effect smoother.
  • the mark prompt information is only displayed on the terminal corresponding to the controlled virtual object marked with the target virtual prop, so that the mark graphic displayed on the prop model can be seen within the field of view of the controlled virtual object.
  • this marking prompt information can also be synchronized to each terminal corresponding to the friendly virtual object belonging to the same camp or team as the controlled virtual object through the server, so that the terminal corresponding to the friendly virtual object can also display
  • the mark prompt information that is, the mark prompt information can also be seen within the field of vision of the friendly virtual object.
  • the marked prompt information is visible within the field of view of the controlled virtual object and the friendly virtual object, and the friendly virtual object and the controlled virtual object are in the same team or camp.
  • the terminal when performing information synchronization, when the operation end point of the sliding operation is located within the first target area, the terminal sends an item marking instruction to the server, and the item marking instruction carries at least the item identification of the target virtual item ( Identification, ID) and the object ID of the controlled virtual object.
  • the prop marking instruction can also carry the end time of the sliding operation, etc.
  • the server After the server receives the item marking instruction, it sends the item marking instruction to the terminal corresponding to each friendly virtual object of the controlled virtual object, and after the terminal corresponding to the friendly virtual object receives the item identification instruction, it also The target virtual prop is displayed differently in the virtual scene, and corresponding marking prompt information is generated, and the marking prompt information is displayed in the virtual scene.
  • Fig. 7 is a schematic diagram of an interface for distinguishing and displaying target virtual props provided by the embodiment of the present application.
  • a list of virtual props 701 is displayed in a virtual scene 700.
  • the terminal After arriving in the first target area, the terminal will display the target virtual item differently.
  • a target icon 711 is displayed on the interaction option 702.
  • the target icon 711 is used to indicate that the target virtual item has been specially marked.
  • a mark graphic 712 is displayed on the prop model 710 of the target virtual prop, and the current distance between the target virtual prop and the controlled virtual object is displayed as "1m (1 meter)" on the right side of the mark figure 712 .
  • marking prompt information 713 is displayed on the left side of the mini-map control, and the marking prompt information 713 can remind the controlled virtual object to mark the target virtual prop in text form.
  • the target icon 711, the marker graphic 712 and the marker prompt information 713 are all visible to the user and teammates.
  • FIG. 8 is a schematic diagram of an interface in the field of view of a friendly virtual object provided by an embodiment of the present application, as shown in FIG. 8 , showing the virtual scene under the field of view of the friendly virtual object.
  • the virtual scene 800 displays marking prompt information 810, reminding that the controlled virtual object has made a special mark on the target virtual prop, and a mark graphic 820 is also displayed on the prop model of the target virtual prop, As shown in Figure 8, even if the prop model of the target virtual prop is blocked by the wall, the location of the target virtual prop can be clearly located through the marking graphic 820, achieving a more intuitive display effect and facilitating friendly virtual objects in the virtual world. Search and pick up the target virtual props in the scene, which improves the efficiency of human-computer interaction.
  • the terminal responds to the sliding operation on the interactive option of the target virtual prop that is displayed differently, and if the sliding operation meets the second target condition, display the second target area in the virtual scene.
  • the second target condition is the same as the first target condition, so that the marking operation and unmarking operation of the virtual prop adopt the same operation mode, or the second target condition is different from the first target condition, so that the virtual prop
  • the marking operation and unmarking operation of props adopt different operation modes, and this embodiment of the present application does not specifically limit whether the second target condition is the same as the first target condition.
  • the second target condition is the same as the first target condition for illustration.
  • the first target condition includes that the sliding operation is a horizontal sliding operation
  • the second target condition also includes that the sliding operation is a horizontal sliding operation.
  • the target virtual item has been marked, if the user performs a horizontal sliding operation on the interaction option of the target virtual item again, it means that the sliding operation on the interaction option meets the second target condition, and the operation of displaying the second target area is performed. It should be noted that the manner of judging whether the sliding operation is a horizontal sliding operation is similar to the above-mentioned step 202 and will not be repeated here.
  • the horizontal sliding operation is also specifically divided into left sliding operation and right sliding operation.
  • the first target condition is that the sliding operation is a right-swiping operation
  • the second target condition is that the sliding operation is a left-swiping operation, thereby providing a human-computer interaction mode of "right swipe to mark, left swipe to cancel”.
  • both the first target condition and the second target condition are that the sliding operation is a right sliding operation, thereby providing a human-computer interaction manner of "swipe right to mark, slide right again to cancel".
  • the second target condition is that the sliding operation is a right-swiping operation, thereby providing a human-computer interaction mode of "left swipe to mark, right swipe to cancel".
  • both the first target condition and the second target condition are that the sliding operation is a left sliding operation, so as to provide a human-computer interaction mode of "swipe left to mark, slide left again to cancel", which is not specifically limited in this embodiment of the present application . It should be noted that the manner of judging whether the horizontal sliding operation is a left sliding operation or a right sliding operation is similar to the above-mentioned step 202, and will not be repeated here.
  • the combination of the two can create a variety of human-computer interaction methods.
  • the server configuration default human-computer interaction methods there are also It can provide customized human-computer interaction mode to the terminal, so that users can configure personalized human-computer interaction mode according to their own operating habits.
  • the terminal when the sliding operation meets the second target condition, when displaying the second target area, displays the second target area on the right side of the virtual item list. That is to say, the second target area is located on the right side of the virtual item list, optionally, the second target area has the same size and position as the first target area, but has a different color, or, the second target area
  • the second target area and the first target area have different sizes, positions, and colors, which are not specifically limited in this embodiment of the present application.
  • the second target area is a rectangular area, and the height of the rectangular area is the same as the height of the virtual props list, so that a relatively tidy and beautiful visual effect can be achieved.
  • the second target area can also be a circular area, a diamond-shaped area, an irregular area, etc., and the embodiment of the present application does not specifically limit the shape of the second target area.
  • the second target area in addition to being located on the right side of the virtual item list, can also be located on the left side of the virtual item list, or located above the virtual item list, or located below the virtual item list, or , located at any position in the virtual scene (eg, upper edge, side edge, center, etc.), the embodiment of the present application does not specifically limit the position of the second target area.
  • the display position of the second target area has a corresponding relationship with the operation type of the sliding operation indicated by the second target condition. For example, when the second target condition is that the sliding operation is a left sliding operation, the second target area The second target area is located on the left side of the virtual item list, or when the second target condition is that the sliding operation is a right sliding operation, the second target area is located on the right side of the virtual item list, which can reduce the complexity of user operations. After sliding in one direction and triggering a specified type of sliding operation, you can continue to slide in this direction and slide naturally into the second target area, which is convenient for users to quickly drag the interaction options to the second target area, improving the efficiency of human-computer interaction.
  • the display position of the second target area does not correspond to the operation type of the sliding operation indicated by the second target condition.
  • the second target condition is that the sliding operation is a left sliding operation
  • the second target The area is located on the right side of the virtual item list, so that even if the user accidentally swipe left on the interaction option due to a mistaken operation, then when unmarking the virtual item, it needs to go around the list of virtual items and drag it to the first place on the right.
  • Fig. 9 is a schematic diagram of the interface of a second target area provided by the embodiment of the present application.
  • a list of virtual props 901 is displayed in the virtual scene 900, and the user has completed the operation of marking the target virtual props , therefore, a target icon 911 is displayed on the interactive option 902 of the target virtual item, a marker graphic 912 is displayed on the item model 910 of the target virtual item, and marker prompt information 913 is also displayed on the left side of the mini-map control.
  • the terminal will display the second target area 920, and the user drags the interactive option 902 to the second target area 920, that is, when the operation end point of the sliding operation is located in the second target area 920, the differentiated display of the target virtual prop will be canceled in the virtual scene, that is, the display of the target icon 911, mark Graphics 912 and marker hints 913 .
  • the terminal responds that the operation end point of the sliding operation is located in the second target area, and cancels the differentiated display of the target virtual prop in the virtual scene.
  • the terminal cancels the differential display of the target virtual item it means that the terminal no longer performs differential display of the target virtual item, that is, restores the target virtual item from a different display mode from other virtual items to a Other virtual props are displayed in the same way.
  • the interactive options of the target virtual item are displayed in a differentiated manner in the virtual item list, then after canceling the marking, the distinction of the interactive options of the target virtual item in the virtual item list is cancelled. display, so that the virtual scene can be restored to the display mode before the target virtual prop is marked.
  • the prop model of the target virtual prop is displayed differently in the virtual scene, for example, a mark graphic is displayed on the prop model of the target virtual prop, then after the mark is canceled, the The display of the marking graphic on the prop model of the virtual prop is canceled, so that the virtual scene can be restored to the display mode before the target virtual prop is marked.
  • the marked prompt information is displayed in the virtual scene, if the marked prompt information is still displayed in the virtual scene when the mark is canceled, then after the mark is canceled, it will be canceled in the virtual scene.
  • the prompt information is marked, so that the virtual scene can be restored to the display mode before the target virtual prop is marked.
  • the method provided in the embodiment of the present application provides a new type of human-computer interaction method for marking virtual items.
  • the first target area is displayed, and
  • the user drags the interaction option to the first target area it is deemed that the target virtual item has been marked, and the target virtual item is displayed differently, compared to adding a mark on the right side of the interaction option of each virtual item in the list of virtual items.
  • buttons because this solution needs to drag the interactive option to the first target area to complete the marking, which greatly reduces the false touch rate of user operation, and the operation method is simple and convenient, so it can improve the efficiency of human-computer interaction .
  • Fig. 10 is a schematic flowchart of a method for displaying virtual items provided by an embodiment of the present application.
  • the virtual item is taken as an example for illustration.
  • the list of virtual items is also a list of virtual items. This embodiment comprises the steps:
  • Step 1 The user presses and slides a virtual item in the virtual item list with a finger.
  • Step 2 The terminal divides the sliding area according to the preset ⁇ value.
  • Step 3 The terminal judges whether the user's finger slides to the horizontal sliding area or to the vertical sliding area. If sliding to the horizontal sliding area, perform steps 4 to 6. If sliding to the vertical sliding area, perform steps 7 to 8.
  • Step 4 The terminal judges that it is a horizontal sliding operation, and triggers the dragging of the virtual item icon (that is, the interactive option).
  • Step 5 The user drags the icon to the marked area (ie the first target area) and lets go.
  • Step 6 completing the marking of the virtual item.
  • Step 7 the terminal determines that it is a vertical sliding operation.
  • Step 8 the terminal triggers the function of browsing virtual items in the sliding virtual item list.
  • the first target condition includes that the sliding operation is a right sliding operation, or, in other embodiments, the first target condition includes that the sliding operation is a horizontal sliding operation, that is, whether it is a left sliding operation or a right sliding operation , can trigger the display of the first target area to prompt the user to continue dragging the interaction option to the first target area to complete the marking of the target virtual item.
  • FIG. 11 is a schematic diagram of a horizontal sliding operation provided by an embodiment of the present application. As shown in 1100, it shows the area division of the horizontal sliding operation on both sides. Since the horizontal sliding operation includes left sliding operation and right sliding operation There are two types, the left shaded part 1101 is the area division of the left swipe operation, and the right shaded part 1102 is the area division of the right swipe operation.
  • the item marking function can be triggered by both sides of the horizontal sliding operation, that is, as long as the user’s finger triggers the horizontal sliding operation, no matter the A left swipe operation to slide to the left shadow part 1101, or a right swipe operation to slide horizontally to the right shadow part 1102, can both trigger the display of the first target area to prompt the user to continue dragging the interactive option to the first target area, and the completion A marker for the target avatar.
  • multiple different target areas are displayed, and different target areas are used to provide different interactive functions.
  • the user drags the interactive options to different The target area can realize the interactive function corresponding to this target area, which greatly improves the scalability of this operation mode, and has higher usability and a wide range of application scenarios.
  • Fig. 12 is a schematic diagram showing multiple target areas provided by the embodiment of the present application.
  • the target virtual prop is the target virtual item as an example for illustration.
  • five different target areas are displayed, including a marked area 1201 (ie, the first target area), an immediate use area 1202, an instrument A installation area 1203, an instrument B installation area 1204, and a delivery area 1205. These five different target areas can respectively realize five different interactive functions.
  • the marking area 1201 is used to mark the target virtual item, and the user drags the icon 1210 of the target virtual item to the marking area 1201, which can trigger the completion of marking the target virtual item;
  • the immediate use area 1202 is used to immediately use the target virtual item, and the user drags Drag the icon 1210 of the target virtual item to the immediate use area 1202, which can trigger the immediate use of the target virtual item;
  • the device A installation area 1203 is used to install the target virtual item of accessories on the device A, and the user drags the icon 1210 of the target virtual item Go to the device A installation area 1203, which can trigger the installation of the target virtual item of the accessory class on the device A;
  • the device B installation area 1204 is used to install the target virtual item of the accessory class on the device B, and the user drags the icon of the target virtual item 1210 to the equipment B installation area 1204, which can trigger the installation of the target virtual item of the accessory type on the equipment B;
  • the transmission area 1205 is used to transmit the target virtual item to the location of a specific team
  • Fig. 13 is a schematic structural diagram of a display device for a virtual prop provided by an embodiment of the present application. As shown in Fig. 13, the device includes:
  • the first display module 1301 is used to display a list of virtual props in the virtual scene, and the list of virtual props includes at least one interactive option for picking up virtual props;
  • the second display module 1302 is configured to display the first target area when the sliding operation meets the first target condition in response to the sliding operation of the interaction option of the target virtual item in the virtual item list;
  • the third display module 1303 is configured to distinguishably display the target virtual item when the operation end point of the sliding operation is within the first target area.
  • the device provided in the embodiment of the present application provides a new type of human-computer interaction method for marking virtual items.
  • the first target area is displayed, and
  • the user drags the interaction option to the first target area it is deemed that the target virtual item has been marked, and the target virtual item is displayed differently, compared to adding a mark on the right side of the interaction option of each virtual item in the list of virtual items.
  • buttons because this solution needs to drag the interactive option to the first target area to complete the marking, which greatly reduces the false touch rate of user operation, and the operation method is simple and convenient, so it can improve the efficiency of human-computer interaction .
  • the first target condition includes: the sliding operation is a horizontal sliding operation.
  • the device further includes: a determination module, configured to determine if the angle between the sliding direction of the sliding operation and the horizontal direction is within the target angle range
  • the sliding operation is a horizontal sliding operation.
  • the second display module 1302 is configured to: display the first target area on the right side of the virtual item list.
  • the third display module 1303 is configured to: in the virtual item list, display interactive options of the target virtual item in a differentiated manner.
  • the third display module 1303 is configured to: display a mark graphic on the prop model of the target virtual prop.
  • the marker graphic is visible in the field of view of both the controlled virtual object and the friendly virtual object, and the friendly virtual object is in the same team or the same camp as the controlled virtual object.
  • the device further includes: a fourth display module, configured to display marking prompt information, and the marking prompt information is used to prompt the controlled virtual object to mark the target virtual prop .
  • the marking prompt information is visible in the field of view of the controlled virtual object and the friendly virtual object, and the friendly virtual object is in the same team or the same camp as the controlled virtual object.
  • the second display module 1302 is further configured to: in response to a sliding operation on the interactive option of the target virtual prop that is displayed differently, if the sliding operation meets the second target condition, display the first Two target areas; the third display module 1303 is also used for: canceling the differential display of the target virtual item when the operation end point of the sliding operation is within the second target area.
  • the device further includes: a fifth display module, configured to display the interaction options of the target virtual move along the sliding track of the sliding operation; the fifth display module is also used to display the interactive options of the target virtual item back to the The operation start point for the swipe operation.
  • the virtual item display device provided by the above embodiment displays the virtual item, it only uses the division of the above-mentioned functional modules as an example. In practical applications, the above-mentioned functions can be assigned to different functional modules according to needs. Completion means that the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above.
  • the virtual item display device and the virtual item display method embodiment provided by the above embodiment belong to the same concept, and its specific implementation process is detailed in the virtual item display method embodiment, which will not be repeated here.
  • FIG. 14 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • the electronic device is taken as a terminal 1400 as an example for illustration.
  • the device types of the terminal 1400 include: smart phones, tablet computers, MP3 players (Moving Picture Experts Group Audio Layer III, moving picture experts compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Motion Picture Expert compresses standard audio levels 4) Players, laptops or desktops.
  • the terminal 1400 may also be called user equipment, portable terminal, laptop terminal, desktop terminal and other names.
  • the terminal 1400 includes: a processor 1401 and a memory 1402 .
  • the processor 1401 includes one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • the processor 1401 adopts at least one of DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) implemented in the form of hardware.
  • the processor 1401 includes a main processor and a coprocessor, and the main processor is a processor for processing data in a wake-up state, also called a CPU (Central Processing Unit, central processing unit);
  • a coprocessor is a low-power processor for processing data in a standby state.
  • the processor 1401 is integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen.
  • the processor 1401 further includes an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is configured to process computing operations related to machine learning.
  • AI Artificial Intelligence, artificial intelligence
  • memory 1402 includes one or more computer-readable storage media, which are optionally non-transitory.
  • the memory 1402 also includes a high-speed random access memory, and a non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices.
  • the non-transitory computer-readable storage medium in the memory 1402 is used to store at least one program code, and the at least one program code is used to be executed by the processor 1401 to implement the various embodiments provided in this application. Display method of virtual props.
  • the terminal 1400 may optionally further include: a peripheral device interface 1403 and at least one peripheral device.
  • the processor 1401, the memory 1402, and the peripheral device interface 1403 can be connected through buses or signal lines.
  • Each peripheral device can be connected to the peripheral device interface 1403 through a bus, a signal line or a circuit board.
  • the peripheral device includes: a display screen 1405 .
  • the peripheral device interface 1403 is used to connect at least one peripheral device related to I/O (Input/Output, input/output) to the processor 1401 and the memory 1402 .
  • the processor 1401, memory 1402 and peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 1401, memory 1402 and peripheral device interface 1403 or The two are implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the display screen 1405 is used to display a UI (User Interface, user interface).
  • the UI includes graphics, text, icons, videos and any combination thereof.
  • the display screen 1405 also has the ability to collect touch signals on or above the surface of the display screen 1405 .
  • the touch signal can be input to the processor 1401 as a control signal for processing.
  • the display screen 1405 is also used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
  • the display screen 1405 is set on the front panel of the terminal 1400; in other embodiments, there are at least two display screens 1405, which are respectively arranged on different surfaces of the terminal 1400 or in a folding design;
  • the display screen 1405 is a flexible display screen, and is disposed on a curved surface or a folded surface of the terminal 1400 . Even, optionally, the display screen 1405 is set as a non-rectangular irregular figure, that is, a special-shaped screen.
  • the display screen 1405 is made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
  • the terminal 1400 further includes one or more sensors 1410 .
  • the one or more sensors 1410 include but are not limited to: an acceleration sensor 1411 , a gyro sensor 1412 , and a pressure sensor 1413 .
  • the acceleration sensor 1411 detects the acceleration on the three coordinate axes of the coordinate system established by the terminal 1400 .
  • the acceleration sensor 1411 is used to detect the components of the gravitational acceleration on the three coordinate axes.
  • the processor 1401 controls the display screen 1405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1411 .
  • the acceleration sensor 1411 is also used for collecting game motion data.
  • the gyro sensor 1412 detects the body orientation and rotation angle of the terminal 1400 , and the gyro sensor 1412 and the acceleration sensor 1411 cooperate to collect 3D actions of the user on the terminal 1400 .
  • the processor 1401 realizes the following functions according to the data collected by the gyro sensor 1412: motion sensing (such as changing the UI according to the user's tilt operation), game control and inertial navigation.
  • the pressure sensor 1413 is disposed on a side frame of the terminal 1400 and/or a lower layer of the display screen 1405 .
  • the pressure sensor 1413 can detect the user's grip signal on the terminal 1400 , and the processor 1401 performs left and right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 1413 .
  • the processor 1401 controls the operable controls on the UI interface according to the user's pressure operation on the display screen 1405.
  • the operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
  • FIG. 14 does not constitute a limitation on the terminal 1400, and may include more or less components than shown in the figure, or combine some components, or adopt a different component arrangement.
  • FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 1500 may have relatively large differences due to different configurations or performances.
  • the electronic device 1500 includes one or more processors (Central Processing Units, CPU) 1501 and one or more memories 1502, wherein at least one computer program is stored in the memory 1502, and the at least one computer program is loaded and executed by the one or more processors 1501 to implement the above-mentioned various embodiments. Display method of virtual props.
  • the electronic device 1500 also has components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output.
  • the electronic device 1500 also includes other components for implementing device functions, which will not be repeated here.
  • a computer-readable storage medium such as a memory including at least one computer program, and the above-mentioned at least one computer program can be executed by a processor in the terminal to complete the creation of the virtual props in the above-mentioned embodiments.
  • the computer-readable storage medium includes ROM (Read-Only Memory, read-only memory), RAM (Random-Access Memory, random-access memory), CD-ROM (Compact Disc Read-Only Memory, read-only disc), Magnetic tapes, floppy disks, and optical data storage devices, etc.
  • a computer program product or computer program comprising one or more pieces of program code stored in a computer readable storage medium.
  • One or more processors of the electronic device can read the one or more program codes from the computer-readable storage medium, and the one or more processors execute the one or more program codes, so that the electronic device can execute to complete The method for displaying virtual props in the above embodiments.
  • the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program.
  • the program is stored in a computer-readable storage medium.
  • the storage medium mentioned above is a read-only memory, a magnetic disk or an optical disk, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A virtual prop display method and apparatus, an electronic device and a storage medium, which relate to the technical field of computers. The method comprises: displaying a virtual prop list in a virtual scene (201; 501); in response to a sliding operation on an interactive option of a target virtual prop in the virtual prop list, when the sliding operation meets a first target condition, displaying a first target region (202; 502); and when an operation end point of the sliding operation is located in the first target region, distinguishing and displaying the target virtual prop (203; 505).

Description

虚拟道具的显示方法、装置、电子设备及存储介质Display method, device, electronic device and storage medium of virtual props
本申请要求于2021年06月09日提交的申请号为202110642665.2、发明名称为“虚拟道具的显示方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110642665.2 and the title of the invention "Display method, device, electronic equipment and storage medium for virtual props" filed on June 9, 2021, the entire contents of which are incorporated by reference in In this application.
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种虚拟道具的显示方法、装置、电子设备及存储介质。The present application relates to the field of computer technology, in particular to a display method, device, electronic equipment and storage medium for virtual props.
背景技术Background technique
随着计算机技术的发展和终端功能的多样化,在终端上能够进行的游戏种类越来越多。终端在游戏应用中显示虚拟场景,虚拟场景中显示有虚拟对象和可供拾取的虚拟道具。由于虚拟道具的种类繁多,通常以虚拟道具列表的方式显示各个虚拟道具。With the development of computer technology and the diversification of terminal functions, more and more types of games can be played on the terminal. The terminal displays a virtual scene in the game application, and virtual objects and virtual props available for picking are displayed in the virtual scene. Since there are various types of virtual props, each virtual prop is usually displayed in a virtual prop list.
发明内容Contents of the invention
本申请实施例提供了一种虚拟道具的显示方法、装置、电子设备及存储介质。Embodiments of the present application provide a method, device, electronic equipment and storage medium for displaying virtual props.
一方面,提供了一种虚拟道具的显示方法,该方法包括:在虚拟场景中显示虚拟道具列表,所述虚拟道具列表包括至少一个可拾取的虚拟道具的互动选项;响应于对所述虚拟道具列表中目标虚拟道具的互动选项的滑动操作,若所述滑动操作符合第一目标条件,在所述虚拟场景中显示第一目标区域;响应于所述滑动操作的操作结束点位于所述第一目标区域内,在所述虚拟场景中对所述目标虚拟道具进行区别显示。In one aspect, a method for displaying virtual props is provided, the method comprising: displaying a list of virtual props in a virtual scene, the list of virtual props includes at least one interaction option for picking up virtual props; The sliding operation of the interactive option of the target virtual prop in the list, if the sliding operation meets the first target condition, the first target area is displayed in the virtual scene; the end point of the operation in response to the sliding operation is located at the first In the target area, the target virtual prop is displayed differently in the virtual scene.
一方面,提供了一种虚拟道具的显示装置,该装置包括:第一显示模块,用于在虚拟场景中显示虚拟道具列表,所述虚拟道具列表包括至少一个可拾取的虚拟道具的互动选项;第二显示模块,用于响应于对所述虚拟道具列表中目标虚拟道具的互动选项的滑动操作,若所述滑动操作符合第一目标条件,在所述虚拟场景中显示第一目标区域;第三显示模块,用于响应于所述滑动操作的操作结束点位于所述第一目标区域内,在所述虚拟场景中对所述目标虚拟道具进行区别显示。In one aspect, a display device for virtual props is provided, the device comprising: a first display module, configured to display a list of virtual props in a virtual scene, the list of virtual props includes at least one interactive option of a pickable virtual prop; The second display module is used to respond to the sliding operation on the interactive option of the target virtual prop in the virtual prop list, if the sliding operation meets the first target condition, display the first target area in the virtual scene; the second A display module, configured to display the target virtual prop differently in the virtual scene in response to the operation end point of the sliding operation being located in the first target area.
一方面,提供了一种电子设备,该电子设备包括一个或多个处理器和一个或多个存储器,该一个或多个存储器中存储有至少一条计算机程序,该至少一条计算机程序由该一个或多个处理器加载并执行以实现如上述虚拟道具的显示方法。In one aspect, an electronic device is provided, the electronic device includes one or more processors and one or more memories, at least one computer program is stored in the one or more memories, and the at least one computer program is executed by the one or more Multiple processors are loaded and executed to realize the above-mentioned method for displaying virtual props.
一方面,提供了一种存储介质,该存储介质中存储有至少一条计算机程序,该至少一条计算机程序由处理器加载并执行以实现如上述虚拟道具的显示方法。In one aspect, a storage medium is provided, and at least one computer program is stored in the storage medium, and the at least one computer program is loaded and executed by a processor to realize the above-mentioned method for displaying virtual props.
一方面,提供一种计算机程序产品或计算机程序,所述计算机程序产品或所述计算机程序包括一条或多条程序代码,所述一条或多条程序代码存储在计算机可读存储介质中。电子设备的一个或多个处理器能够从计算机可读存储介质中读取所述一条或多条程序代码,所述一个或多个处理器执行所述一条或多条程序代码,使得电子设备能够执行上述虚拟道具的显示方法。In one aspect, a computer program product or computer program is provided, the computer program product or the computer program comprising one or more pieces of program code stored in a computer-readable storage medium. One or more processors of the electronic device can read the one or more program codes from the computer-readable storage medium, and the one or more processors execute the one or more program codes, so that the electronic device can Execute the above method for displaying virtual props.
本申请实施例提供的技术方案,提供一种新型的标记虚拟道具的人机交互方式,在检测到用户对虚拟道具列表中目标虚拟道具的互动选项执行滑动操作时,显示第一目标区域,并在用户将互动选项拖拽至第一目标区域内时,视为对目标虚拟道具标记完毕,对目标虚拟道具进行区别显示,相较于在虚拟道具列表中各个虚拟道具的互动选项右侧添加标记按钮的方式,由于本方案需要将互动选项拖拽至第一目标区域内才能完成标记,极大地降低了用户操作的误触率,且操作方式简单、便捷性高,因此能够提高人机交互效率。The technical solution provided by the embodiment of the present application provides a new type of human-computer interaction method for marking virtual items. When it is detected that the user performs a sliding operation on the interaction option of the target virtual item in the list of virtual items, the first target area is displayed, and When the user drags the interaction option to the first target area, it is deemed that the target virtual item has been marked, and the target virtual item is displayed differently, compared to adding a mark on the right side of the interaction option of each virtual item in the list of virtual items The way of buttons, because this solution needs to drag the interactive option to the first target area to complete the marking, which greatly reduces the false touch rate of user operation, and the operation method is simple and convenient, so it can improve the efficiency of human-computer interaction .
附图说明Description of drawings
图1是本申请实施例提供的一种虚拟道具的显示方法的实施环境示意图;FIG. 1 is a schematic diagram of an implementation environment of a method for displaying virtual props provided by an embodiment of the present application;
图2是本申请实施例提供的一种虚拟道具的显示方法的流程图;FIG. 2 is a flow chart of a method for displaying virtual props provided by an embodiment of the present application;
图3是本申请实施例提供的一种滑动操作的原理性示意图;FIG. 3 is a schematic diagram of a sliding operation provided by an embodiment of the present application;
图4是本申请实施例提供的一种拖拽互动选项的原理性示意图;FIG. 4 is a schematic diagram of a drag-and-drop interaction option provided by an embodiment of the present application;
图5是本申请实施例提供的一种虚拟道具的显示方法的流程图;Fig. 5 is a flow chart of a method for displaying virtual props provided by an embodiment of the present application;
图6是本申请实施例提供的一种第一目标区域的界面示意图;Fig. 6 is a schematic diagram of an interface of a first target area provided by an embodiment of the present application;
图7是本申请实施例提供的一种区别显示目标虚拟道具的界面示意图;Fig. 7 is a schematic diagram of an interface for distinguishing and displaying target virtual props provided by the embodiment of the present application;
图8是本申请实施例提供的一种友方虚拟对象视野下的界面示意图;FIG. 8 is a schematic diagram of an interface in the field of view of a friendly virtual object provided by an embodiment of the present application;
图9是本申请实施例提供的一种第二目标区域的界面示意图;Fig. 9 is a schematic diagram of an interface of a second target area provided by an embodiment of the present application;
图10是本申请实施例提供的一种虚拟道具的显示方法的原理性流程图;FIG. 10 is a schematic flowchart of a method for displaying virtual props provided by an embodiment of the present application;
图11是本申请实施例提供的一种横向滑动操作的原理性示意图;Fig. 11 is a schematic diagram of a horizontal sliding operation provided by an embodiment of the present application;
图12是本申请实施例提供的一种显示多个目标区域的示意图;Fig. 12 is a schematic diagram showing multiple target areas provided by an embodiment of the present application;
图13是本申请实施例提供的一种虚拟道具的显示装置的结构示意图;Fig. 13 is a schematic structural diagram of a display device for virtual props provided by an embodiment of the present application;
图14是本申请实施例提供的一种电子设备的结构示意图;Fig. 14 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图15是本申请实施例提供的一种电子设备的结构示意图。FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”、“第n”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。In this application, the terms "first" and "second" are used to distinguish the same or similar items with basically the same function and function. It should be understood that "first", "second" and "nth" There are no logical or timing dependencies, nor are there restrictions on quantity or order of execution.
本申请中术语“至少一个”是指一个或多个,“多个”的含义是指两个或两个以上,例如,多个虚拟对象是指两个或两个以上的虚拟对象。In this application, the term "at least one" means one or more, and the meaning of "multiple" means two or more. For example, a plurality of virtual objects means two or more virtual objects.
随着计算机技术的发展和终端功能的多样化,在终端上能够进行的游戏种类越来越多。终端在游戏应用中显示虚拟场景,虚拟场景中显示有虚拟对象和可供拾取的虚拟道具。由于虚拟道具的种类繁多,通常以虚拟道具列表的方式显示各个虚拟道具。With the development of computer technology and the diversification of terminal functions, more and more types of games can be played on the terminal. The terminal displays a virtual scene in the game application, and virtual objects and virtual props available for picking are displayed in the virtual scene. Since there are various types of virtual props, each virtual prop is usually displayed in a virtual prop list.
对于某些在游戏对局中具有重要功能的虚拟道具,用户存在对这类虚拟道具进行标记的需求,为满足用户的道具标记需求,通常在虚拟道具列表的右侧会对每个虚拟道具提供标记按钮,用户在虚拟道具列表中找到需要标记的虚拟道具,点击该虚拟道具右侧提供的标记按钮,以实现对虚拟道具的标记。For some virtual items that have important functions in the game, users have the need to mark such virtual items. In order to meet the user's item marking needs, usually on the right side of the list of virtual items, each virtual item will be provided Mark button, the user finds the virtual item that needs to be marked in the list of virtual items, and clicks the mark button provided on the right side of the virtual item to mark the virtual item.
在上述过程中,用户点击虚拟道具的标记按钮就会触发标记虚拟道具,很容易发生误触,在误触发生后用户还需要对虚拟道具取消标记,整体的人机交互方式误触率高、繁琐度高、便捷性差,因此人机交互效率低。In the above process, the user clicks the mark button of the virtual item to trigger the marking of the virtual item, which is prone to accidental touch. After the accidental touch occurs, the user needs to cancel the mark on the virtual item. The overall human-computer interaction method has a high rate of false touch. The complexity is high and the convenience is poor, so the efficiency of human-computer interaction is low.
以下,对本申请涉及的术语进行解释。Hereinafter, terms involved in the present application are explained.
虚拟场景:是应用程序在终端上运行时显示(或提供)的虚拟场景。可选地,该虚拟场景是对真实世界的仿真环境,或者是半仿真半虚构的虚拟环境,或者是纯虚构的虚拟环境。可选地,虚拟场景是二维虚拟场景、2.5维虚拟场景或者三维虚拟场景中的任意一种,本申请实施例对虚拟场景的维度不加以限定。例如,虚拟场景包括天空、陆地、海洋等,该陆地包括沙漠、城市等环境元素,用户能够控制虚拟对象在该虚拟场景中进行移动。可选地,该虚拟场景还用于至少两个虚拟对象之间的虚拟场景对抗,在该虚拟场景中具有可供至少两个虚拟对象使用的虚拟资源。Virtual scene: it is a virtual scene displayed (or provided) when the application program is running on the terminal. Optionally, the virtual scene is a simulation environment of the real world, or a half-simulation and half-fictional virtual environment, or a purely fictitious virtual environment. Optionally, the virtual scene is any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene, and this embodiment of the present application does not limit the dimensions of the virtual scene. For example, the virtual scene includes sky, land, ocean, etc. The land includes environmental elements such as deserts and cities, and the user can control virtual objects to move in the virtual scene. Optionally, the virtual scene is also used for virtual scene confrontation between at least two virtual objects, and there are virtual resources available for the at least two virtual objects in the virtual scene.
虚拟对象:是指在虚拟场景中的可活动对象。可选地,该可活动对象是虚拟人物、虚拟动物、虚拟精灵、动漫人物等,比如:在虚拟场景中显示的人物、动物、植物、油桶、墙壁、石块等。可选地,该虚拟对象是该虚拟场景中的一个虚拟的、用于代表用户的虚拟形象。可 选地,在虚拟场景中包括多个虚拟对象,每个虚拟对象在虚拟场景中具有自身的形状和体积,占据虚拟场景中的一部分空间。可选地,当虚拟场景为三维虚拟场景时,虚拟对象是一个三维立体模型,该三维立体模型是基于三维人体骨骼技术构建的三维角色,同一个虚拟对象能够通过穿戴不同的皮肤来展示出不同的外在形象。在一些实施例中,虚拟对象采用2.5维或2维模型来实现,本申请实施例对虚拟对象的模型维度不加以限定。Virtual object: refers to the movable object in the virtual scene. Optionally, the movable object is a virtual character, virtual animal, virtual elf, animation character, etc., such as: characters, animals, plants, oil barrels, walls, stones, etc. displayed in the virtual scene. Optionally, the virtual object is a virtual avatar representing the user in the virtual scene. Optionally, multiple virtual objects are included in the virtual scene, each virtual object has its own shape and volume in the virtual scene, and occupies a part of space in the virtual scene. Optionally, when the virtual scene is a three-dimensional virtual scene, the virtual object is a three-dimensional model, and the three-dimensional model is a three-dimensional character based on three-dimensional human skeleton technology. The same virtual object can display different skins by wearing different skins. external image. In some embodiments, the virtual object is implemented using a 2.5-dimensional or 2-dimensional model, and the embodiment of the present application does not limit the model dimension of the virtual object.
可选地,该虚拟对象是通过客户端上的操作进行控制的玩家角色,或者是设置在虚拟场景中的非玩家角色(Non-Player Character,NPC)。可选地,该虚拟对象是在虚拟场景中进行竞技的虚拟人物。可选地,该虚拟场景中参与互动的虚拟对象的数量是预先设置的,或者是根据加入互动的客户端的数量动态确定的。Optionally, the virtual object is a player character controlled through operations on the client, or a non-player character (Non-Player Character, NPC) set in a virtual scene. Optionally, the virtual object is a virtual character competing in a virtual scene. Optionally, the number of virtual objects participating in the interaction in the virtual scene is preset, or dynamically determined according to the number of clients participating in the interaction.
MOBA(Multiplayer Online Battle Arena,多人在线战术竞技)游戏:是一种在虚拟场景中提供若干个据点,处于不同阵营的用户控制虚拟对象在虚拟场景中对抗,占领据点或摧毁不同阵营据点的游戏。例如,MOBA游戏将用户分成至少两个阵营,分属至少两个阵营的不同虚拟队伍分别占据各自的地图区域,将用户控制的虚拟对象分散在虚拟场景中互相竞争,以摧毁或占领对方的全部据点作为胜利条件。MOBA (Multiplayer Online Battle Arena) game: It is a game that provides several strongholds in a virtual scene, and users in different camps control virtual objects to fight in the virtual scene, occupy strongholds or destroy strongholds of different camps . For example, in MOBA games, users are divided into at least two camps, and different virtual teams belonging to at least two camps occupy their respective map areas, and the virtual objects controlled by users are scattered in the virtual scene to compete with each other to destroy or occupy all of the opponent's stronghold as a victory condition.
射击类游戏(Shooter Game,STG):是指虚拟对象使用热兵器类虚拟道具进行远程攻击的一类游戏,射击类游戏是动作类游戏的一种,带有很明显的动作类游戏特点。可选地,射击类游戏包括但不限于第一人称射击游戏、第三人称射击游戏、俯视射击游戏、平视射击游戏、平台射击游戏、卷轴射击游戏、光枪射击游戏、键鼠射击游戏、射击场游戏等,本申请实施例不对射击类游戏的类型进行具体限定。Shooter Game (Shooter Game, STG): refers to a type of game in which virtual objects use virtual props such as hot weapons for long-range attacks. Shooter games are a type of action games with obvious characteristics of action games. Optionally, shooting games include but are not limited to first-person shooting games, third-person shooting games, top-down shooting games, head-up shooting games, platform shooting games, scrolling shooting games, light gun shooting games, keyboard and mouse shooting games, and shooting range games etc., the embodiment of the present application does not specifically limit the type of shooting games.
第一人称射击游戏(First-Person Shooting game,FPS):是指用户以第一人称视角进行的射击游戏,FPS游戏中的虚拟场景画面是以终端操控的虚拟对象的视角对虚拟场景进行观察的画面。在FPS游戏中,至少两个虚拟对象在虚拟场景中进行单局对抗模式,虚拟对象通过躲避其他虚拟对象发起的攻击和虚拟场景中存在的危险(如沼泽地)来达到在虚拟场景中存活的目的,当虚拟对象在虚拟场景中的虚拟生命值小于预设生命值时,虚拟对象在虚拟场景中的生命结束,最后存活在虚拟场景中的虚拟对象是获胜方,预设生命值是任一大于或等于0的数值。可选地,在FPS游戏中,以第一个终端加入对局的时刻作为开始时刻,以最后一个终端退出对局的时刻作为结束时刻,每个终端能够控制虚拟场景中的一个或多个虚拟对象。可选地,对局的竞技模式包括单人对抗模式、双人小组对抗模式或者多人大组对抗模式等,本申请实施例对竞技模式不进行具体限定。First-person shooting game (First-Person Shooting game, FPS): It refers to the shooting game played by the user from the first-person perspective. The virtual scene screen in the FPS game is a screen to observe the virtual scene from the perspective of the virtual object controlled by the terminal. In the FPS game, at least two virtual objects are in a single-game confrontation mode in the virtual scene, and the virtual objects achieve the goal of surviving in the virtual scene by avoiding the attacks launched by other virtual objects and the dangers (such as swamps) in the virtual scene. Purpose, when the virtual life value of the virtual object in the virtual scene is less than the preset life value, the life of the virtual object in the virtual scene ends, and the virtual object that survives in the virtual scene at last is the winner, and the preset life value is any A numeric value greater than or equal to 0. Optionally, in the FPS game, the moment when the first terminal joins the match is taken as the start moment, and the moment when the last terminal withdraws from the match is taken as the end moment, each terminal can control one or more virtual object. Optionally, the competition mode of the game includes a single-player confrontation mode, a two-person team confrontation mode, or a multiplayer large-group confrontation mode, etc., and the embodiment of the present application does not specifically limit the competition mode.
以射击类游戏为例,用户能够控制虚拟对象在该虚拟场景的天空中自由下落、滑翔或者打开降落伞进行下落等,在陆地上中跑动、跳动、爬行、弯腰前行等,也能够控制虚拟对象在海洋中游泳、漂浮或者下潜等,当然,用户还能够控制虚拟对象乘坐虚拟载具在该虚拟场景中进行移动,该虚拟载具包括虚拟汽车、虚拟飞行器、虚拟游艇等。可选地,用户还能够控制虚拟对象通过虚拟道具与其他虚拟对象进行互动,该虚拟道具包括:投掷后才能够发生作用的投掷类道具、通过瞄准射击以发射某些发射物的射击类道具、用于近距离对抗的冷兵器道具。Taking shooting games as an example, the user can control the virtual object to freely fall, glide, or open a parachute to fall in the sky of the virtual scene, and can also control the virtual object to run, jump, crawl, bend forward, etc. on land. The virtual object swims, floats, or dives in the ocean. Of course, the user can also control the virtual object to move in the virtual scene on a virtual vehicle. The virtual vehicle includes a virtual car, a virtual aircraft, and a virtual yacht. Optionally, the user can also control the virtual object to interact with other virtual objects through virtual props, the virtual props include: throwing props that can only take effect after throwing, shooting props that launch certain projectiles by aiming and shooting, Cold weapon props for close combat.
本申请实施例所提供的虚拟道具的显示方法,能够适用于MOBA游戏的虚拟道具标记,也能够适用于FPS游戏的虚拟道具标记,还能够适用于MOBA与FPS结合的游戏的虚拟道具标记,或者适用于其他各类提供了可拾取的虚拟道具的游戏应用中,本申请实施例对此不进行具体限定。The method for displaying virtual items provided by the embodiments of the present application can be applied to the virtual item markings of MOBA games, can also be applied to the virtual item markings of FPS games, and can also be applied to the virtual item markings of games combining MOBA and FPS, or It is applicable to other types of game applications that provide virtual props that can be picked up, and this embodiment of the present application does not specifically limit it.
以下,对本申请涉及的系统架构进行介绍。In the following, the system architecture involved in this application will be introduced.
图1是本申请实施例提供的一种虚拟道具的显示方法的实施环境示意图。参见图1,该实施环境包括:第一终端120、服务器140和第二终端160。FIG. 1 is a schematic diagram of an implementation environment of a method for displaying virtual props provided by an embodiment of the present application. Referring to FIG. 1 , the implementation environment includes: a first terminal 120 , a server 140 and a second terminal 160 .
第一终端120安装和运行有支持虚拟场景的应用程序。可选地,该应用程序包括MOBA游戏、FPS游戏、第三人称射击游戏、虚拟现实应用程序、三维地图程序或者多人器械类生 存游戏中的任意一种。在一些实施例中,第一终端120是第一用户使用的终端,当第一终端120运行该应用程序时,第一终端120的屏幕上显示应用程序的用户界面,并基于第一用户在用户界面中的开局操作,在应用程序中加载并显示虚拟场景,第一用户使用第一终端120操作位于虚拟场景中的第一虚拟对象进行活动,该活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑行、跳跃、驾驶、拾取、射击、投掷中的至少一种。示意性的,第一虚拟对象是第一虚拟人物,比如仿真人物角色或动漫人物角色。The first terminal 120 is installed and runs an application program supporting a virtual scene. Optionally, the application program includes any one of MOBA games, FPS games, third-person shooter games, virtual reality applications, three-dimensional map programs or multiplayer survival games. In some embodiments, the first terminal 120 is a terminal used by the first user. When the first terminal 120 runs the application, the user interface of the application is displayed on the screen of the first terminal 120, and based on the first user's The opening operation in the interface, the virtual scene is loaded and displayed in the application program, the first user uses the first terminal 120 to operate the first virtual object located in the virtual scene to perform activities, the activities include but not limited to: adjusting body posture, crawling, At least one of walking, running, riding, jumping, driving, picking up, shooting, throwing. Schematically, the first virtual object is a first virtual character, such as a simulated character or an anime character.
第一终端120以及第二终端160通过有线或无线通信方式与服务器140进行直接或间接地通信连接。The first terminal 120 and the second terminal 160 communicate directly or indirectly with the server 140 through wired or wireless communication.
服务器140包括一台服务器、多台服务器、云计算平台或者虚拟化中心中的至少一种。服务器140用于为支持虚拟场景的应用程序提供后台服务。可选地,服务器140承担主要计算工作,第一终端120和第二终端160承担次要计算工作;或者,服务器140承担次要计算工作,第一终端120和第二终端160承担主要计算工作;或者,服务器140、第一终端120和第二终端160三者之间采用分布式计算架构进行协同计算。The server 140 includes at least one of a server, multiple servers, a cloud computing platform, or a virtualization center. The server 140 is used to provide background services for applications supporting virtual scenes. Optionally, the server 140 undertakes the main calculation work, and the first terminal 120 and the second terminal 160 undertake the secondary calculation work; or, the server 140 undertakes the secondary calculation work, and the first terminal 120 and the second terminal 160 undertake the main calculation work; Alternatively, the server 140, the first terminal 120, and the second terminal 160 use a distributed computing architecture to perform collaborative computing.
可选地,服务器140是独立的物理服务器,或者是多个物理服务器构成的服务器集群或者分布式系统,或者是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)以及大数据和人工智能平台等基础云计算服务的云服务器。Optionally, the server 140 is an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication Cloud servers for basic cloud computing services such as middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN) and big data and artificial intelligence platforms.
第二终端160安装和运行有支持虚拟场景的应用程序。可选地,该应用程序包括FPS游戏、第三人称射击游戏、MOBA游戏、虚拟现实应用程序、三维地图程序或者多人器械类生存游戏中的任意一种。在一些实施例中,第二终端160是第二用户使用的终端,当第二终端160运行该应用程序时,第二终端160的屏幕上显示应用程序的用户界面,并基于第二用户在用户界面中的开局操作,在应用程序中加载并显示虚拟场景,第二用户使用第二终端160操作位于虚拟场景中的第二虚拟对象进行活动,该活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑行、跳跃、驾驶、拾取、射击、投掷中的至少一种。示意性的,第二虚拟对象是第二虚拟人物,比如仿真人物角色或动漫人物角色。The second terminal 160 is installed and runs an application program supporting a virtual scene. Optionally, the application program includes any one of FPS games, third-person shooter games, MOBA games, virtual reality application programs, three-dimensional map programs or multiplayer survival games. In some embodiments, the second terminal 160 is a terminal used by the second user. When the second terminal 160 runs the application, the user interface of the application is displayed on the screen of the second terminal 160, and based on the second user's The opening operation in the interface, the virtual scene is loaded and displayed in the application program, and the second user uses the second terminal 160 to operate the second virtual object located in the virtual scene to perform activities, such activities include but not limited to: adjusting body posture, crawling, At least one of walking, running, riding, jumping, driving, picking up, shooting, throwing. Schematically, the second virtual object is a second virtual character, such as a simulated character or an anime character.
可选地,第一终端120控制的第一虚拟对象和第二终端160控制的第二虚拟对象处于同一虚拟场景中,此时第一虚拟对象能够在虚拟场景中与第二虚拟对象进行互动。Optionally, the first virtual object controlled by the first terminal 120 and the second virtual object controlled by the second terminal 160 are in the same virtual scene, and at this time, the first virtual object can interact with the second virtual object in the virtual scene.
在一些实施例中,上述第一虚拟对象以及第二虚拟对象为对抗关系,例如,第一虚拟对象与第二虚拟对象属于不同的队伍或阵营,对抗关系的虚拟对象之间,能够在陆地上以互相射击的方式进行对抗,比如互相发射射击类道具。在另一些实施例中,第一虚拟对象以及第二虚拟对象为友方关系,例如,第一虚拟人物和第二虚拟人物属于同一个阵营、同一个队伍、具有好友关系或具有临时性的通讯权限。In some embodiments, the first virtual object and the second virtual object are in a confrontational relationship, for example, the first virtual object and the second virtual object belong to different teams or camps, and the virtual objects in the confrontational relationship can be on land Fight each other by shooting each other, such as shooting shooting props at each other. In some other embodiments, the first virtual object and the second virtual object are in a friendly relationship, for example, the first virtual character and the second virtual character belong to the same camp, the same team, have friendship or have temporary communication authority.
可选地,第一终端120和第二终端160上安装的应用程序是相同的,或两个终端上安装的应用程序是不同操作系统平台的同一类型应用程序。第一终端120或第二终端160泛指多个终端中的一个,本实施例仅以第一终端120和第二终端160来举例说明。第一终端120和第二终端160的设备类型相同或不同,该设备类型包括:智能手机、平板电脑、智能音箱、智能手表、膝上型便携计算机和台式计算机中的至少一种,但并不局限于此。例如,第一终端120和第二终端160是智能手机,或者其他手持便携式游戏设备。以下实施例,以终端包括智能手机来举例说明。Optionally, the application programs installed on the first terminal 120 and the second terminal 160 are the same, or the application programs installed on the two terminals are the same type of application programs on different operating system platforms. The first terminal 120 or the second terminal 160 generally refers to one of multiple terminals, and this embodiment only uses the first terminal 120 and the second terminal 160 as an example for illustration. The device types of the first terminal 120 and the second terminal 160 are the same or different, and the device types include: at least one of a smart phone, a tablet computer, a smart speaker, a smart watch, a laptop computer, and a desktop computer, but not limited to this. For example, the first terminal 120 and the second terminal 160 are smart phones, or other handheld portable game devices. The following embodiments are described by taking a terminal including a smart phone as an example.
本领域技术人员知晓,上述终端的数量能够更多或更少。比如上述终端仅为一个,或者上述终端为几十个或几百个,或者更多数量。本申请实施例对终端的数量和设备类型不加以限定。Those skilled in the art know that the number of the above terminals can be more or less. For example, there is only one terminal, or there are dozens or hundreds of terminals, or more. The embodiment of the present application does not limit the number of terminals and device types.
图2是本申请实施例提供的一种虚拟道具的显示方法的流程图。参见图2,该实施例由电子设备执行,以下以电子设备为终端为例进行说明,例如,终端是图1所示的第一终端120或第二终端160,该实施例包括下述步骤:Fig. 2 is a flow chart of a method for displaying virtual props provided by an embodiment of the present application. Referring to FIG. 2, this embodiment is executed by an electronic device. The following takes the electronic device as an example for description. For example, the terminal is the first terminal 120 or the second terminal 160 shown in FIG. 1, and this embodiment includes the following steps:
201、终端在虚拟场景中显示虚拟道具列表,该虚拟道具列表包括至少一个可拾取的虚拟道具的互动选项。201. The terminal displays a list of virtual props in a virtual scene, where the list of virtual props includes at least one interactive option of a virtual prop that can be picked up.
该终端为任一用户所使用的电子设备,例如该终端为智能手机、智能掌机、便携式游戏设备、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表等,但并不局限于此。The terminal is an electronic device used by any user, for example, the terminal is a smart phone, a smart handheld, a portable game device, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.
该虚拟道具是指在虚拟场景中被控虚拟对象所能够拾取的虚拟资源,例如,该虚拟道具是虚拟武器、虚拟物品、虚拟防具、虚拟弹药、虚拟配件等,本申请实施例对虚拟道具的类型不进行具体限定。其中,被控虚拟对象是指虚拟场景中用户利用该终端所操控的虚拟对象,也即是指与该终端具有关联关系的虚拟对象。The virtual props refer to the virtual resources that can be picked up by the controlled virtual objects in the virtual scene, for example, the virtual props are virtual weapons, virtual items, virtual armor, virtual ammunition, virtual accessories, etc. The type is not specifically limited. Wherein, the controlled virtual object refers to the virtual object controlled by the user using the terminal in the virtual scene, that is, refers to the virtual object associated with the terminal.
该互动选项是指在虚拟道具列表中用于唯一标识虚拟道具的列表项目,比如,虚拟道具列表中的每一栏都呈现为一个可与用户交互的互动选项,每个互动选项都与一个虚拟道具保持一一对应。The interaction option refers to the list item used to uniquely identify the virtual item in the virtual item list. For example, each column in the virtual item list is presented as an interaction option that can be interacted with the user, and each interaction option is associated with a virtual item. Props maintain a one-to-one correspondence.
在一些实施例中,根据用户对互动选项的交互操作的类型不同,互动选项呈现出不同的互动功能,本申请实施例对互动选项所能提供的互动功能的种类不进行具体限定。比如,用户点击任一虚拟道具的互动选项时,触发悬浮窗展示该虚拟道具的详情介绍;用户双击任一虚拟道具的互动选项时,触发被控虚拟对象拾取该虚拟道具;用户按住任一虚拟道具的互动选项进行纵向滑动时,触发显示虚拟道具列表中被折叠的虚拟道具,例如上滑时展示向上折叠的虚拟道具,下滑时展示向下折叠的虚拟道具,也即纵向滑动能够浏览整个虚拟道具列表中的所有虚拟道具;用户按住任一虚拟道具的互动选项进行横向滑动时,能够将互动选项拖拽出虚拟道具列表,并在拖拽至不同的区域时实现不同的功能,例如,将该互动选项拖拽至第一目标区域时,触发对标记该虚拟道具,在虚拟道具处于标记状态下,将该互动选项拖拽至第二目标区域时,触发取消标记该虚拟道具(即不再标记虚拟道具,或对虚拟道具移除标记)等,又例如,将该互动选项拖拽至第三目标区域时,触发传送该虚拟道具给特定区域的友方虚拟对象(即队友),又例如,将该互动选项拖拽至第四目标区域时,触发安装该虚拟道具(如虚拟配件)到虚拟器械1,将该互动选项拖拽至第五目标区域时,触发安装该虚拟道具(如虚拟配件)到虚拟器械2。In some embodiments, the interactive options present different interactive functions according to different types of interactive operations performed by the user on the interactive options, and the embodiments of the present application do not specifically limit the types of interactive functions that the interactive options can provide. For example, when the user clicks on the interaction option of any virtual item, the floating window is triggered to display the detailed introduction of the virtual item; when the user double-clicks the interaction option of any virtual item, the controlled virtual object is triggered to pick up the virtual item; When the interaction option of virtual props is slid vertically, it triggers the display of the collapsed virtual props in the virtual props list, for example, when sliding up, the virtual props folded up are displayed, and when sliding down, the virtual props folded down are displayed, that is, vertical sliding can browse the entire All virtual props in the virtual props list; when the user presses the interactive option of any virtual prop and slides horizontally, the interactive option can be dragged out of the virtual props list, and different functions can be realized when dragging to different areas, for example , when the interactive option is dragged to the first target area, it triggers to mark the virtual item, and when the virtual item is in the marked state, when the interactive option is dragged to the second target area, it triggers unmarking of the virtual item (ie No longer mark the virtual item, or remove the mark from the virtual item), etc., and for example, when the interaction option is dragged to the third target area, triggering the transmission of the virtual item to the friendly virtual object (ie teammate) in the specific area, For another example, when the interaction option is dragged to the fourth target area, the installation of the virtual prop (such as a virtual accessory) to the virtual device 1 is triggered, and when the interaction option is dragged to the fifth target area, the installation of the virtual prop (such as a virtual accessory) is triggered. such as virtual accessories) to virtual instrument 2.
在一些实施例中,终端响应于用户对应用程序的启动操作,启动该应用程序,该应用程序是任一支持虚拟场景的应用程序。可选地,该启动操作是用户在终端桌面上对该应用程序的图标进行了触摸操作,或者用户向智能语音助手输入对该应用程序的启动指令,该启动指令包括语音指令或者文本指令,本申请实施例不对启动指令的类型进行具体限定。可选地,该应用程序是游戏应用,例如,该游戏应用是MOBA游戏、MMORPG(Massive Multiplayer Online Role-Playing Game,大型多人在线角色扮演游戏)游戏、FPS游戏、第三人称射击游戏、虚拟现实应用程序、三维地图程序或者多人器械类生存游戏中的任意一种,可选地,该应用程序是其他应用中游戏类嵌入式程序(俗称为“游戏小程序”),本申请实施例对该应用程序的类型不进行具体限定。In some embodiments, the terminal starts the application program in response to the user's start operation on the application program, and the application program is any application program supporting virtual scenes. Optionally, the start operation is that the user touches the icon of the application on the desktop of the terminal, or the user inputs an instruction to start the application to the intelligent voice assistant, and the start instruction includes a voice instruction or a text instruction. The embodiment of the application does not specifically limit the type of the startup instruction. Optionally, the application program is a game application, for example, the game application is a MOBA game, MMORPG (Massive Multiplayer Online Role-Playing Game, massively multiplayer online role-playing game) game, FPS game, third-person shooting game, virtual reality Any one of application programs, three-dimensional map programs, or multiplayer survival games. Optionally, the application program is a game-like embedded program (commonly known as a "game applet") in other applications. The type of the application is not specifically limited.
在一些实施例中,在用户为应用程序设置了自动启动条件时,终端在检测到符合应用程序的自动启动条件时,由终端操作系统自动启动该应用程序,可选地,该自动启动条件是周期性的启动该应用程序,比如每天晚上8点钟启动应用程序,或者,该自动启动条件是开机自动启动,本申请实施例不对应用程序的自动启动条件进行具体限定。In some embodiments, when the user sets the automatic start condition for the application, the terminal automatically starts the application by the terminal operating system when it detects that the automatic start condition of the application is met. Optionally, the automatic start condition is The application program is started periodically, for example, the application program is started at 8 o'clock every night, or the automatic start condition is automatic start after power-on, and the embodiment of the present application does not specifically limit the automatic start condition of the application program.
在一些实施例中,终端启动应用程序,在应用程序中显示开局配置界面,在该开局配置界面中包括账号设置控件、竞技模式的选择控件、虚拟对象的选择控件、虚拟场景(俗称为“场景地图”)的选择控件以及开局选项等。In some embodiments, the terminal starts an application program, and displays a deployment configuration interface in the application program, which includes account setting controls, competition mode selection controls, virtual object selection controls, and virtual scenes (commonly known as "scenes"). Map") selection controls and opening options, etc.
可选地,用户基于账号设置控件,选择在应用程序中所要登录的游戏账号,可通过账号密码登录,也可通过绑定其他应用中已注册的账号,以在游戏应用以已注册的账号进行授权登录,在登录完毕后还能够通过注销操作退出登录状态。Optionally, the user sets the control based on the account and selects the game account to be logged in in the application, which can be logged in through the account password, or by binding the registered account in other applications, so that the registered account can be used in the game application. Authorized login, after the login is complete, you can also exit the login state through the logout operation.
可选地,用户基于竞技模式的选择控件,选择本局所要参与的竞技模式,例如,该竞技模式包括2V2、3V3、5V5等,本申请实施例不对竞技模式进行具体限定。Optionally, the user selects the competition mode to participate in based on the selection control of the competition mode. For example, the competition mode includes 2V2, 3V3, 5V5, etc. The embodiment of the present application does not specifically limit the competition mode.
可选地,用户基于虚拟对象的选择控件,选择本局中所要出战的被控虚拟对象。需要说明的是,在选择被控虚拟对象时,需要从用户已开通(即拥有使用权限)的虚拟对象中进行选择,对于一些用户尚未开通(即不拥有使用权限)的虚拟对象,无法被选择为本局使用的被控虚拟对象。可选地,用户通过使用一些虚拟道具(例如限时免费道具等),能够临时拥有部分虚拟对象的使用权限,以便于用户能够体验到部分虚拟对象的玩法和手感,此时即使用户并未开通某个虚拟对象,但如果具备对该虚拟对象的临时使用权限,仍然能够选择该虚拟对象作为本局使用的被控虚拟对象。Optionally, based on the selection control of the virtual object, the user selects the controlled virtual object to play in this game. It should be noted that when selecting the virtual object to be controlled, it is necessary to select from the virtual objects that the user has opened (that is, has the right to use), and some virtual objects that the user has not yet opened (that is, does not have the right to use) cannot be selected The charged virtual object used by this Bureau. Optionally, by using some virtual props (such as time-limited free props, etc.), the user can temporarily have the right to use some virtual objects, so that the user can experience the gameplay and feel of some virtual objects. However, if you have the temporary right to use the virtual object, you can still select the virtual object as the controlled virtual object used by the Bureau.
可选地,用户基于虚拟场景的选择控件,选择本局所欲加载的虚拟场景(也即选择一张本场游戏对局的场景地图)。需要说明的是,在一些竞技模式下支持用户自定义选择虚拟场景,在一些竞技模式下也可能不支持用户自定义选择虚拟场景,此时只能加载与选取的竞技模式所绑定的虚拟场景,或者由服务器从与竞技模式绑定的多个虚拟场景中随机选择一个虚拟场景作为本局加载的虚拟场景,本申请实施例对虚拟场景是否能够自主选择不进行具体限定。Optionally, based on the selection control of the virtual scene, the user selects the virtual scene to be loaded in the current game (that is, selects a scene map of the current game). It should be noted that user-defined selection of virtual scenes is supported in some competitive modes, and user-defined selection of virtual scenes may not be supported in some competitive modes. At this time, only the virtual scenes bound to the selected competitive mode can be loaded , or the server randomly selects a virtual scene from multiple virtual scenes bound to the competitive mode as the virtual scene loaded in the local game. The embodiment of the present application does not specifically limit whether the virtual scene can be independently selected.
可选地,用户在选择登录的账号、选择竞技模式、选择被控虚拟对象、选择虚拟场景时,所采取的选择操作包括但不限于:点击操作、长按操作、双击操作、语音指令、基于快捷键的触发操作等,本申请实施例对选择操作的类型不作限定。Optionally, when the user selects a login account, selects a competitive mode, selects a virtual object to be controlled, and selects a virtual scene, the selection operations taken by the user include but are not limited to: click operations, long press operations, double-click operations, voice commands, based on For the trigger operation of the shortcut key, etc., the embodiment of the present application does not limit the type of the selection operation.
在一些实施例中,用户在完成登录的账号、竞技模式、被控虚拟对象及虚拟场景的配置后,通过对开局选项的触发操作,触发终端开启本局游戏,终端加载本局游戏的虚拟场景,在加载完毕后显示该虚拟场景,将参与本局游戏的各用户的终端所操控的虚拟对象均显示在该虚拟场景中。在本申请实施例中,虚拟场景中本终端所控制的虚拟对象称为被控虚拟对象,与该被控虚拟对象属于同一阵营或同一队伍的虚拟对象称为友方虚拟对象,与该被控虚拟对象属于不同阵营或不同队伍的虚拟对象称为非友方虚拟对象。In some embodiments, after the user completes the configuration of the logged-in account, competitive mode, controlled virtual object, and virtual scene, the terminal is triggered to start the current game by triggering the start option, and the terminal loads the virtual scene of the current game. After the loading is completed, the virtual scene is displayed, and the virtual objects controlled by the terminals of the users participating in the current game are all displayed in the virtual scene. In this embodiment of the application, the virtual object controlled by the terminal in the virtual scene is called a controlled virtual object, and the virtual object belonging to the same camp or team as the controlled virtual object is called a friendly virtual object. Avatars that belong to different camps or teams are called non-friendly avatars.
在一些实施例中,用户能够控制该被控虚拟对象在虚拟场景中进行如下活动:调整身体姿态、爬行、步行、奔跑、骑行、跳跃、驾驶、拾取、射击、攻击、投掷、对抗等。可选地,在虚拟场景中还显示有至少一个可供拾取的虚拟道具的道具模型(如果是2D虚拟场景则是2D模型,如果是3D虚拟场景则是3D模型),终端控制该被控虚拟对象靠近任一虚拟道具,在该被控虚拟对象与该虚拟道具之间的距离小于距离阈值时,在虚拟场景中会弹出虚拟道具列表,该虚拟道具列表中显示有至少一个可供拾取的虚拟道具的互动选项。其中,该距离阈值为任一大于或等于0的数值。In some embodiments, the user can control the controlled virtual object to perform the following activities in the virtual scene: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, fighting, etc. Optionally, at least one prop model of a virtual prop that can be picked up is also displayed in the virtual scene (2D model if it is a 2D virtual scene, or 3D model if it is a 3D virtual scene), and the terminal controls the controlled virtual prop When the object is close to any virtual prop, when the distance between the controlled virtual object and the virtual prop is less than the distance threshold, a virtual prop list will pop up in the virtual scene, and at least one virtual prop that can be picked up will be displayed in the virtual prop list. Interaction options for props. Wherein, the distance threshold is any value greater than or equal to 0.
在一些实施例中,在显示该虚拟道具列表时,以弹窗或浮层的方式显示该虚拟道具列表。可选地,统计与被控虚拟对象之间的距离小于该距离阈值且可被拾取的各个虚拟道具,在虚拟道具列表中对每个虚拟道具显示对应的互动选项,比如,虚拟道具列表中的每个列表项都被提供为一个虚拟道具的互动选项。可选地,每个互动选项上显示有对应虚拟道具的道具名称、道具图片、道具等级、道具描述信息或者道具数量中的至少一项。In some embodiments, when displaying the list of virtual items, the list of virtual items is displayed in the form of a pop-up window or a floating layer. Optionally, the distance between the virtual object and the controlled virtual object is less than the distance threshold and can be picked up, and the corresponding interaction options are displayed for each virtual prop in the virtual props list, for example, the virtual props in the virtual props list Each list item is offered as an interactive option for a virtual item. Optionally, each interaction option displays at least one item of the corresponding virtual item's item name, item image, item level, item description information, or item quantity.
202、终端响应于对该虚拟道具列表中目标虚拟道具的互动选项的滑动操作,若该滑动操作符合第一目标条件,在该虚拟场景中显示第一目标区域。202. The terminal responds to a sliding operation of an interaction option of a target virtual item in the virtual item list, and if the sliding operation meets a first target condition, displays a first target area in the virtual scene.
其中,该目标虚拟道具是指该虚拟道具列表中显示的任一虚拟道具,本申请实施例不对目标虚拟道具具体是哪个虚拟道具进行限定。Wherein, the target virtual item refers to any virtual item displayed in the virtual item list, and the embodiment of the present application does not limit which virtual item the target virtual item is.
在一些实施例中,终端检测到用户对目标虚拟道具的互动选项的滑动操作时,在该滑动操作符合第一目标条件的情况下,在该虚拟场景中显示第一目标区域。可选地,在检测滑动操作时,终端通过终端屏幕的接触传感器检测用户手指是否触摸了终端屏幕,如果用户手指触摸了终端屏幕,调用该接触传感器确定触摸点的屏幕坐标,如果触摸点的屏幕坐标位于目标虚拟道具的互动选项在终端屏幕中所覆盖的区域内,确定检测到对目标虚拟道具的互动选项的触摸操作,接着,在用户手指对终端屏幕的触摸时长超过时长阈值,且用户手指的触摸点随着时间的推移产生了位移的情况下,则确定检测到对目标虚拟道具的互动选项的滑动操作。其中,该时长阈值为任一大于0的数值。In some embodiments, when the terminal detects the user's sliding operation on the interaction option of the target virtual prop, if the sliding operation meets the first target condition, the first target area is displayed in the virtual scene. Optionally, when detecting a sliding operation, the terminal detects whether the user's finger touches the terminal screen through the contact sensor of the terminal screen. If the user's finger touches the terminal screen, the contact sensor is called to determine the screen coordinates of the touch point. If the screen of the touch point The coordinates are located in the area covered by the interactive option of the target virtual prop on the terminal screen, and it is determined that a touch operation on the interactive option of the target virtual prop is detected. In the case where the touch point of the touch point has a displacement over time, it is determined that a sliding operation on the interactive option of the target virtual prop is detected. Wherein, the duration threshold is any value greater than 0.
在一些实施例中,基于滑动操作的类型来设定第一目标条件,例如,该第一目标条件包 括该滑动操作为横向滑动操作,换言之,在该滑动操作为横向滑动操作的情况下,代表该滑动操作符合该第一目标条件,执行在该虚拟场景中显示第一目标区域的操作,换一种表述,终端响应于对该目标虚拟道具的互动选项的横向滑动操作,在该虚拟场景中显示该第一目标区域。In some embodiments, the first target condition is set based on the type of the sliding operation, for example, the first target condition includes that the sliding operation is a horizontal sliding operation, in other words, when the sliding operation is a horizontal sliding operation, it represents The sliding operation conforms to the first target condition, and the operation of displaying the first target area in the virtual scene is performed. In other words, the terminal responds to the horizontal sliding operation of the interactive option of the target virtual prop, in the virtual scene The first target area is displayed.
在上述过程中,通过将第一目标条件设定为滑动操作为横向滑动操作,相当于只有横向滑动操作才能触发显示第一目标区域,这样能够为其他类型的滑动操作配置触发不同的交互功能,从而实现通过不同类型的滑动操作,向用户提供不同的交互功能。示意性地,横向滑动操作触发显示第一目标区域,在用户将互动选项拖拽至第一目标区域后,能够触发标记目标虚拟道具,此外,纵向滑动操作则触发浏览整个虚拟道具列表中被折叠的虚拟道具,例如,向上滑动可翻看目前虚拟道具列表中首个虚拟道具之前的虚拟道具,向下滑动可翻看目前虚拟道具列表中最后一个虚拟道具之后的虚拟道具。In the above process, by setting the first target condition as a sliding operation to a horizontal sliding operation, it means that only a horizontal sliding operation can trigger the display of the first target area, so that different interactive functions can be triggered for other types of sliding operation configurations, In this way, different interactive functions are provided to the user through different types of sliding operations. Schematically, the horizontal sliding operation triggers the display of the first target area. After the user drags the interaction option to the first target area, it can trigger the marking of the target virtual item. In addition, the vertical sliding operation triggers the browsing of the entire virtual item list to be collapsed. For example, slide up to view the virtual items before the first virtual item in the current virtual item list, and slide down to view the virtual items after the last virtual item in the current list of virtual items.
在一些实施例中,终端在判定滑动操作是否为横向滑动操作时,确定该滑动操作的滑动方向,在该滑动操作的滑动方向与水平方向之间的夹角位于目标角度范围内的情况下,确定该滑动操作为横向滑动操作。可选地,该目标角度范围是[-α,α],其中,α为技术人员根据经验设定的经验值,或者,由于不同用户的手指宽度不尽相同,终端采集用户的多次滑动操作以及最终所欲的操作结果,最终为不同用户配置取值不同的α,可选地,α能够由服务器在云端进行修改或更新,本申请实施例不对α的取值进行具体限定。In some embodiments, when determining whether the sliding operation is a horizontal sliding operation, the terminal determines the sliding direction of the sliding operation, and when the angle between the sliding direction of the sliding operation and the horizontal direction is within the target angle range, It is determined that the sliding operation is a horizontal sliding operation. Optionally, the target angle range is [-α,α], where α is an empirical value set by the technician based on experience, or, because different users have different finger widths, the terminal collects multiple sliding operations of the user As well as the final desired operation result, different values of α are finally configured for different users. Optionally, α can be modified or updated by the server on the cloud, and the embodiment of the present application does not specifically limit the value of α.
在一些实施例中,终端在确定滑动操作的滑动方向时,确定滑动操作的操作起始点(也即最初的触摸点),再确定当前时刻用户手指的触摸点(也即最新的触摸点),由两个触摸点确定一条射线(射线以最初的触摸点为端点,向最新的触摸点所指示的方向延伸),这条射线所指示的方向也即滑动操作的滑动方向,从而能够简化滑动方向的确定流程。In some embodiments, when determining the sliding direction of the sliding operation, the terminal determines the operation starting point of the sliding operation (that is, the initial touch point), and then determines the touch point of the user's finger at the current moment (that is, the latest touch point), A ray is determined by two touch points (the ray takes the initial touch point as the endpoint and extends to the direction indicated by the latest touch point). The direction indicated by this ray is also the sliding direction of the sliding operation, so that the sliding direction can be simplified determination process.
在一些实施例中,终端在确定滑动操作的滑动方向时,确定滑动操作的滑动轨迹,并将当前时刻用户手指的触摸点(也即最新的触摸点)在该滑动轨迹上的切线方向确定为滑动操作的滑动方向,能够在用户沿着曲线滑动时确定出更加精确的滑动方向,本申请实施例不对滑动方向的获取方式进行具体限定。In some embodiments, when determining the sliding direction of the sliding operation, the terminal determines the sliding track of the sliding operation, and determines the tangent direction of the touch point (that is, the latest touch point) of the user's finger on the sliding track at the current moment as The sliding direction of the sliding operation can determine a more accurate sliding direction when the user slides along a curve, and the embodiment of the present application does not specifically limit the manner of obtaining the sliding direction.
在一些实施例中,在确定了滑动操作的滑动方向之后,确定滑动方向与水平方向之间的夹角,需要说明的是,在本申请实施例所取的夹角是指滑动方向与水平方向之间小于或等于90度的夹角,而非大于90度的另外一个补角。In some embodiments, after the sliding direction of the sliding operation is determined, the angle between the sliding direction and the horizontal direction is determined. It should be noted that the included angle in this embodiment of the application refers to the sliding direction and the horizontal direction An included angle less than or equal to 90 degrees, not another supplementary angle greater than 90 degrees.
在一些实施例中,确定了夹角的角度值之后,判断该夹角是否大于或等于该目标角度范围的最小值(即下界)且小于或等于该目标角度范围的最大值(即上界),如果该夹角大于或等于该目标角度范围的最小值且小于或等于该目标角度范围的最大值,则确定该夹角位于该目标角度范围内,也即该滑动操作为横向滑动操作,否则,如果该夹角小于该目标角度范围的最小值,或者该夹角大于该目标角度范围的最大值,那么确定该夹角不位于该目标角度范围内,该滑动操作不是横向滑动操作。In some embodiments, after determining the angle value of the included angle, it is judged whether the included angle is greater than or equal to the minimum value (ie the lower limit) of the target angle range and less than or equal to the maximum value (ie the upper limit) of the target angle range , if the angle is greater than or equal to the minimum value of the target angle range and less than or equal to the maximum value of the target angle range, it is determined that the angle is within the target angle range, that is, the sliding operation is a horizontal sliding operation, otherwise , if the included angle is smaller than the minimum value of the target angle range, or the included angle is larger than the maximum value of the target angle range, then it is determined that the included angle is not within the target angle range, and the sliding operation is not a horizontal sliding operation.
在一些实施例中,由于横向滑动操作仅仅限定了用户是对互动选项进行横向地滑动,但横向滑动操作还具体划分为左滑操作和右滑操作。可选地,该第一目标条件是该滑动操作为右滑操作,也即仅当用户向右滑动目标虚拟道具的互动选项时,才会触发显示第一目标区域;或者,该第一目标条件是该滑动操作为左滑操作,也即仅当用户向左滑动目标虚拟道具的互动选项时,才会触发显示第一目标区域;或者,该第一目标条件是滑动操作为左滑操作或右滑操作,也即无论用户向左滑动还是向右滑动目标虚拟道具的互动选项,均会触发显示第一目标区域,本申请实施例不对第一目标条件的内容进行具体限定。In some embodiments, since the horizontal sliding operation only limits the user to horizontally slide the interaction options, the horizontal sliding operation is also specifically divided into left sliding operation and right sliding operation. Optionally, the first target condition is that the sliding operation is a right sliding operation, that is, only when the user slides the interaction option of the target virtual prop to the right, the display of the first target area will be triggered; or, the first target condition If the sliding operation is a left sliding operation, that is, only when the user slides the interaction option of the target virtual prop to the left, the display of the first target area will be triggered; or, the first target condition is that the sliding operation is a left sliding operation or a right The sliding operation, that is, whether the user slides to the left or right to the interaction option of the target virtual item, will trigger the display of the first target area, and the embodiment of the present application does not specifically limit the content of the first target condition.
在一些实施例中,在判定横向滑动操作是左滑操作还是右滑操作时,根据最新的触摸点与最初的触摸点之间的位置关系来判定,在确定滑动操作为横向滑动操作的前提下,如果最初的触摸点位于最新的触摸点的左侧,那么确定为右滑操作,如果最初的触摸点位于最新的触摸点的右侧,那么确定为左滑操作。可选地,在判断最初的触摸点是位于最新的触摸点的左侧还是右侧时,可以分别获取两个触摸点的屏幕坐标,根据两个触摸点的屏幕坐标的横坐 标的大小关系来进行判定,而大小关系需要根据屏幕坐标系的原点位置以及横轴的正方向来确定,这里不做赘述。In some embodiments, when determining whether the horizontal sliding operation is a left sliding operation or a right sliding operation, it is determined according to the positional relationship between the latest touch point and the original touch point, on the premise that the sliding operation is determined to be a horizontal sliding operation , if the initial touch point is on the left side of the latest touch point, then it is determined as a right swipe operation, and if the initial touch point is on the right side of the latest touch point, then it is determined as a left swipe operation. Optionally, when judging whether the initial touch point is located on the left or the right side of the latest touch point, the screen coordinates of the two touch points can be obtained respectively, and the screen coordinates of the two touch points can be determined according to the size relationship of the abscissa Make a judgment, and the size relationship needs to be determined according to the origin position of the screen coordinate system and the positive direction of the horizontal axis, so I won’t go into details here.
图3是本申请实施例提供的一种滑动操作的原理性示意图,如图3所示,假设第一目标条件为滑动操作为右滑操作为例说明,左侧的阴影部分301示出了右滑操作的区域划分,右侧的阴影部分302示出了纵向滑动操作(以及左滑操作)的区域划分,能够看出,当用户手指触发的滑动操作的滑动方向位于阴影部分301所示的目标角度范围[-α,α]内,且滑动操作的操作起始点位于操作结束点的左侧时,换言之当用户手指从触点300向阴影部分301拖动时,确定该滑动操作为右滑操作即滑动操作符合第一目标条件,触发显示第一目标区域,此时的互动选项310可以呈现出被用户手指拖拽的效果。否则,当用户手指触发的滑动操作的滑动方向位于阴影部分302所示的角度范围时,换言之当用户手指从触点300向阴影部分302拖动时,则确定触发滑动浏览虚拟道具列表的功能,此时的互动选项310不会呈现出被用户手指拖拽的效果。Fig. 3 is a schematic diagram of a sliding operation provided by the embodiment of the present application. As shown in Fig. 3, assuming that the first target condition is that the sliding operation is a right The area division of the sliding operation, the shaded part 302 on the right shows the area division of the vertical sliding operation (and the left sliding operation). When the angle range [-α,α], and the operation start point of the sliding operation is on the left side of the operation end point, in other words, when the user’s finger drags from the touch point 300 to the shaded part 301, the sliding operation is determined to be a right sliding operation That is, the sliding operation meets the first target condition and triggers the display of the first target area. At this time, the interaction option 310 may present the effect of being dragged by the user's finger. Otherwise, when the sliding direction of the sliding operation triggered by the user's finger is within the angle range shown by the shaded part 302, in other words, when the user's finger drags from the touch point 300 to the shaded part 302, it is determined to trigger the function of sliding to browse the list of virtual items, At this time, the interaction option 310 will not appear to be dragged by the user's finger.
在一些实施例中,在滑动操作符合第一目标条件的情况下,终端在显示第一目标区域时,在该虚拟场景中该虚拟道具列表的右侧显示该第一目标区域。也即是说,该第一目标区域位于该虚拟道具列表的右侧,可选地,第一目标区域是一个矩形区域,且矩形区域的高度与虚拟道具列表的高度相同,这样能够达到比较整齐美观的视觉效果。可选地,该第一目标区域还能够是圆形区域、菱形区域、不规则区域等,本申请实施例不对第一目标区域的形状进行具体限定。在一些实施例中,第一目标区域位于虚拟道具列表的左侧,或者,位于虚拟道具列表的上方,或者,位于虚拟道具列表的下方,或者,位于虚拟场景中的任一位置(例如,上边缘、侧边缘、中心等),本申请实施例不对第一目标区域的位置进行具体限定。In some embodiments, when the sliding operation meets the first target condition, when the terminal displays the first target area, the first target area is displayed on the right side of the virtual props list in the virtual scene. That is to say, the first target area is located on the right side of the virtual item list. Optionally, the first target area is a rectangular area, and the height of the rectangular area is the same as the height of the virtual item list, which can achieve a relatively neat Beautiful visuals. Optionally, the first target area can also be a circular area, a diamond-shaped area, an irregular area, etc. The embodiment of the present application does not specifically limit the shape of the first target area. In some embodiments, the first target area is located on the left side of the list of virtual items, or above the list of virtual items, or below the list of virtual items, or anywhere in the virtual scene (for example, above Edge, side edge, center, etc.), the embodiment of the present application does not specifically limit the position of the first target area.
在一些实施例中,第一目标区域的显示位置与第一目标条件所指示的滑动操作的操作类型具有对应关系,例如,当第一目标条件为滑动操作为左滑操作时,第一目标区域位于虚拟道具列表的左侧,或者,当第一目标条件为滑动操作为右滑操作时,第一目标区域位于虚拟道具列表的右侧,这样能够降低用户操作的复杂度,用户在向某一方向滑动、触发指定类型的滑动操作后,能够继续向这一方向滑动自然滑动到第一目标区域中,方便用户快速将互动选项拖拽到第一目标区域,提高了人机交互效率。In some embodiments, the display position of the first target area has a corresponding relationship with the operation type of the sliding operation indicated by the first target condition. For example, when the first target condition is that the sliding operation is a left sliding operation, the first target area It is located on the left side of the virtual item list, or when the first target condition is that the sliding operation is a right sliding operation, the first target area is located on the right side of the virtual item list, which can reduce the complexity of user operations. After sliding in a direction and triggering a specified type of sliding operation, you can continue to slide in this direction and slide naturally into the first target area, which is convenient for users to quickly drag and drop interactive options to the first target area, improving the efficiency of human-computer interaction.
在另一些实施例中,第一目标区域的显示位置与第一目标条件所指示的滑动操作的操作类型没有对应关系,例如,当第一目标条件为滑动操作为左滑操作时,第一目标区域位于虚拟道具列表的右侧,这样即使用户由于误触操作不小心对互动选项进行左滑操作,那么由于完成虚拟道具标记需要绕过虚拟道具列表一圈拖拽到右侧的第一目标区域中,因此只要尽快松手即可放弃对目标虚拟道具进行标记,进一步降低了误触概率。In some other embodiments, the display position of the first target area does not correspond to the operation type of the sliding operation indicated by the first target condition. For example, when the first target condition is that the sliding operation is a left sliding operation, the first target The area is located on the right side of the virtual item list, so that even if the user accidentally swipe left on the interaction option due to a mistaken operation, then the virtual item needs to be dragged around the virtual item list to the first target area on the right to complete the marking of the virtual item Therefore, as long as you let go as soon as possible, you can give up marking the target virtual item, further reducing the probability of false touch.
在一些实施例中,由于用户在对互动选项执行滑动操作的过程,是一个按住互动选项后持续移动的过程,终端通过呈现出互动选项被用户手指“拖拽”出虚拟道具列表,并跟随着用户手指的滑动轨迹进行移动,能够达到更加直观有趣的视觉效果,提高人机交互效率。In some embodiments, since the process of the user performing a sliding operation on the interactive option is a process of pressing and holding the interactive option and then continuing to move, the terminal is "dragged" out of the virtual item list by the user's finger by presenting the interactive option, and follows Moving along the sliding track of the user's finger can achieve more intuitive and interesting visual effects and improve the efficiency of human-computer interaction.
可选地,终端响应于对该目标虚拟道具的互动选项的滑动操作,在该虚拟场景中,显示该目标虚拟道具的互动选项随着该滑动操作的滑动轨迹进行移动;在该目标虚拟道具的互动选项到达该滑动操作的操作结束点的情况下,显示该目标虚拟道具的互动选项回到该滑动操作的操作起始点。Optionally, the terminal responds to the sliding operation of the interactive option of the target virtual prop, in the virtual scene, the interactive option displayed on the target virtual prop moves along with the sliding track of the sliding operation; When the interaction option reaches the operation end point of the sliding operation, the interaction option displaying the target virtual item returns to the operation start point of the sliding operation.
在一些实施例中,终端确定该滑动操作的操作起始点在整个互动选项中的相对位置,在显示互动选项的移动过程中,显示整个互动选项以该操作起始点作为起点,沿着滑动轨迹进行平移,在平移过程中保证每个时刻下滑动操作的触摸点与整个互动选项的相对位置不变。In some embodiments, the terminal determines the relative position of the starting point of the sliding operation in the entire interactive option, and during the movement process of displaying the interactive option, the display of the entire interactive option takes the starting point of the operation as the starting point and proceeds along the sliding track. Panning, during the panning process, ensure that the relative position of the touch point of the sliding operation and the entire interaction option remains unchanged at each moment.
在一些实施例中,当互动选项到达滑动操作的操作结束点时,显示互动选项瞬移回到了操作起始点,能够节约终端的处理资源,或者,显示互动选项逐渐从操作结束点向操作起始点移动的过程,能够避免互动选项突兀地回到操作起始点,达到更好的视觉效果,或者,播放互动选项飞回操作起始点的动画(或特效、动效等),能够优化终端的显示效果、丰富显示方式。例如,在互动选项到达操作结束点时,播放的动画是互动选项在小幅度抖动之后飞回 了操作起始点,使得整个滑动过程具有更高的趣味性。In some embodiments, when the interactive option reaches the operation end point of the sliding operation, the display interactive option teleports back to the operation start point, which can save the processing resources of the terminal, or, the display interaction option gradually moves from the operation end point to the operation start point During the moving process, it can prevent the interactive option from abruptly returning to the starting point of the operation to achieve better visual effects, or play the animation (or special effects, dynamic effects, etc.) that the interactive option flies back to the starting point of the operation, which can optimize the display effect of the terminal , Rich display methods. For example, when the interactive option reaches the end point of the operation, the animation played is that the interactive option flies back to the starting point of the operation after a small shake, making the entire sliding process more interesting.
图4是本申请实施例提供的一种拖拽互动选项的原理性示意图,以第一目标条件为滑动操作为右滑操作为例说明,如图4左侧所示,当用户手指触发的滑动操作为右滑操作时,也即用户手指从触点300开始向阴影部分301拖拽互动选项310时,说明滑动操作是右滑操作即滑动操作符合第一目标条件,触发在虚拟道具列表的右侧显示第一目标区域320,第一目标区域320的高度与虚拟道具列表的高度相等,接着,随着用户手指从触点300开始向阴影部分301滑动、并从阴影部分301中的触摸点继续向第一目标区域320内滑动,此时在终端屏幕中会呈现出如图4右侧所示的,互动选项310也随着用户手指被拖拽至第一目标区域320中的视觉效果,也即是说,显示互动选项310随着滑动操作的滑动轨迹进行移动的过程。Fig. 4 is a schematic diagram of a dragging interaction option provided by the embodiment of the present application. It is illustrated by taking the first target condition as the sliding operation as the right sliding operation as an example. As shown on the left side of Fig. 4, when the sliding When the operation is a right-swipe operation, that is, when the user’s finger starts to drag the interactive option 310 from the touch point 300 to the shaded part 301, it means that the sliding operation is a right-sliding operation, that is, the sliding operation meets the first target condition, and triggers the right-hand function in the virtual item list. The first target area 320 is displayed on the side, and the height of the first target area 320 is equal to the height of the virtual item list. Then, as the user's finger slides from the touch point 300 to the shaded part 301 and continues from the touch point in the shaded part 301 Swipe into the first target area 320. At this time, the terminal screen will present the visual effect as shown on the right side of FIG. That is to say, the display interaction option 310 moves along with the sliding track of the sliding operation.
203、终端响应于该滑动操作的操作结束点位于该第一目标区域内,在该虚拟场景中对该目标虚拟道具进行区别显示。203. The terminal responds to the operation end point of the sliding operation being located in the first target area, and distinguishably displays the target virtual prop in the virtual scene.
在一些实施例中,终端通过触摸传感器持续检测用户手指对终端屏幕的触摸操作,直到用户松手也即触摸传感器不再检测到触摸操作时,将用户松手时的触摸点作为操作结束点,该操作结束点也即代表了滑动操作的滑动轨迹的终点,接着,终端确定该操作结束点的屏幕坐标,并检测该操作结束点的屏幕坐标是否位于第一目标区域内,在该操作结束点的屏幕坐标位于第一目标区域内的情况下,执行对目标虚拟道具进行区别显示的步骤,在该操作结束点的屏幕坐标不位于第一目标区域内的情况下,则退出流程。In some embodiments, the terminal continues to detect the touch operation of the user's finger on the terminal screen through the touch sensor until the user releases the hand, that is, when the touch sensor no longer detects the touch operation, the touch point when the user releases the hand is used as the end point of the operation. The end point also represents the end point of the sliding track of the sliding operation. Then, the terminal determines the screen coordinates of the end point of the operation, and detects whether the screen coordinates of the end point of the operation are within the first target area. The screen at the end point of the operation If the coordinates are within the first target area, execute the step of distinguishing the target virtual props; if the screen coordinates of the operation end point are not within the first target area, exit the procedure.
在一些实施例中,终端对目标虚拟道具进行区别显示,是指:在虚拟道具列表中,以区别于其他虚拟道具的显示方式来显示该目标虚拟道具的互动选项,即在虚拟道具列表中对目标虚拟道具的互动选项进行区别显示;或者,在虚拟场景中,以区别于其他虚拟道具的显示方式来显示该目标虚拟道具的道具模型,即在虚拟场景中对目标虚拟道具自身的道具模型进行区别显示;或者,既在虚拟道具列表中对互动选项进行区别显示,又在虚拟场景中对道具模型进行区别显示,本申请实施例不对区别显示的方式进行具体限定。In some embodiments, the terminal displays the target virtual item differently, which refers to: displaying the interactive options of the target virtual item in a display manner different from other virtual items in the list of virtual items, that is, displaying the interactive options of the target virtual item in the list of virtual items. or, in the virtual scene, display the prop model of the target virtual prop in a display manner different from that of other virtual props, that is, in the virtual scene, carry out the prop model of the target virtual prop itself. Distinguished display; or, the interactive options are displayed differently in the list of virtual props, and the prop models are displayed differently in the virtual scene. The embodiment of the present application does not specifically limit the manner of distinguishing display.
在一些实施例中,终端在该虚拟道具列表中,对该目标虚拟道具的互动选项进行区别显示。在上述过程中,通过在虚拟道具列表中对互动选项进行区别显示,能够使得被控虚拟对象或者其友方虚拟对象在进行道具拾取的时候,通过虚拟道具列表一目了然的查看出哪些道具是被自身或团队成员标记过的,在标记了具有较强辅助功能或攻击功能的虚拟道具的情况下,方便了自身对抗和团队协作,提高了人机交互效率。In some embodiments, the terminal displays interactive options of the target virtual item in the list of virtual items in a differentiated manner. In the above process, through the differential display of the interaction options in the virtual item list, the controlled virtual object or its friendly virtual object can clearly see which items are controlled by itself through the virtual item list when picking up items. Or marked by team members, in the case of marking virtual props with strong auxiliary functions or attack functions, it is convenient for self-confrontation and team cooperation, and improves the efficiency of human-computer interaction.
可选地,终端对该互动选项进行颜色更改,使得该互动选项的颜色不同于其他互动选项的颜色,例如,原本虚拟道具列表中各个互动选项均为黑色背景,在进行区别显示时将该互动选项修改为白色背景或彩色背景(如红色背景、绿色背景等),本申请实施例不对互动选项的颜色进行具体限定。Optionally, the terminal changes the color of the interaction option so that the color of the interaction option is different from the colors of other interaction options. For example, each interaction option in the original virtual item list has a black background. The options are modified to a white background or a colored background (such as a red background, a green background, etc.), and this embodiment of the present application does not specifically limit the colors of the interactive options.
可选地,终端对该互动选项进行透明度修改,使得该互动选项的透明度大于其他互动选项的透明度,从而能够在虚拟道具列表中凸显出该互动选项,例如,原本虚拟道具列表中各个互动选项的透明度均为50%,在进行区别显示时将该互动选项的透明度修改为100%(或者修改为80%、90%等),本申请实施例不对互动选项的透明度进行具体限定。Optionally, the terminal modifies the transparency of the interaction option, so that the transparency of the interaction option is greater than that of other interaction options, so that the interaction option can be highlighted in the virtual item list, for example, each interaction option in the original virtual item list Transparency is 50%, and the transparency of the interactive option is changed to 100% (or 80%, 90%, etc.) when performing differential display. This embodiment of the present application does not specifically limit the transparency of the interactive option.
可选地,终端在该互动选项上显示目标图标,该目标图标用于指示该目标虚拟道具被进行了特殊标记,该目标图标可以是任一形式,例如,目标图标是一个绿色的圆形图标,当然目标图标也能够设置成其他颜色或形状,本申请实施例不对目标图标的显示方式进行具体限定。可选地,终端在互动选项的任一位置上显示该目标图标,例如,在互动选项的右上角显示该目标图标,或者,在互动选项的左上角显示该目标图标,本申请实施例不对目标图标的显示位置进行具体限定。Optionally, the terminal displays a target icon on the interaction option, and the target icon is used to indicate that the target virtual prop has been specially marked, and the target icon can be in any form, for example, the target icon is a green circular icon Of course, the target icon can also be set in other colors or shapes, and this embodiment of the present application does not specifically limit the display manner of the target icon. Optionally, the terminal displays the target icon at any position of the interactive option, for example, displays the target icon in the upper right corner of the interactive option, or displays the target icon in the upper left corner of the interactive option. The display position of the icon is specifically limited.
可选地,终端对该互动选项的边缘进行高亮显示,使得该互动选项的边缘具有发光特效,以在虚拟道具列表中凸显出来该互动选项,呈现出一种对该互动选项添加“勾边特效”的视觉效果,例如,对互动选项的边缘进行蓝色高亮,使得该互动选项的边缘具有蓝光特效,当然,也能够添加其他颜色的发光特效,本申请实施例不对发光特效的颜色进行具体限定。Optionally, the terminal highlights the edge of the interactive option, so that the edge of the interactive option has a luminous effect, so as to highlight the interactive option in the list of virtual props, presenting a "hooked edge" effect on the interactive option. "Special Effects" visual effect, for example, highlight the edge of the interactive option in blue, so that the edge of the interactive option has a blue light effect. Of course, it is also possible to add other colors of special effects. Specific limits.
可选地,除了上述更改颜色、更改透明度、显示目标图标、边缘高亮显示之外,终端还能够在该互动选项上播放标记动画,或者,在该互动选项上显示文字提示信息“已被XXX(被控虚拟对象的昵称)标记”等,本申请实施例不对互动选项的区别显示方式进行具体限定。Optionally, in addition to the above-mentioned color change, transparency change, target icon display, and edge highlighting, the terminal can also play a marker animation on this interactive option, or display a text prompt message on this interactive option "has been used by XXX (nickname of the accused virtual object) mark", etc., this embodiment of the present application does not specifically limit the distinguishing display methods of the interaction options.
在一些实施例中,终端在该虚拟场景中显示的该目标虚拟道具的道具模型上,显示标记图形。由于虚拟道具列表仅是方便总览各个虚拟道具的一个菜单栏,在虚拟场景中还会显示各个虚拟道具的道具模型,可选地,在2D虚拟场景中显示2D道具模型,在3D虚拟场景中显示3D道具模型,本申请实施例不对虚拟场景或道具模型的维度进行具体限定。当通过滑动操作对目标虚拟道具进行标记之后,除了在虚拟道具列表中对目标虚拟道具的互动选项进行区别显示之外,还能够在虚拟场景中对目标虚拟道具的道具模型也进行区别显示,使得经过标记的目标虚拟道具的显示效果更加直观,不管是查看虚拟道具列表还是查看道具模型,均能够快速注意到被标记的目标虚拟道具,便于决策如何利用目标虚拟道具进行对抗的互动策略,提高了人机交互效率。In some embodiments, the terminal displays a marker graphic on the prop model of the target virtual prop displayed in the virtual scene. Since the list of virtual props is only a menu bar for convenient overview of each virtual prop, the prop model of each virtual prop will also be displayed in the virtual scene. Optionally, the 2D prop model will be displayed in the 2D virtual scene, and the For the 3D prop model, the embodiment of the present application does not specifically limit the dimensions of the virtual scene or the prop model. After marking the target virtual prop through the sliding operation, in addition to distinguishing the interactive options of the target virtual prop in the virtual prop list, it is also possible to distinguish the prop model of the target virtual prop in the virtual scene, so that The display effect of the marked target virtual props is more intuitive. Whether viewing the virtual props list or viewing the props model, you can quickly notice the marked target virtual props, which is convenient for deciding how to use the target virtual props to fight against the interactive strategy, which improves the Human-computer interaction efficiency.
可选地,该标记图形用于指示该目标虚拟道具被进行了特殊标记,该标记图形是任一形式的图形,例如,标记图形是一个圆形浮标,在圆形浮标的中心显示有目标虚拟道具的道具图片,当然标记图形还能够被提供为其他的显示形式,例如设置成感叹号形状的红色浮标等,本申请实施例不对标记图形的显示方式进行具体限定。Optionally, the marking graphic is used to indicate that the target virtual prop has been specially marked, and the marking graphic is any form of graphics, for example, the marking graphic is a circular buoy, and the target virtual prop is displayed in the center of the circular buoy The prop picture of the prop, of course, the mark graphic can also be provided in other display forms, such as a red buoy set in the shape of an exclamation mark, etc., and the embodiment of the present application does not specifically limit the display mode of the mark figure.
可选地,终端在目标虚拟道具的道具模型的周围显示该标记图形,例如,在该目标虚拟道具的道具模型的上方预设高度处显示该标记图形,该预设高度是任一大于或等于0的数值,或者,终端在该道具模型的周围的任一位置显示该标记图形,例如,显示在该道具模型的中心、左侧、右侧、底部等,本申请实施例不对标记图形的显示位置进行具体限定。Optionally, the terminal displays the marker graphic around the prop model of the target virtual prop, for example, displays the marker graphic at a preset height above the prop model of the target virtual prop, and the preset height is any value greater than or equal to 0, or the terminal displays the marker graphic at any position around the prop model, for example, displayed on the center, left side, right side, bottom, etc. of the prop model, the embodiment of the present application does not The location is specifically limited.
在一些实施例中,在该标记图形的周围还显示一些提示信息,该提示信息包括但不限于:目标虚拟道具的道具名称、对目标虚拟道具添加标记的该被控虚拟对象的昵称、目标虚拟道具与被控虚拟对象当前的距离等,本申请实施例不对标记图案周围显示的提示信息进行具体限定。In some embodiments, some prompt information is displayed around the mark graphic, the prompt information includes but not limited to: the prop name of the target virtual prop, the nickname of the controlled virtual object that marks the target virtual prop, the target virtual For the current distance between the prop and the controlled virtual object, etc., the embodiment of the present application does not specifically limit the prompt information displayed around the marking pattern.
在一些实施例中,该标记图形仅在标记了目标虚拟道具的终端上显示,使得在被控虚拟对象的视野内能够看到道具模型上显示的标记图形,可选地,这一标记图形还能够通过服务器,同步至与被控虚拟对象属于同一阵营或队伍内的友方虚拟对象所对应的各个终端,以使得友方虚拟对象对应的终端也能够在目标虚拟道具的道具模型上显示该标记图形,换言之,在友方虚拟对象的视野内也能够看到道具模型上显示的标记图形。换一种表述,该标记图形在被控虚拟对象以及友方虚拟对象的视野内均可见,该友方虚拟对象与该被控虚拟对象处于同一队伍或同一阵营。In some embodiments, the marker graphic is only displayed on the terminal marked with the target virtual prop, so that the marker graphic displayed on the prop model can be seen within the field of view of the controlled virtual object. Optionally, this marker graphic is also displayed It can be synchronized to each terminal corresponding to the friendly virtual object belonging to the same faction or team as the controlled virtual object through the server, so that the terminal corresponding to the friendly virtual object can also display the mark on the prop model of the target virtual prop Graphics, in other words, the marker graphics displayed on the prop model can also be seen within the field of view of the friendly virtual object. In other words, the marker graphic is visible in the field of view of both the controlled virtual object and the friendly virtual object, and the friendly virtual object is in the same team or the same camp as the controlled virtual object.
可选地,在进行信息同步时,在该滑动操作的操作结束点位于该第一目标区域内的情况下,终端向服务器发送道具标记指令,该道具标记指令至少携带目标虚拟道具的道具标识(Identification,ID)和被控虚拟对象的对象ID,此外,该道具标记指令还能够携带滑动操作的结束时刻等。服务器在接收到该道具标记指令之后,将该道具标记指令发送至被控虚拟对象的各个友方虚拟对象所对应的终端,友方虚拟对象对应的终端接收到该道具标识指令之后,也在该虚拟场景中对该目标虚拟道具进行区别显示,区别显示的方式与本终端类似,这里不做赘述。Optionally, when performing information synchronization, when the operation end point of the sliding operation is located within the first target area, the terminal sends an item marking instruction to the server, and the item marking instruction carries at least the item identification of the target virtual item ( Identification, ID) and the object ID of the controlled virtual object. In addition, the prop marking instruction can also carry the end time of the sliding operation, etc. After the server receives the item marking instruction, it sends the item marking instruction to the terminal corresponding to each friendly virtual object of the controlled virtual object, and after the terminal corresponding to the friendly virtual object receives the item identification instruction, it also In the virtual scene, the target virtual prop is displayed differently, and the way of different display is similar to that of the terminal, so it will not be repeated here.
在一些实施例中,终端在该虚拟场景中显示标记提示信息,该标记提示信息用于提示被控虚拟对象对该目标虚拟道具进行标记,这样能够给操控该被控虚拟对象的用户带来更加直观的交互反馈,提高了人机交互效率。可选地,该标记提示信息是“被控虚拟对象标记了目标虚拟道具”,或者具有其他的提示内容,本申请实施例不对标记提示信息的文本内容进行具体限定。In some embodiments, the terminal displays marking prompt information in the virtual scene, and the marking prompt information is used to prompt the controlled virtual object to mark the target virtual prop, which can bring more benefits to the user who manipulates the controlled virtual object. Intuitive interactive feedback improves the efficiency of human-computer interaction. Optionally, the marking prompt information is "the controlled virtual object marks the target virtual item", or has other prompt content, and this embodiment of the present application does not specifically limit the text content of the marking prompt information.
在一些实施例中,与标记图形能够通过服务器同步至友方虚拟对象所对应的各个终端类似地,该标记提示信息也能够通过服务器同步至友方虚拟对象所对应的各个终端,也即是说,该标记提示信息在该被控虚拟对象以及友方虚拟对象的视野内均可见,该友方虚拟对象与该 被控虚拟对象处于同一队伍或同一阵营。其中,标记提示信息的同步方式与标记图形的同步方式类似,这里不做赘述。In some embodiments, similar to how the marker graphic can be synchronized to each terminal corresponding to the friendly virtual object through the server, the marker prompt information can also be synchronized to each terminal corresponding to the friendly virtual object through the server, that is to say , the marked prompt information is visible in the field of view of the controlled virtual object and the friendly virtual object, and the friendly virtual object and the controlled virtual object are in the same team or camp. Wherein, the synchronization method of marking prompt information is similar to the synchronization method of marking graphics, which will not be repeated here.
上述所有可选技术方案,能够采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions can be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.
本申请实施例提供的方法,通过提供一种新型的标记虚拟道具的人机交互方式,在检测到用户对虚拟道具列表中目标虚拟道具的互动选项执行滑动操作时,显示第一目标区域,并在用户将互动选项拖拽至第一目标区域内时,视为对目标虚拟道具标记完毕,对目标虚拟道具进行区别显示,相较于在虚拟道具列表中各个虚拟道具的互动选项右侧添加标记按钮的方式,由于本方案需要将互动选项拖拽至第一目标区域内才能完成标记,极大地降低了用户操作的误触率,且操作方式简单、便捷性高,因此能够提高人机交互效率。The method provided in the embodiment of the present application provides a new type of human-computer interaction method for marking virtual items. When it is detected that the user performs a sliding operation on the interaction option of the target virtual item in the list of virtual items, the first target area is displayed, and When the user drags the interaction option to the first target area, it is deemed that the target virtual item has been marked, and the target virtual item is displayed differently, compared to adding a mark on the right side of the interaction option of each virtual item in the list of virtual items The way of buttons, because this solution needs to drag the interactive option to the first target area to complete the marking, which greatly reduces the false touch rate of user operation, and the operation method is simple and convenient, so it can improve the efficiency of human-computer interaction .
图5是本申请实施例提供的一种虚拟道具的显示方法的流程图。参见图5,该实施例由电子设备执行,以下以电子设备为终端为例进行说明,例如终端是图1所示的第一终端120或第二终端160,该实施例包括下述步骤:Fig. 5 is a flowchart of a method for displaying virtual props provided by an embodiment of the present application. Referring to FIG. 5, this embodiment is executed by an electronic device. The following takes the electronic device as an example for description. For example, the terminal is the first terminal 120 or the second terminal 160 shown in FIG. 1. This embodiment includes the following steps:
501、终端在虚拟场景中显示虚拟道具列表,该虚拟道具列表包括至少一个可拾取的虚拟道具的互动选项。501. The terminal displays a list of virtual props in a virtual scene, where the list of virtual props includes at least one interactive option of a virtual prop that can be picked up.
上述步骤501与上述步骤201类似,这里不做赘述。The foregoing step 501 is similar to the foregoing step 201, and details are not repeated here.
502、终端响应于用户对该虚拟道具列表中目标虚拟道具的互动选项的滑动操作,若该滑动操作符合第一目标条件,在该虚拟场景中显示第一目标区域。502. The terminal responds to the user's sliding operation on the interaction option of the target virtual item in the virtual item list, and if the sliding operation meets the first target condition, display the first target area in the virtual scene.
上述步骤502与上述步骤202类似,这里不做赘述。The foregoing step 502 is similar to the foregoing step 202, and details are not described here.
503、终端在该虚拟场景中,显示该目标虚拟道具的互动选项随着该滑动操作的滑动轨迹进行移动。503. In the virtual scene, the terminal displays the interactive option of the target virtual item to move along with the sliding track of the sliding operation.
在一些实施例中,终端确定该滑动操作的操作起始点在整个互动选项中的相对位置,在显示互动选项的移动过程中,显示整个互动选项以该操作起始点作为起点,沿着滑动轨迹进行平移,在平移过程中可保证每个时刻下滑动操作的触摸点与整个互动选项的相对位置不变。In some embodiments, the terminal determines the relative position of the starting point of the sliding operation in the entire interactive option, and during the movement process of displaying the interactive option, the display of the entire interactive option takes the starting point of the operation as the starting point and proceeds along the sliding track. Panning, during the panning process, it can ensure that the relative position of the touch point of the sliding operation and the entire interaction option remains unchanged at each moment.
504、若该目标虚拟道具的互动选项到达该滑动操作的操作结束点,终端显示该目标虚拟道具的互动选项回到该滑动操作的操作起始点。504. If the interaction option of the target virtual item reaches the operation end point of the sliding operation, the terminal displays that the interaction option of the target virtual item returns to the operation start point of the sliding operation.
在一些实施例中,终端通过触摸传感器持续检测用户手指对终端屏幕的触摸操作,直到用户松手也即触摸传感器不再检测到触摸操作时,将用户松手时的触摸点作为操作结束点,该操作结束点也即代表了滑动操作的滑动轨迹的终点。In some embodiments, the terminal continues to detect the touch operation of the user's finger on the terminal screen through the touch sensor until the user releases the hand, that is, when the touch sensor no longer detects the touch operation, the touch point when the user releases the hand is used as the end point of the operation. The end point also represents the end point of the sliding track of the sliding operation.
在一些实施例中,当互动选项到达滑动操作的操作结束点时,显示互动选项瞬移回到了操作起始点,能够节约终端的处理资源,或者,播放互动选项飞回操作起始点的动画(或特效、动效等),能够优化终端的显示效果、丰富显示方式。例如,在互动选项到达操作结束点时,播放的动画是互动选项在小幅度抖动之后飞回了操作起始点,使得整个滑动过程具有更高的趣味性。In some embodiments, when the interactive option reaches the end point of the sliding operation, it is displayed that the interactive option has teleported back to the starting point of the operation, which can save processing resources of the terminal, or play an animation of the interactive option flying back to the starting point of the operation (or special effects, dynamic effects, etc.), which can optimize the display effect of the terminal and enrich the display methods. For example, when the interactive option reaches the end point of the operation, the animation played is that the interactive option flies back to the starting point of the operation after a small shake, making the whole sliding process more interesting.
在上述步骤503-504中,由于用户在对互动选项执行滑动操作的过程,是一个按住互动按钮后持续移动的过程,因此终端通过上述步骤503-504,能够呈现出互动选项被用户手指“拖拽”出虚拟道具列表,并跟随着用户手指的滑动轨迹进行移动的视觉效果,这种视觉效果更加直观、趣味性高,能够与用户发出的交互操作即滑动操作有机结合,提高人机交互效率。In the above steps 503-504, since the user performs a sliding operation on the interactive option, it is a process of continuing to move after pressing the interactive button, so the terminal can present the interactive option through the above steps 503-504. Drag and drop out of the list of virtual props, and follow the sliding track of the user's finger to move the visual effect. This visual effect is more intuitive and interesting. It can be organically combined with the interactive operation issued by the user, that is, the sliding operation, to improve human-computer interaction. efficiency.
505、终端响应于该滑动操作的操作结束点位于该第一目标区域内,在该虚拟场景中对该目标虚拟道具进行区别显示。505. The terminal responds to the sliding operation where the operation end point is located in the first target area, and displays the target virtual prop differently in the virtual scene.
上述步骤505与上述步骤203类似,这里不做赘述。The above-mentioned step 505 is similar to the above-mentioned step 203, and details are not repeated here.
图6是本申请实施例提供的一种第一目标区域的界面示意图,如图6所示,在虚拟场景600中显示有虚拟道具列表601,当用户对目标虚拟道具的互动选项602进行了滑动操作时,终端在虚拟场景600中显示第一目标区域603,当用户拖拽互动选项602至第一目标区域603内,也即操作结束点位于第一目标区域603内时,触发终端对该目标虚拟道具进行区别显示。Fig. 6 is a schematic diagram of the interface of a first target area provided by the embodiment of the present application. As shown in Fig. 6, a list of virtual props 601 is displayed in the virtual scene 600. When the user slides the interaction option 602 of the target virtual prop During operation, the terminal displays the first target area 603 in the virtual scene 600, and when the user drags the interaction option 602 into the first target area 603, that is, when the operation end point is located in the first target area 603, the terminal is triggered to select the target area 603. The virtual props are displayed differently.
506、终端在该虚拟场景中显示标记提示信息,该标记提示信息用于提示被控虚拟对象对该目标虚拟道具进行标记。506. The terminal displays marking prompt information in the virtual scene, where the marking prompt information is used to prompt the controlled virtual object to mark the target virtual prop.
可选地,该标记提示信息是“被控虚拟对象标记了目标虚拟道具”,或者具有其他的提示内容,本申请实施例不对标记提示信息的文本内容进行具体限定。Optionally, the marking prompt information is "the controlled virtual object marks the target virtual item", or has other prompt content, and this embodiment of the present application does not specifically limit the text content of the marking prompt information.
可选地,终端在虚拟场景中任一位置显示该标记提示信息,例如,在虚拟场景中小地图控件的左侧显示该标记提示信息,或者,在虚拟场景的中心位置显示该标记提示信息,或者,在虚拟道具列表的上方显示该标记提示信息,或者,在目标虚拟道具的道具模型上方显示该标记提示信息。Optionally, the terminal displays the marker prompt information at any position in the virtual scene, for example, displays the marker prompt information on the left side of the small map control in the virtual scene, or displays the marker prompt information at the center of the virtual scene, or , to display the marker prompt information above the virtual item list, or to display the marker prompt information above the item model of the target virtual item.
在上述过程中,通过在虚拟场景中显示标记提示信息,能够给操控该被控虚拟对象的用户带来更加直观的交互反馈,提高了人机交互效率。可选地,由于持续显示标记提示信息可能会遮挡被控虚拟对象的视野,对用户的游戏体验造成损害,因此在显示标记提示信息到达显示时间阈值之后,不再显示该标记提示信息,该显示时间阈值是任一大于0的数值,例如为3秒钟、5秒钟等,从而能够避免标记提示信息长期遮挡被控虚拟对象的视野,在提供对滑动操作的交互反馈的基础上进一步优化用户体验。In the above process, by displaying the marked prompt information in the virtual scene, more intuitive interactive feedback can be brought to the user who manipulates the controlled virtual object, and the efficiency of human-computer interaction is improved. Optionally, since continuous display of the marker prompt information may block the view of the controlled virtual object and cause damage to the user's game experience, the marker prompt information is no longer displayed after the marker prompt information reaches the display time threshold, and the display The time threshold is any value greater than 0, such as 3 seconds, 5 seconds, etc., so as to avoid long-term blockage of the visual field of the controlled virtual object by the marked prompt information, and further optimize the user on the basis of providing interactive feedback on sliding operations experience.
在一些实施例中,以类似于滚动字幕的方式,对该标记提示信息进行滚动显示,比如,在小地图控件的左侧显示标记提示信息之后,播放该标记提示信息向上滚动的动效,直到标记提示信息退出终端屏幕,使得标记提示信息淡出的效果更加具有趣味性、视觉效果更加流畅。In some embodiments, the marker prompt information is scrolled and displayed in a manner similar to a scrolling subtitle, for example, after the marker prompt information is displayed on the left side of the mini-map control, an upward scrolling animation of the marker prompt information is played until The mark prompt information exits the terminal screen, making the fade-out effect of the mark prompt information more interesting and the visual effect smoother.
在一些实施例中,仅在标记了目标虚拟道具的被控虚拟对象所对应终端上显示该标记提示信息,使得在被控虚拟对象的视野内能够看到道具模型上显示的标记图形。可选地,这一标记提示信息还能够通过服务器,同步至与被控虚拟对象属于同一阵营或队伍内的友方虚拟对象所对应的各个终端,以使得友方虚拟对象对应的终端也能够显示该标记提示信息,即在友方虚拟对象的视野内也能够看到该标记提示信息。换言之,该标记提示信息在该被控虚拟对象以及友方虚拟对象的视野内均可见,该友方虚拟对象与该被控虚拟对象处于同一队伍或同一阵营。In some embodiments, the mark prompt information is only displayed on the terminal corresponding to the controlled virtual object marked with the target virtual prop, so that the mark graphic displayed on the prop model can be seen within the field of view of the controlled virtual object. Optionally, this marking prompt information can also be synchronized to each terminal corresponding to the friendly virtual object belonging to the same camp or team as the controlled virtual object through the server, so that the terminal corresponding to the friendly virtual object can also display The mark prompt information, that is, the mark prompt information can also be seen within the field of vision of the friendly virtual object. In other words, the marked prompt information is visible within the field of view of the controlled virtual object and the friendly virtual object, and the friendly virtual object and the controlled virtual object are in the same team or camp.
可选地,在进行信息同步时,在该滑动操作的操作结束点位于该第一目标区域内的情况下,终端向服务器发送道具标记指令,该道具标记指令至少携带目标虚拟道具的道具标识(Identification,ID)和被控虚拟对象的对象ID,此外,该道具标记指令还能够携带滑动操作的结束时刻等。服务器在接收到该道具标记指令之后,将该道具标记指令发送至被控虚拟对象的各个友方虚拟对象所对应的终端,友方虚拟对象对应的终端接收到该道具标识指令之后,也在该虚拟场景中对该目标虚拟道具进行区别显示,并生成对应的标记提示信息,在虚拟场景中显示该标记提示信息。Optionally, when performing information synchronization, when the operation end point of the sliding operation is located within the first target area, the terminal sends an item marking instruction to the server, and the item marking instruction carries at least the item identification of the target virtual item ( Identification, ID) and the object ID of the controlled virtual object. In addition, the prop marking instruction can also carry the end time of the sliding operation, etc. After the server receives the item marking instruction, it sends the item marking instruction to the terminal corresponding to each friendly virtual object of the controlled virtual object, and after the terminal corresponding to the friendly virtual object receives the item identification instruction, it also The target virtual prop is displayed differently in the virtual scene, and corresponding marking prompt information is generated, and the marking prompt information is displayed in the virtual scene.
图7是本申请实施例提供的一种区别显示目标虚拟道具的界面示意图,如图7所示,在虚拟场景700中显示有虚拟道具列表701,当用户将目标虚拟道具的互动选项702拖拽至第一目标区域内之后,终端会对目标虚拟道具进行区别显示,首先,在互动选项702上显示有目标图标711,该目标图标711用于指示该目标虚拟道具被进行了特殊标记,其次,在目标虚拟道具的道具模型710上显示标记图形712,并在标记图形712的右侧显示目标虚拟道具与被控虚拟对象之间的当前距离为“1m(1米)”。此外,还在小地图控件的左侧显示有标记提示信息713,标记提示信息713能够以文本方式提示被控虚拟对象对目标虚拟道具进行了特殊标记。可选地,目标图标711、标记图形712和标记提示信息713均是自身及队友可见的。Fig. 7 is a schematic diagram of an interface for distinguishing and displaying target virtual props provided by the embodiment of the present application. As shown in Fig. 7, a list of virtual props 701 is displayed in a virtual scene 700. After arriving in the first target area, the terminal will display the target virtual item differently. First, a target icon 711 is displayed on the interaction option 702. The target icon 711 is used to indicate that the target virtual item has been specially marked. Secondly, A mark graphic 712 is displayed on the prop model 710 of the target virtual prop, and the current distance between the target virtual prop and the controlled virtual object is displayed as "1m (1 meter)" on the right side of the mark figure 712 . In addition, marking prompt information 713 is displayed on the left side of the mini-map control, and the marking prompt information 713 can remind the controlled virtual object to mark the target virtual prop in text form. Optionally, the target icon 711, the marker graphic 712 and the marker prompt information 713 are all visible to the user and teammates.
在一个示例性场景中,在标记图形和标记提示信息均为自身及队友可见的情况下,图8是本申请实施例提供的一种友方虚拟对象视野下的界面示意图,如图8所示,示出了在友方虚拟对象的视野下的虚拟场景。在友方虚拟对象的视野下,虚拟场景800中显示有标记提示信息810,提示被控虚拟对象对目标虚拟道具进行了特殊标记,并且在目标虚拟道具的道具模型上还显示有标记图形820,如图8所示,即使目标虚拟道具的道具模型被墙壁遮挡,仍 然通过标记图形820能够一目了然地定位到目标虚拟道具所处的位置,达到更加直观的显示效果,方便了友方虚拟对象在虚拟场景中搜寻并拾取目标虚拟道具,提高了人机交互效率。In an exemplary scenario, in the case where both the marker graphic and the marker prompt information are visible to oneself and teammates, FIG. 8 is a schematic diagram of an interface in the field of view of a friendly virtual object provided by an embodiment of the present application, as shown in FIG. 8 , showing the virtual scene under the field of view of the friendly virtual object. In the field of view of the friendly virtual object, the virtual scene 800 displays marking prompt information 810, reminding that the controlled virtual object has made a special mark on the target virtual prop, and a mark graphic 820 is also displayed on the prop model of the target virtual prop, As shown in Figure 8, even if the prop model of the target virtual prop is blocked by the wall, the location of the target virtual prop can be clearly located through the marking graphic 820, achieving a more intuitive display effect and facilitating friendly virtual objects in the virtual world. Search and pick up the target virtual props in the scene, which improves the efficiency of human-computer interaction.
507、终端响应于对区别显示的该目标虚拟道具的互动选项的滑动操作,若该滑动操作符合第二目标条件,在该虚拟场景中显示第二目标区域。507. The terminal responds to the sliding operation on the interactive option of the target virtual prop that is displayed differently, and if the sliding operation meets the second target condition, display the second target area in the virtual scene.
可选地,该第二目标条件与第一目标条件相同,使得对虚拟道具的标记操作以及取消标记操作采取相同的操作方式,或者,该第二目标条件与第一目标条件不同,使得对虚拟道具的标记操作以及取消标记操作采取不同的操作方式,本申请实施例不对该第二目标条件是否与第一目标条件相同进行具体限定。Optionally, the second target condition is the same as the first target condition, so that the marking operation and unmarking operation of the virtual prop adopt the same operation mode, or the second target condition is different from the first target condition, so that the virtual prop The marking operation and unmarking operation of props adopt different operation modes, and this embodiment of the present application does not specifically limit whether the second target condition is the same as the first target condition.
以第二目标条件与第一目标条件相同为例进行说明,例如,该第一目标条件包括该滑动操作为横向滑动操作,那么第二目标条件也包括该滑动操作为横向滑动操作。在目标虚拟道具已经被标记的情况下,若用户再次对目标虚拟道具的互动选项执行了横向滑动操作,代表对互动选项的滑动操作符合该第二目标条件,执行显示第二目标区域的操作。需要说明的是,判断滑动操作是否为横向滑动操作的方式与上述步骤202类似,这里不做赘述。The second target condition is the same as the first target condition for illustration. For example, if the first target condition includes that the sliding operation is a horizontal sliding operation, then the second target condition also includes that the sliding operation is a horizontal sliding operation. When the target virtual item has been marked, if the user performs a horizontal sliding operation on the interaction option of the target virtual item again, it means that the sliding operation on the interaction option meets the second target condition, and the operation of displaying the second target area is performed. It should be noted that the manner of judging whether the sliding operation is a horizontal sliding operation is similar to the above-mentioned step 202 and will not be repeated here.
在一些实施例中,由于横向滑动操作仅仅限定了用户对互动选项进行横向地滑动,但横向滑动操作还具体划分为左滑操作和右滑操作。可选地,当第一目标条件为该滑动操作为右滑操作时,该第二目标条件为该滑动操作为左滑操作,从而提供“右滑标记、左滑取消”的人机交互方式。可选地,第一目标条件和第二目标条件均为该滑动操作为右滑操作,从而提供“右滑标记、再次右滑取消”的人机交互方式。可选地,当第一目标条件为该滑动操作为左滑操作时,该第二目标条件为该滑动操作为右滑操作,从而提供“左滑标记、右滑取消”的人机交互方式。可选地,第一目标条件和第二目标条件均为该滑动操作为左滑操作,从而提供“左滑标记、再次左滑取消”的人机交互方式,本申请实施例不对此进行具体限定。需要说明的是,判断横向滑动操作是左滑操作还是右滑操作的方式与上述步骤202类似,这里不做赘述。In some embodiments, since the horizontal sliding operation only limits the user to horizontally slide the interaction options, the horizontal sliding operation is also specifically divided into left sliding operation and right sliding operation. Optionally, when the first target condition is that the sliding operation is a right-swiping operation, the second target condition is that the sliding operation is a left-swiping operation, thereby providing a human-computer interaction mode of "right swipe to mark, left swipe to cancel". Optionally, both the first target condition and the second target condition are that the sliding operation is a right sliding operation, thereby providing a human-computer interaction manner of "swipe right to mark, slide right again to cancel". Optionally, when the first target condition is that the sliding operation is a left-swiping operation, the second target condition is that the sliding operation is a right-swiping operation, thereby providing a human-computer interaction mode of "left swipe to mark, right swipe to cancel". Optionally, both the first target condition and the second target condition are that the sliding operation is a left sliding operation, so as to provide a human-computer interaction mode of "swipe left to mark, slide left again to cancel", which is not specifically limited in this embodiment of the present application . It should be noted that the manner of judging whether the horizontal sliding operation is a left sliding operation or a right sliding operation is similar to the above-mentioned step 202, and will not be repeated here.
在上述过程中,通过配置不同的第一目标条件,以及不同的第二目标条件,使得两者组合能够创造出丰富多样的人机交互方式,除了服务器配置默认的人机交互方式之外,还能够向终端提供自定义人机交互方式,使得用户按照自身操作习惯来配置个性化的人机交互方式。In the above process, by configuring different first target conditions and different second target conditions, the combination of the two can create a variety of human-computer interaction methods. In addition to the server configuration default human-computer interaction methods, there are also It can provide customized human-computer interaction mode to the terminal, so that users can configure personalized human-computer interaction mode according to their own operating habits.
在一些实施例中,在滑动操作符合第二目标条件的情况下,终端在显示第二目标区域时,在该虚拟道具列表的右侧显示该第二目标区域。也即是说,该第二目标区域位于该虚拟道具列表的右侧,可选地,该第二目标区域与第一目标区域具有相同的大小和位置,但具有不同的颜色,或者,该第二目标区域与第一目标区域具有不同的大小、位置和颜色,本申请实施例不对此进行具体限定。In some embodiments, when the sliding operation meets the second target condition, when displaying the second target area, the terminal displays the second target area on the right side of the virtual item list. That is to say, the second target area is located on the right side of the virtual item list, optionally, the second target area has the same size and position as the first target area, but has a different color, or, the second target area The second target area and the first target area have different sizes, positions, and colors, which are not specifically limited in this embodiment of the present application.
在一个示例中,第二目标区域是一个矩形区域,且矩形区域的高度与虚拟道具列表的高度相同,这样能够达到比较整齐美观的视觉效果。可选地,该第二目标区域还能够是圆形区域、菱形区域、不规则区域等,本申请实施例不对第二目标区域的形状进行具体限定。In an example, the second target area is a rectangular area, and the height of the rectangular area is the same as the height of the virtual props list, so that a relatively tidy and beautiful visual effect can be achieved. Optionally, the second target area can also be a circular area, a diamond-shaped area, an irregular area, etc., and the embodiment of the present application does not specifically limit the shape of the second target area.
在一些实施例中,第二目标区域除了位于虚拟道具列表的右侧之外,还能够位于虚拟道具列表的左侧,或者,位于虚拟道具列表的上方,或者,位于虚拟道具列表的下方,或者,位于虚拟场景中的任一位置(例如,上边缘、侧边缘、中心等),本申请实施例不对第二目标区域的位置进行具体限定。In some embodiments, in addition to being located on the right side of the virtual item list, the second target area can also be located on the left side of the virtual item list, or located above the virtual item list, or located below the virtual item list, or , located at any position in the virtual scene (eg, upper edge, side edge, center, etc.), the embodiment of the present application does not specifically limit the position of the second target area.
在一些实施例中,第二目标区域的显示位置与第二目标条件所指示的滑动操作的操作类型具有对应关系,例如,当第二目标条件为滑动操作为左滑操作时,第二目标区域位于虚拟道具列表的左侧,或者,当第二目标条件为滑动操作为右滑操作时,第二目标区域位于虚拟道具列表的右侧,这样能够降低用户操作的复杂度,用户在向某一方向滑动、触发指定类型的滑动操作后,能够继续向这一方向滑动自然滑动到第二目标区域中,方便用户快速将互动选项拖拽到第二目标区域,提高了人机交互效率。In some embodiments, the display position of the second target area has a corresponding relationship with the operation type of the sliding operation indicated by the second target condition. For example, when the second target condition is that the sliding operation is a left sliding operation, the second target area The second target area is located on the left side of the virtual item list, or when the second target condition is that the sliding operation is a right sliding operation, the second target area is located on the right side of the virtual item list, which can reduce the complexity of user operations. After sliding in one direction and triggering a specified type of sliding operation, you can continue to slide in this direction and slide naturally into the second target area, which is convenient for users to quickly drag the interaction options to the second target area, improving the efficiency of human-computer interaction.
在另一些实施例中,第二目标区域的显示位置与第二目标条件所指示的滑动操作的操作类型没有对应关系,例如,当第二目标条件为滑动操作为左滑操作时,第二目标区域位于虚 拟道具列表的右侧,这样即使用户由于误触操作不小心对互动选项进行左滑操作,那么由于对虚拟道具取消标记时,需要绕过虚拟道具列表一圈拖拽到右侧的第二目标区域中,因此只要尽快松手即可放弃对目标虚拟道具的标记进行取消,进一步降低了误触概率。In some other embodiments, the display position of the second target area does not correspond to the operation type of the sliding operation indicated by the second target condition. For example, when the second target condition is that the sliding operation is a left sliding operation, the second target The area is located on the right side of the virtual item list, so that even if the user accidentally swipe left on the interaction option due to a mistaken operation, then when unmarking the virtual item, it needs to go around the list of virtual items and drag it to the first place on the right. In the second target area, as long as you let go as soon as possible, you can give up and cancel the mark of the target virtual item, further reducing the probability of accidental touch.
图9是本申请实施例提供的一种第二目标区域的界面示意图,如图9所示,在虚拟场景900中显示有虚拟道具列表901,此时用户已经完成了对目标虚拟道具的标记操作,因此在目标虚拟道具的互动选项902上显示有目标图标911,在目标虚拟道具的道具模型910上显示有标记图形912,且在小地图控件的左侧还显示有标记提示信息913。在这种情况下,用户再次对互动选项902执行滑动操作,且该滑动操作符合第二目标条件(例如该滑动操作为横向滑动操作),终端会显示第二目标区域920,用户拖拽互动选项902至第二目标区域920时,也即滑动操作的操作结束点位于第二目标区域920内时,则会在虚拟场景中取消对目标虚拟道具进行区别显示,也即取消显示目标图标911、标记图形912和标记提示信息913。Fig. 9 is a schematic diagram of the interface of a second target area provided by the embodiment of the present application. As shown in Fig. 9, a list of virtual props 901 is displayed in the virtual scene 900, and the user has completed the operation of marking the target virtual props , therefore, a target icon 911 is displayed on the interactive option 902 of the target virtual item, a marker graphic 912 is displayed on the item model 910 of the target virtual item, and marker prompt information 913 is also displayed on the left side of the mini-map control. In this case, the user performs a sliding operation on the interaction option 902 again, and the sliding operation meets the second target condition (for example, the sliding operation is a horizontal sliding operation), the terminal will display the second target area 920, and the user drags the interactive option 902 to the second target area 920, that is, when the operation end point of the sliding operation is located in the second target area 920, the differentiated display of the target virtual prop will be canceled in the virtual scene, that is, the display of the target icon 911, mark Graphics 912 and marker hints 913 .
508、终端响应于该滑动操作的操作结束点位于该第二目标区域内,在该虚拟场景中取消对该目标虚拟道具进行区别显示。508. The terminal responds that the operation end point of the sliding operation is located in the second target area, and cancels the differentiated display of the target virtual prop in the virtual scene.
终端检测滑动操作的操作结束点是否位于第二目标区域的方式与上述步骤203类似,这里不做赘述。The manner in which the terminal detects whether the operation end point of the sliding operation is located in the second target area is similar to the above-mentioned step 203, which will not be repeated here.
在一些实施例中,终端在取消对目标虚拟道具进行区别显示时,是指终端不再对目标虚拟道具进行区别显示,即,将目标虚拟道具从与其他虚拟道具不同的显示方式,恢复成与其他虚拟道具相同的显示方式。In some embodiments, when the terminal cancels the differential display of the target virtual item, it means that the terminal no longer performs differential display of the target virtual item, that is, restores the target virtual item from a different display mode from other virtual items to a Other virtual props are displayed in the same way.
在一些实施例中,假设标记状态下,在虚拟道具列表中对目标虚拟道具的互动选项进行了区别显示,那么在取消标记后,则取消在虚拟道具列表中对目标虚拟道具的互动选项进行区别显示,从而能够将虚拟场景恢复至未对目标虚拟道具进行标记之前的显示方式。In some embodiments, assuming that in the marked state, the interactive options of the target virtual item are displayed in a differentiated manner in the virtual item list, then after canceling the marking, the distinction of the interactive options of the target virtual item in the virtual item list is cancelled. display, so that the virtual scene can be restored to the display mode before the target virtual prop is marked.
在一些实施例中,假设标记状态下,在虚拟场景中对目标虚拟道具的道具模型进行了区别显示,例如在目标虚拟道具的道具模型上显示标记图形,那么在取消标记后,则会在目标虚拟道具的道具模型上取消显示标记图形,从而能够将虚拟场景恢复至未对目标虚拟道具进行标记之前的显示方式。In some embodiments, assuming that in the marked state, the prop model of the target virtual prop is displayed differently in the virtual scene, for example, a mark graphic is displayed on the prop model of the target virtual prop, then after the mark is canceled, the The display of the marking graphic on the prop model of the virtual prop is canceled, so that the virtual scene can be restored to the display mode before the target virtual prop is marked.
在一些实施例中,假设标记状态下,在虚拟场景中显示了标记提示信息,若在取消标记时该标记提示信息仍然显示在虚拟场景中,那么取消标记后,则会在虚拟场景中取消显示标记提示信息,从而能够将虚拟场景恢复至未对目标虚拟道具进行标记之前的显示方式。In some embodiments, assuming that in the marked state, the marked prompt information is displayed in the virtual scene, if the marked prompt information is still displayed in the virtual scene when the mark is canceled, then after the mark is canceled, it will be canceled in the virtual scene. The prompt information is marked, so that the virtual scene can be restored to the display mode before the target virtual prop is marked.
需要说明的是,如果对目标虚拟道具进行区别显示的操作会同步至友方虚拟对象的终端,那么上述取消对目标虚拟道具进行区别显示的操作,也需要对应同步至友方虚拟对象的终端,以保证同一阵营或队伍内的各个虚拟对象的信息及时互通。It should be noted that if the operation of differentially displaying the target virtual item will be synchronized to the terminal of the friendly virtual object, then the above operation of canceling the differential display of the target virtual item also needs to be synchronized to the terminal of the friendly virtual object. In order to ensure timely exchange of information among virtual objects in the same camp or team.
上述所有可选技术方案,能够采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions can be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.
本申请实施例提供的方法,通过提供一种新型的标记虚拟道具的人机交互方式,在检测到用户对虚拟道具列表中目标虚拟道具的互动选项执行滑动操作时,显示第一目标区域,并在用户将互动选项拖拽至第一目标区域内时,视为对目标虚拟道具标记完毕,对目标虚拟道具进行区别显示,相较于在虚拟道具列表中各个虚拟道具的互动选项右侧添加标记按钮的方式,由于本方案需要将互动选项拖拽至第一目标区域内才能完成标记,极大地降低了用户操作的误触率,且操作方式简单、便捷性高,因此能够提高人机交互效率。The method provided in the embodiment of the present application provides a new type of human-computer interaction method for marking virtual items. When it is detected that the user performs a sliding operation on the interaction option of the target virtual item in the list of virtual items, the first target area is displayed, and When the user drags the interaction option to the first target area, it is deemed that the target virtual item has been marked, and the target virtual item is displayed differently, compared to adding a mark on the right side of the interaction option of each virtual item in the list of virtual items The way of buttons, because this solution needs to drag the interactive option to the first target area to complete the marking, which greatly reduces the false touch rate of user operation, and the operation method is simple and convenient, so it can improve the efficiency of human-computer interaction .
图10是本申请实施例提供的一种虚拟道具的显示方法的原理性流程图,如1000所示,以虚拟道具为虚拟物品为例说明,此时的虚拟道具列表也即是虚拟物品列表,该实施例包括如下步骤:Fig. 10 is a schematic flowchart of a method for displaying virtual items provided by an embodiment of the present application. As shown in 1000, the virtual item is taken as an example for illustration. At this time, the list of virtual items is also a list of virtual items. This embodiment comprises the steps:
步骤一、用户手指按住虚拟物品列表中的虚拟物品并进行滑动。 Step 1. The user presses and slides a virtual item in the virtual item list with a finger.
步骤二、终端根据预设的α值划分滑动区域。Step 2: The terminal divides the sliding area according to the preset α value.
步骤三、终端判断用户手指是向横向滑动区域滑动,还是向纵向滑动区域滑动,如果向 横向滑动区域滑动,执行步骤四至步骤六,如果向纵向滑动区域滑动,执行步骤七至步骤八。Step 3. The terminal judges whether the user's finger slides to the horizontal sliding area or to the vertical sliding area. If sliding to the horizontal sliding area, perform steps 4 to 6. If sliding to the vertical sliding area, perform steps 7 to 8.
步骤四、终端判断为横向滑动操作,触发虚拟物品的图标(即互动选项)拖拽。Step 4: The terminal judges that it is a horizontal sliding operation, and triggers the dragging of the virtual item icon (that is, the interactive option).
步骤五、用户拖拽图标到标记区(即第一目标区域)松手。Step 5: The user drags the icon to the marked area (ie the first target area) and lets go.
步骤六、完成虚拟物品的标记。Step 6, completing the marking of the virtual item.
步骤七、终端判断为纵向滑动操作。Step 7, the terminal determines that it is a vertical sliding operation.
步骤八、终端触发滑动虚拟物品列表中浏览虚拟物品的功能。 Step 8, the terminal triggers the function of browsing virtual items in the sliding virtual item list.
在本申请实施例中,通过指定角度α值,能够智能区分出用户手指的滑动操作是属于横向滑动操作还是纵向滑动操作,从而针对提供虚拟物品列表的移动端游戏,增加了拖拽虚拟物品的图标的操作维度,同时由于用户需要拖动图标至指定区域(即第一目标区域)才能触发对应的物品标记功能,这样相当于增加了物品标记过程的二次确认环节,大幅降低了误触情况的发生。In the embodiment of the present application, by specifying the value of angle α, it is possible to intelligently distinguish whether the sliding operation of the user's finger belongs to a horizontal sliding operation or a vertical sliding operation, thereby increasing the dragging of virtual items for mobile games that provide a list of virtual items. The operation dimension of the icon, and because the user needs to drag the icon to the designated area (that is, the first target area) to trigger the corresponding item marking function, this is equivalent to increasing the secondary confirmation link of the item marking process, which greatly reduces the accidental touch. happened.
在一些实施例中,第一目标条件包括滑动操作为右滑操作,或者,在另一些实施例中,第一目标条件包括滑动操作为横向滑动操作,也即不管是左滑操作还是右滑操作,均能够触发显示第一目标区域,以提示用户继续拖拽互动选项至第一目标区域,完成对目标虚拟道具的标记。In some embodiments, the first target condition includes that the sliding operation is a right sliding operation, or, in other embodiments, the first target condition includes that the sliding operation is a horizontal sliding operation, that is, whether it is a left sliding operation or a right sliding operation , can trigger the display of the first target area to prompt the user to continue dragging the interaction option to the first target area to complete the marking of the target virtual item.
图11是本申请实施例提供的一种横向滑动操作的原理性示意图,如1100所示,示出了通过双侧的横向滑动操作的区域划分,由于横向滑动操作包括左滑操作和右滑操作两种,左侧阴影部分1101是左滑操作的区域划分,右侧阴影部分1102是右滑操作的区域划分。在一个示例性场景中,第一目标条件设定为滑动操作为横向滑动操作,那么通过双侧的横向滑动操作均能触发物品标记功能,也即只要用户手指触发了横向滑动操作,不管是横向滑动至左侧阴影部分1101的左滑操作,还是横向滑动至右侧阴影部分1102的右滑操作,均能够触发显示第一目标区域,以提示用户继续拖拽互动选项至第一目标区域,完成对目标虚拟道具的标记。FIG. 11 is a schematic diagram of a horizontal sliding operation provided by an embodiment of the present application. As shown in 1100, it shows the area division of the horizontal sliding operation on both sides. Since the horizontal sliding operation includes left sliding operation and right sliding operation There are two types, the left shaded part 1101 is the area division of the left swipe operation, and the right shaded part 1102 is the area division of the right swipe operation. In an exemplary scenario, if the first target condition is set to be a horizontal sliding operation, then the item marking function can be triggered by both sides of the horizontal sliding operation, that is, as long as the user’s finger triggers the horizontal sliding operation, no matter the A left swipe operation to slide to the left shadow part 1101, or a right swipe operation to slide horizontally to the right shadow part 1102, can both trigger the display of the first target area to prompt the user to continue dragging the interactive option to the first target area, and the completion A marker for the target avatar.
在一些实施例中,在检测到滑动操作符合第一目标条件时,显示多个不同的目标区域,不同的目标区域用于提供不同的交互功能,这时用户通过将互动选项拖拽至不同的目标区域,即可实现这一目标区域所对应的交互功能,使得这一操作方式的拓展性大大提高,且具有更高的可用性以及广泛的应用场景。In some embodiments, when it is detected that the sliding operation meets the first target condition, multiple different target areas are displayed, and different target areas are used to provide different interactive functions. At this time, the user drags the interactive options to different The target area can realize the interactive function corresponding to this target area, which greatly improves the scalability of this operation mode, and has higher usability and a wide range of application scenarios.
图12是本申请实施例提供的一种显示多个目标区域的示意图,如图12所示,以目标虚拟道具是目标虚拟物品为例进行说明,在用户手指对目标虚拟物品的互动选项触发的滑动操作符合第一目标条件时,显示5个不同的目标区域,包括标记区域1201(即第一目标区域)、立即使用区域1202、器械A安装区域1203、器械B安装区域1204、传送区域1205,这5个不同的目标区域分别能够实现5个不同的交互功能。其中,标记区域1201用于标记目标虚拟物品,用户拖拽目标虚拟物品的图标1210至标记区域1201,能够触发完成对目标虚拟物品的标记;立即使用区域1202用于立即使用目标虚拟物品,用户拖拽目标虚拟物品的图标1210至立即使用区域1202,能够触发立即使用目标虚拟物品;器械A安装区域1203用于将配件类的目标虚拟物品安装到器械A上,用户拖拽目标虚拟物品的图标1210至器械A安装区域1203,能够触发将配件类的目标虚拟物品安装到器械A上;器械B安装区域1204用于将配件类的目标虚拟物品安装到器械B上,用户拖拽目标虚拟物品的图标1210至器械B安装区域1204,能够触发将配件类的目标虚拟物品安装到器械B;传送区域1205用于将目标虚拟物品传送给特定队友所在的位置,用户拖拽目标虚拟物品的图标1210至传送区域1205,能够触发将目标虚拟物品立即传送到一名指定的特定队友所在的位置。Fig. 12 is a schematic diagram showing multiple target areas provided by the embodiment of the present application. As shown in Fig. 12, the target virtual prop is the target virtual item as an example for illustration. When the sliding operation meets the first target condition, five different target areas are displayed, including a marked area 1201 (ie, the first target area), an immediate use area 1202, an instrument A installation area 1203, an instrument B installation area 1204, and a delivery area 1205. These five different target areas can respectively realize five different interactive functions. Among them, the marking area 1201 is used to mark the target virtual item, and the user drags the icon 1210 of the target virtual item to the marking area 1201, which can trigger the completion of marking the target virtual item; the immediate use area 1202 is used to immediately use the target virtual item, and the user drags Drag the icon 1210 of the target virtual item to the immediate use area 1202, which can trigger the immediate use of the target virtual item; the device A installation area 1203 is used to install the target virtual item of accessories on the device A, and the user drags the icon 1210 of the target virtual item Go to the device A installation area 1203, which can trigger the installation of the target virtual item of the accessory class on the device A; the device B installation area 1204 is used to install the target virtual item of the accessory class on the device B, and the user drags the icon of the target virtual item 1210 to the equipment B installation area 1204, which can trigger the installation of the target virtual item of the accessory type on the equipment B; the transmission area 1205 is used to transmit the target virtual item to the location of a specific teammate, and the user drags the icon 1210 of the target virtual item to the transmission area Area 1205 can trigger the immediate transfer of the target virtual item to the location of a specified teammate.
如上图12所示,通过显示多个不同的目标区域,并为不同的目标区域设定不同的交互功能,使得这一拖拽虚拟物品的图标进行人机交互的操作方式的拓展性大大提高,且具有更高的可用性以及广泛的应用场景。As shown in Figure 12 above, by displaying multiple different target areas and setting different interactive functions for different target areas, the scalability of the operation method of dragging the icon of the virtual item for human-computer interaction is greatly improved. And it has higher availability and a wide range of application scenarios.
图13是本申请实施例提供的一种虚拟道具的显示装置的结构示意图,如图13所示,该 装置包括:Fig. 13 is a schematic structural diagram of a display device for a virtual prop provided by an embodiment of the present application. As shown in Fig. 13, the device includes:
第一显示模块1301,用于在虚拟场景中显示虚拟道具列表,该虚拟道具列表包括至少一个可拾取的虚拟道具的互动选项;The first display module 1301 is used to display a list of virtual props in the virtual scene, and the list of virtual props includes at least one interactive option for picking up virtual props;
第二显示模块1302,用于响应于对该虚拟道具列表中目标虚拟道具的互动选项的滑动操作,在该滑动操作符合第一目标条件的情况下,显示第一目标区域;The second display module 1302 is configured to display the first target area when the sliding operation meets the first target condition in response to the sliding operation of the interaction option of the target virtual item in the virtual item list;
第三显示模块1303,用于在该滑动操作的操作结束点位于该第一目标区域内的情况下,对该目标虚拟道具进行区别显示。The third display module 1303 is configured to distinguishably display the target virtual item when the operation end point of the sliding operation is within the first target area.
本申请实施例提供的装置,通过提供一种新型的标记虚拟道具的人机交互方式,在检测到用户对虚拟道具列表中目标虚拟道具的互动选项执行滑动操作时,显示第一目标区域,并在用户将互动选项拖拽至第一目标区域内时,视为对目标虚拟道具标记完毕,对目标虚拟道具进行区别显示,相较于在虚拟道具列表中各个虚拟道具的互动选项右侧添加标记按钮的方式,由于本方案需要将互动选项拖拽至第一目标区域内才能完成标记,极大地降低了用户操作的误触率,且操作方式简单、便捷性高,因此能够提高人机交互效率。The device provided in the embodiment of the present application provides a new type of human-computer interaction method for marking virtual items. When it is detected that the user performs a sliding operation on the interaction option of the target virtual item in the list of virtual items, the first target area is displayed, and When the user drags the interaction option to the first target area, it is deemed that the target virtual item has been marked, and the target virtual item is displayed differently, compared to adding a mark on the right side of the interaction option of each virtual item in the list of virtual items The way of buttons, because this solution needs to drag the interactive option to the first target area to complete the marking, which greatly reduces the false touch rate of user operation, and the operation method is simple and convenient, so it can improve the efficiency of human-computer interaction .
在一种可能实施方式中,该第一目标条件包括:该滑动操作为横向滑动操作。In a possible implementation manner, the first target condition includes: the sliding operation is a horizontal sliding operation.
在一种可能实施方式中,基于图13的装置组成,该装置还包括:确定模块,用于在该滑动操作的滑动方向与水平方向之间的夹角位于目标角度范围内的情况下,确定该滑动操作为横向滑动操作。In a possible implementation manner, based on the composition of the device in FIG. 13 , the device further includes: a determination module, configured to determine if the angle between the sliding direction of the sliding operation and the horizontal direction is within the target angle range The sliding operation is a horizontal sliding operation.
在一种可能实施方式中,该第二显示模块1302用于:在该虚拟道具列表的右侧显示该第一目标区域。In a possible implementation manner, the second display module 1302 is configured to: display the first target area on the right side of the virtual item list.
在一种可能实施方式中,该第三显示模块1303用于:在该虚拟道具列表中,对该目标虚拟道具的互动选项进行区别显示。In a possible implementation manner, the third display module 1303 is configured to: in the virtual item list, display interactive options of the target virtual item in a differentiated manner.
在一种可能实施方式中,该第三显示模块1303用于:在该目标虚拟道具的道具模型上显示标记图形。In a possible implementation manner, the third display module 1303 is configured to: display a mark graphic on the prop model of the target virtual prop.
在一种可能实施方式中,该标记图形在被控虚拟对象以及友方虚拟对象的视野内均可见,该友方虚拟对象与该被控虚拟对象处于同一队伍或同一阵营。In a possible implementation manner, the marker graphic is visible in the field of view of both the controlled virtual object and the friendly virtual object, and the friendly virtual object is in the same team or the same camp as the controlled virtual object.
在一种可能实施方式中,基于图13的装置组成,该装置还包括:第四显示模块,用于显示标记提示信息,该标记提示信息用于提示被控虚拟对象对该目标虚拟道具进行标记。In a possible implementation manner, based on the composition of the device in FIG. 13 , the device further includes: a fourth display module, configured to display marking prompt information, and the marking prompt information is used to prompt the controlled virtual object to mark the target virtual prop .
在一种可能实施方式中,该标记提示信息在该被控虚拟对象以及友方虚拟对象的视野内均可见,该友方虚拟对象与该被控虚拟对象处于同一队伍或同一阵营。In a possible implementation manner, the marking prompt information is visible in the field of view of the controlled virtual object and the friendly virtual object, and the friendly virtual object is in the same team or the same camp as the controlled virtual object.
在一种可能实施方式中,该第二显示模块1302还用于:响应于对区别显示的该目标虚拟道具的互动选项的滑动操作,在该滑动操作符合第二目标条件的情况下,显示第二目标区域;该第三显示模块1303还用于:在该滑动操作的操作结束点位于该第二目标区域内的情况下,取消对该目标虚拟道具进行区别显示。In a possible implementation manner, the second display module 1302 is further configured to: in response to a sliding operation on the interactive option of the target virtual prop that is displayed differently, if the sliding operation meets the second target condition, display the first Two target areas; the third display module 1303 is also used for: canceling the differential display of the target virtual item when the operation end point of the sliding operation is within the second target area.
在一种可能实施方式中,基于图13的装置组成,该装置还包括:第五显示模块,用于响应于对该目标虚拟道具的互动选项的滑动操作,显示该目标虚拟道具的互动选项随着该滑动操作的滑动轨迹进行移动;该第五显示模块,还用于在该目标虚拟道具的互动选项到达该滑动操作的操作结束点的情况下,显示该目标虚拟道具的互动选项回到该滑动操作的操作起始点。In a possible implementation manner, based on the composition of the device in FIG. 13 , the device further includes: a fifth display module, configured to display the interaction options of the target virtual move along the sliding track of the sliding operation; the fifth display module is also used to display the interactive options of the target virtual item back to the The operation start point for the swipe operation.
上述所有可选技术方案,能够采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions can be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.
需要说明的是:上述实施例提供的虚拟道具的显示装置在显示虚拟道具时,仅以上述各功能模块的划分进行举例说明,实际应用中,能够根据需要而将上述功能分配由不同的功能模块完成,即将电子设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的虚拟道具的显示装置与虚拟道具的显示方法实施例属于同一构思,其具体实现过程详见虚拟道具的显示方法实施例,这里不再赘述。It should be noted that when the virtual item display device provided by the above embodiment displays the virtual item, it only uses the division of the above-mentioned functional modules as an example. In practical applications, the above-mentioned functions can be assigned to different functional modules according to needs. Completion means that the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In addition, the virtual item display device and the virtual item display method embodiment provided by the above embodiment belong to the same concept, and its specific implementation process is detailed in the virtual item display method embodiment, which will not be repeated here.
图14是本申请实施例提供的一种电子设备的结构示意图,如图14所示,以电子设备为终端1400为例进行说明。可选地,该终端1400的设备类型包括:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端1400还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。FIG. 14 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. As shown in FIG. 14 , the electronic device is taken as a terminal 1400 as an example for illustration. Optionally, the device types of the terminal 1400 include: smart phones, tablet computers, MP3 players (Moving Picture Experts Group Audio Layer III, moving picture experts compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Motion Picture Expert compresses standard audio levels 4) Players, laptops or desktops. The terminal 1400 may also be called user equipment, portable terminal, laptop terminal, desktop terminal and other names.
通常,终端1400包括有:处理器1401和存储器1402。Generally, the terminal 1400 includes: a processor 1401 and a memory 1402 .
可选地,处理器1401包括一个或多个处理核心,比如4核心处理器、8核心处理器等。可选地,处理器1401采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。在一些实施例中,处理器1401包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1401集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1401还包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。Optionally, the processor 1401 includes one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. Optionally, the processor 1401 adopts at least one of DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) implemented in the form of hardware. In some embodiments, the processor 1401 includes a main processor and a coprocessor, and the main processor is a processor for processing data in a wake-up state, also called a CPU (Central Processing Unit, central processing unit); A coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1401 is integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 1401 further includes an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is configured to process computing operations related to machine learning.
在一些实施例中,存储器1402包括一个或多个计算机可读存储介质,可选地,该计算机可读存储介质是非暂态的。可选地,存储器1402还包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1402中的非暂态的计算机可读存储介质用于存储至少一个程序代码,该至少一个程序代码用于被处理器1401所执行以实现本申请中各个实施例提供的虚拟道具的显示方法。In some embodiments, memory 1402 includes one or more computer-readable storage media, which are optionally non-transitory. Optionally, the memory 1402 also includes a high-speed random access memory, and a 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 1402 is used to store at least one program code, and the at least one program code is used to be executed by the processor 1401 to implement the various embodiments provided in this application. Display method of virtual props.
在一些实施例中,终端1400还可选包括有:外围设备接口1403和至少一个外围设备。处理器1401、存储器1402和外围设备接口1403之间能够通过总线或信号线相连。各个外围设备能够通过总线、信号线或电路板与外围设备接口1403相连。可选地,外围设备包括:显示屏1405。In some embodiments, the terminal 1400 may optionally further include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402, and the peripheral device interface 1403 can be connected through buses or signal lines. Each peripheral device can be connected to the peripheral device interface 1403 through a bus, a signal line or a circuit board. Optionally, the peripheral device includes: a display screen 1405 .
外围设备接口1403用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器1401和存储器1402。在一些实施例中,处理器1401、存储器1402和外围设备接口1403被集成在同一芯片或电路板上;在一些其他实施例中,处理器1401、存储器1402和外围设备接口1403中的任意一个或两个在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 1403 is used to connect at least one peripheral device related to I/O (Input/Output, input/output) to the processor 1401 and the memory 1402 . In some embodiments, the processor 1401, memory 1402 and peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 1401, memory 1402 and peripheral device interface 1403 or The two are implemented on a separate chip or circuit board, which is not limited in this embodiment.
显示屏1405用于显示UI(User Interface,用户界面)。可选地,该UI包括图形、文本、图标、视频及其它们的任意组合。当显示屏1405是触摸显示屏时,显示屏1405还具有采集在显示屏1405的表面或表面上方的触摸信号的能力。该触摸信号能够作为控制信号输入至处理器1401进行处理。可选地,显示屏1405还用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏1405为一个,设置终端1400的前面板;在另一些实施例中,显示屏1405为至少两个,分别设置在终端1400的不同表面或呈折叠设计;在再一些实施例中,显示屏1405是柔性显示屏,设置在终端1400的弯曲表面上或折叠面上。甚至,可选地,显示屏1405设置成非矩形的不规则图形,也即异形屏。可选地,显示屏1405采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 1405 is used to display a UI (User Interface, user interface). Optionally, the UI includes graphics, text, icons, videos and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to collect touch signals on or above the surface of the display screen 1405 . The touch signal can be input to the processor 1401 as a control signal for processing. Optionally, the display screen 1405 is also used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards. In some embodiments, there is one display screen 1405, which is set on the front panel of the terminal 1400; in other embodiments, there are at least two display screens 1405, which are respectively arranged on different surfaces of the terminal 1400 or in a folding design; In an embodiment, the display screen 1405 is a flexible display screen, and is disposed on a curved surface or a folded surface of the terminal 1400 . Even, optionally, the display screen 1405 is set as a non-rectangular irregular figure, that is, a special-shaped screen. Optionally, the display screen 1405 is made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
在一些实施例中,终端1400还包括有一个或多个传感器1410。该一个或多个传感器1410包括但不限于:加速度传感器1411、陀螺仪传感器1412、压力传感器1413。In some embodiments, the terminal 1400 further includes one or more sensors 1410 . The one or more sensors 1410 include but are not limited to: an acceleration sensor 1411 , a gyro sensor 1412 , and a pressure sensor 1413 .
在一些实施例中,加速度传感器1411检测以终端1400建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器1411用于检测重力加速度在三个坐标轴上的分量。可选地,处理器1401根据加速度传感器1411采集的重力加速度信号,控制显示屏1405以横向视图或纵向视图进行用户界面的显示。加速度传感器1411还用于游戏的运动数据的采集。In some embodiments, the acceleration sensor 1411 detects the acceleration on the three coordinate axes of the coordinate system established by the terminal 1400 . For example, the acceleration sensor 1411 is used to detect the components of the gravitational acceleration on the three coordinate axes. Optionally, the processor 1401 controls the display screen 1405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1411 . The acceleration sensor 1411 is also used for collecting game motion data.
在一些实施例中,陀螺仪传感器1412检测终端1400的机体方向及转动角度,陀螺仪传感器1412与加速度传感器1411协同采集用户对终端1400的3D动作。处理器1401根据陀螺仪传感器1412采集的数据,实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、游戏控制以及惯性导航。In some embodiments, the gyro sensor 1412 detects the body orientation and rotation angle of the terminal 1400 , and the gyro sensor 1412 and the acceleration sensor 1411 cooperate to collect 3D actions of the user on the terminal 1400 . The processor 1401 realizes the following functions according to the data collected by the gyro sensor 1412: motion sensing (such as changing the UI according to the user's tilt operation), game control and inertial navigation.
可选地,压力传感器1413设置在终端1400的侧边框和/或显示屏1405的下层。当压力传感器1413设置在终端1400的侧边框时,能够检测用户对终端1400的握持信号,由处理器1401根据压力传感器1413采集的握持信号进行左右手识别或快捷操作。当压力传感器1413设置在显示屏1405的下层时,由处理器1401根据用户对显示屏1405的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。Optionally, the pressure sensor 1413 is disposed on a side frame of the terminal 1400 and/or a lower layer of the display screen 1405 . When the pressure sensor 1413 is set on the side frame of the terminal 1400 , it can detect the user's grip signal on the terminal 1400 , and the processor 1401 performs left and right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 1413 . When the pressure sensor 1413 is arranged on the lower layer of the display screen 1405, the processor 1401 controls the operable controls on the UI interface according to the user's pressure operation on the display screen 1405. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
本领域技术人员能够理解,图14中示出的结构并不构成对终端1400的限定,能够包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 14 does not constitute a limitation on the terminal 1400, and may include more or less components than shown in the figure, or combine some components, or adopt a different component arrangement.
图15是本申请实施例提供的一种电子设备的结构示意图,该电子设备1500可因配置或性能不同而产生比较大的差异,该电子设备1500包括一个或一个以上处理器(Central Processing Units,CPU)1501和一个或一个以上的存储器1502,其中,该存储器1502中存储有至少一条计算机程序,该至少一条计算机程序由该一个或一个以上处理器1501加载并执行以实现上述各个实施例提供的虚拟道具的显示方法。可选地,该电子设备1500还具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该电子设备1500还包括其他用于实现设备功能的部件,在此不做赘述。FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 1500 may have relatively large differences due to different configurations or performances. The electronic device 1500 includes one or more processors (Central Processing Units, CPU) 1501 and one or more memories 1502, wherein at least one computer program is stored in the memory 1502, and the at least one computer program is loaded and executed by the one or more processors 1501 to implement the above-mentioned various embodiments. Display method of virtual props. Optionally, the electronic device 1500 also has components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The electronic device 1500 also includes other components for implementing device functions, which will not be repeated here.
在示例性实施例中,还提供了一种计算机可读存储介质,例如包括至少一条计算机程序的存储器,上述至少一条计算机程序可由终端中的处理器执行以完成上述各个实施例中的虚拟道具的显示方法。例如,该计算机可读存储介质包括ROM(Read-Only Memory,只读存储器)、RAM(Random-Access Memory,随机存取存储器)、CD-ROM(Compact Disc Read-Only Memory,只读光盘)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a computer-readable storage medium, such as a memory including at least one computer program, and the above-mentioned at least one computer program can be executed by a processor in the terminal to complete the creation of the virtual props in the above-mentioned embodiments. Show method. For example, the computer-readable storage medium includes ROM (Read-Only Memory, read-only memory), RAM (Random-Access Memory, random-access memory), CD-ROM (Compact Disc Read-Only Memory, read-only disc), Magnetic tapes, floppy disks, and optical data storage devices, etc.
在示例性实施例中,还提供了一种计算机程序产品或计算机程序,包括一条或多条程序代码,该一条或多条程序代码存储在计算机可读存储介质中。电子设备的一个或多个处理器能够从计算机可读存储介质中读取该一条或多条程序代码,该一个或多个处理器执行该一条或多条程序代码,使得电子设备能够执行以完成上述实施例中的虚拟道具的显示方法。In an exemplary embodiment, there is also provided a computer program product or computer program comprising one or more pieces of program code stored in a computer readable storage medium. One or more processors of the electronic device can read the one or more program codes from the computer-readable storage medium, and the one or more processors execute the one or more program codes, so that the electronic device can execute to complete The method for displaying virtual props in the above embodiments.
本领域普通技术人员能够理解实现上述实施例的全部或部分步骤能够通过硬件来完成,也能够通过程序来指令相关的硬件完成,可选地,该程序存储于一种计算机可读存储介质中,可选地,上述提到的存储介质是只读存储器、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. Optionally, the program is stored in a computer-readable storage medium. Optionally, the storage medium mentioned above is a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.

Claims (14)

  1. 一种虚拟道具的显示方法,由电子设备执行,所述方法包括:A method for displaying virtual props, performed by an electronic device, the method comprising:
    在虚拟场景中显示虚拟道具列表,所述虚拟道具列表包括至少一个可拾取的虚拟道具的互动选项;Displaying a list of virtual props in the virtual scene, the list of virtual props includes at least one interaction option of the virtual props that can be picked up;
    响应于对所述虚拟道具列表中目标虚拟道具的互动选项的滑动操作,在所述滑动操作符合第一目标条件的情况下,显示第一目标区域;In response to a sliding operation on an interactive option of a target virtual item in the list of virtual items, if the sliding operation meets a first target condition, displaying a first target area;
    在所述滑动操作的操作结束点位于所述第一目标区域内的情况下,对所述目标虚拟道具进行区别显示。If the operation end point of the slide operation is located in the first target area, the target virtual item is displayed in a distinctive manner.
  2. 根据权利要求1所述的方法,所述第一目标条件包括:所述滑动操作为横向滑动操作。The method according to claim 1, the first target condition includes: the sliding operation is a horizontal sliding operation.
  3. 根据权利要求2所述的方法,所述方法还包括:The method according to claim 2, said method further comprising:
    在所述滑动操作的滑动方向与水平方向之间的夹角位于目标角度范围内的情况下,确定所述滑动操作为横向滑动操作。If the included angle between the sliding direction of the sliding operation and the horizontal direction is within a target angle range, it is determined that the sliding operation is a horizontal sliding operation.
  4. 根据权利要求1所述的方法,所述显示第一目标区域包括:The method according to claim 1, said displaying the first target area comprises:
    在所述虚拟道具列表的右侧显示所述第一目标区域。The first target area is displayed on the right side of the virtual item list.
  5. 根据权利要求1所述的方法,所述对所述目标虚拟道具进行区别显示包括:According to the method according to claim 1, said differentially displaying said target virtual props comprises:
    在所述虚拟道具列表中,对所述目标虚拟道具的互动选项进行区别显示。In the virtual item list, the interaction options of the target virtual item are displayed differently.
  6. 根据权利要求1所述的方法,所述对所述目标虚拟道具进行区别显示包括:According to the method according to claim 1, said differentially displaying said target virtual props comprises:
    在所述目标虚拟道具的道具模型上显示标记图形。A mark graphic is displayed on the prop model of the target virtual prop.
  7. 根据权利要求6所述的方法,所述标记图形在被控虚拟对象以及友方虚拟对象的视野内均可见,所述友方虚拟对象与所述被控虚拟对象处于同一队伍或同一阵营。According to the method according to claim 6, the mark graphic is visible in the field of view of both the controlled virtual object and the friendly virtual object, and the friendly virtual object and the controlled virtual object are in the same team or camp.
  8. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, said method further comprising:
    显示标记提示信息,所述标记提示信息用于提示被控虚拟对象对所述目标虚拟道具进行标记。Displaying marking prompt information, where the marking prompt information is used to prompt the controlled virtual object to mark the target virtual prop.
  9. 根据权利要求8所述的方法,所述标记提示信息在所述被控虚拟对象以及友方虚拟对象的视野内均可见,所述友方虚拟对象与所述被控虚拟对象处于同一队伍或同一阵营。According to the method according to claim 8, the marking prompt information is visible in the field of view of the controlled virtual object and the friendly virtual object, and the friendly virtual object and the controlled virtual object are in the same team or in the same team. camp.
  10. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, said method further comprising:
    响应于对区别显示的所述目标虚拟道具的互动选项的滑动操作,在所述滑动操作符合第二目标条件的情况下,显示第二目标区域;In response to a sliding operation on the interactive option of the target virtual item that is displayed differently, if the sliding operation meets a second target condition, displaying a second target area;
    在所述滑动操作的操作结束点位于所述第二目标区域内的情况下,取消对所述目标虚拟道具进行区别显示。When the operation end point of the sliding operation is located in the second target area, the differentiated display of the target virtual item is canceled.
  11. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, said method further comprising:
    响应于对所述目标虚拟道具的互动选项的滑动操作,显示所述目标虚拟道具的互动选项随着所述滑动操作的滑动轨迹进行移动;In response to a sliding operation on the interactive option of the target virtual item, displaying that the interactive option of the target virtual item moves along the sliding track of the sliding operation;
    在所述目标虚拟道具的互动选项到达所述滑动操作的操作结束点的情况下,显示所述目标虚拟道具的互动选项回到所述滑动操作的操作起始点。When the interaction option of the target virtual item reaches the operation end point of the sliding operation, displaying the interaction option of the target virtual item returns to the operation start point of the sliding operation.
  12. 一种虚拟道具的显示装置,所述装置包括:A display device for virtual props, the device comprising:
    第一显示模块,用于在虚拟场景中显示虚拟道具列表,所述虚拟道具列表包括至少一个可拾取的虚拟道具的互动选项;The first display module is used to display a list of virtual props in the virtual scene, and the list of virtual props includes at least one interaction option of the virtual props that can be picked up;
    第二显示模块,用于响应于对所述虚拟道具列表中目标虚拟道具的互动选项的滑动操作,在所述滑动操作符合第一目标条件的情况下,显示第一目标区域;The second display module is configured to display the first target area when the sliding operation meets the first target condition in response to the sliding operation on the interactive option of the target virtual item in the virtual item list;
    第三显示模块,用于在所述滑动操作的操作结束点位于所述第一目标区域内的情况下,对所述目标虚拟道具进行区别显示。The third display module is configured to distinguishably display the target virtual item when the operation end point of the sliding operation is within the first target area.
  13. 一种电子设备,所述电子设备包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条计算机程序,所述至少一条计算机程序由所述一个或多个处 理器加载并执行以实现如权利要求1至权利要求11任一项所述的虚拟道具的显示方法。An electronic device, the electronic device includes one or more processors and one or more memories, at least one computer program is stored in the one or more memories, and the at least one computer program is controlled by the one or more A processor is loaded and executed to realize the method for displaying virtual props according to any one of claims 1 to 11.
  14. 一种存储介质,所述存储介质中存储有至少一条计算机程序,所述至少一条计算机程序由处理器加载并执行以实现如权利要求1至权利要求11任一项所述的虚拟道具的显示方法。A storage medium, at least one computer program is stored in the storage medium, and the at least one computer program is loaded and executed by a processor to realize the method for displaying virtual props according to any one of claims 1 to 11 .
PCT/CN2022/090964 2021-06-09 2022-05-05 Virtual prop display method and apparatus, electronic device and storage medium WO2022257653A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2023558624A JP2024512582A (en) 2021-06-09 2022-05-05 Virtual item display methods, devices, electronic devices and computer programs
US18/296,684 US20230241501A1 (en) 2021-06-09 2023-04-06 Display method and apparatus for virtual prop, electronic device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110642665.2 2021-06-09
CN202110642665.2A CN113289331B (en) 2021-06-09 2021-06-09 Display method and device of virtual prop, electronic equipment and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/296,684 Continuation US20230241501A1 (en) 2021-06-09 2023-04-06 Display method and apparatus for virtual prop, electronic device and storage medium

Publications (1)

Publication Number Publication Date
WO2022257653A1 true WO2022257653A1 (en) 2022-12-15

Family

ID=77327695

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/090964 WO2022257653A1 (en) 2021-06-09 2022-05-05 Virtual prop display method and apparatus, electronic device and storage medium

Country Status (4)

Country Link
US (1) US20230241501A1 (en)
JP (1) JP2024512582A (en)
CN (1) CN113289331B (en)
WO (1) WO2022257653A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113289331B (en) * 2021-06-09 2022-12-06 腾讯科技(深圳)有限公司 Display method and device of virtual prop, electronic equipment and storage medium
CN114063780B (en) * 2021-11-18 2024-07-09 兰州乐智教育科技有限责任公司 Method and device for determining concentration of user, VR equipment and storage medium
CN116920379A (en) * 2022-04-08 2023-10-24 腾讯科技(深圳)有限公司 Virtual prop processing method, device, terminal, medium and program product
CN117122919A (en) * 2022-05-20 2023-11-28 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for processing marks in virtual scene
CN117618902A (en) * 2022-08-18 2024-03-01 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for discarding virtual consumable product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108837506A (en) * 2018-05-25 2018-11-20 网易(杭州)网络有限公司 Control method, device and the storage medium of virtual item in a kind of race games
JP2020044139A (en) * 2018-09-19 2020-03-26 株式会社コロプラ Game program, game method, and information processor
CN111475087A (en) * 2020-04-16 2020-07-31 腾讯科技(深圳)有限公司 Object selling method and device, storage medium and electronic device
CN111589103A (en) * 2020-05-19 2020-08-28 网易(杭州)网络有限公司 Method and device for processing virtual commodities in game and electronic equipment
CN113289331A (en) * 2021-06-09 2021-08-24 腾讯科技(深圳)有限公司 Display method and device of virtual prop, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110124310B (en) * 2019-05-20 2022-10-04 网易(杭州)网络有限公司 Method, device and equipment for sharing virtual prop information in game
CN110115838B (en) * 2019-05-30 2021-10-29 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for generating mark information in virtual environment
CN110270098B (en) * 2019-06-21 2023-06-23 腾讯科技(深圳)有限公司 Method, device and medium for controlling virtual object to mark virtual object
CN112044067A (en) * 2020-10-14 2020-12-08 腾讯科技(深圳)有限公司 Interface display method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108837506A (en) * 2018-05-25 2018-11-20 网易(杭州)网络有限公司 Control method, device and the storage medium of virtual item in a kind of race games
JP2020044139A (en) * 2018-09-19 2020-03-26 株式会社コロプラ Game program, game method, and information processor
CN111475087A (en) * 2020-04-16 2020-07-31 腾讯科技(深圳)有限公司 Object selling method and device, storage medium and electronic device
CN111589103A (en) * 2020-05-19 2020-08-28 网易(杭州)网络有限公司 Method and device for processing virtual commodities in game and electronic equipment
CN113289331A (en) * 2021-06-09 2021-08-24 腾讯科技(深圳)有限公司 Display method and device of virtual prop, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113289331A (en) 2021-08-24
CN113289331B (en) 2022-12-06
JP2024512582A (en) 2024-03-19
US20230241501A1 (en) 2023-08-03

Similar Documents

Publication Publication Date Title
WO2022257653A1 (en) Virtual prop display method and apparatus, electronic device and storage medium
WO2021184806A1 (en) Interactive prop display method and apparatus, and terminal and storage medium
WO2021227870A1 (en) Virtual object control method and apparatus, terminal, and storage medium
US11810234B2 (en) Method and apparatus for processing avatar usage data, device, and storage medium
CN112755527A (en) Virtual character display method, device, equipment and storage medium
WO2022037529A1 (en) Method and apparatus for controlling virtual object, and terminal and storage medium
CN113813603B (en) Game display control method and device, electronic equipment and storage medium
WO2022052831A1 (en) Method and apparatus for adjusting control position in application program, device and storage medium
WO2022121503A1 (en) Method and apparatus for displaying pre-order props, and device, medium and product
WO2023061133A1 (en) Virtual scene display method and apparatus, device, and storage medium
WO2023134272A1 (en) Field-of-view picture display method and apparatus, and device
CN112221135B (en) Picture display method, device, equipment and storage medium
JP2023527846A (en) Data processing method, apparatus, computer device and computer program in virtual scene
CN113101635A (en) Virtual map display method and device, electronic equipment and readable storage medium
WO2023071808A1 (en) Virtual scene-based graphic display method and apparatus, device, and medium
WO2023284470A1 (en) Method and apparatus for controlling virtual character, and device and storage medium
WO2023024880A1 (en) Method and apparatus for expression displaying in virtual scenario, and device and medium
WO2022170892A1 (en) Method and apparatus for controlling virtual object, device, storage medium, and program product
CN115645923A (en) Game interaction method and device, terminal equipment and computer-readable storage medium
KR102598659B1 (en) Selective indication of off-screen object presence
EP3984608A1 (en) Method and apparatus for controlling virtual object, and terminal and storage medium
WO2023207419A1 (en) Method and apparatus for displaying virtual object, and device and storage medium
WO2024037188A1 (en) Virtual object control method and apparatus, and device and medium
JP2019103815A (en) Game program, method and information processing apparatus
WO2023160068A1 (en) Virtual subject control method and apparatus, device, and medium

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: 22819255

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023558624

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE