CN111388994B - Method, device, equipment and storage medium for processing virtual props in game - Google Patents

Method, device, equipment and storage medium for processing virtual props in game Download PDF

Info

Publication number
CN111388994B
CN111388994B CN202010183239.2A CN202010183239A CN111388994B CN 111388994 B CN111388994 B CN 111388994B CN 202010183239 A CN202010183239 A CN 202010183239A CN 111388994 B CN111388994 B CN 111388994B
Authority
CN
China
Prior art keywords
virtual
prop
item
array
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010183239.2A
Other languages
Chinese (zh)
Other versions
CN111388994A (en
Inventor
张建敏
彭骁勋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010183239.2A priority Critical patent/CN111388994B/en
Publication of CN111388994A publication Critical patent/CN111388994A/en
Application granted granted Critical
Publication of CN111388994B publication Critical patent/CN111388994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6045Methods for processing data by generating or executing the game program for mapping control signals received from the input arrangement into game commands

Landscapes

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

Abstract

The embodiment of the invention provides a method, a device, equipment and a storage medium for processing a virtual item in a game, wherein the method comprises the following steps: when the virtual props are displayed in a preset array on a graphical user interface, determining target positions in the preset array according to the number of the virtual props; based on the prop information of the virtual prop, the arrangement position of the virtual prop in the preset array is adjusted by taking the target position as a center. According to the technical scheme of the embodiment of the invention, the operation of selecting the virtual prop can be simplified, so that the virtual prop which a player wants to select can be conveniently and efficiently selected.

Description

Method, device, equipment and storage medium for processing virtual props in game
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a virtual item in a game.
Background
With the development of computer technology and the game industry, various games emerge. Currently, many games require players to select virtual items or virtual objects, and how to conveniently select virtual items becomes the focus of attention.
In the current technical scheme, when a player needs to select a virtual item in a game, the player selects the virtual item through a cross key on a game handle. However, in this technical solution, under the condition that there are many virtual items, the player needs to operate many times to select the virtual item to be selected, which is not only tedious in operation process, but also takes a long time.
Therefore, how to conveniently and efficiently select the virtual prop becomes a technical problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for processing virtual props in a game, which are used for solving the problem of how to conveniently and efficiently select the virtual props.
In a first aspect of an embodiment of the present invention, a method for processing a virtual item in a game is provided, including: when the virtual props are displayed in a preset array on a graphical user interface, determining target positions in the preset array according to the number of the virtual props; based on the prop information of the virtual props, the arrangement positions of the virtual props in the preset array are adjusted by taking the target positions as centers.
In some embodiments of the invention, the prop information comprises at least one of: historical use information of the virtual prop, prop attribute information of the virtual prop and association information of the virtual prop and a virtual role to which the virtual prop belongs.
In some embodiments of the present invention, the determining the target position in the preset array according to the number of the virtual items includes: if the number of the virtual props is n × m, the target position is an array position of a p row and a q column in the preset array, wherein n and m are positive integers greater than or equal to 2, if n and/or m are even numbers, p is n/2 and/or q is m/2, and if n and/or m are odd numbers, p is (n + 1)/2 and/or q is (m + 1)/2.
In some embodiments of the present invention, the adjusting, based on the property information of the virtual property, an arrangement position of the virtual property in the preset array with the target position as a center includes: determining a recommendation score of the virtual item based on each item of item information of the virtual item, wherein the recommendation score is used for indicating the probability of using the virtual item in the current game state; determining the distance between each array position in the preset array and the target position; and arranging the virtual props to the corresponding array positions according to the recommendation scores and the distances.
In some embodiments of the present invention, said arranging the virtual props to the corresponding array positions according to the recommendation scores and the distances includes: grouping the virtual items according to the distance and the recommendation score to obtain a plurality of virtual item groups; and arranging each virtual item in the virtual item group to the corresponding array position.
In some embodiments of the invention, the method further comprises: distinctively displaying the virtual items of each of the virtual item groups.
In some embodiments of the invention, the method further comprises: and responding to the pressing operation of a target key, and moving a target selection frame on the preset array to select the corresponding virtual prop.
In some embodiments of the present invention, the moving a target selection box on the preset array to select a corresponding virtual prop in response to a pressing operation of a target key includes: responding to the pressing operation of a target key, and acquiring the pressing time of the target key; and moving the target selection frame based on the pressing time to select the corresponding virtual prop.
In some embodiments of the invention, the target key is a cross-shaped key, the method further comprising: establishing a mapping relation between the cross-shaped key and four virtual props at the upper, lower, left and right sides of the target position; and responding to the pressing operation of the cross-shaped key, and selecting the corresponding virtual prop based on the mapping relation.
In a second aspect of the embodiments of the present invention, there is provided a device for processing a virtual item in a game, including: the position determining module is used for determining a target position in a preset array according to the number of the virtual props when the virtual props are displayed in the preset array on a graphical user interface; and the position adjusting module is used for adjusting the arrangement position of the virtual prop in the preset array by taking the target position as a center based on the prop information of the virtual prop.
In some embodiments of the invention, the prop information comprises at least one of: historical use information of the virtual prop, prop attribute information of the virtual prop, and association information of the virtual prop and a virtual role to which the virtual prop belongs.
In some embodiments of the invention, the position determining module is specifically configured to: if the number of the virtual props is n × m, the target position is an array position of a p row and a q column in the preset array, wherein n and m are positive integers larger than or equal to 2, if n and/or m are even numbers, p is n/2 and/or q is m/2, and if n and/or m are odd numbers, p is (n + 1)/2 and/or q is (m + 1)/2.
In some embodiments of the invention, the position adjustment module comprises: the system comprises a score determining unit, a score determining unit and a score calculating unit, wherein the score determining unit is used for determining a recommendation score of the virtual item based on each item of item information of the virtual item, and the recommendation score is used for representing the probability of using the virtual item in the current game state; the distance determining unit is used for determining the distance between each array position in the preset array and the target position; and the arrangement unit is used for arranging the virtual props to the corresponding array positions according to the recommendation scores and the distances.
In some embodiments of the invention, the arrangement unit is specifically configured to: grouping the virtual props according to the distance and the recommendation score to obtain a plurality of virtual prop groups; and arranging each virtual item in the virtual item group to the corresponding array position.
In some embodiments of the invention, the apparatus further comprises: and the distinguishing display module is used for distinctively displaying the virtual props grouped by the virtual props.
In some embodiments of the invention, the apparatus further comprises: and the first stage tool selection module is used for responding to the pressing operation of a target key, and moving a target selection frame on the preset array to select the corresponding virtual stage tool.
In some embodiments of the invention, the first accessory selection module comprises: a time acquisition unit configured to acquire a pressing time of a target key in response to a pressing operation of the target key; and the selection unit is used for moving the target selection frame based on the pressing time so as to select the corresponding virtual prop.
In some embodiments of the present invention, the target key is a cross-shaped key, and the apparatus further comprises: the mapping relation establishing module is used for establishing the mapping relation between the cross-shaped key and four virtual props at the upper, lower, left and right sides of the target position; and the second prop selection module is used for responding to the pressing operation of the cross-shaped key and selecting the corresponding virtual prop based on the mapping relation.
In a third aspect of the embodiments of the present invention, there is provided a device for processing a virtual item in a game, including: a receiver, a processor, a memory, and a transmitter; the memory is used for storing computer programs and data, and the processor calls the computer programs stored by the memory to execute the processing method of the virtual items in the game provided by any embodiment of the first aspect.
A fourth aspect of the present invention provides a computer-readable storage medium comprising a computer program which, when executed by a processor, is configured to perform a method for processing a virtual item in a game provided in any one of the embodiments of the first aspect.
According to the method, the device, the equipment and the storage medium for processing the virtual props in the game, provided by the embodiment of the invention, when the virtual props are displayed in the preset array, the target position, such as the central position, of the preset array is selected by default, so that the frequency of pressing a cross key can be reduced when the virtual props are selected, and the efficiency of prop selection is improved; based on the prop information of each virtual prop, the position of each virtual prop in the preset array is adjusted by taking the target position as the center, the virtual props which the player wants to select can be arranged around the target position in the middle, so that the prop selection operation can be further simplified, and the virtual props which the player wants to select can be conveniently and efficiently selected.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on the drawings without inventive labor.
Fig. 1 is a schematic diagram of an application scenario of a method for processing a virtual item in a game according to some embodiments of the present invention.
Fig. 2 is a flow chart illustrating a method for processing a virtual item in a game according to some embodiments of the present invention.
FIG. 3 is a schematic diagram of a default array provided in accordance with some embodiments of the present invention.
Fig. 4 is a schematic flow chart illustrating adjusting an arrangement position of a virtual prop according to some embodiments of the present invention.
Fig. 5 is a schematic block diagram of a device for processing virtual items in a game provided in accordance with some embodiments of the invention.
Fig. 6 is a schematic block diagram of a position adjustment module provided in accordance with some embodiments of the present invention.
Fig. 7 is a schematic block diagram of an embodiment of an apparatus for processing virtual items in a game, according to some embodiments of the present invention.
Description of the preferred embodiment
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
On the current game platform, when a player needs to select a virtual item in a game, the player selects the virtual item through a cross key on a game handle. In the technical scheme, when the number of the virtual props is large, the player needs to operate for many times to select the virtual prop to be selected, so that the operation process is complex and the consumed time is long.
Based on the above, the basic idea of the present invention is to determine a target position in a preset array when a virtual item is displayed in the preset array on a game interface, where the target position may be a middle position in the preset array; based on the prop information of each virtual prop, the position of each virtual prop in the preset array is adjusted by taking the target position as a center. When the virtual prop is displayed in the preset array, a target position, such as a center position, of the preset array is selected by default, so that the frequency of pressing a cross key can be reduced when the virtual prop is selected, and the prop selection efficiency is improved; based on the stage property information of each virtual stage property, the position of each virtual stage property in the preset array is adjusted by taking the target position as the center, and the virtual stage properties which the player wants to select can be arranged around the target position in the middle, so that the stage property selection operation can be further simplified, and the virtual stage properties which the player wants to select can be conveniently and efficiently selected.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Fig. 1 is a schematic diagram illustrating an application scenario of a method for processing a virtual item in a game according to some embodiments of the present invention. Referring to fig. 1, in section 1a of fig. 1, a 3 × 2 preset array is displayed on the game interface, where the preset array includes 6 virtual props, and a first row-centered position is selected by default; in section 1b of FIG. 1, a preset array of 3 x 2+1 is displayed on the game interface, the preset array including 7 virtual props, and the second row centered position is selected by default; in section 1c of FIG. 1, a preset array of 3 x 2+2 is displayed on the game interface, which includes 8 virtual props, the second row centered position being selected by default.
Furthermore, the position of each virtual prop in the preset array can be adjusted by taking the default selected centered position as the center according to the prop information of each virtual prop in the preset array. Specifically, according to the prop information of each virtual prop in the preset array, the recommendation score of each virtual prop is determined; adjusting the position of each virtual item in a preset array by taking a default selected centered position as a center according to a recommendation score, wherein the recommendation score is used for indicating the probability of using the virtual item in the current game state, and the item information may include at least one of the following items: historical use information of the virtual prop, prop attribute information of the virtual prop and association information of the virtual prop and a virtual role to which the virtual prop belongs.
For example, the scores of each item of item information of a virtual item may be determined according to current game state information, where the game state information may include information about a virtual character used by a current game player, a level of the virtual character, an existing item of the virtual character, and the like, and the scores of each item of item information of a virtual item may be determined according to a level of a virtual character used by a player in a current game and an existing item of the virtual character, for example, if the number of times of use of a virtual item in the virtual character used by a current game player is greater, the score of historical use information of the virtual item is higher; if the matching degree of the property attribute of the virtual property and the virtual character used by the current game player is higher, the property attribute information score of the virtual property is higher; if the association degree of the virtual item and the virtual character used by the current game player is higher, the score of the association information is higher. Further, performing weighted operation on scores of various item of item information of the virtual item to determine a recommendation score of the virtual item; and determining the recommendation sequence of the virtual items based on the recommendation scores of the virtual items, for example, taking the virtual item with the highest recommendation score as the highest recommendation sequence, namely sequence 1, and setting the recommendation sequence of the virtual item with the recommendation score ranking 2-4 as 2-4.
Referring to fig. 1, in section 1a of fig. 1, the virtual item with the highest recommended score is arranged at the center of the default selection, the virtual item with the recommended score of 2 is arranged at the left of the target virtual item, the virtual item with the recommended score of 3 is arranged at the right of the target virtual item, and the virtual item with the recommended score of 4 is arranged below the target virtual item; in section 1b of fig. 1 and section 1c of fig. 1, the recommendation score 1 is ranked in the default selected central position, and four virtual items with recommendation scores from 2 to 5 are ranked above, below, to the left, and to the right of the target virtual item, respectively.
The method for processing the virtual item in the game can be applied to terminal equipment, wherein the terminal equipment can be a mobile phone, a tablet computer, a desktop computer, a portable notebook computer, a vehicle-mounted computer and the like, and the method is not particularly limited in this respect.
The following describes a method for processing a virtual item in a game according to an exemplary embodiment of the present invention with reference to the accompanying drawings in combination with the application scenario of fig. 1. It should be noted that the above application scenarios are merely illustrative for the convenience of understanding the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
FIG. 2 shows a flow diagram of a method for processing a virtual item in a game, according to some embodiments of the invention. The method for processing the virtual item in the game comprises step S210 and step S220. The following describes the processing method of the virtual item in the game in detail with reference to the accompanying drawings.
Referring to fig. 1, in step S210, when the virtual items are displayed in the preset array on the gui, the target positions in the preset array are determined according to the number of the virtual items.
In an example embodiment, when a player opens a property selection interface, a preset array is displayed on the graphical user interface, and each array position in the preset array is used for displaying each virtual property.
Further, in an example embodiment, a target position in the preset array is determined according to the number of the virtual items, where the target position is a default selected position when the virtual items are displayed, for example, the target position may be a central position in the preset array. Specifically, if the number of the virtual props is n × m, the target position is an array position of a p row and a q column in the preset array, where n and m are positive integers greater than or equal to 2, if n and/or m are even numbers, p is n/2 and/or q is m/2, and if n and/or m are odd numbers, p is (n + 1)/2 and/or q is (m + 1)/2.
For example, if n is 2 and m is 3, p is 1 and q is 2, as shown in fig. 3, when the virtual prop is 2 rows and 3 columns, the virtual prop in row 1 and row 2 in the preset array is selected by default, and when the virtual prop is 4 rows and 3 columns, the virtual prop in row 2 and row 2 is selected by default; if n is 3 and m is 3, p is 2 and q is 2, referring to fig. 3, when the virtual prop is 3 rows and 3 columns, the virtual prop in 2 row and 2 column is selected by default; if n is 5 and m is 3, p is 3 and q is 2, that is, if the virtual item is 5 rows and 3 columns, the virtual item in 3 rows and 2 columns is selected by default.
In step S220, based on the property information of the virtual property, the arrangement position of the virtual property in the preset array is adjusted by taking the target position as a center.
In an example embodiment, prop information for a virtual prop includes at least one of: historical use information of the virtual prop, prop attribute information of the virtual prop and association information of the virtual prop and a virtual role to which the virtual prop belongs. The historical use information of the virtual item can comprise the total historical use frequency of the virtual item and the historical use frequency of the virtual item under the virtual character currently used by the player; the property attribute information of the virtual property may include the type of the virtual property (e.g., attack type property, legal type property, defense type property), the role of the property (e.g., increase attack force, blood returning, blue returning), and the like; the association information between the virtual item and the virtual character to which the virtual item belongs may include: the method comprises the following steps of associating information of the type of the virtual item with the type of the virtual role to which the virtual item belongs, and associating information of the attribute of the virtual item with the grade of the virtual role to which the virtual item belongs.
It should be noted that, although the above prop information is taken as an example for description, it should be understood by those skilled in the art that the prop information in the embodiment of the present invention may also be other appropriate prop information, for example, a price of the prop, whether the prop is a newly-appeared prop, and the like, which is also within the protection scope of the present invention.
In an example embodiment, based on the prop information of the virtual props, the arrangement positions of the virtual props in the preset array are adjusted by taking the target positions as centers. Specifically, if the prop information of the virtual props includes historical use information of the virtual props, the historical use frequency of each virtual prop is determined based on the historical use frequency of each virtual prop in a preset time period, and the arrangement positions of the virtual props in the preset array are adjusted by taking the target positions as centers based on the historical use frequency of each virtual prop in the preset array. For example, in part 1a of fig. 1, the virtual item with the highest frequency of historical use is arranged at the center of the default selection, the virtual item with frequency of historical use 2 is arranged at the left of the target position, the virtual item with frequency of historical use 3 is arranged at the right of the target position, and the virtual item with frequency of historical use 4 is arranged below the target position; in section 1b of fig. 1 and section 1c of fig. 1, the 1 st item of the historical use frequency is arranged at the center target position selected by default, and the four virtual props with the historical use frequencies from 2 to 5 are respectively arranged at the upper, lower, left and right sides of the target position.
Further, if the item information of the virtual item includes multiple items of information, the virtual item may be scored according to the multiple items of information, scoring results of the items may be scored, so as to obtain a total scoring result of the virtual item, and an arrangement position of each virtual item in the preset array may be adjusted based on the total scoring result of the virtual item with the target position as a center.
According to the method for processing the virtual item in the game in the example embodiment of fig. 2, when the virtual item is displayed in the preset array, the target position of the preset array, for example, the center position, is selected by default, so that the number of times of pressing the cross key when the virtual item is selected can be reduced, and the item selection efficiency can be improved; based on the prop information of each virtual prop, the position of each virtual prop in the preset array is adjusted by taking the target position as the center, the virtual props which the player wants to select can be arranged around the target position in the middle, so that the prop selection operation can be further simplified, and the virtual props which the player wants to select can be conveniently and efficiently selected.
Further, in an example embodiment, the method for processing virtual items in a game further includes: and responding to the pressing operation of the target key, and moving a target selection frame on a preset array to select the corresponding virtual prop, wherein the target selection frame is used for selecting the virtual prop. Specifically, in an example embodiment, in response to a pressing operation of a target key, moving a target selection box on a virtual prop to select the corresponding virtual prop includes: responding to the pressing operation of the target key, and acquiring the pressing time of the target key; and moving the target selection frame based on the pressing time to select the corresponding virtual prop. For example, if it is determined that the pressing time of the pressing operation is less than the predetermined time threshold, it is determined that the pressing operation is a single-click operation, and the target selection box is moved one by one; if the pressing time of the pressing operation is determined to be greater than or equal to the preset time threshold, the target selection frame is rapidly moved in a grid-by-grid mode, for example, the preset time threshold is set to be 3s, and if the pressing time of the pressing operation is greater than or equal to 3s, the target selection frame is rapidly moved at the speed of 2 times.
Further, in an example embodiment, in response to a pressing operation of a target key, a pressing time and/or a pressing force degree of the target key is determined; and moving the target selection frame based on the pressing time and/or the pressing force degree to select the corresponding virtual prop. The target selection frame is rapidly moved based on the pressing time and/or the pressing force degree of the pressing operation, so that the virtual prop can be selected more conveniently and efficiently.
It should be noted that the target key is a physical key, for example, the target key may be a selection key on the terminal, such as a volume key or a physical cross key on the game pad, which is not particularly limited in the present invention.
In addition, in some example embodiments, the target key is a cross-shaped key, and the method for processing the virtual item in the game further includes: establishing a mapping relation between the cross-shaped key and four virtual props at the upper, lower, left and right sides of the target position; and responding to the pressing operation of the cross-shaped key, and selecting the corresponding virtual prop based on the mapping relation. By establishing the mapping relation between the target cross control and the upper, lower, left and right virtual props of the target virtual props and selecting the virtual props based on the mapping relation, the virtual props can be further conveniently and efficiently selected.
Fig. 4 shows a schematic flow chart for adjusting arrangement positions of virtual props according to some embodiments of the present invention.
Referring to fig. 4, in step S410, a recommendation score of the virtual item is determined based on each item of item information of the virtual item, where the recommendation score is used to indicate a probability of using the corresponding virtual item in the current game state.
In an example embodiment, the prop information may include at least one of: historical use information of the virtual prop, prop attribute information of the virtual prop, and association information of the virtual prop and a virtual role to which the virtual prop belongs.
Further, in an example embodiment, the recommendation score is used to indicate the amount of probability that the corresponding virtual item is used in the current game state, i.e., the higher the recommendation score, the greater the probability that the corresponding virtual item is used by the current game player. The scores of various item of prop information of the virtual props can be determined according to the current game state information; carrying out weighted operation on scores of various item of item information of the virtual item to determine a recommendation score of the virtual item; and determining the recommendation sequence of the virtual items based on the recommendation scores of the virtual items.
Specifically, the game state information may include information such as a virtual character used by a current game player, a level of the virtual character, an existing item of the virtual character, and the like, and a score of each item of item information of the virtual item may be determined according to the level of the virtual character used by the player in the current game and the existing item of the virtual character, for example, if the number of times of use of the virtual item is greater in the virtual character used by the current game player, a score of historical use information of the virtual item is higher; if the matching degree of the property attribute of the virtual property and the virtual character used by the current game player is higher, the property attribute information score of the virtual property is higher; if the association degree of the virtual item and the virtual character used by the current game player is higher, the score of the association information is higher. Further, the scores of the item of item information of the virtual item are weighted to determine the recommendation score of the virtual item, the recommendation sequence of the virtual item with the highest recommendation score is set as 1, and the recommendation sequence of the virtual item with the recommendation score ranking of 2-4 is set as 2-4.
In step S420, the distance of each array position in the preset array from the target position is determined.
In an example embodiment, the distance between each array position and the target position is the number of times of moving the virtual prop of each array position to the target position, for example, the distance corresponding to the target position is 0, and the distances corresponding to the four positions of the target position, the top, the bottom, the left, and the right, are 1. Further, in this example embodiment, the distance from each array position in the preset array to the target virtual prop may be predetermined.
In step S430, the virtual items are arranged at corresponding array positions according to the recommendation scores and corresponding distances of the virtual items.
In an example embodiment, the virtual props are arranged to the corresponding array positions in the order of the distance from small to large and the recommendation score from large to small. For example, in the preset array of 3 × 3, the target position is the position of row 2 and column 2, the array position with the moving distance of 0 is the target position, and the virtual prop with the highest recommendation score is arranged to the array position with the distance of 0; the array position with the movement distance of 1 corresponds to four positions, i.e., the upper, lower, left, and right positions, of the target position, and the four virtual props with the recommendation scores of 2 to 5 are arranged at the four positions, for example, the four virtual props with the recommendation scores of 2 to 5 may be arranged at the four positions in a counterclockwise or clockwise manner according to the sequence of the recommendation scores from the largest to the smallest.
Further, in an example embodiment, arranging each virtual item to a corresponding array location according to the recommendation score and the corresponding distance of each virtual item includes: determining the number of array positions in a preset array corresponding to each distance; grouping the virtual props according to the number of the array positions corresponding to the distances and the recommendation scores of the virtual props to obtain a plurality of virtual prop groups; and arranging each virtual item in the virtual item group to a corresponding array position. For example, in a preset array of 3 × 3, a target position is a position of a row 2 and a column 2, the number of array positions in the preset array corresponding to a distance of 0 is 1, the number of array positions in the preset array corresponding to the distance of 1 is 4, the number of array positions in the preset array corresponding to the distance of 2 is 4, 9 virtual props with a recommended score of 9 before each virtual prop are selected, the 9 virtual props are grouped, the 1 st virtual props are grouped, the 2 nd virtual props are grouped in the 2 nd to 5 th ranking, the 3 rd virtual props are grouped in the 6 th to 9 th ranking, three virtual props with a plurality of virtual prop groups, namely {1}, {2, 3, 4, 5}, {6, 7, 8, 9} are obtained, each of the virtual props in the virtual prop groups is arranged to a corresponding array position, that is to arrange a virtual prop in the 1 st virtual prop group to the position of the target virtual prop, the 2 nd virtual prop group is arranged to the position of the target virtual prop, the left and right virtual props of the target props are arranged to the four virtual props in the left and right positions of the left and right virtual props.
Further, each virtual item in the virtual item group may be arranged to a corresponding array position in a counterclockwise or clockwise order. For example, in a 3-by-3 preset array, the virtual prop with the recommended score of 2 is arranged above the target position, the virtual prop with the recommended score of 3 is arranged on the right of the target position, the virtual prop with the recommended score of 4 is arranged below the target position, and the virtual prop with the recommended score of 5 is arranged on the left of the target position.
Further, to be able to assist players in more efficiently selecting virtual items, in an example embodiment, the virtual items of each grouping of virtual items are distinctively displayed. For example, the virtual items of each virtual item group may be displayed in order from dark to light in color, where the color may represent the recommendation score of the virtual item, and the deeper the color the higher the recommendation score of the virtual item.
Fig. 5 is a schematic block diagram of a device for processing virtual items in a game provided in accordance with some embodiments of the invention. Referring to fig. 5, the apparatus 500 for processing virtual items in a game includes: a position determining module 510, configured to determine, when the virtual items are displayed in a preset array on a graphical user interface, target positions in the preset array according to the number of the virtual items; a position adjusting module 520, configured to adjust an arrangement position of the virtual item in the preset array by taking the target position as a center based on the item information of the virtual item.
According to the device for processing the virtual item in the game in the example embodiment of fig. 5, by selecting the centered virtual item by default, the number of times of pressing the cross key can be reduced when the virtual item is selected, and the item selection efficiency can be improved; based on the stage property information of each virtual stage property, the position of each virtual stage property in the preset array is adjusted by taking the centered virtual stage property as the center, the virtual stage properties frequently used by the player can be arranged around the centered virtual stage property, so that the stage property selection operation can be further simplified, and the virtual stage property which the player wants to select can be conveniently and efficiently selected.
In some embodiments of the invention, the prop information comprises at least one of: historical use information of the virtual prop, prop attribute information of the virtual prop and association information of the virtual prop and a virtual role to which the virtual prop belongs.
In some embodiments of the present invention, the position determining module 510 is specifically configured to: if the number of the virtual props is n × m, the target position is an array position of a p row and a q column in the preset array, wherein n and m are positive integers greater than or equal to 2, if n and/or m are even numbers, p is n/2 and/or q is m/2, and if n and/or m are odd numbers, p is (n + 1)/2 and/or q is (m + 1)/2.
Fig. 6 is a schematic block diagram of a position adjustment module provided in accordance with some embodiments of the present invention. Referring to fig. 6, in some embodiments of the invention, the position adjustment module 520 includes: a score determining unit 610, configured to determine, based on item information of the virtual item, a recommendation score of the virtual item, where the recommendation score is used to indicate a probability of using the virtual item in a current game state; a distance determining unit 620, configured to determine a distance from each array position in the preset array to the target position; and the arranging unit 630 is configured to arrange the virtual props to the corresponding array positions according to the recommendation scores and the distances.
In some embodiments of the present invention, the arranging unit 630 is specifically configured to: grouping the virtual items according to the distance and the recommendation score to obtain a plurality of virtual item groups; and arranging each virtual item in the virtual item group to the corresponding array position.
In some embodiments of the present invention, the apparatus 500 further comprises: and the distinguishing display module is used for distinctively displaying the virtual props grouped by the virtual props.
In some embodiments of the present invention, the apparatus 500 further comprises: and the first stage tool selection module is used for responding to the pressing operation of a target key, and moving a target selection frame on the preset array to select the corresponding virtual stage tool.
In some embodiments of the invention, the first track selection module comprises: a time acquisition unit configured to acquire a pressing time of a target key in response to a pressing operation of the target key; and the selection unit is used for moving the target selection frame based on the pressing time so as to select the corresponding virtual prop.
In some embodiments of the present invention, the target key is a cross-shaped key, and the apparatus 500 further comprises: the mapping relation establishing module is used for establishing the mapping relation between the cross-shaped key and four virtual props at the upper, lower, left and right sides of the target position; and the second prop selection module is used for responding to the pressing operation of the target cross key control and selecting the corresponding virtual prop based on the mapping relation.
The processing device of the virtual item in the game provided by the embodiment of the application can realize each process in the embodiment of the method, and achieves the same functions and effects, and the processes are not repeated here.
Fig. 7 is a schematic structural diagram of a first embodiment of a device for processing a virtual item in a game according to some embodiments of the present invention, and as shown in fig. 7, a device 700 for processing a virtual item in a game according to this embodiment may include: memory 710, and processor 720.
Optionally, the processing device for the in-game virtual item may further include a bus. Wherein, the bus is used for realizing the connection between each element.
The memory is used for storing computer programs and data, and the processor calls the computer programs stored by the memory to execute the technical scheme of the method for processing the virtual items in the game provided by any one of the method embodiments.
Wherein the memory is in direct or indirect electrical communication with the processor for effecting data transfer or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines, such as a bus. The processor executes various functional applications and the processing of virtual props in games by running computer programs and modules stored in the memory.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory is used for storing programs, and the processor executes the programs after receiving the execution instructions. Further, the software programs and modules within the aforementioned memories may also include an operating system, which may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.) and may communicate with various hardware or software components to provide an operating environment for other software components.
The processor may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. It will be appreciated that the configuration of fig. 7 is merely illustrative and may include more or fewer components than shown in fig. 7 or have a different configuration than shown in fig. 7. The components shown in fig. 7 may be implemented in hardware and/or software.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for processing a virtual item in a game provided in any of the above method embodiments may be implemented.
The computer-readable storage medium in this embodiment may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, etc. that is integrated with one or more available media, and the available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., SSDs), etc.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (11)

