Virtual article interaction method and related device

By drawing an item discarded pattern in a virtual scene, using the color and width of the pattern line to indicate the category and density of virtual items, and controlling the virtual objects to be discarded along the pattern trajectory, solving the problem of a single form of virtual items interaction and improving user experience and interactive fun.

CN120393402APending Publication Date: 2025-08-01SHENZHEN TENCENT NETWORK INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510622214.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-14
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

The lack of interactive forms in existing virtual item discarding methods leads to insufficient user experience and interactive fun.

Method used

By drawing an item discarded pattern in a virtual scene, using the color and width of the pattern lines to indicate the category and density of the virtual items, the virtual objects are controlled to discard virtual items along the pattern trajectory, and the drawing effect of the specified pattern is achieved.

Benefits of technology

It expands the interactive form of virtual items, improves the user's interactive experience and interactive fun, and enhances the interactivity of virtual scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120393402A_ABST
    Figure CN120393402A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual article interaction method and a related device, and the method comprises the steps: determining an article discarding pattern in a virtual scene, in the article discarding pattern, the color of a pattern line is used for indicating the type of a virtual article corresponding to the pattern line, and the width of the pattern line is used for indicating the density of the virtual article corresponding to the pattern line; and the direction of the pattern line in the article discarding pattern is used for indicating the arrangement track of the virtual articles, so that the discarding strategy of the virtual articles in the virtual scene can be indicated through the article discarding pattern. And if the discarding space corresponding to the article discarding pattern meets the article discarding condition, in response to the article drawing operation, controlling the virtual objects in the virtual scene to sequentially discard the virtual articles of the corresponding types along the track of the article discarding pattern, so that the discarded virtual articles are arranged along the track of the article discarding pattern in the virtual scene, and the discarded virtual articles are displayed in the virtual scene. The effect of drawing the specified pattern through the virtual article in the virtual scene is achieved, and the interaction experience and interaction fun of the user are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing, and in particular, to a virtual item interaction method and related devices. Background Art

[0002] In a virtual scene, there are interaction scenarios between virtual objects and virtual items, such as picking up, using, and discarding virtual items by virtual objects. When a virtual object discards a virtual item, a special display effect will be generated at the corresponding position of the virtual item to remind the virtual object to pick up the virtual item. In the current virtual item discarding method, the foot landing point of the virtual object can be automatically judged for the item to be discarded, and there is no more extension of interaction forms. Summary of the Invention

[0003] To solve the above technical problems, this application provides a virtual item interaction method and related devices. Through the item discarding pattern, the discarding strategy of the virtual item in the virtual scene can be indicated, and the virtual object in the virtual scene is controlled to sequentially discard corresponding categories of virtual items along the trajectory of the item discarding pattern, realizing the effect of drawing a specified pattern with virtual items in the virtual scene, expanding the interaction form of virtual items, and improving the user's interaction experience and interaction fun.

[0004] The embodiments of this application disclose the following technical solutions:

[0005] On the one hand, this application provides a virtual item interaction method, and the method includes:

[0006] Determine the item discarding pattern in the virtual scene; in the item discarding pattern, the color of the pattern line is used to indicate the category of the virtual item corresponding to the pattern line, and the width of the pattern line is used to indicate the density of the virtual item corresponding to the pattern line;

[0007] If the discarding space corresponding to the item discarding pattern meets the item discarding condition, in response to the item drawing operation, control the virtual object in the virtual scene to sequentially discard corresponding categories of virtual items along the trajectory of the item discarding pattern.

[0008] Optionally, the determining the item discarding pattern in the virtual scene includes:

[0009] In response to the pattern drawing operation, determine the initial drawing pattern corresponding to the pattern drawing operation;

[0010] Map the initial drawing pattern to the virtual scene to obtain the item discarding pattern.

[0011] Optionally, the method further includes:

[0012] In response to a drawing discard operation, determine a candidate line color according to the category of the virtual item;

[0013] The pattern drawing operation includes a first drawing operation, and the initial drawing pattern includes a first line corresponding to the first drawing operation; the determining the initial drawing pattern corresponding to the pattern drawing operation in response to the pattern drawing operation includes:

[0014] In response to a first drawing operation for a first color among the candidate line colors, determine a first line having the first color.

[0015] Optionally, the determining, in response to a first drawing operation for a first color among the candidate line colors, a first line having the first color includes:

[0016] In response to a first drawing operation for a first color among the candidate line colors, determine a drawn line having the first color according to the drawing order corresponding to the first drawing operation;

[0017] If the quantity of item requirements corresponding to the drawn line reaches the actual quantity of the virtual items of the first color, use the drawn line as the first line;

[0018] Set the status of the first color to an exhausted status.

[0019] Optionally, the method further includes:

[0020] Display at least one of a drawing control, a preset graphic identifier, and a character input control;

[0021] Wherein, if the first drawing operation includes a sliding operation corresponding to the drawing control, the drawing order is determined according to the sliding order of the sliding operation; if the first drawing operation includes a triggering operation for a target identifier among the preset graphic identifiers, the drawing order is determined according to the default drawing order of the target identifier; if the first drawing operation includes an input operation for the character input control, the drawing order is determined according to the stroke order of the input characters corresponding to the character input control.

[0022] Optionally, the first line includes a discard point, and the width of the first line is used to indicate the quantity of virtual items corresponding to a single discard point in the first line; the method further includes:

[0023] Display a line width adjustment control; in response to a triggering operation for the line width adjustment control before the first drawing operation, determine the width of the first line; and / or,

[0024] A display area size adjustment control; in response to a trigger operation on the area size adjustment control before the first drawing operation, determine the mapping relationship between the initial drawing pattern and the item discard pattern; according to the mapping relationship and a preset discard interval in the virtual scene, determine the spacing between two adjacent discard points in the first line.

[0025] Optionally, the method further includes:

[0026] In response to a drawing discard operation, display a drawing area for displaying the first line;

[0027] If the drawing area includes a grid, then in response to a first drawing operation on a first color among the candidate line colors, determining a first line having the first color includes:

[0028] In response to a first drawing operation on a first color among the candidate line colors, determine the target grid corresponding to the first drawing operation;

[0029] Fill the target grid with the first color, and the combination of the target grids serves as the first line.

[0030] Optionally, the pattern drawing operation further includes a second drawing operation, the initial drawing pattern further includes a second line corresponding to the second drawing operation, and the method further includes:

[0031] In response to a second drawing operation on a second color among the candidate line colors, determine a second line having the second color.

[0032] Optionally, the determining the candidate line colors according to the category of the virtual item in response to the drawing discard operation includes:

[0033] In response to a selection operation on the virtual item, determine the discardable items from the virtual item;

[0034] In response to the drawing discard operation, determine the candidate line colors according to the category of the discardable items.

[0035] Optionally, the determining the candidate line colors according to the category of the virtual item in response to the drawing discard operation includes:

[0036] In response to the drawing discard operation, if the virtual item meets a preset quantity condition, then determine the candidate line colors according to the category of the virtual item;

[0037] The method further includes: if the virtual item does not meet the preset quantity condition, then display a drawing discard failure prompt.

[0038] Optionally, if the discard space corresponding to the item discard pattern meets the item discard condition, in response to an item drawing operation, control the virtual object in the virtual scene to sequentially discard virtual items of corresponding categories along the trajectory of the item discard pattern, including:

[0039] If the discard space corresponding to the item discard pattern meets the item discard condition, in response to an item drawing operation, control the virtual object in the virtual scene to discard virtual items of corresponding categories along the trajectory of the item discard pattern according to the drawing order of the initial drawing pattern.

[0040] Optionally, if the discard space corresponding to the item discard pattern meets the item discard condition, in response to an item drawing operation, control the virtual object in the virtual scene to sequentially discard virtual items of corresponding categories along the trajectory of the item discard pattern, including:

[0041] If the discard space corresponding to the item discard pattern meets the item discard condition, in response to an item drawing operation, control the virtual object in the virtual scene to discard virtual items along the trajectory of the item discard pattern according to the value sorting sequence of virtual items of corresponding categories;

[0042] And / or, the method further includes: determining the virtual value corresponding to the initial drawing pattern according to the required quantity of items corresponding to the initial drawing pattern and the value sorting sequence of virtual items of corresponding categories.

[0043] Optionally, the method further includes:

[0044] Determine the display position of the pattern preview plane in the virtual scene according to the position of the virtual object in the virtual scene and the relative position relationship between the virtual object and the pattern preview plane;

[0045] According to the display position, display the pattern preview plane in the virtual scene and display the item discard pattern in the pattern preview plane.

[0046] Optionally, the method further includes:

[0047] Determine the discard space according to the display position, where the discard space includes the upper space within the first preset height above the pattern preview plane and the lower space within the second preset height below the pattern preview plane;

[0048] If there is a target space in the discard space and the target space meets the non-discard condition, determine that the discard space does not meet the item discard condition;

[0049] If there is no space in the discard space that meets the non-discard condition, it is determined that the discard space meets the item discard condition.

[0050] Optionally, the determining the discard space according to the display position includes:

[0051] Emit a first detection ray with a first preset height upward from the pattern preview plane and a second detection ray with a second preset height downward.

[0052] Determine the target space according to the abnormal rays in the first detection ray and the second detection ray; the abnormal rays include: the first detection ray encountering an obstacle and the second detection ray not contacting the ground.

[0053] Optionally, the third space in the discard space that meets the non-discard condition corresponds to a first area in the pattern preview plane, and the fourth space in the discard space that does not meet the non-discard condition corresponds to a second area in the pattern preview plane, and the first area and the second area are marked with different colors.

[0054] Optionally, the method further includes:

[0055] If the discard space corresponding to the item discard pattern meets the item discard condition, in response to the item drawing operation, cancel the display of the item discard pattern; and / or,

[0056] If the discard space corresponding to the item discard pattern does not meet the item discard condition, in response to the item drawing operation, display a non-discardable prompt; and / or,

[0057] Display the drawing progress of the item discard pattern; and / or,

[0058] Display a discard stop control, and the discard stop control is used to stop the virtual item discard when triggered.

[0059] On the other hand, the present application provides a virtual item interaction device, and the device includes:

[0060] A pattern determination unit for determining an item discard pattern in a virtual scene; in the item discard pattern, the color of the pattern line is used to indicate the category of the virtual item corresponding to the pattern line, and the width of the pattern line is used to indicate the density of the virtual item corresponding to the pattern line.

[0061] An item discard unit for, if the discard space corresponding to the item discard pattern meets the item discard condition, in response to the item drawing operation, controlling the virtual object in the virtual scene to sequentially perform virtual item discards of corresponding categories along the trajectory of the item discard pattern.

[0062] Optionally, the pattern determination unit includes:

[0063] A drawing unit, configured to determine an initial drawing pattern corresponding to the pattern drawing operation in response to the pattern drawing operation;

[0064] A mapping unit, configured to map the initial drawing pattern into the virtual scene to obtain an item discarding pattern.

[0065] Optionally, the device further includes:

[0066] A color determination unit, configured to determine a candidate line color according to the category of the virtual item in response to the drawing and discarding operation;

[0067] The pattern drawing operation includes a first drawing operation, and the initial drawing pattern includes a first line corresponding to the first drawing operation; the drawing unit includes:

[0068] A first drawing unit, configured to determine a first line having the first color in response to the first drawing operation for the first color among the candidate line colors.

[0069] Optionally, the first drawing unit includes:

[0070] A line determination unit, configured to determine a drawn line having the first color according to the drawing order corresponding to the first drawing operation in response to the first drawing operation for the first color among the candidate line colors;

[0071] A drawing subunit, configured to use the drawn line as the first line if the quantity of item requirements corresponding to the drawn line reaches the actual quantity of the virtual items of the first color;

[0072] A status setting unit, configured to set the status of the first color to an exhausted status.

[0073] Optionally, the device further includes:

[0074] A drawing method control display unit, configured to display at least one of a drawing control, a preset graphic identifier, and a character input control;

[0075] Wherein, if the first drawing operation includes a sliding operation corresponding to the drawing control, the drawing order is determined according to the sliding order of the sliding operation; if the first drawing operation includes a triggering operation for a target identifier among the preset graphic identifiers, the drawing order is determined according to the default drawing order of the target identifier; if the first drawing operation includes an input operation for the character input control, the drawing order is determined according to the stroke order of the input characters corresponding to the character input control.

[0076] Optionally, the first line includes discard points, and the width of the first line is used to indicate the number of virtual items corresponding to a single discard point in the first line; the apparatus further includes:

[0077] A width adjustment display unit, configured to display a line width adjustment control; and in response to a trigger operation on the line width adjustment control before the first drawing operation, determine the width of the first line; and / or,

[0078] A size adjustment display unit, configured to display an area size adjustment control; in response to a trigger operation on the area size adjustment control before the first drawing operation, determine the mapping relationship between the initial drawing pattern and the item discard pattern; and according to the mapping relationship and a preset discard interval in the virtual scene, determine the spacing between two adjacent discard points in the first line.

[0079] Optionally, the apparatus further includes:

[0080] A drawing area display unit, configured to, in response to a drawing discard operation, display a drawing area for displaying the first line;

[0081] If the drawing area includes a grid, the first drawing unit includes:

[0082] A grid determination unit, configured to, in response to a first drawing operation on a first color in the candidate line colors, determine a target grid corresponding to the first drawing operation;

[0083] A filling unit, configured to fill the target grid with the first color, and the combination of the target grids serves as the first line.

[0084] Optionally, the pattern drawing operation further includes a second drawing operation, the initial drawing pattern further includes a second line corresponding to the second drawing operation, and the apparatus further includes:

[0085] A second drawing unit, configured to, in response to a second drawing operation on a second color in the candidate line colors, determine a second line having the second color.

[0086] Optionally, the color determination unit includes:

[0087] A disposable item determination unit, configured to, in response to a selection operation on the virtual item, determine a disposable item from the virtual items;

[0088] A color determination subunit, configured to, in response to a drawing discard operation, determine candidate line colors according to the category of the disposable item.

[0089] Optionally, the color determination unit includes:

[0090] A quantity judgment unit, configured to, in response to a drawing discarding operation, if the virtual item meets a preset quantity condition, determine a candidate line color according to the category of the virtual item.

[0091] The device further includes: a failure prompt display unit, configured to display a drawing discarding failure prompt if the virtual item does not meet the preset quantity condition.

[0092] Optionally, the item discarding unit is specifically configured to:

[0093] If the discarding space corresponding to the item discarding pattern meets the item discarding condition, in response to an item drawing operation, control the virtual object in the virtual scene to discard virtual items of a corresponding category along the trajectory of the item discarding pattern according to the drawing order of the initial drawing pattern.

[0094] Optionally, the item discarding unit is specifically configured to: if the discarding space corresponding to the item discarding pattern meets the item discarding condition, in response to an item drawing operation, control the virtual object in the virtual scene to discard virtual items along the trajectory of the item discarding pattern according to the value sorting sequence of virtual items of a corresponding category.

[0095] And / or, the device further includes: a virtual value determination unit, configured to determine the virtual value corresponding to the initial drawing pattern according to the required quantity of the item corresponding to the initial drawing pattern and the value sorting sequence of virtual items of a corresponding category.

[0096] Optionally, the device further includes:

[0097] A display position determination unit, configured to determine the display position of the pattern preview plane in the virtual scene according to the position of the virtual object in the virtual scene and the relative position relationship between the virtual object and the pattern preview plane.

[0098] A pattern display unit, configured to display the pattern preview plane in the virtual scene according to the display position, and display the item discarding pattern in the pattern preview plane.

[0099] Optionally, the device further includes:

[0100] A discarding space determination unit, configured to determine the discarding space according to the display position, where the discarding space includes an upper space within a first preset height above the pattern preview plane and a lower space within a second preset height below the pattern preview plane.

[0101] A condition judgment unit, configured to determine that the discard space does not meet the item discard condition if there is a target space in the discard space and the target space meets the non-discardable condition; and determine that the discard space meets the item discard condition if there is no space in the discard space that meets the non-discardable condition.

[0102] Optionally, the discard space determination unit includes:

[0103] A ray emitting unit, configured to emit a first detection ray with a first preset height upward from the pattern preview plane and a second detection ray with a second preset height downward.

[0104] A target space determination unit, configured to determine the target space according to the abnormal rays in the first detection ray and the second detection ray; the abnormal rays include: the first detection ray encountering an obstacle and the second detection ray not contacting the ground.

[0105] Optionally, a third space in the discard space that meets the non-discardable condition corresponds to a first area in the pattern preview plane, and a fourth space in the discard space that does not meet the non-discardable condition corresponds to a second area in the pattern preview plane, and the first area and the second area are marked with different colors.

[0106] Optionally, the device further includes:

[0107] A display cancellation unit, configured to cancel the display of the item discard pattern in response to the item drawing operation if the discard space corresponding to the item discard pattern meets the item discard condition; and / or

[0108] A non-discardable prompt unit, configured to display a non-discardable prompt in response to the item drawing operation if the discard space corresponding to the item discard pattern does not meet the item discard condition; and / or

[0109] A progress display unit, configured to display the drawing progress of the item discard pattern; and / or

[0110] A discard stop unit, configured to display a discard stop control, and the discard stop control is used to stop the virtual item discard when triggered.

[0111] On the other hand, the present application provides a computer device, and the device includes a processor and a memory:

[0112] The memory is configured to store a computer program and transmit the computer program to the processor;

[0113] The processor is configured to execute the virtual item interaction method described in the above aspect according to the instructions in the computer program.

[0114] On the other hand, an embodiment of the present application provides a computer-readable storage medium for storing a computer program for executing the virtual item interaction method described in the above aspect.

[0115] On the other hand, an embodiment of the present application provides a computer program product including a computer program, which, when running on a computer device, causes the computer device to execute the virtual item interaction method.

[0116] As can be seen from the above technical solutions, the discarded pattern of items in the virtual scene is determined. In the discarded pattern of items, the color of the pattern line is used to indicate the category of the virtual item corresponding to the pattern line, the width of the pattern line is used to indicate the density of the virtual item corresponding to the pattern line, and the direction of the pattern line in the discarded pattern of items is used to indicate the arrangement trajectory of the virtual items. In this way, the discarded pattern of items can indicate the discarding strategy of virtual items in the virtual scene. If the discarded space corresponding to the discarded pattern of items meets the item discarding conditions, in response to the item drawing operation, control the virtual objects in the virtual scene to discard the virtual items of the corresponding categories in sequence along the trajectory of the discarded pattern of items. In this way, the discarded virtual items are arranged along the trajectory of the discarded pattern of items in the virtual scene, realizing the effect of drawing a specified pattern with virtual items in the virtual scene. Different colors can be used under different pattern lines, so different display effects are produced, expanding the interaction form of virtual items and improving the user's interaction experience and interaction fun. BRIEF DESCRIPTION OF THE DRAWINGS

[0117] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0118] Figure 1 A schematic diagram of an application scenario of a virtual item interaction method provided by an embodiment of the present application;

[0119] Figure 2 A flowchart of a virtual item interaction method provided by an embodiment of the present application;

[0120] Figure 3 A schematic diagram of a virtual item interaction provided by an embodiment of the present application;

[0121] Figure 4 A schematic diagram of discarded space determination provided by an embodiment of the present application;

[0122] Figure 5Flow chart of another virtual item interaction method provided by an embodiment of this application;

[0123] Figures 6 - 9 Side view schematic diagrams of multiple discard spaces provided by an embodiment of this application;

[0124] Figure 10 Schematic diagram of another virtual item interaction provided by an embodiment of this application;

[0125] Figure 11 Schematic diagram of yet another virtual item interaction provided by an embodiment of this application;

[0126] Figure 12 Schematic diagram of yet another virtual item interaction provided by an embodiment of this application;

[0127] Figure 13 Flow schematic diagram of yet another virtual item interaction provided by an embodiment of this application;

[0128] Figure 14 Schematic diagram of yet another item interaction provided by an embodiment of this application;

[0129] Figure 15 Schematic diagram of yet another item interaction provided by an embodiment of this application;

[0130] Figure 16 Schematic diagram of a pattern drawing provided by an embodiment of this application;

[0131] Figure 17 Schematic diagram of another pattern drawing provided by an embodiment of this application;

[0132] Figure 18 Schematic diagram of yet another pattern drawing provided by an embodiment of this application;

[0133] Figure 19 Structure block diagram of a virtual item interaction device provided by an embodiment of this application;

[0134] Figure 20 Structure diagram of a terminal device provided by an embodiment of this application;