1. A method for processing virtual props in a game is characterized by comprising the following steps:
when the virtual props are displayed in a preset array on a graphical user interface, determining target positions in the preset array according to the number of the virtual props;
based on the prop information of the virtual prop, adjusting the arrangement position of the virtual prop in the preset array by taking the target position as a center;
the prop information based on the virtual prop, using the target position as a center to adjust the arrangement position of the virtual prop in the preset array, includes:
determining a recommendation score of the virtual item based on each item of item information of the virtual item, wherein the recommendation score is used for indicating the probability of using the virtual item in the current game state;
determining the distance between each array position in the preset array and the target position;
and arranging the virtual props to the corresponding array positions according to the recommendation scores and the distances.
2. The method of claim 1, wherein the prop information comprises at least one of: historical use information of the virtual prop, prop attribute information of the virtual prop and association information of the virtual prop and a virtual role to which the virtual prop belongs.
3. The method of claim 1, wherein said determining a target location in said preset array based on the number of said virtual items comprises:
if the number of the virtual props is n × m, the target position is the array position of the p row and the q column in the preset array,
wherein n and m are positive integers greater than or equal to 2, if n and/or m are even numbers, p is n/2 and/or q is m/2, if n and/or m are odd numbers, p is (n + 1)/2 and/or q is (m + 1)/2.
4. The method of claim 1, wherein said arranging said virtual items to corresponding said array locations according to said recommendation score and said distance comprises:
grouping the virtual items according to the distance and the recommendation score to obtain a plurality of virtual item groups;
and arranging each virtual item in the virtual item group to the corresponding array position.
5. The method of claim 4, further comprising:
distinctively displaying the virtual items of each of the virtual item groups.
6. The method according to any one of claims 1 to 5, further comprising:
and responding to the pressing operation of a target key, and moving a target selection frame on the preset array to select the corresponding virtual prop.
7. The method according to claim 6, wherein the moving a target selection box on the preset array to select a corresponding virtual prop in response to a pressing operation of a target key comprises:
responding to the pressing operation of a target key, and acquiring the pressing time of the target key;
and moving the target selection frame based on the pressing time to select the corresponding virtual prop.
8. The method of claim 6, wherein the target key is a cross-shaped key, the method further comprising:
establishing a mapping relation between the cross-shaped key and four virtual props at the upper, lower, left and right sides of the target position;
and responding to the pressing operation of the cross-shaped key, and selecting the corresponding virtual prop based on the mapping relation.
9. An apparatus for processing a virtual item in a game, comprising:
the position determining module is used for determining the target position in a preset array according to the number of the virtual props when the virtual props are displayed in the preset array on a graphical user interface;
the position adjusting module is used for adjusting the arrangement position of the virtual prop in the preset array by taking the target position as a center based on the prop information of the virtual prop;
the position adjustment module includes: the system comprises a score determining unit, a score determining unit and a score calculating unit, wherein the score determining unit is used for determining a recommendation score of the virtual item based on each item of item information of the virtual item, and the recommendation score is used for representing the probability of using the virtual item in the current game state; the distance determining unit is used for determining the distance between each array position in the preset array and the target position; and the arranging unit is used for arranging the virtual props to the corresponding array positions according to the recommendation scores and the distances.
10. An apparatus for processing a virtual item in a game, comprising: a processor and a memory; the memory is used for storing computer programs and data, and the processor calls the computer programs stored in the memory to execute the processing method of the virtual props in the game according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that it comprises a computer program which, when executed by a processor, is adapted to perform the method of processing a virtual item in a game according to any one of claims 1 to 8.
CN202010183239.2A 2020-03-16 2020-03-16 Method, device, equipment and storage medium for processing virtual props in game Active CN111388994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010183239.2A CN111388994B (en) 2020-03-16 2020-03-16 Method, device, equipment and storage medium for processing virtual props in game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010183239.2A CN111388994B (en) 2020-03-16 2020-03-16 Method, device, equipment and storage medium for processing virtual props in game