[0135] Figure 21 Structure diagram of a server provided by an embodiment of this application. Detailed implementation manners

[0136] The embodiments of this application will be described below with reference to the accompanying drawings.

[0137] In the current virtual item discarding method, the foot landing point of the virtual object can be automatically judged for the item to be discarded, and there is no extension of more interaction forms.

[0138] In order to solve the above technical problems, the present application provides a virtual item interaction method and related devices, which can indicate the discarding strategy of virtual items in a virtual scene through the item discarding pattern, control the virtual objects in the virtual scene to follow the trajectory of the item discarding pattern, and discard virtual items of corresponding categories in sequence, thereby achieving the effect of drawing a specified pattern through virtual items in the virtual scene, expanding the interactive form of virtual items, and improving the user's interactive experience and interactive fun.

[0139] The virtual item interaction method provided in the embodiments of the present application can be implemented through a computer device, which can be a terminal device or a server. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.

[0140] In order to facilitate understanding of the technical solution provided by the present application, a virtual item interaction method provided by an embodiment of the present application will be introduced below in combination with an actual application scenario.

[0141] Figure 1 A schematic diagram illustrates an application scenario for a virtual item interaction method provided by an embodiment of the present application. This scenario includes a server 10 and a terminal device 20. The terminal device 20 is installed with an application for virtual item interaction. The server 10 and the terminal device 20 corresponding to the application interact via a network. Either the server 10 or the terminal device 20 can serve as the aforementioned computer device to implement the virtual item interaction method. The terminal device 20 is used to interact with the user and display the results of the virtual item interaction, such as displaying the virtual item in a virtual scene. The following description uses the server 10 as an example of the aforementioned computer device.

[0142] The server 10 determines the item dropping pattern 112 in the virtual scene, referring to Figure 1 As shown in Figure 1A, an item discarding pattern 112 is displayed in a virtual scene. In the item discarding pattern 112, the color of the pattern lines is used to indicate the category of the virtual items corresponding to the pattern lines, the width of the pattern lines is used to indicate the density of the virtual items corresponding to the pattern lines, and the direction of the pattern lines in the item discarding pattern 112 is used to indicate the arrangement trajectory of the virtual items. In this way, the item discarding pattern 112 can indicate the discarding strategy of the virtual items in the virtual scene.

[0143] If the discard space corresponding to the item discard pattern meets the item discard condition, in response to the item drawing operation, the server 10 controls the virtual object in the virtual scene to sequentially discard virtual items of corresponding categories along the trajectory of the item discard pattern 112, as shown in 1B of Figure 1 As shown. The discarded virtual items 114 are arranged along the trajectory of the item discard pattern 112 in the virtual scene, achieving the effect of drawing a specified pattern with the virtual items 114 in the virtual scene. Different pattern lines can have different colors, thus producing different display effects, expanding the interaction forms of virtual items, and improving the user's interaction experience and interaction fun.

[0144] Figure 2 FIG. is a flowchart of a virtual item interaction method provided by an embodiment of the present application. In this embodiment, the server is used as the foregoing computer device for illustration. The virtual item interaction method may include:

[0145] S101, determining an item discard pattern in the virtual scene.

[0146] In the embodiment of the present application, the virtual scene is a virtual scene displayed (or provided) when the application program runs on the terminal. The virtual scene may be a simulation environment of the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5D virtual scene, or a three-dimensional virtual scene. The embodiment of the present application does not limit the dimension of the virtual scene. For example, the virtual scene may include the sky, land, ocean, etc. The user can control the virtual object to move in the virtual scene and interact with other virtual objects. The virtual scene of the embodiment of the present application may be a virtual scene of an action game, a virtual scene of a combat game, etc., that is, the present solution can be applied to the control of virtual objects in a variety of virtual scenes.

[0147] The virtual object is the image of various people and objects that can interact in the virtual scene, or a movable object in the virtual scene. The movable object may be a virtual character, a virtual animal, an anime character, etc., such as a person, an animal, etc. displayed in the virtual scene. The virtual object may be a virtual image in the virtual scene that is used to represent the user. The virtual scene may include multiple virtual objects. Each virtual object has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. The virtual object may be a game character controlled by the user (or player), that is, the virtual object is controlled by the real user and will move in the virtual scene in response to the operation of the real user on the controller (including a touch screen, a voice control switch, a keyboard, a mouse, a handle, and a joystick, etc.). For example, when the real user moves the joystick to the left, the virtual object will move to the left in the virtual scene, and can also stay still, jump, and use various functions (such as skills and props).

[0148] Virtual items refer to various items that can be interacted with in a virtual scenario, including equipment and prop items, currency items, etc. Equipment and prop items can include attack props, armors, consumables, quest items, etc. Attack props such as knives, swords, bullets, etc., armors such as shields, etc., consumables such as potions, ores, flowers, plants, food, etc., and quest items such as keys. The virtual items in the embodiments of this application specifically refer to items that can interact with virtual objects and can be owned and used by virtual objects.

[0149] In some scenarios, virtual objects can perform operations such as picking up, using, and discarding virtual items to achieve the interaction between virtual objects and virtual items. When a virtual object discards a virtual item, a special display effect will be generated at the corresponding position of the virtual item to remind the virtual object to pick up the virtual item. For example, different categories of virtual items can correspond to light columns of different quality colors. Quality colors can include, for example, white, green, blue, purple, orange, gold, red, black, pink, etc. Different quality colors can correspond to categories, and different categories can be, for example, different levels, or different rarities, or different functions, etc.

[0150] In the current virtual item discarding method, it is possible to automatically determine the landing point under the feet of the virtual object for the item to be discarded, and there is no more extension of interaction forms. It is possible to discard one or a group of virtual items at once, and the discarding position is usually a fixed position, and there is usually no situation where the item cannot be discarded. Refer to Figure 3 As shown, it is a schematic diagram of virtual item interaction provided by the embodiments of this application. The virtual item 119 is discarded at the landing point under the feet of the virtual object 111, and there is a special display effect, which is a light column, and the color of the light column is related to the category of the virtual item 119.

[0151] In the embodiments of this application, the item discarding pattern in the virtual scenario can be determined in advance. The item discarding pattern can indicate the discarding strategy of the virtual item. Specifically, the direction of the pattern line in the item discarding pattern is used to indicate the arrangement trajectory of the virtual item, and the color of the pattern line is used to indicate the category of the virtual item corresponding to the pattern line. The color of the pattern line can be the same as or different from the quality color corresponding to the category of the virtual item. The width of the pattern line is used to indicate the density of the virtual item corresponding to the pattern line. The pattern line can include a discarding point, which is used to correspond to the preset discarding position of the virtual item in the virtual scenario. The density of the virtual item corresponding to the pattern line can be determined according to the number of virtual items corresponding to a single discarding point in the pattern line and the spacing between adjacent discarding points.

[0152] The item discard pattern can be obtained by mapping an initial pattern. The initial pattern can be a default pattern, can be determined by an operation of selecting a preset pattern, or can also be an initial drawing pattern defined by the user. The determination method of the initial drawing pattern is described in the following. Taking the item discard pattern as a heart-shaped pattern as an example, the following description is given.

[0153] In an embodiment of the present application, the item discard pattern 112 can also be displayed in a virtual scene. There may be a certain relative position relationship between the item discard pattern and a virtual object in the virtual scene. In this way, according to the position of the virtual object in the virtual scene and this relative position relationship, the display position of the item discard pattern can be determined. The display position of the item discard pattern is used to indicate the layout of the item discard pattern in the virtual scene, thereby indicating the pattern layout step for entering the automatic discard of virtual items.

[0154] Alternatively, a pattern preview plane can be determined first. The pattern preview plane can be displayed in the virtual scene, and the item discard pattern can be displayed in the pattern preview plane. In this way, the relative position relationship between the item discard pattern and the virtual object can be characterized by the relative position relationship between the pattern preview plane and the virtual object. Refer to Figure 1 as shown in 1A, the pattern preview plane 113 can be displayed in the virtual scene. The pattern preview plane includes the item discard pattern 112, and the shape of the item discard pattern 112 can be a heart shape.

[0155] Among them, there may be a position relationship between the pattern preview plane and the virtual object. According to the position of the virtual object in the virtual scene and this relative position relationship, the display position of the pattern preview plane in the virtual scene can be determined, and then the item discard pattern can be displayed in the pattern preview plane. The virtual object can be located at an edge feature point of the pattern preview plane. For example, the virtual object can be located at the center position of one side of the pattern preview plane, so that the item discard pattern is presented within the view of the virtual object. Of course, there may be a relative position relationship between the pattern preview plane and the item discard pattern. For example, it can be located in the middle of the pattern preview plane, or this relative position relationship can be determined according to the relationship between the initial drawing pattern and the drawing area.

[0156] The display position of the item discard pattern is used to determine the discard space corresponding to the item discard pattern. The virtual object moves in this discard space to achieve the automatic discard of virtual items. During actual operation, as the virtual object moves in the virtual scene, the display position of the item discard pattern can be updated in real time according to the latest position of the virtual object after movement.

[0157] Specifically, the item discard pattern can be presented in front of the virtual object. The item discard pattern can be displayed parallel to the horizontal plane in the virtual scene, and each discard point in the item discard pattern can have a corresponding position on the ground in the virtual scene. The height of the item discard pattern can have a correlation with the height of the virtual object. For example, it can be the same as the height of the virtual object or in a certain proportion to the height of the virtual object, so that the item discard pattern is approximately set at the height where the virtual object holds the item. Refer to Figure 1 shown in Figure 1A in

[0158] S102, if the discard space corresponding to the item discard pattern meets the item discard condition, then in response to the item drawing operation, control the virtual object in the virtual scene to sequentially perform virtual item discards of corresponding categories along the trajectory of the item discard pattern.

[0159] In the embodiments of the present application, the item discard pattern can correspond to a discard space, which is the space that the virtual object needs to move when automatically implementing the item discard of the virtual object. Therefore, when the discard space meets the item discard condition, the virtual object can be controlled to perform item discard, while when the discard space does not meet the item discard condition, the item discard operation of the virtual object is likely to fail. Therefore, it is possible to determine whether the discard space corresponding to the item discard pattern meets the item discard condition according to the item discard pattern.

[0160] Specifically, the discard space corresponding to the item discard pattern can be determined according to the pattern preview plane or the display position of the item discard pattern. Subsequently, a cube space determined by the pattern preview plane will be taken as an example for key description.

[0161] In the case of determining the pattern preview plane including the item discard pattern, the discard space corresponding to the item discard pattern can be determined according to the display position of the pattern preview plane. Refer to Figure 4 shown in

[0162] Figure 16, which is a schematic diagram for determining a discard space provided by an embodiment of the present application. The discard space can include an upper space 11A within a first preset height x1 above the pattern preview plane 113 and a lower space 11B within a second preset height x2 below the pattern preview plane 113, that is, the discard space is a cube space determined by the pattern preview plane.

[0163] After determining the discard space, if there is a target space within the discard space and the target space meets the non-discardable condition, it indicates that the entire discard space does not meet the item discard condition; conversely, if there is no space that meets the non-discardable condition in the discard space, it is determined that the entire discard space meets the item discard condition. This determines the discard condition at the virtual scene level for automatic discard, ensuring the smooth execution of automatic discard.

[0164] Meeting the non-discardable condition usually means that the virtual object cannot reach or be discarded. For example, there are obstacles in the target space or it is impossible to stand, or the ground is higher than the holding plane, etc. Therefore, the area corresponding to the target space in the pattern preview plane is used as the target area. The target area includes a first space within a first preset height above the target area and a second space within a second preset height below the target area. When the target space meets the non-discardable condition, it can specifically be at least one of the following: there are obstacles in the first space, there are obstacles at the position where the target area is located, and there is no ground in the second space. Thus, the non-discardable condition is reasonably determined to avoid automatic discard failure or loss to the safety of the virtual object.

[0165] That is to say, the pattern preview plane is used as a horizontal plane (such as the player's holding plane). By shooting a first detection ray with a first preset height upward, the upper space is obtained, and by shooting a second detection ray with a second preset height downward, the lower space is obtained. The discard space includes the upper space and the lower space, which is embodied as a cubic box. By detecting rays to determine whether there are obstacles and the ground, it is thus determined whether the space corresponding to the ray meets the non-discardable condition.

[0166] Specifically, referring to Figure 5 As shown, it is a flowchart of another virtual item interaction method provided by an embodiment of the present application. S102 may include: S21, emitting a first detection ray with a first preset height upward from the pattern preview plane including the item discard pattern, and emitting a second detection ray with a second preset height downward; S22, determining the target space according to the abnormal rays in the first detection ray and the second detection ray, where the abnormal rays include the first detection ray encountering an obstacle (indicating that there are obstacles in the first space or at the position where the target area is located) and the second detection ray not contacting the ground (indicating that there is no ground in the second space), so as to determine whether the space meets the non-discardable condition by detecting the rays. After S22, SIO2 may further include: S23, determining whether there is a target space. If so, execute S24; if not, execute S28; S24, the discard space corresponding to the item discard pattern does not meet the item discard condition; S25, displaying the pattern preview plane including the target area; S28, the discard space corresponding to the item discard pattern does not meet the item discard condition; S29, displaying the pattern preview plane not including the target area.

[0167] Specifically, referring to Figure 6 、Figure 7 , Figure 8 and Figure 9 As shown in Figure 9 , Figure 8 and Figure 7 , the side view schematic diagrams of multiple discard spaces provided by the embodiments of the present application are shown. The upper space 11A is defined by the first detection ray above the pattern preview plane, and the lower space 11B is defined by the second detection ray below the pattern preview plane. The abnormal ray and other detection rays can be characterized by different colors or different shapes. For example, the abnormal ray is red, and the other detection rays are green. The red rays form the target space. Or, the abnormal ray is a solid line, and the other detection rays are dashed lines. The solid line forms the target space.

[0168] The height of the pattern preview plane 113 can be the holding height of the virtual object. For example, the distance from the ground is 60% of the height. When there are obstacles in the pattern preview plane 113, such as occluders or the ground, and the obstacle is higher than the player's holding position, making the virtual object unable to discard the virtual object, the part of the first detection ray that touches the obstacle is the abnormal ray, and the part of the second detection ray that does not touch the ground is the abnormal ray, indicating that the space corresponding to the position of the obstacle meets the non-discard condition and serves as the aforementioned target space. Refer to Figure 7 as shown.

[0169] The top of the first preset height x1 can be the plane where the top of the virtual object's head is located. When there is an obstacle in the upper space, such as an occluder, and the obstacle is lower than the player's height position, making the virtual object unable to pass normally, the part of the first detection ray that touches the obstacle is the abnormal ray, indicating that the space corresponding to the position of the obstacle meets the non-discard condition and serves as the aforementioned target space. Refer to Figure 8 as shown.

[0170] The bottom of the third preset height x2 can be a plane lower than the ground. For example, the third preset height x2 is greater than 40% of the height, and the distance between the bottom of the third preset height x2 and the ground can be a preset value x3, which can be set in advance. When there is no ground in the lower space, it means that the ground is too low, and the virtual object is likely to trigger a falling action, making the virtual object unable to pass normally. The part of the second detection ray that does not touch the ground is used as the abnormal ray, indicating that the space corresponding to the position without the ground meets the non-discard condition and serves as the aforementioned target space. Refer to Figure 9 as shown.

[0171] When neither the first detection ray nor the second detection ray includes an abnormal ray, it can be determined that there is no target space in the discard space. Therefore, it can be determined that the discard space meets the item discard condition. Refer to Figure 6 as shown.

[0172] Of course, after the virtual object moves, the display positions of the pattern preview plane and the item discard pattern move accordingly, the position of the determined discard space changes accordingly, and the result of whether the discard space meets the item discard condition may also change. Therefore, it is possible to continuously determine whether the discard space meets the item discard condition as the virtual object moves, so as to perform subsequent operations when the item discard condition is met.

[0173] During the display process of the pattern preview plane, for the first region corresponding to the third space that meets the non-discardable condition in the discard space in the pattern preview plane, and the second region corresponding to the fourth space that does not meet the non-discardable condition in the discard space in the pattern preview plane, the first region and the second region can be identified by different colors, so that the user can know the position of the region that meets the non-discardable condition. Targeted movement of the virtual object helps to reduce the space that meets the non-discardable condition in the discard space, and further promotes the discard space corresponding to the item discard pattern to meet the item discard condition.

[0174] For example, referring to Figure 10 and Figure 11 shown, is a schematic diagram of various virtual item interactions provided by an embodiment of the present application. The first region corresponding to the third space that meets the non-discardable condition can be displayed in a first color (such as red) to indicate that this region is non-discardable, and the second region corresponding to the fourth space that does not meet the non-discardable condition can be displayed in a second color (such as green) to indicate that this region is discardable. In Figure 11 , in the pattern preview plane 113, the first region 11C is identified by the first color, and the second region 11D is identified by the second color.

[0175] Of course, when the discard space all meets the non-discardable condition, the entire pattern preview plane is displayed in the first color to indicate that this space is all non-discardable. In Figure 10 , all regions in the pattern preview plane 113 are target regions, and then they are identified by the first color; when the discard space all does not meet the non-discardable condition, the entire pattern preview plane is displayed in the second color to indicate that this space is all discardable. Figure 1 In 1A in, the pattern preview plane does not include target regions, and then it can be identified by the second color. In this way, when the entire pattern preview plane is in the second color, it means that the discard space corresponding to the item discard pattern meets the item discard condition, and the pattern drawing in the virtual scene can be realized by discarding the virtual item; when the entire pattern preview plane is in the first color or part of it is in the first color, it means that the discard space corresponding to the item discard pattern does not meet the item discard condition, and the pattern drawing in the virtual scene cannot be realized by discarding the virtual item.

[0176] When the discard space corresponding to the item discard pattern meets the item discard condition, in response to the item drawing operation, the virtual object in the virtual scene can be controlled to sequentially discard virtual items of corresponding categories along the trajectory of the item discard pattern, so that automatic discard of virtual items can be achieved. The discarded virtual items generate light columns of corresponding colors on the ground, forming a gorgeous visual effect. Refer to Figure 12 As shown, it is a schematic diagram of another virtual item interaction provided by an embodiment of the present application. The virtual items 114 are sequentially discarded in the virtual scene and arranged according to the item discard pattern. The arrangement trajectory of the finally formed virtual items refers to Figure 1 shown in 1B in

[0177] In this way, the discarded virtual items are arranged along the trajectory of the item discard pattern in the virtual scene, realizing the effect of specifying a pattern through virtual item drawing in the virtual scene. Different colors can be provided under different pattern lines, so different display effects are produced, expanding the interaction form of virtual items, improving the user's interaction experience and interaction fun, creating a unique social scene, and making players feel that the game scene under the virtual scene is not only a search, fight, and retreat game, but also an interesting social occasion.

[0178] In this case of automatically executing the virtual item discard, whether it is proposing marriage to a favorite object, making funny taunts with friends, or even establishing contact with strangers, every light column interaction may trigger unexpected stories. It improves the participation rate of players with a brand-new experience, and also improves the dissemination rate of the media platform, stimulating further growth of game activity.

[0179] The item drawing operation can be triggered by a control. For example, an item drawing control 15 for generating the item drawing operation can be displayed. Refer to Figure 10 and Figure 11 As shown, in this way, the item drawing operation can include a triggering operation on the item drawing control, and the item drawing control can be displayed on the display interface of the virtual scene.

[0180] If the discard space corresponding to the item discard pattern meets the item discard condition, in response to the item drawing operation, the display of the item discard pattern can be cancelled, that is, the item discard pattern can be not displayed during the automatic discard process. Of course, the display of the pattern preview plane is also cancelled at the same time.

[0181] If the discard space corresponding to the item discard pattern does not meet the item discard condition, in response to the item drawing operation, a non-discardable prompt can be displayed. For example, when the entire pattern preview plane is of the first color or part of it is of the first color, it indicates that the discard space corresponding to the item discard pattern does not meet the item discard condition, and the pattern drawing in the virtual scene cannot be achieved by discarding virtual items. If an item drawing operation is obtained at this time, a non-discardable prompt is displayed. Refer to Figure 5As shown, S102 may further include: S26, executed after S25, including determining whether an item drawing operation is detected. If so, S27 is executed; S27, displaying a non-discardable prompt, and then ending the discard process. S102 may further include: S2A, executed after S29, including determining whether an item drawing operation is detected. If so, S2B is executed; S2B, performing virtual item discard.

[0182] During the discard process of virtual items, if the discard space corresponding to the item discard pattern meets the item discard condition, in response to the item drawing operation, control the virtual object in the virtual scene to discard the corresponding type of virtual item along the trajectory of the item discard pattern according to the drawing order of the item discard pattern. Refer to Figure 12 As shown, in this way, the order of virtual items forming a pattern is consistent with the order of obtaining the initial drawing pattern, enhancing the interaction interest. When the item discard pattern is mapped from the initial pattern, the drawing order of the item discard pattern can be determined according to the drawing order of the initial pattern, such as according to the drawing order of a preset pattern, the drawing order of a default pattern, or the drawing order of the initial drawing pattern customized by the user, etc.

[0183] During the discard process of virtual items, if the discard space corresponding to the item discard pattern meets the item discard condition, in response to the item drawing operation, control the virtual object in the virtual scene to discard the virtual item along the trajectory of the item discard pattern according to the value sorting sequence of the corresponding type of virtual item. In this way, discarding virtual items according to the value sorting sequence of virtual items is beneficial to reducing the value of discarded virtual items and the discard cost while ensuring the pattern piecing effect of virtual items. In the value sorting sequence, virtual items of the same category can be arranged in ascending order of value to ensure the lower virtual value of the discarded items. For example, if the item discard pattern includes a red heart-shaped pattern, and at this time the value sorting sequence includes virtual items of red quality arranged in ascending order of value, then virtual items of red quality with lower value are discarded first. For example, the bullet with the lowest value is discarded first to form this heart-shaped pattern.

[0184] In the embodiment of the present application, the drawing progress 17 of the item discard pattern may also be displayed. Refer to Figure 12 As shown, for the user to view, the drawing progress 17 can be displayed in the display interface of the virtual scene. In the embodiment of the present application, the virtual item discard may also be stopped in response to a discard stop operation. The discard stop operation may be a trigger operation on a discard stop control. Therefore, a discard stop control 18 may be displayed. Refer to Figure 12As shown, the discard stop control 18 is used to stop the virtual item discard when triggered, so that players can actively interrupt the automatic discard process at any time to ensure the safety of virtual objects. The discard stop control 18 can be displayed in the display interface of the virtual scene. In addition, the automatic discard process can be passively stopped when the virtual object is attacked to ensure the safety of the virtual object. After the discard is completed, the display of the drawing progress can be cancelled, and the punch-in control 16 can also be displayed. Refer to Figure 1 as shown in 1B in

[0185] Refer to Figure 5 As shown, during the execution of S2B, S102 may further include: S2C, determining whether a discard stop operation is detected. If so, ending the discard process; if not, executing S2D; S2D, determining whether an attack is received. If so, ending the discard process; if not, executing S2E; S2E, the discard is completed, and then the discard process can be ended.

[0186] The determination method of the initial drawing pattern mapped to the item discard pattern is introduced below.

[0187] In the embodiments of the present application, refer to Figure 13 As shown, it is a schematic flow diagram of another virtual item interaction provided by the embodiments of the present application. S101 may include:

[0188] S11, in response to a pattern drawing operation, determining an initial drawing pattern corresponding to the pattern drawing operation.

[0189] S12, mapping the initial drawing pattern into the virtual scene to obtain an item discard pattern.

[0190] In the implementation manner of determining the initial drawing pattern according to the pattern drawing operation and then mapping the initial drawing pattern into the virtual scene to obtain the item discard pattern, the initial drawing pattern is obtained by user customization. Therefore, the item discard pattern can be determined according to the user settings, with higher freedom.

[0191] Specifically, the item discard pattern is a pattern in the virtual scene that is proportional to the initial drawing pattern, and the width of the color of its pattern lines is obtained by mapping the initial drawing pattern. The pattern preview plane may have a certain size, and it may have a mapping relationship with the drawing area of the initial drawing pattern, such as a certain proportion. When the pattern preview plane has a relative position relationship with the virtual object, the position of the virtual object may be at the midpoint position of one side of the pattern preview plane. This side may be, for example, the lower side of the drawing area of the initial drawing pattern, so that the presentation manner of the item discard pattern in the perspective of the virtual object is consistent with the presentation manner of the initial drawing pattern.

[0192] The pattern drawing operation can be an operation on the interface or an operation from other external devices, etc. The interface for obtaining the pattern drawing operation can be an interface for displaying a virtual scene or other drawing interfaces. Thus, referring to Figure 14 As shown, it is another item interaction schematic diagram provided by an embodiment of the present application. It can display the drawing interface 13 in response to the drawing discard operation. The drawing interface 13 includes the information and controls required for pattern drawing, thereby entering the pattern drawing process. When the pattern drawing operation is an operation from other external devices, it can directly enter the pattern drawing process in response to the drawing discard operation, such as determining the candidate line color, etc.

[0193] Specifically, a drawing discard control 121 for generating the drawing discard operation can be displayed. Referring to Figure 15 As shown, it is another item interaction schematic diagram provided by an embodiment of the present application. The drawing discard control 121 can serve as the entry for the pattern discard process, thereby implementing the drawing discard operation through the drawing discard control 121. The drawing discard control 121 can be displayed on the display interface 11 of the virtual scene or on the item display interface 12. The item display interface 12 is used to display the item identifier 122 of the virtual item of the virtual object, such as a backpack display interface, etc. The display interface 11 of the virtual scene is used to display the virtual object and partial information of the virtual environment where the virtual object is located.

[0194] In the embodiment of the present application, the candidate line color can also be determined in the pattern drawing process for color selection of the pattern lines during the drawing process. In the case of triggering the entry into the pattern drawing process through the drawing discard operation, it can respond to the drawing discard operation and determine the candidate line color according to the category of the virtual item, that is, the candidate line color corresponds to the category of the existing virtual item and is the color that can be selected during the drawing process. When there are multiple candidate line colors, pattern drawing can be performed based on each of the multiple candidate line colors respectively. The virtual items not owned by the virtual object cannot be used for pattern discard, so the colors corresponding to the categories of the unowned virtual items are not displayed. For example, if there is no virtual substance of the golden quality in the backpack of the virtual object, the candidate line color does not include gold. The candidate line color can be the same as or different from the quality color of the virtual item of the corresponding category. The candidate line color 131 can be displayed in the drawing interface 13 for the user to select. Referring to Figure 14 As shown, the selected candidate line color 131 can have a selection mark, such as a "√" in the upper left corner.

[0195] In the embodiments of the present application, the disposable virtual items are defaulted to all the virtual items of the virtual object. Of course, a selection space can also be provided for the virtual items. Specifically, in response to the selection operation of the virtual items, the disposable items can be determined from the virtual items, and the disposable items will be used as the discarded objects in the subsequent pattern discarding process. In response to the drawing discard operation, the candidate line colors can be determined according to the categories of the disposable items. Specifically in implementation, the selection operation of the virtual items can include the triggering operation of the identifier corresponding to the virtual item, or the item display interface 12 can also display a discard selection control (not shown in the figure), and the selection operation of the virtual items can include the dragging operation of the identifier corresponding to the virtual item towards the discard selection control, etc.

[0196] In the embodiments of the present application, in response to the drawing discard operation, it can be first determined whether the quantity of the virtual items meets the preset quantity condition. If so, it means that there are sufficient virtual items for drawing discard, and the pattern drawing process can be entered. For example, the candidate line colors can be determined according to the categories of the virtual items. If not, it means that the virtual items are insufficient and it is difficult to complete the pattern piecing using the virtual items, that is, the existing virtual items cannot be used for drawing discard, and a drawing discard failure prompt will be displayed. In this way, when the virtual items are insufficient, the start of the drawing discard process is blocked, reducing the discard failure probability after the start of the drawing discard process. In the case of determining the disposable items from the virtual items, it can be determined whether the quantity of the disposable items meets the preset quantity condition. If so, the drawing interface will be displayed, and if not, a drawing discard failure prompt will be displayed.

[0197] The quantity of the virtual items meeting the preset quantity condition can specifically mean that the quantity of the virtual items exceeds the preset quantity, and the preset quantity can be determined according to the actual situation. For example, it can be 30. The drawing loss failure prompt can be displayed on the item display interface or on the display interface of the virtual scene.

[0198] Reference Figure 13 As shown, S11 may include: S111, displaying the item display interface; S112, detecting the drawing discard operation; S113, judging whether the quantity of the virtual items meets the preset quantity condition. If so, execute S115, if not, execute S114; S114, displaying the drawing discard failure prompt; S115, displaying the drawing interface.

[0199] The item display interface 12 can be set above the display interface 11 of the virtual scene, or can be set in the entire display area. When the drawing interface 13 is displayed, the item display interface can be cancelled or not cancelled. The drawing interface can be set above the display interface of the virtual scene and / or the item display interface 12, existing in the form of a function pop-up window. As shown in Figure 14 reference, it can also be set in the entire display area.

[0200] The initial drawing pattern may include pattern lines of one color, that is, obtained by drawing with the same color. For example, if the initial drawing pattern includes a first line, and the first line has a first color among the candidate line colors, then the pattern drawing operation may include a first drawing operation for drawing the first line corresponding to the first drawing operation. Refer to Figure 16 As shown, it is a schematic diagram of a pattern drawing provided by an embodiment of the present application. The initial drawing pattern may include a first line of a first color, and the first line forms a heart shape.

[0201] The initial drawing pattern may include pattern lines of multiple colors, that is, it can be obtained by separately segmentally drawing with multiple colors. For example, if the initial drawing pattern includes a first line and a second line, the first line has a first color among the candidate line colors, and the second line has a second color among the candidate line colors, then the pattern drawing operation may include multiple drawing operations. For example, the pattern drawing operation may include a first drawing operation for drawing the first line corresponding to the first drawing operation, and may also include a second drawing operation for drawing the second line corresponding to the second drawing operation. In addition, when the initial drawing pattern includes pattern lines of multiple colors, it may also include a third line with a third color, a fourth line with a fourth color, etc., which will not be exemplified one by one here. Refer to Figure 17 As shown, it is another schematic diagram of a pattern drawing provided by an embodiment of the present application. The initial drawing pattern may include multiple lines of multiple colors, and the multiple lines form a smiling face.

[0202] During the drawing process of the first line, in response to the first drawing operation for the first color among the candidate line colors, a first line with the first color is determined. Among them, the first color may be the default color or the color corresponding to the color selection operation before the first drawing operation. Correspondingly, during the drawing process of the second line, in response to the second drawing operation for the second color among the candidate line colors, a second line with the second color is determined, so that the initial drawing pattern includes lines of multiple colors, realizing the diversification of item discarding.

[0203] The following takes the first line as an example for drawing description, and the drawing process of other lines can refer to the drawing process of the first line.

[0204] The first line's trajectory may include at least one drop point. After being mapped to the virtual space, the drop point's location serves as the location where virtual items are automatically discarded. The width of the first line indicates the number of virtual items corresponding to the drop point in the first line. Specifically, when the first line's width is large, multiple virtual items can be discarded at each drop point's mapping location, enhancing the display effect at that mapping location. The required number of items corresponding to the first line is determined based on the first line's length, width, and the spacing between adjacent drop points. Specifically, the width determines the number of virtual items corresponding to a drop point, while the length of the first line and the spacing between adjacent drop points determine the number of drop points. Therefore, the required number of virtual items corresponding to the first line can be determined.

[0205] In the embodiment of the present application, the line width can also be adjusted. The line width of the first line can be determined according to the line width adjustment operation. The line width adjustment operation can be a trigger operation of the line width adjustment control. The line width adjustment control can also be displayed to adjust the width of the drawn line, which is equivalent to adjusting the thickness of the brush during the drawing process. Figure 14 、 Figure 16 and Figure 17 As shown, it can be a slide rail with a slider, or an input box, etc. The line width adjustment control 135 can be displayed in the drawing interface 13. The thickness of the brush affects the line width, and the line width affects the density of the discarded virtual items, thereby affecting the display effect of the discarded virtual items. Specifically, the line width is used to indicate the number of virtual items corresponding to the same discard point in the line. The more virtual items corresponding to the same discard point, the more obvious the light effect displayed at that position in the virtual scene will be. The number of virtual items at the same discard point can range from 1 to 4, for example. When the brush is the thickest, it indicates that 4 virtual items are discarded at the same discard point, and when the brush is the thinnest, it indicates that 1 virtual item is discarded at the same discard point.

[0206] When the line width adjustment control 135 is displayed, before the first line is drawn, the width of the first line can be determined in response to the triggering operation of the line width adjustment control 135 before the first drawing operation, so that during the drawing process of the first line, it can be drawn according to the determined width.

[0207] In the embodiment of the present application, the area size can also be adjusted, and the area size can be determined according to the area size adjustment operation. The area size adjustment operation can be a trigger operation of the area size adjustment control. Then, the area size adjustment control 136 can be displayed to adjust the size of the discard range in the virtual scene. Figure 14 、 Figure 16 and Figure 17As shown, the discard range in the virtual scene can include, for example, a small size of 2m*2m, a medium size of 3m*3m, and a large size of 4m*4m. The choice of different discard range sizes determines the mapping relationship between the discard range and the initial drawing pattern. A larger discard range in the virtual scene corresponds to a larger ratio between the discard range and the initial drawing pattern, requiring more virtual items. The more virtual items are required per unit length of line in the pattern, and when the spacing in the virtual scene is the preset interval, the denser the discard points in the initial drawing pattern.

[0208] When the area size adjustment control 136 is displayed, before the first line is drawn, a mapping relationship between the initial drawing pattern and the item drop pattern can be determined in response to a triggering operation on the area size adjustment control 136 before the first drawing operation. The spacing between two adjacent drop points in the first line is determined based on this mapping relationship and a preset drop interval in the virtual scene. When the preset drop interval is constant, the spacing between two adjacent drop points in the first line is inversely correlated with the ratio of the drop range to the initial drawing pattern; that is, the larger the ratio, the smaller the spacing between two adjacent drop points.

[0209] In the embodiment of the present application, the drawing mode may include at least one of custom drawing, preset graphic selection, and character input. When the drawing mode is the default mode, the control corresponding to the drawing mode may not be displayed. When multiple drawing modes are supported, controls corresponding to multiple drawing modes may be displayed. These drawing mode controls may be displayed in the drawing interface 13. Figure 14 、 Figure 16 and Figure 17 As shown, at least one of a drawing control 132, a preset graphic icon 133, and a character input control 134 can be displayed, corresponding to the drawing modes of custom drawing, preset graphic selection, and character input, respectively. Character input can include Chinese, English, special characters, etc., for composing custom text. Drawing control 132, preset graphic icon 133, and character input control 134 can be sequentially arranged on one side of the drawing interface 13, such as in the drawing selection area on the left. The selected drawing mode space can have a check mark, such as a "√" in the upper left corner.

[0210] During the drawing process of the first line, in response to a first drawing operation for the first color among candidate line colors, the drawn line with the first color can be determined according to the drawing order corresponding to the first drawing operation. If the quantity of item requirements corresponding to the drawn line reaches the actual quantity of the virtual item of the first color, the drawn line is taken as the first line, and the status of the first color is set to the exhausted state. In this way, the first color cannot be selected in subsequent drawing processes. That is to say, the first color can be preferentially used for the lines drawn earlier according to the drawing order. When the first color is exhausted, the lines drawn later cannot use the first color, realizing the reasonable use of the first color and avoiding the problem that the first line obtained by drawing fails to be discarded because there are not enough virtual items when discarded. The quantity of item requirements corresponding to the drawn line can be based on the length, width of the drawn line, and the distance between two adjacent discard points.

[0211] Among them, if the first drawing operation includes a sliding operation corresponding to the drawing control, the drawing order is determined according to the sliding order of the sliding operation; if the first drawing operation includes a triggering operation for a target identifier in a preset graphic identifier, the drawing order is determined according to the default drawing order of the target identifier, such as default drawing orders from top to bottom, from inside to outside, etc.; if the first drawing operation includes an input operation for the character input control, the drawing order is determined according to the stroke order of the input characters corresponding to the character input control. In this way, the drawing order can be determined based on different drawing methods, realizing the appropriate use of the first color under different drawing methods.

[0212] In the embodiments of the present application, the drawing area 139 can also be displayed. For example, the drawing area 139 is displayed in the drawing interface 13. The drawing area 139 is used to display the first line. Of course, the second line, the third line, etc. can also be displayed. When the first drawing operation includes a sliding operation corresponding to the drawing control, the drawing area 139 can be used to obtain the sliding operation, that is, the drawing method can be selected by triggering the drawing control 132, and the drawing of the color pen can be realized through the sliding operation in the drawing area 139, so as to determine the first line. At this time, the drawing area 139 is equivalent to the canvas area in the custom drawing process. When the first drawing operation includes a triggering operation for a target identifier in the preset graphic identifier 133 or an input operation for the character input control 134, the drawing area 139 is equivalent to a preview area and can be used to display the initial drawing pattern.

[0213] The drawing area 139 can be a blank area or include a grid to form a grid area. When the drawing area 139 is a blank area, the initial drawing pattern is directly determined according to the pattern drawing operation. When the drawing area 139 is a grid area, the initial drawing pattern can be determined according to the grid. Specifically, in response to a first drawing operation for the first color among the candidate line colors, the target grid corresponding to the first drawing operation is determined, and the target grid is filled with the first color. The combination of the target grids serves as the first line. That is to say, the first line is a stack of target grids, achieving an effect similar to filling in grids. The characteristic position of the target grid serves as the discard point corresponding to the first line. For example, the center point of the target grid serves as the discard point corresponding to the first line. Refer to Figure 18 As shown, it is another schematic diagram of pattern drawing provided by the embodiment of the present application. The target grid is a dark grid, and the formed first line is a heart shape.

[0214] In the embodiment of the present application, the value of the virtual item required by the drawn line can also be displayed to help the user with value assessment. In the case where virtual items of the same category are discarded according to the value sorting sequence, the virtual value corresponding to the initial drawing pattern can be determined according to the required quantity of items corresponding to the initial drawing pattern and the value sorting sequence of virtual items of the corresponding category. In the value sorting sequence, virtual items of the same category can be arranged in ascending order of value to ensure the lower virtual value of the discarded items. That is, when determining the value, the value of the required virtual item corresponding to the drawn line is preferentially determined according to the required quantity and value of the bullets, for the implementation method of automatic discarding according to the value sorting sequence.

[0215] In addition, the virtual value can also be displayed. Specifically, a value display area 137 can be set in the drawing interface to display the virtual value corresponding to the initial drawing pattern. The virtual value is updated as the number of lines of the initial drawing pattern increases.

[0216] The candidate line colors 131, the line width adjustment control 135, the area size adjustment control 136, and the value display area 137 can be set on one side of the drawing interface 13, for example, in the style adjustment area on the right side.

[0217] In an embodiment of the present application, in response to a drawing completion operation, the drawing of the initial drawing pattern may also be ended, thereby determining the initial drawing pattern. The drawing completion operation may include a triggering operation on a determined completion control. The drawing interface 13 may further include a confirmation completion control 138 for indicating drawing completion when triggered. At this time, the pattern in the drawing area is the initial drawing pattern. Of course, drawing completion may also be indicated in other ways, such as a closing operation on the drawing interface 13. The closing operation may be, for example, a triggering operation on a closing control of the drawing interface, or a triggering operation on an area outside the drawing interface, etc.

[0218] Referring to Figure 13 As shown, after S115, S11 may further include: S116, detecting a candidate line color selection operation, a pattern drawing operation, a line width adjustment operation, an area size adjustment operation, etc., thereby determining the drawn line; S117, displaying the drawn line; S118, detecting a drawing completion operation; S119, determining the initial drawing pattern corresponding to the pattern drawing operation.

[0219] Based on a virtual item interaction method provided by an embodiment of the present application, an embodiment of the present application further provides a virtual item interaction device. Referring to Figure 19 As shown, it is a structural block diagram of a virtual item interaction device provided by an embodiment of the present application. The virtual item interaction device 1300 includes:

[0220] A pattern determination unit 1301 for determining an item discard pattern in a virtual scene; in the item discard pattern, the color of the pattern line is used to indicate the category of the virtual item corresponding to the pattern line, and the width of the pattern line is used to indicate the density of the virtual item corresponding to the pattern line;

[0221] An item discard unit 1302 for, if the discard space corresponding to the item discard pattern meets the item discard condition, in response to an item drawing operation, controlling the virtual object in the virtual scene to discard virtual items of corresponding categories in sequence along the trajectory of the item discard pattern.

[0222] Optionally, the pattern determination unit 1301 includes:

[0223] A drawing unit for, in response to a pattern drawing operation, determining the initial drawing pattern corresponding to the pattern drawing operation;

[0224] A mapping unit for mapping the initial drawing pattern to the virtual scene to obtain an item discard pattern.

[0225] Optionally, the device further includes:

[0226] A color determination unit, configured to determine a candidate line color according to the category of the virtual item in response to a drawing discard operation;

[0227] The pattern drawing operation includes a first drawing operation, and the initial drawing pattern includes a first line corresponding to the first drawing operation; the drawing unit includes:

[0228] A first drawing unit, configured to determine a first line having the first color in response to a first drawing operation on the first color among the candidate line colors.

[0229] Optionally, the first drawing unit includes:

[0230] A line determination unit, configured to determine a drawn line having the first color according to the drawing order corresponding to the first drawing operation in response to a first drawing operation on the first color among the candidate line colors;

[0231] A drawing subunit, configured to use the drawn line as the first line if the quantity of item requirements corresponding to the drawn line reaches the actual quantity of the virtual items of the first color;

[0232] A status setting unit, configured to set the status of the first color to an exhausted status.

[0233] Optionally, the device further includes:

[0234] A drawing method control display unit, configured to display at least one of a drawing control, a preset graphic identifier, and a character input control;

[0235] Wherein, if the first drawing operation includes a sliding operation corresponding to the drawing control, the drawing order is determined according to the sliding order of the sliding operation; if the first drawing operation includes a triggering operation on a target identifier among the preset graphic identifiers, the drawing order is determined according to the default drawing order of the target identifier; if the first drawing operation includes an input operation on the character input control, the drawing order is determined according to the stroke order of the input characters corresponding to the character input control.

[0236] Optionally, the first line includes a discard point, and the width of the first line is used to indicate the quantity of virtual items corresponding to a single discard point in the first line; the device further includes:

[0237] A width adjustment display unit, configured to display a line width adjustment control; determine the width of the first line in response to a triggering operation on the line width adjustment control before the first drawing operation; and / or,

[0238] A size adjustment display unit for displaying area size adjustment controls; determining a mapping relationship between the initial drawing pattern and the item discard pattern in response to a triggering operation on the area size adjustment control before the first drawing operation; and determining the spacing between adjacent two discard points in the first line according to the mapping relationship and a preset discard interval in the virtual scene.

[0239] Optionally, the device further includes:

[0240] A drawing area display unit for displaying a drawing area for displaying the first line in response to a drawing discard operation;

[0241] If the drawing area includes a grid, the first drawing unit includes:

[0242] A grid determination unit for determining a target grid corresponding to the first drawing operation in response to a first drawing operation on a first color among the candidate line colors;

[0243] A filling unit for filling the target grid with the first color, and the combination of the target grids serves as the first line.

[0244] Optionally, the pattern drawing operation further includes a second drawing operation, the initial drawing pattern further includes a second line corresponding to the second drawing operation, and the device further includes:

[0245] A second drawing unit for determining a second line having the second color in response to a second drawing operation on a second color among the candidate line colors.

[0246] Optionally, the color determination unit includes:

[0247] A discardable item determination unit for determining a discardable item from the virtual items in response to a selection operation on the virtual item;

[0248] A color determination subunit for determining candidate line colors according to the category of the discardable item in response to a drawing discard operation.

[0249] Optionally, the color determination unit includes:

[0250] A quantity judgment unit for determining candidate line colors according to the category of the virtual item if the virtual item meets a preset quantity condition in response to a drawing discard operation;

[0251] The device further includes: a failure prompt display unit for displaying a drawing discard failure prompt if the virtual item does not meet the preset quantity condition.

[0252] Optionally, the item discarding unit 1302 is specifically configured to:

[0253] If the discard space corresponding to the item discard pattern meets the item discard condition, in response to the item drawing operation, control the virtual object in the virtual scene to discard the corresponding type of virtual item along the trajectory of the item discard pattern according to the drawing order of the initial drawing pattern.

[0254] Optionally, the item discarding unit 1302 is specifically configured to: If the discard space corresponding to the item discard pattern meets the item discard condition, in response to the item drawing operation, control the virtual object in the virtual scene to discard the virtual item along the trajectory of the item discard pattern according to the value sorting sequence of the corresponding type of virtual item;

[0255] And / or, the device further includes: a virtual value determination unit, configured to determine the virtual value corresponding to the initial drawing pattern according to the quantity of items required corresponding to the initial drawing pattern and the value sorting sequence of the corresponding type of virtual item.

[0256] Optionally, the device further includes:

[0257] A display position determination unit, configured to determine the display position of the pattern preview plane in the virtual scene according to the position of the virtual object in the virtual scene and the relative position relationship between the virtual object and the pattern preview plane;

[0258] A pattern display unit, configured to display the pattern preview plane in the virtual scene according to the display position, and display the item discard pattern in the pattern preview plane.

[0259] Optionally, the device further includes:

[0260] A discard space determination unit, configured to determine the discard space according to the display position, where the discard space includes an upper space within a first preset height above the pattern preview plane and a lower space within a second preset height below the pattern preview plane;

[0261] A condition judgment unit, configured to determine that the discard space does not meet the item discard condition if there is a target space in the discard space and the target space meets the non-discard condition; and determine that the discard space meets the item discard condition if there is no space in the discard space that meets the non-discard condition.

[0262] Optionally, the discard space determination unit includes:

[0263] A ray emitting unit, configured to emit a first detection ray with a first preset height upward from the pattern preview plane and a second detection ray with a second preset height downward.

[0264] A target space determination unit, configured to determine the target space according to abnormal rays in the first detection ray and the second detection ray; the abnormal rays include: the first detection ray encountering an obstacle and the second detection ray not contacting the ground.

[0265] Optionally, a third space in the discard space that meets the non-discardable condition corresponds to a first area in the pattern preview plane, and a fourth space in the discard space that does not meet the non-discardable condition corresponds to a second area in the pattern preview plane, and the first area and the second area are marked with different colors.

[0266] Optionally, the device further includes:

[0267] A display cancellation unit, configured to cancel the display of the item discard pattern in response to the item drawing operation if the discard space corresponding to the item discard pattern meets the item discard condition; and / or,

[0268] A non-discardable prompt unit, configured to display a non-discardable prompt in response to the item drawing operation if the discard space corresponding to the item discard pattern does not meet the item discard condition; and / or,

[0269] A progress display unit, configured to display the drawing progress of the item discard pattern; and / or,

[0270] A discard stop unit, configured to display a discard stop control, and the discard stop control is used to stop the virtual item discard when triggered.

[0271] It can be seen from the above technical solutions that the item discard pattern in the virtual scene is determined. In the item discard pattern, the color of the pattern line is used to indicate the category of the virtual item corresponding to the pattern line, the width of the pattern line is used to indicate the density of the virtual item corresponding to the pattern line, and the direction of the pattern line in the item discard pattern is used to indicate the arrangement trajectory of the virtual items. In this way, the discard strategy of the virtual items in the virtual scene can be indicated through the item discard pattern. If the discard space corresponding to the item discard pattern meets the item discard condition, in response to the item drawing operation, the virtual objects in the virtual scene are controlled to discard the virtual items of the corresponding categories in sequence along the trajectory of the item discard pattern. In this way, the discarded virtual items are arranged along the trajectory of the item discard pattern in the virtual scene, realizing the effect of specifying a pattern by drawing virtual items in the virtual scene. Different colors can be provided under different pattern lines, so different display effects are generated, expanding the interaction form of virtual items and improving the user's interaction experience and interaction fun.

[0272] The embodiment of the present application also provides a computer device, which is the computer device introduced above and may include a terminal device or a server. The aforementioned virtual item interaction device may be configured in the computer device. The computer device will be introduced below with reference to the accompanying drawings.

[0273] If the computer device is a terminal device, please refer to Figure 20 As shown, the embodiment of the present application provides a terminal device. Taking the terminal device as a mobile phone as an example:

[0274] Figure 20 Shown is a block diagram of a part of the structure of a mobile phone related to the terminal device provided by the embodiment of the present application. Refer to Figure 20 , the mobile phone includes: a Radio Frequency (RF) circuit 1410, a memory 1420, an input unit 1430, a display unit 1440, a sensor 1450, an audio circuit 1460, a Wireless Fidelity (WiFi) module 1470, a processor 1480, and a power supply 1490, etc. Those skilled in the art can understand that Figure 20 the structure of the mobile phone shown in

[0275] does not constitute a limitation on the mobile phone and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Figure 20 The following will specifically introduce each component of the mobile phone in combination with

[0276] The RF circuit 1410 can be used for receiving and sending signals during information reception or call processes. Specifically, after receiving the downlink information from the base station, it is given to the processor 1480 for processing; in addition, the designed uplink data is sent to the base station.

[0277] The memory 1420 can be used to store software programs and modules. The processor 1480 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1420. The memory 1420 may mainly include a program storage area and a data storage area. Among them, the program storage area can store an operating system, applications required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory 1420 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0278] The input unit 1430 can be used to receive input digital or character information and generate key signal inputs related to the user settings and function controls of the mobile phone. Specifically, the input unit 1430 can include a touch panel 1431 and other input devices 1432.

[0279] The display unit 1440 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1440 can include a display panel 1441.

[0280] The mobile phone may further include at least one sensor 1450, such as a light sensor, a motion sensor, and other sensors.

[0281] The audio circuit 1460, the speaker 1461, and the microphone 1462 can provide an audio interface between the user and the mobile phone.

[0282] WiFi belongs to short - range wireless transmission technology. Through the WiFi module 1470, the mobile phone can help users send and receive emails, browse the web, and access streaming media, etc., providing users with wireless broadband Internet access.

[0283] The processor 1480 is the control center of the mobile phone, connecting various parts of the entire mobile phone using various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1420, and calling data stored in the memory 1420, it executes various functions of the mobile phone and processes data.

[0284] The mobile phone also includes a power supply 1490 (such as a battery) for powering each component.

[0285] In this embodiment, the processor 1480 included in the terminal device further has the following functions:

[0286] Determine the item discarding pattern in the virtual scene; in the item discarding pattern, the color of the pattern line is used to indicate the category of the virtual item corresponding to the pattern line, and the width of the pattern line is used to indicate the density of the virtual item corresponding to the pattern line;

[0287] If the discarding space corresponding to the item discarding pattern meets the item discarding condition, then in response to the item drawing operation, control the virtual object in the virtual scene to sequentially discard virtual items of corresponding categories along the trajectory of the item discarding pattern.

[0288] If the computer device is a server, the embodiments of the present application further provide a server. Please refer to Figure 21 as shown Figure 21The structural diagram of server 1500 provided by the embodiments of the present application. Server 1500 may vary significantly due to different configurations or performances, and may include one or more processors 1522, such as Central Processing Units (abbreviated as CPU), a memory 1532, and one or more storage media 1530 (such as one or more mass storage devices) for storing application programs 1542 or data 1544. Among them, the memory 1532 and the storage media 1530 can be transient storage or persistent storage. The programs stored in the storage media 1530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Further, the processor 1522 may be configured to communicate with the storage media 1530 and execute a series of instruction operations in the storage media 1530 on the server 1500.

[0289] Server 1500 may further include one or more power supplies 1526, one or more wired or wireless network interfaces 1550, one or more input / output interfaces 1558, and / or one or more operating systems 1541, such as Windows Server TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM and so on.

[0290] The steps executed by the server in the above embodiments may be based on Figure 21 the server structure shown.

[0291] In addition, the embodiments of the present application also provide a computer-readable storage medium for storing a computer program for executing the method provided by the above embodiments.

[0292] The embodiments of the present application also provide a computer program product including a computer program, which, when running on a computer device, causes the computer device to execute the method provided by the above embodiments.

[0293] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by hardware related to a computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the computer program is executed, it executes the steps including the above method embodiments; and the aforementioned computer-readable storage medium can be at least one of the following media: Read-only Memory (abbreviated as ROM), RAM, magnetic disk, or optical disc, etc., which can store computer programs.

[0294] It should be noted that the various embodiments in this specification are described in a progressive manner. For the same or similar parts among the various embodiments, reference can be made to each other, and the key points of each embodiment are the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference can be made to the corresponding parts of the method embodiments for the relevant content. The device and system embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative efforts.

[0295] As described above, this is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present application should be covered by the protection scope of the present application. Moreover, based on the implementation manners provided in the above aspects, the present application can be further combined to provide more implementation manners. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A virtual item interaction method, characterized in that, The method includes: Determine the item discard pattern in the virtual scene; in the item discard pattern, the color of the pattern line is used to indicate the category of the virtual item corresponding to the pattern line, and the width of the pattern line is used to indicate the density of the virtual item corresponding to the pattern line; If the discard space corresponding to the item discard pattern meets the item discard condition, then in response to an item drawing operation, control the virtual object in the virtual scene to discard virtual items of corresponding categories in sequence along the trajectory of the item discard pattern.

2. The method according to claim 1, wherein The determining the item discard pattern in the virtual scene includes: In response to a pattern drawing operation, determine the initial drawing pattern corresponding to the pattern drawing operation; Map the initial drawing pattern to the virtual scene to obtain the item discard pattern.

3. The method according to claim 2, wherein The method further includes: In response to a drawing discard operation, determine candidate line colors according to the category of the virtual item; The pattern drawing operation includes a first drawing operation, and the initial drawing pattern includes a first line corresponding to the first drawing operation; the determining the initial drawing pattern corresponding to the pattern drawing operation in response to the pattern drawing operation includes: In response to the first drawing operation for the first color among the candidate line colors, determine the first line having the first color.

4. The method according to claim 3, wherein The determining the first line having the first color in response to the first drawing operation for the first color among the candidate line colors includes: In response to the first drawing operation for the first color among the candidate line colors, determine the drawn line having the first color according to the drawing order corresponding to the first drawing operation; If the required quantity of items corresponding to the drawn line reaches the actual quantity of virtual items of the first color, then use the drawn line as the first line; Set the status of the first color to the exhausted status.

5. The method according to claim 4, wherein The method further includes: Display at least one of a drawing control, a preset graphic identifier, and a character input control; Wherein, if the first drawing operation includes a sliding operation corresponding to the drawing control, then the drawing order is determined according to the sliding order of the sliding operation; if the first drawing operation includes a triggering operation for a target identifier among the preset graphic identifiers, then the drawing order is determined according to the default drawing order of the target identifier; if the first drawing operation includes an input operation for the character input control, then the drawing order is determined according to the stroke order of the input characters corresponding to the character input control.

6. The method according to claim 3, characterized in that, The first line includes a discard point, and the width of the first line is used to indicate the quantity of virtual items corresponding to a single discard point in the first line; the method further includes: Display a line width adjustment control; in response to a triggering operation for the line width adjustment control before the first drawing operation, determine the width of the first line; and / or, The display area size adjustment control; in response to a trigger operation on the area size adjustment control before the first drawing operation, determine the mapping relationship between the initial drawing pattern and the item discarding pattern; according to the mapping relationship and a preset discarding interval in the virtual scene, determine the distance between two adjacent discarding points in the first line.

7. The method according to claim 3, characterized in that The method further includes: In response to a drawing discarding operation, display a drawing area for displaying the first line; If the drawing area includes a grid, then in response to a first drawing operation on a first color among the candidate line colors, determining a first line having the first color includes: In response to a first drawing operation on a first color among the candidate line colors, determine the target grid corresponding to the first drawing operation; Fill the target grid with the first color, and the combination of the target grids serves as the first line.

8. The method according to claim 3, wherein The pattern drawing operation further includes a second drawing operation, and the initial drawing pattern further includes a second line corresponding to the second drawing operation. The method further includes: In response to a second drawing operation on a second color among the candidate line colors, determine a second line having the second color.

9. The method according to claim 3, characterized in that, The step of, in response to a drawing discarding operation, determining candidate line colors according to the category of the virtual item includes: In response to a selection operation on the virtual item, determine the discardable item from the virtual item; In response to a drawing discarding operation, determine candidate line colors according to the category of the discardable item.

10. The method according to claim 3, wherein The step of, in response to a drawing discarding operation, determining candidate line colors according to the category of the virtual item includes: In response to a drawing discarding operation, if the virtual item meets a preset quantity condition, then determine candidate line colors according to the category of the virtual item; The method further includes: if the virtual item does not meet the preset quantity condition, then display a drawing discard failure prompt.

11. The method according to claim 2, characterized in that, The step of, if the discard space corresponding to the item discarding pattern meets the item discarding condition, then in response to an item drawing operation, controlling the virtual object in the virtual scene to sequentially discard virtual items of corresponding categories along the trajectory of the item discarding pattern includes: If the discard space corresponding to the item discarding pattern meets the item discarding condition, then in response to an item drawing operation, control the virtual object in the virtual scene to discard virtual items of corresponding categories along the trajectory of the item discarding pattern according to the drawing order of the initial drawing pattern.

12. The method according to claim 2, wherein The step of, if the discard space corresponding to the item discarding pattern meets the item discarding condition, then in response to an item drawing operation, controlling the virtual object in the virtual scene to sequentially discard virtual items of corresponding categories along the trajectory of the item discarding pattern includes: If the discard space corresponding to the item discarding pattern meets the item discarding condition, then in response to an item drawing operation, control the virtual object in the virtual scene to discard virtual items along the trajectory of the item discarding pattern according to the value sorting sequence of virtual items of corresponding categories; And / or, the method further includes: determining the virtual value corresponding to the initial drawing pattern according to the required quantity of items corresponding to the initial drawing pattern and the value sorting sequence of virtual items of corresponding categories.

13. The method according to any one of claims 1 to 12, characterized in that, The method further includes: determining the display position of the pattern preview plane in the virtual scene according to the position of the virtual object in the virtual scene and the relative position relationship between the virtual object and the pattern preview plane; displaying the pattern preview plane in the virtual scene according to the display position, and displaying an item discard pattern in the pattern preview plane.

14. The method according to claim 13, wherein The method further includes: determining the discard space according to the display position, where the discard space includes an upper space within a first preset height above the pattern preview plane and a lower space within a second preset height below the pattern preview plane; if there is a target space in the discard space and the target space meets the non-discard condition, determining that the discard space does not meet the item discard condition; if there is no space meeting the non-discard condition in the discard space, determining that the discard space meets the item discard condition.

15. The method according to claim 14, wherein The determining the discard space according to the display position includes: emitting a first detection ray with a first preset height upward from the pattern preview plane and a second detection ray with a second preset height downward; determining the target space according to the abnormal rays in the first detection ray and the second detection ray; the abnormal rays include: the first detection ray encountering an obstacle and the second detection ray not touching the ground.

16. The method according to claim 14, wherein A third space meeting the non-discard condition in the discard space corresponds to a first area in the pattern preview plane, and a fourth space not meeting the non-discard condition in the discard space corresponds to a second area in the pattern preview plane, and the first area and the second area are identified by different colors.

17. The method according to any one of claims 1 to 12, characterized in that The method further includes: if the discard space corresponding to the item discard pattern meets the item discard condition, canceling the display of the item discard pattern in response to the item drawing operation; and / or, if the discard space corresponding to the item discard pattern does not meet the item discard condition, displaying a non-discardable prompt in response to the item drawing operation; and / or, displaying the drawing progress of the item discard pattern; and / or, displaying a discard stop control, where the discard stop control is used to stop the virtual item discard when triggered.

18. A virtual item interaction device, characterized in that, The device includes: a pattern determination unit, configured to determine an item discard pattern in the virtual scene; in the item discard pattern, the color of the pattern line is used to indicate the category of the virtual item corresponding to the pattern line, and the width of the pattern line is used to indicate the density of the virtual item corresponding to the pattern line; an item discard unit, configured to, if the discard space corresponding to the item discard pattern meets the item discard condition, control the virtual object in the virtual scene to sequentially discard virtual items of corresponding categories along the trajectory of the item discard pattern in response to the item drawing operation.

19. A computer device, characterized in that, The computer device includes a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is configured to execute the virtual item interaction method according to any one of claims 1-17 based on the instructions in the computer program.

20. A computer-readable storage medium, characterized in that, The computer-readable storage medium is configured to store a computer program, and the computer program is configured to execute the virtual item interaction method according to any one of claims 1-17.

21. A computer program product comprising a computer program, characterized in that, When running on a computer device, it causes the computer device to execute the virtual item interaction method according to any one of claims 1-17.