Publications (2)

Publication Number Publication Date
CN111388994A CN111388994A (en) 2020-07-10
CN111388994B true CN111388994B (en) 2023-03-31

Family

ID=71416258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010183239.2A Active CN111388994B (en) 2020-03-16 2020-03-16 Method, device, equipment and storage medium for processing virtual props in game

Country Status (1)

Country Link
CN (1) CN111388994B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114756779B (en) * 2022-04-26 2024-07-12 北京达佳互联信息技术有限公司 Resource interaction method, resource interaction device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898922A (en) * 2015-05-13 2015-09-09 深圳市金立通信设备有限公司 Icon arranging method and terminal
CN110124310A (en) * 2019-05-20 2019-08-16 网易(杭州)网络有限公司 Virtual item information sharing method in game, device, equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898922A (en) * 2015-05-13 2015-09-09 深圳市金立通信设备有限公司 Icon arranging method and terminal
CN110124310A (en) * 2019-05-20 2019-08-16 网易(杭州)网络有限公司 Virtual item information sharing method in game, device, equipment

Also Published As

Publication number Publication date
CN111388994A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN109324749B (en) Drawing method, drawing device, storage medium and electronic equipment
CN107947951A (en) Groups of users recommends method, apparatus and storage medium and server
CN110704677B (en) Program recommendation method and device, readable storage medium and terminal equipment
CN105289000A (en) Game terminal device
CN114391132A (en) Electronic equipment and screen capturing method thereof
CN103605647A (en) System, method, and computer program product for testing device parameters
CN111388994B (en) Method, device, equipment and storage medium for processing virtual props in game
CN113975788A (en) Entry indexing method and device, computer equipment and storage medium
CN111973990A (en) Dynamic loading method and device of game map, electronic equipment and storage medium
CN111773703A (en) Game object display method and device, storage medium and terminal equipment
CN113835806A (en) Page layout method and device, electronic equipment and storage medium
US20150091836A1 (en) Touch control input method and system, computer storage medium
CN111399724B (en) Display method, device, terminal and storage medium for system setting item
CN108399266A (en) Data pick-up method, apparatus, electronic equipment and computer readable storage medium
CN112329409B (en) Cell color conversion method and device and electronic equipment
CN117412278A (en) Bluetooth equipment scanning control method and device, electronic equipment and storage medium
CN111645687A (en) Lane changing strategy determining method, device and storage medium
CN116351064A (en) Array capacity recommendation method and device
CN111143660A (en) Intelligent recommendation method and device for knowledge platform and computer readable storage medium
CN110111196A (en) Information Authentication method and Related product
CN113761381B (en) Method, device, equipment and storage medium for recommending interest points
CN109857816A (en) Choosing method and device, storage medium, the electronic equipment of test sample
US9922139B2 (en) Method and device for data screening
CN113609258A (en) Interaction display method based on geographic information platform, electronic equipment and medium
CN110801630B (en) Method, device, equipment and storage medium for determining cheating program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant