WO2019109907A1 - Method for processing virtual resource, electronic device, and storage medium - Google Patents

Method for processing virtual resource, electronic device, and storage medium Download PDF

Info

Publication number
WO2019109907A1
WO2019109907A1 PCT/CN2018/119160 CN2018119160W WO2019109907A1 WO 2019109907 A1 WO2019109907 A1 WO 2019109907A1 CN 2018119160 W CN2018119160 W CN 2018119160W WO 2019109907 A1 WO2019109907 A1 WO 2019109907A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
resource
virtual resource
receiving area
virtual
Prior art date
Application number
PCT/CN2018/119160
Other languages
French (fr)
Chinese (zh)
Inventor
刘浩然
薛皓晟
廖旭升
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2019109907A1 publication Critical patent/WO2019109907A1/en

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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/847Cooperative playing, e.g. requiring coordinated actions from several players to achieve a common goal

Definitions

  • the present application relates to the field of computer processing technologies, and more particularly to a method for processing a virtual resource, an electronic device, and a storage medium.
  • one or more parties need to be composed of multiple people. Multiple players in the same team need to get the game victory through better coordination and interaction.
  • the players in the team are not provided with technical means to achieve better cooperation, so that the cooperation and interaction between the players are low, and the player's experience is not good.
  • the present application provides a method for processing a virtual resource, an electronic device, and a storage medium, and realizes the transfer of virtual resources such as props by sliding operation of a virtual resource such as a prop, thereby achieving reasonable allocation of virtual resources and improving the player experience. the goal of.
  • the application provides a method for processing a virtual resource, including:
  • An operation interface is displayed, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user;
  • the virtual resource is moved to the Within the resource receiving area of the second user;
  • the present application provides an electronic device including a processor and a memory, wherein the memory stores instructions executable by the processor, when the instruction is executed, the processor is configured to:
  • An operation interface is displayed, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user;
  • the virtual resource is moved to the Within the resource receiving area of the second user;
  • the present application provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the processing method of the virtual resource described above.
  • FIG. 1A is a schematic structural diagram of an implementation environment provided by an embodiment of the present application.
  • FIG. 1B is a flowchart of a method for processing a virtual resource according to an embodiment of the present application
  • FIG. 2A is a schematic diagram of an operation interface before moving a virtual resource according to an embodiment of the present application
  • 2B to 2D are schematic diagrams of moving a virtual resource on an operation interface according to an embodiment of the present application.
  • 2E is a schematic diagram of an operation interface after moving a virtual resource according to an embodiment of the present application.
  • FIG. 3 is another flowchart of a method for processing a virtual resource according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a virtual resource processing apparatus according to an embodiment of the present disclosure.
  • FIG. 5 is a hardware structural diagram of an electronic device according to an embodiment of the present application.
  • the players in the team lack cooperation and interaction
  • the team-playing game of the racing game is taken as an example.
  • a team consists of multiple players, and multiple players need to cooperate with each other to win the team's victory.
  • the props box will be refreshed at a fixed position, and the player can pick up the props box and randomly obtain the props according to the probability.
  • the appearance of the props is random.
  • the player random probability table is specified according to the number of players in the team props game, and the prop random probability table includes at least one prop and the probability of occurrence of each prop, according to Each player's current ranking in the competition determines the random probability table corresponding to the ranking, and then randomly generates an item according to the probability of occurrence of each item in the random probability table, and displays that the player can pick up the item. Position to give the player a chance to get the item.
  • the player can pick up the items appearing in the competition to obtain the item, but the appearance of the item depends on the probability algorithm. Even if the probability algorithm is reasonable, the cooperation between the players will be controlled by probability. For example, in a game, a player in a team is attacked by other teams at the end of the runway. At this point, it needs a defensive item to block the damage, but the props do not appear due to the probability control. Did not get the item. However, the item appears in the available area of player B of the same team and is acquired by B. The item of item B cannot be used by A, which causes the team to fail in the game and the player's experience is poor. This kind of technical solution, the random appearance of the props makes the result of the game more dependent on the random probability, which severely limits the competitive nature of the game.
  • the present application provides a method for processing a virtual resource, which transfers a virtual resource such as an item from one player to another through a touch operation of the user, thereby enhancing the cooperation degree of the team and improving the competition degree of the game, thereby improving the player. Experience.
  • FIG. 1A is a schematic structural diagram of an implementation environment provided by an embodiment of the present application.
  • the virtual resource processing system 100 includes: N electronic devices 111-11N.
  • a game client is installed on each electronic device, and the game client uses virtual resources, such as various items in the game.
  • user A uses electronic device 111
  • user B uses electronic device 112
  • user C uses electronic device 113
  • user uses electronic device 11N
  • at least two of these users form a team to compete with other teams.
  • users in the same team can share the props during the game.
  • the user can move his or her own items into the resource receiving area of the teammate.
  • application scenario of the present application is not limited to the team prop game mode and the racing game, and can be applied to other types of game scenarios in which virtual resources such as props can be obtained.
  • FIG. 1B shows a flow of a method for processing a virtual resource provided by the present application.
  • the method is applied to an electronic device having an operation interface, such as a mobile phone, a tablet computer, a portable notebook, a desktop computer, and the like.
  • the process may specifically include steps S101 to S103.
  • S101 Display an operation interface, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user.
  • the operation interface includes information of a plurality of users, and in order to distinguish different users, "first" and “second” such words for distinguishing may be used. It should be noted that, on which electronic device is displayed the operation interface, the user corresponding to the electronic device is the first user.
  • the first user is the player itself and the second user is the player associated with the player.
  • the specific expressions of the associations are different.
  • the association relationship refers to the relationship divided into the same group of teams.
  • the number of second users is not limited to one, and may be multiple. In practical applications, how many users have the associated users, and how many are the second users.
  • Each user is associated with user information, which may include, but is not limited to, basic user information such as logos, avatars, ratings, etc., and may include, but is not limited to, real-time information such as virtual resources, game rankings, and the like.
  • basic user information such as logos, avatars, ratings, etc.
  • real-time information such as virtual resources, game rankings, and the like.
  • the content of the user information may be different in different application scenarios.
  • the user interface can be displayed on the user interface of the user, and the resource container is used to hold virtual resources such as props.
  • An icon of the resource container is displayed on the operation interface, and is used to indicate that the operation interface includes a resource container.
  • the icon of the resource container may be various rules such as a circle, a rectangle, a diamond, or an irregular shape.
  • the icon of the virtual resource is included in the icon of the resource container, indicating that the virtual resource is placed in the resource container.
  • the operation interface is displayed, the virtual resource is displayed in the resource container.
  • the resource interface may not be included in the operation interface, and the virtual resource of the player may be directly displayed in the operation interface, for example, may be directly displayed in the lower right corner area of the operation interface.
  • the operation interface may include a resource receiving area of the second user, and the second user is a user having an association relationship with the first user, and the resource receiving area of the second user is displayed, so as to facilitate the first user operation to transfer the virtual resource to the first Two users.
  • the resource receiving area of the second user may be in various forms, such as various rules such as a circle, a rectangle, a diamond, or an irregular shape.
  • the resource receiving area may be associated with the identification information of the second user, such as displaying the avatar icon of the second user.
  • the resource receiving area association displays the identification information of the second user, which is used to indicate which user the resource receiving area belongs to.
  • the relative location of the resource receiving area of the second user and the virtual resource of the first user may be within a certain distance range, so as to facilitate the first user to perform a sliding operation of moving the virtual resource to the resource receiving area. It can be understood that the closer the distance between the virtual resource and the resource receiving area, the more convenient the operation of transferring the virtual resource is performed without affecting the implementation of the game function and ensuring that the display can be fully displayed.
  • the method for displaying the second user information in the resource receiving area may be: displaying the identifier information of the second user in the resource receiving area, or displaying the identifier information of the second user in a specific orientation of the resource receiving area, such as the left side.
  • a specific orientation of the resource receiving area such as the left side.
  • other methods may be used as long as the user relationship between the user resource receiving area and the second user can be prompted.
  • FIG. 2A an operation interface displayed on a certain player's electronic device is shown.
  • the operation interface includes two players' racing cars, which are respectively the player's own and enemy players.
  • One of the players may be referred to as player A, that is, the first user in this step.
  • the right side of the operation interface displays the item currently held by the player A, and the item contains two items, which are respectively placed in two circular prop slots.
  • the avatars of the two teammates of the player A are horizontally arranged above the player slot of the player A, and the avatars are respectively filled in the circular area, wherein the circular area represents the resource receiving area of the teammate, and the teammate is the second user in this step.
  • the operation interface may include other information in addition to the virtual resource of the first user and the resource receiving area of the second user.
  • the upper left corner of the operation interface further displays a ranking area, in which all players are arranged in order from top to bottom (including player A, player A, teammate C, player A).
  • Another teammate, teammate Ding also includes the avatar of player A's enemy team, player B.
  • the top-down avatar indicates that the player's real-time ranking is reduced in turn.
  • the player's identification information such as the account name may also be displayed on the avatar side.
  • the first user can also be displayed at the preset position of the operation interface.
  • the player's teammate avatar side may also display an item icon for prompting the player whether each of his teammates has an item and which types of items are available.
  • the prompting manner of the prop is not limited to the manner shown in FIG. 2A, and may be other, for example, displaying the prop icon held by the second user in the resource receiving area to prompt the first user which props they have. .
  • the first user can implement virtual resource transfer by using a touch operation on the operation interface. Specifically, if the first user finds that the virtual resource needs to be transferred to the associated user, that is, the second user, the touch operation may be performed on the virtual resource in the resource container of the operation interface. Since the virtual item needs to be transferred to the second user, it is also necessary to perform a touch operation in the resource receiving area of the second user. To distinguish the two touch operations, they may be referred to as a first touch operation and a second touch operation, respectively.
  • the electronic device can detect a touch operation performed on its touch screen. If it is detected that the action location of the touch operation is located in the resource container of the first user, it indicates that the touch operation of the virtual resource in the resource container of the first user is detected. Similarly, if the detected location of the touch operation is located in the resource receiving area of the second user after detecting the first touch operation, it indicates that the second resource receiving area of the second user is detected. Touch operation. It should be noted that there may be a time interval limitation between the second touch operation and the first touch operation, that is, the second touch operation needs to be within the time interval after the first touch operation, otherwise, the second touch The operation is invalid.
  • the first touch operation is used to indicate the transfer starting point of the virtual resource
  • the second touch operation is used to indicate the transfer end point of the virtual resource
  • the virtual resource can be transferred according to the detected first touch operation and the second touch operation. That is, it is transferred to the resource receiving area of the second user.
  • the transition on the operation interface may be implemented as the virtual resource being deleted from the resource container of the first user and displayed in the resource receiving area of the second user. Or, after reaching the resource receiving area of the second user, disappearing, in order to prompt the user to transfer successfully, the prompt information of the successful transfer may be output, such as displaying the dynamic special effect animation and/or playing the special effect sound.
  • the present application can provide a variety of ways as to how to implement the transfer operation.
  • the first touch operation and the second touch operation are respectively a start operation and an end operation of one sliding operation, the start operation is a press operation, and the end operation is a pop-up operation.
  • the sliding operation may be referred to as a first sliding operation.
  • the electronic device can detect the pressing operation and turn on the control of the virtual resource icon. It should be noted that if the virtual resource is not included in the resource container, it is directly detected whether there is a pressing operation on the virtual resource; if the virtual resource is included in the resource container, it may be detected whether a pressing operation occurs in the resource container. To detect whether a virtual resource icon is pressed. After the electronic device detects the pressing operation, if the first user performs a sliding operation on the operation interface, the electronic device controls the virtual resource icon to move according to the movement trajectory of the sliding operation.
  • FIG. 2B-2D a schematic diagram of a transfer of virtual resources from one user to the user teammate is shown.
  • virtual resources are described by taking an item as an example.
  • the user presses the prop icon in a prop slot as shown in FIG. 2C
  • the user slides the prop icon as shown in FIG. 2D
  • the prop icon can disappear after reaching the teammate avatar.
  • this can be achieved by a click operation.
  • the first touch operation and the second touch operation are two different click operations, which may be referred to as a first click operation and a second click operation, respectively, for convenience of description.
  • the click operation can be a click or a double click, as long as it is a click operation that is separate from other functions.
  • the electronic device detects the click operation and deletes the image of the virtual resource from the resource container of the first user. If the first user performs the click action, and performs a click action on the resource receiving area of the second user within a preset time length, after the electronic device detects the click operation, the virtual resource is displayed on the second user. Within the resource receiving area, the effect of transferring the virtual resource from the first user to the second user is realized.
  • the electronic device needs to modify the user information of the first user and the second user, that is, the attribution body of the virtual resource is modified from the first user to the second user, so that The second user has access to the virtual resource.
  • the specific implementation manner of the modification may be that the virtual resource is added to the resource information in the user information of the second user.
  • the present application provides a method for processing a virtual resource, where the method may display an operation interface, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user and the first user The two users have an association relationship. If a sliding operation is performed on the virtual resource and the end position acts on the resource receiving area, the virtual resource is controlled along the sliding operation based on the sliding operation. The trajectory is moved to move the virtual resource into a resource receiving area of the second user, and the owner of the virtual resource is modified from the first user to the second user.
  • the game player can transfer the virtual resources such as his own props to the teammates of the same team, so that the virtual resources such as props can be used by the teammates of the same team, thereby improving the interaction degree of the entire team and improving the user experience.
  • the present application provides another method for processing virtual resources, which is executed by an electronic device having an operation interface.
  • the method may further include the following steps, in order to prompt the user to successfully transfer the virtual resource.
  • the motion prompting step may be included, that is, the dynamic display position is preset in the operation interface, and the dynamic effect of the virtual resource from the first user to the second user is displayed in the dynamic display position.
  • a dynamic effect may be displayed at a position above the operation interface, where the dynamic effect includes an avatar of the first user, an avatar of the second user, an icon of the virtual resource, and an arrow pointing from the first user avatar to the second user avatar.
  • the dynamic effect is displayed on the upper side of the operation interface.
  • the dynamic effect is that the icon of the virtual resource reaches the second user avatar from the first user's avatar along the arrow. It should be noted that after the dynamic effect is displayed, it can disappear to ensure that the largest possible area is used to display the game environment image or to prevent the game environment image from being blocked.
  • the virtual resource icon update step may be included, that is, the virtual resource display location is preset at the operation interface; after the home entity of the virtual resource is updated by the first user to the second user, In the virtual resource display location, the virtual host whose home agent is the second user is displayed.
  • the display effect in the operation interface is that the icon of the virtual resource is deleted in the virtual resource icon of the first user, and the icon of the virtual resource is added to the virtual resource icon of the second user.
  • the virtual resource area of the first user and the virtual resource area of the user associated with the first user may be displayed in the operation interface.
  • the virtual The icon of the resource is deleted, and the icon of the virtual resource is displayed in the virtual resource area of the second user.
  • the prop icon of the first user and the prop icon of the teammate are displayed.
  • the prop icon is from the first The user's item area disappears and is displayed in the second user's item area.
  • the step of displaying a countdown for the first user may be included, ie, the associated location of the first user is set in the operator interface, and a countdown of the preset length of time is displayed at the associated location.
  • the user may be restricted, that is, the user is restricted in the preset time length. It is not possible to transfer its own virtual resources to any users again.
  • a countdown effect may be displayed at the associated position of the user, and the countdown duration is the preset time length.
  • a countdown can be displayed next to the image image of the first user. After the countdown is over, the first user can transfer the virtual resources again according to the above method.
  • the step of displaying a countdown for the second user may be included, ie, in the resource receiving area of the second user, a countdown of the preset length of time is displayed.
  • the process of receiving the virtual resources may be restricted to the user, that is, the user is restricted from receiving a certain user transfer. After the virtual resource, no virtual resources transferred by the user can be received within the preset time length.
  • a countdown effect may be displayed in the resource receiving area of the user, and the countdown duration is the preset time length.
  • the preset time length is 3 seconds
  • the countdown can be displayed in the resource receiving area of the second user. After the countdown is over, the first user can transfer the virtual resources again according to the above method.
  • the restriction on the first user or the second user may be implemented by using a frozen status label, that is, when the first user or the second user needs to be restricted, adding a frozen status label to the first user or the second user, And generating a timer. When the timer reaches the preset time length, the frozen status label is deleted, indicating that the restriction is released for the first user or the second user.
  • the step of displaying virtual resource transfer credits for the first user ie, the integration area of the first user in the operational interface, displays the points earned based on the transferred virtual resources.
  • the integral may be displayed by summing the points before transferring the virtual resources and the obtained points, and then displaying the total points.
  • the virtual resource transfer credit is added to the first user, and the credit size may be determined according to the virtual resource, and further, the score of the virtual resource may be displayed in the credit region of the first user.
  • the score obtained by the transfer item can be displayed in the integral area included at the bottom of the operation interface (point before the transfer item) Is 0).
  • the first user may be restricted from frequently transferring virtual resources. Therefore, before the virtual resource transfer is performed, the following determining steps may be included, namely:
  • the time point at which the second touch operation occurs is the end time point of the first sliding operation.
  • the method of the virtual resource does not move after the first touch operation, or the icon of the virtual resource changes after the first touch operation, but the icon of the virtual resource is still returned after the second touch operation.
  • the time point of the determination may be that the electronic device detects the touch operation of the virtual resource of the resource container of the first user, or may also detect the touch operation of the resource receiving area of the second user. Time.
  • the frozen status label can be added to the first user, so that the determination operation can be realized by determining whether the first user has a frozen status label, and if there is a frozen status label, If the result of the determination is YES, if the frozen status label is not present, it means that the determination result is No.
  • the prompt information may be an audible prompt or a text prompt.
  • the transition of the virtual resource that is frequently received by the second user may be restricted. Therefore, before the virtual resource transfer is performed, the following determining steps may be included, namely:
  • the method of the virtual resource does not move after the first touch operation, or the icon of the virtual resource changes after the first touch operation, but the icon of the virtual resource is still returned after the second touch operation.
  • a user's resource container In a user's resource container.
  • the determined time point may be when the electronic device detects a touch operation on the resource receiving area of the second user.
  • the frozen state label can be added to the second user, so that the determination operation can be realized by determining whether the second user has the frozen state label, and if there is a frozen status label, If the result of the determination is YES, if the frozen status label is not present, it means that the determination result is No.
  • the prompt information may be an audible prompt or a text prompt.
  • the method may further include:
  • the determining operation may be performed when the electronic device detects a touch operation on the resource receiving area of the second user. First, the number of virtual resource limits of the second user is obtained, and the current number of virtual resources of the second user is obtained. After comparison, it is known whether the current number of virtual resources does not exceed the virtual resource limit. Virtual resource transfer operations can only be performed if they are not exceeded.
  • each determining step may be implemented in the processing method of the same virtual resource, and the sequential execution order of each determining step is Not limited.
  • the touch operation based on the touch screen may include the following steps S301 to S306.
  • the operation interface includes a virtual resource of the first user and a resource receiving area of the second user.
  • step S302 Detect whether a pressing operation on the virtual resource occurs. If yes, go to step S303.
  • the electronic device detects whether the virtual resource of the first user has a touch operation every frame. Specifically, if the virtual resource is directly displayed on the operation interface, it may be detected whether there is a touch operation on the virtual resource; if the operation interface includes a resource container, the virtual resource is included in the resource container, and the resource container occupies in the operation interface. In a certain area, it is possible to detect whether a touch operation occurs in the area.
  • the resource container is circular, and it is possible to detect whether a touch operation occurs in a square area that circumscribes the circle.
  • the touch operation is specifically a press operation.
  • step S303 Determine whether the first user is not in a frozen state. If yes, step S304 is performed.
  • step S304 is performed.
  • step S605 when the touch operation is pressed, the movement track of the touch operation can be detected, and the virtual resource is moved to the position indicated by the movement track according to the movement track.
  • the pop-up operation of step S605 occurs during the movement, the bouncer process needs to be performed.
  • step S305 It is detected whether a pop-up operation occurs, and if so, the step S306 is triggered, and if no, the process returns to step S304.
  • the electronic device can detect the pop-up operation.
  • the pop-up operation indicates the termination of the movement process, and the bounce process needs to be performed after the operation is detected.
  • the end point of the moving track may appear in various different positions, and the different position points indicate that the user wants to treat the virtual resource differently.
  • the pop-up process needs to judge various situations. Therefore, it can be first determined whether the action location of the pop-up operation is at the start position of the virtual resource, the resource receiving area, or other areas, and other areas may also be referred to as non-resource receiving areas. .
  • a non-resource receiving area is determined in the operation interface, where the non-resource receiving area refers to an area outside the starting position of the virtual resource and outside the resource receiving area.
  • the starting position of the virtual resource may also be the location of the area where the resource container is located. This case will be described in detail as an example.
  • the action location of the pop-up operation is in the area occupied by the resource container, it means that the first user drags the virtual resource out of the resource container and then puts it back into the resource container. In this case, the first user may want to be in the game.
  • the virtual resource is used, so as shown in step S3061, the virtual resource is deleted and the processing flow is executed. Specifically, the electronic device deletes the virtual resource from the resource container and executes a processing flow of the virtual resource.
  • the operation performed in this case is preset, that is, the start point and the end point of the movement track of the virtual resource are set in the resource container in advance, and the process of using the virtual resource is executed, of course, if this is set in advance If the situation corresponds to other operations, the corresponding process can be executed.
  • the action location of the pop-up operation is in the resource receiving area, it means that the first user drags the virtual resource out of its own resource container and places it into the resource receiving area of the second user.
  • the first user may In order to transfer the virtual resource to the second user, the virtual resource is added to the virtual resource information of the second user as shown in step S3062.
  • the electronic device deletes the virtual resource from the resource container and adds the virtual resource to the virtual resource information of the second user.
  • the action location of the pop-up operation is in another area, it indicates that the first user may have an operation error such as not placing the virtual resource at the location where the virtual resource is to be placed, or the virtual resource is taken out from the resource container, so as shown in step S3063.
  • the electronic device relocates the virtual resource back to the resource container.
  • the operation performed in this case is preset, that is, the starting point of the movement track of the virtual resource is preset in the resource container and the end point of the movement track is in other areas, and the process of putting back the virtual resource is performed.
  • this situation is set in advance to correspond to other operations, the corresponding process can be executed.
  • the sliding operation in this case may be referred to as a second sliding operation, that is, the starting position acts on the virtual resource of the first user, and the ending position acts on the non-resource receiving area, then the second is based on the second A swipe operation that resets the virtual resource back to the beginning of the virtual resource.
  • FIG. 4 is a diagram showing the structure of a processing device for a virtual resource provided by the present application.
  • the device may include: an operation interface display module 401, a virtual resource mobility module 402, and a resource attribution update module 403.
  • the operation interface display module 401 is configured to display an operation interface, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user;
  • the virtual resource moving module 402 is configured to: if detecting that the starting position acts on the virtual resource of the first user and the ending position acts on the first sliding operation of the resource receiving area of the second user, based on the first sliding operation, Transmitting the virtual resource into a resource receiving area of the second user;
  • the resource attribution update module 403 is configured to update the home entity of the virtual resource from the first user to the second user.
  • the operation interface displayed by the operation interface display module 401 includes a resource container, and the virtual resource is displayed in the resource container.
  • the operation interface display module 401 is further configured to: determine, in the operation interface, a non-resource receiving area, where the non-resource receiving area is: an arbitrary resource receiving area and a start of the virtual resource An area outside the location;
  • the processing device of the virtual resource further includes: a virtual resource reset module.
  • the virtual resource reset module is configured to: if detecting that the start location acts on the virtual resource of the first user and the end position acts on the non-resource receiving area, the second sliding operation is performed based on the second sliding operation The virtual resource is reset back to the starting location of the virtual resource.
  • the processing device of the virtual resource further includes: a first detecting module.
  • the first detecting module is configured to determine, within a preset time length before the end time point of the first sliding operation, before moving the virtual resource to the resource receiving area of the second user, Whether a user's virtual resource has not been moved into the resource receiving area of any of the second users; and if so, performing the step of moving the virtual resource into the resource receiving area of the second user.
  • the operation interface display module 401 is further configured to set an associated location of the first user in the operation interface
  • the processing device of the virtual resource further includes: a first countdown module.
  • the first countdown module is configured to display a countdown of the preset time length at the associated location after the moving the virtual resource to the resource receiving area of the second user.
  • the processing device of the virtual resource further includes: a second detecting module.
  • the second detecting module is configured to determine, within a preset time length before the end time point of the first sliding operation, before moving the virtual resource to the resource receiving area of the second user, Whether the virtual resource of any first user is not placed in the resource receiving area of the two users; and if so, the step of moving the virtual resource into the resource receiving area of the second user is performed.
  • the processing device of the virtual resource further includes: a second countdown module.
  • the second countdown module is configured to display a countdown of the preset time length in the resource receiving area of the second user after the moving the virtual resource to the resource receiving area of the second user.
  • the second user has an associated number of virtual resource limits; the processing device of the virtual resource further includes: a resource number determination module.
  • the resource number judging module is configured to set a virtual resource limit number for the second user, and determine the virtuality of the second user before moving the virtual resource to the resource receiving area of the second user. Whether the number of resources does not exceed the virtual resource limit number; and if so, the step of moving the virtual resource into the resource receiving area of the second user is performed.
  • the processing device of the virtual resource further includes: a dynamic effect display module.
  • the dynamic effect display module is configured to preset a dynamic display position on the operation interface, and display, in the dynamic display position, a dynamic effect that the virtual resource is transferred from the first user to the second user.
  • the processing device of the virtual resource further includes: a virtual resource display module.
  • a virtual resource display module configured to preset a virtual resource display location on the operation interface; after the updating the home entity of the virtual resource by the first user to the second user, displaying the virtual resource The location indicates that the belonging principal is a virtual resource of the second user.
  • the electronic device may be specifically any electronic device provided with an operation interface, such as a mobile phone, a tablet computer, a portable computer, a desktop computer, or the like.
  • the device may specifically include: an operation screen 501, a memory 502, a processor 503, and a communication bus 504. Among them, the operation screen 501, the memory 502 and the processor 503 complete communication with each other through the communication bus 504.
  • the operation screen 501 is configured to display an operation interface, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user.
  • the memory 502 is for storing a program; the memory 502 may include a high speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
  • the processor 503 is configured to execute a program, and the program may include program code, where the program code includes an operation instruction of the processor.
  • the program can be specifically used to:
  • the virtual resource is moved to the a resource receiving area of the second user; and updating the home entity of the virtual resource by the first user to the second user.
  • the processor 503 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
  • CPU central processing unit
  • ASIC Application Specific Integrated Circuit
  • the present application also provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps related to the processing method of the virtual resource.
  • the steps related to the processing method of the virtual resource include the following:
  • the operation interface displays a sub-step for displaying an operation interface, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user;
  • a virtual resource moving sub-step configured to: if detecting that the starting location acts on the virtual resource of the first user and the ending position acts on the first sliding operation of the resource receiving area of the second user, based on the first sliding operation, Transmitting the virtual resource into a resource receiving area of the second user;
  • a virtual resource update sub-step configured to update a home entity of the virtual resource from the first user to the second user.

Abstract

A method for processing a virtual resource, an electronic device, and a storage medium, the method being executed by the electronic device and comprising: displaying an operation interface, wherein the operation interface comprises a virtual resource of a first user and a resource receiving area of a second user, and the first user has an association with the second user; upon detecting a first sliding operation in which the virtual resource of the first user is the start position thereof and the resource receiving area of the second user is the end position thereof, moving the virtual resource to the resource receiving area of the second user on the basis of the first sliding operation; and changing the ownership of the virtual resource from the first user to the second user.

Description

虚拟资源的处理方法、电子设备及存储介质Virtual resource processing method, electronic device and storage medium
本申请要求于2017年12月6日提交中国专利局、申请号为201711277646.4、申请名称为“虚拟资源的处理方法及相关设备”的中国专利申请的优先权。This application claims the priority of the Chinese Patent Application filed on Dec. 6, 2017, to the Chinese Patent Office, the application number is 201711277646.4, and the application is entitled "Processing Method and Related Equipment for Virtual Resources".
技术领域Technical field
本申请涉及计算机处理技术领域,更具体地涉及虚拟资源的处理方法、电子设备及存储介质。The present application relates to the field of computer processing technologies, and more particularly to a method for processing a virtual resource, an electronic device, and a storage medium.
发明背景Background of the invention
在一些竞速类游戏中,游戏一方或多方需要由多人组成团队,同一团队内的多个玩家需要通过较好的配合和交互取得游戏胜利。然而,目前的游戏实现方案中,并未给团队内玩家提供能够实现较好配合的技术手段,使得玩家之间的配合和交互度较低,玩家的体验不佳。In some racing games, one or more parties need to be composed of multiple people. Multiple players in the same team need to get the game victory through better coordination and interaction. However, in the current game implementation scheme, the players in the team are not provided with technical means to achieve better cooperation, so that the cooperation and interaction between the players are low, and the player's experience is not good.
发明内容Summary of the invention
有鉴于此,本申请提供了一种虚拟资源的处理方法、电子设备及存储介质,通过用户对道具等虚拟资源的滑动操作,实现道具等虚拟资源的转移,从而达到合理分配虚拟资源提高玩家体验的目的。In view of this, the present application provides a method for processing a virtual resource, an electronic device, and a storage medium, and realizes the transfer of virtual resources such as props by sliding operation of a virtual resource such as a prop, thereby achieving reasonable allocation of virtual resources and improving the player experience. the goal of.
为实现所述目的,本申请提供的技术方案如下:To achieve the stated object, the technical solution provided by the present application is as follows:
第一方面,本申请提供了一种虚拟资源的处理方法,包括:In a first aspect, the application provides a method for processing a virtual resource, including:
显示操作界面,所述操作界面中包括有第一用户的虚拟资源及第二用户的资源接收区域,第一用户与第二用户具有关联关系;An operation interface is displayed, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user;
若检测到起始位置作用于第一用户的虚拟资源且结束位置作用于第二用户的资源接收区域的第一滑动操作,则基于所述第一滑动操作, 将所述虚拟资源移动至所述第二用户的资源接收区域内;If it is detected that the initial position acts on the virtual resource of the first user and the end position acts on the first sliding operation of the resource receiving area of the second user, the virtual resource is moved to the Within the resource receiving area of the second user;
将所述虚拟资源的归属主体由所述第一用户更新为所述第二用户。Updating the home entity of the virtual resource by the first user to the second user.
第二方面,本申请提供了一种电子设备,包括处理器和存储器,所述存储器中存储可被所述处理器执行的指令,当执行所述指令时,所述处理器用于:In a second aspect, the present application provides an electronic device including a processor and a memory, wherein the memory stores instructions executable by the processor, when the instruction is executed, the processor is configured to:
显示操作界面,所述操作界面中包括有第一用户的虚拟资源及第二用户的资源接收区域,第一用户与第二用户具有关联关系;An operation interface is displayed, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user;
若检测到起始位置作用于第一用户的虚拟资源且结束位置作用于第二用户的资源接收区域的第一滑动操作,则基于所述第一滑动操作,将所述虚拟资源移动至所述第二用户的资源接收区域内;If it is detected that the initial position acts on the virtual resource of the first user and the end position acts on the first sliding operation of the resource receiving area of the second user, the virtual resource is moved to the Within the resource receiving area of the second user;
将所述虚拟资源的归属主体由所述第一用户更新为所述第二用户。Updating the home entity of the virtual resource by the first user to the second user.
第三方面,本申请提供了一种存储介质,所述存储介质存储有多条指令,所述指令适于处理器进行加载,以执行上述的虚拟资源的处理方法中的步骤。In a third aspect, the present application provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the processing method of the virtual resource described above.
附图简要说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative labor for those skilled in the art.
图1A为本申请实施例提供的实施环境的结构示意图;1A is a schematic structural diagram of an implementation environment provided by an embodiment of the present application;
图1B为本申请实施例提供的虚拟资源的处理方法的一种流程图;FIG. 1B is a flowchart of a method for processing a virtual resource according to an embodiment of the present application;
图2A为本申请实施例提供的移动虚拟资源前的操作界面的一个示意图;2A is a schematic diagram of an operation interface before moving a virtual resource according to an embodiment of the present application;
图2B~2D为本申请实施例提供的在操作界面上移动虚拟资源的一个示意图;2B to 2D are schematic diagrams of moving a virtual resource on an operation interface according to an embodiment of the present application;
图2E为本申请实施例提供的移动虚拟资源后的操作界面的一个示意图;2E is a schematic diagram of an operation interface after moving a virtual resource according to an embodiment of the present application;
图3为本申请实施例提供的虚拟资源的处理方法的另一流程图;FIG. 3 is another flowchart of a method for processing a virtual resource according to an embodiment of the present application;
图4为本申请实施例提供的虚拟资源的处理装置的一种结构示意图;FIG. 4 is a schematic structural diagram of a virtual resource processing apparatus according to an embodiment of the present disclosure;
图5为本申请实施例提供的电子设备的一种硬件结构图。FIG. 5 is a hardware structural diagram of an electronic device according to an embodiment of the present application.
实施方式Implementation
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
目前的游戏实现方案中,团队内的玩家缺乏配合和交互度,以竞速类游戏的组队道具赛为例进行说明。在该种类型的游戏中,一队包括多个玩家,多个玩家需要相互配合作战以获得团队的胜利。赛道等竞赛区域上会在固定位置刷新道具箱,玩家可以通过拾取道具箱,根据概率随机获得道具。有时某个玩家获得了并不需要的道具,但同一队的队友正好需要该道具,该队具有该道具但可能会因为道具无法合理使用,而导致该队在竞赛中落败。In the current game implementation plan, the players in the team lack cooperation and interaction, and the team-playing game of the racing game is taken as an example. In this type of game, a team consists of multiple players, and multiple players need to cooperate with each other to win the team's victory. In the competition area such as the track, the props box will be refreshed at a fixed position, and the player can pick up the props box and randomly obtain the props according to the probability. Sometimes a player gets a prop that is not needed, but the teammate of the same team just needs the item. The team has the item but may be unable to use it properly, which may cause the team to lose in the competition.
其中道具的出现是随机的,具体地,根据组队道具赛的玩家人数为指定名次的玩家指定道具随机概率表,道具随机概率表中包含有至少一种道具及每种道具的出现概率,根据每个玩家当前在竞赛中的名次,确 定出该名次对应的随机概率表,再根据随机概率表中每种道具的出现概率,随机生成一种道具,并显示在该玩家可以拾取到该道具的位置,以使该玩家有机会获得该道具。The appearance of the props is random. Specifically, the player random probability table is specified according to the number of players in the team props game, and the prop random probability table includes at least one prop and the probability of occurrence of each prop, according to Each player's current ranking in the competition determines the random probability table corresponding to the ranking, and then randomly generates an item according to the probability of occurrence of each item in the random probability table, and displays that the player can pick up the item. Position to give the player a chance to get the item.
玩家可以拾取竞赛中出现的道具以获得该道具,但道具的出现较为依赖概率算法,即使概率算法怎样合理,玩家之间的配合仍会被概率控制。例如,在一种游戏中,一个团队中的玩家甲在接近跑道终点的位置被其他团队使用道具攻击,此刻其需要一个防御类道具阻挡伤害,但道具由于概率的控制并没有出现,玩家甲并没有获得该道具。然而,该道具出现在同一团队的玩家乙的可获取区域并被乙获取到,乙的道具并不能被甲使用,导致该团队在比赛中失败,玩家的体验较差。该种技术方案,道具的随机出现方式使得比赛结果较为依赖随机概率,严重限制了游戏的竞技性。The player can pick up the items appearing in the competition to obtain the item, but the appearance of the item depends on the probability algorithm. Even if the probability algorithm is reasonable, the cooperation between the players will be controlled by probability. For example, in a game, a player in a team is attacked by other teams at the end of the runway. At this point, it needs a defensive item to block the damage, but the props do not appear due to the probability control. Did not get the item. However, the item appears in the available area of player B of the same team and is acquired by B. The item of item B cannot be used by A, which causes the team to fail in the game and the player's experience is poor. This kind of technical solution, the random appearance of the props makes the result of the game more dependent on the random probability, which severely limits the competitive nature of the game.
可见,目前的技术方案中,道具的分配并不够合理,不能较好地实现团队中各个玩家的配合度,玩家的体验不佳。对此,本申请提供了一种虚拟资源的处理方法,通过用户的触控操作将道具等虚拟资源由一个玩家转移到另一玩家,进而增强团队的配合度并提升游戏的竞赛程度,提高玩家的体验。It can be seen that in the current technical solution, the allocation of props is not reasonable enough, and the cooperation degree of each player in the team cannot be well realized, and the player's experience is not good. In this regard, the present application provides a method for processing a virtual resource, which transfers a virtual resource such as an item from one player to another through a touch operation of the user, thereby enhancing the cooperation degree of the team and improving the competition degree of the game, thereby improving the player. Experience.
图1A为本申请实施例提供的实施环境的结构示意图。如图1A所示,虚拟资源的处理系统100包括:N个电子设备111~11N。其中,每个电子设备上安装有游戏类客户端,该游戏类客户端使用虚拟资源,例如游戏中的各类道具。FIG. 1A is a schematic structural diagram of an implementation environment provided by an embodiment of the present application. As shown in FIG. 1A, the virtual resource processing system 100 includes: N electronic devices 111-11N. Among them, a game client is installed on each electronic device, and the game client uses virtual resources, such as various items in the game.
在实际应用时,用户甲使用电子设备111、用户乙使用电子设备112、用户丙使用电子设备113…用户丁使用电子设备11N,这些用户中的至少2个用户组成一队,与其他队进行比赛。In actual application, user A uses electronic device 111, user B uses electronic device 112, user C uses electronic device 113... user uses electronic device 11N, and at least two of these users form a team to compete with other teams. .
根据本申请中的实施例,在同一队内的用户在比赛的过程中可以共 享道具,为了能够赢得比赛,用户可以将自己的道具移动至队友的资源接收区域内。According to the embodiment of the present application, users in the same team can share the props during the game. In order to win the game, the user can move his or her own items into the resource receiving area of the teammate.
需要说明的是,本申请的应用场景并不局限于组队道具赛游戏模式以及竞速类游戏,在其他类型的可以获得道具等虚拟资源的游戏场景中均可以应用。It should be noted that the application scenario of the present application is not limited to the team prop game mode and the racing game, and can be applied to other types of game scenarios in which virtual resources such as props can be obtained.
见图1B,其示出了本申请提供的一种虚拟资源的处理方法的流程。该方法应用在具备操作界面的电子设备上,如手机、平板电脑、便携式笔记本、台式计算机等。如图1B所示,该流程可以具体包括步骤S101~S103。FIG. 1B shows a flow of a method for processing a virtual resource provided by the present application. The method is applied to an electronic device having an operation interface, such as a mobile phone, a tablet computer, a portable notebook, a desktop computer, and the like. As shown in FIG. 1B, the process may specifically include steps S101 to S103.
S101:显示操作界面,操作界面中包括有第一用户的虚拟资源及第二用户的资源接收区域,第一用户与第二用户具有关联关系。S101: Display an operation interface, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user.
具体地,操作界面上包含有多个用户的信息,为了区分不同的用户,可以使用“第一”及“第二”这种用于区分的词语。需要说明的是,在哪个电子设备上显示操作界面,则该电子设备对应的用户为第一用户。Specifically, the operation interface includes information of a plurality of users, and in order to distinguish different users, "first" and "second" such words for distinguishing may be used. It should be noted that, on which electronic device is displayed the operation interface, the user corresponding to the electronic device is the first user.
第一用户为玩家本身,第二用户是与该玩家有关联关系的玩家。在不同的应用场景中,关联关系具体的表现形式不同,例如在组队游戏应用场景中,关联关系指的是划分为同一组队集合的关系。需要说明的是,第二用户的个数并不局限于一个,也有可能是多个。在实际应用中,第一用户具有关联的用户有多少个,则第二用户的个数即多少个。The first user is the player itself and the second user is the player associated with the player. In different application scenarios, the specific expressions of the associations are different. For example, in the team game application scenario, the association relationship refers to the relationship divided into the same group of teams. It should be noted that the number of second users is not limited to one, and may be multiple. In practical applications, how many users have the associated users, and how many are the second users.
每个用户关联有用户信息,用户信息可以包括但不局限于用户基本信息如标识、头像、等级等,也可以包括但不局限于游戏实时信息如拥有的虚拟资源、游戏排名等。当然,在不同的应用场景中,用户信息包含的内容可以不同。Each user is associated with user information, which may include, but is not limited to, basic user information such as logos, avatars, ratings, etc., and may include, but is not limited to, real-time information such as virtual resources, game rankings, and the like. Of course, the content of the user information may be different in different application scenarios.
为了提示玩家其拥有的资源,也为了方便玩家在游戏中使用这些资源,则在显示该用户的操作界面上可以包含自身的资源容器,资源容器 用于盛放道具等虚拟资源。操作界面上显示有资源容器的图标,用于表示操作界面包括资源容器。其中资源容器的图标可以为圆形、矩形、菱形等各种规则或者不规则的形状。虚拟资源的图标包含在资源容器的图标内,表示虚拟资源放置在资源容器内。在显示操作界面时,将虚拟资源显示在资源容器内。In order to prompt the player to own the resources, and also to facilitate the player to use these resources in the game, the user interface can be displayed on the user interface of the user, and the resource container is used to hold virtual resources such as props. An icon of the resource container is displayed on the operation interface, and is used to indicate that the operation interface includes a resource container. The icon of the resource container may be various rules such as a circle, a rectangle, a diamond, or an irregular shape. The icon of the virtual resource is included in the icon of the resource container, indicating that the virtual resource is placed in the resource container. When the operation interface is displayed, the virtual resource is displayed in the resource container.
需要说明的是,操作界面中也可以并不包含资源容器,玩家的虚拟资源可以直接显示在操作界面中,例如可以直接显示在操作界面的右下角区域中。It should be noted that the resource interface may not be included in the operation interface, and the virtual resource of the player may be directly displayed in the operation interface, for example, may be directly displayed in the lower right corner area of the operation interface.
操作界面可以包含有第二用户的资源接收区域,第二用户也就是与第一用户具有关联关系的用户,显示第二用户的资源接收区域,是为了方便第一用户操作将虚拟资源转移给第二用户。在具体实现中,第二用户的资源接收区域可以是各种形式,如圆形、矩形、菱形等各种规则或者不规则的形状。资源接收区域可以关联显示有第二用户的标识信息,如显示有第二用户的头像图标。资源接收区域关联显示第二用户的标识信息,用于表示该资源接收区域属于哪个用户。The operation interface may include a resource receiving area of the second user, and the second user is a user having an association relationship with the first user, and the resource receiving area of the second user is displayed, so as to facilitate the first user operation to transfer the virtual resource to the first Two users. In a specific implementation, the resource receiving area of the second user may be in various forms, such as various rules such as a circle, a rectangle, a diamond, or an irregular shape. The resource receiving area may be associated with the identification information of the second user, such as displaying the avatar icon of the second user. The resource receiving area association displays the identification information of the second user, which is used to indicate which user the resource receiving area belongs to.
需要说明的是,第二用户的资源接收区域与第一用户的虚拟资源的相对位置可以在一定的距离范围内,以方便第一用户执行将虚拟资源移动至资源接收区域的滑动操作。可以理解的是,在不影响游戏功能实现及保证能够全部显示的前提下,虚拟资源与资源接收区域之间的距离越近越方便执行转移虚拟资源的操作。It should be noted that the relative location of the resource receiving area of the second user and the virtual resource of the first user may be within a certain distance range, so as to facilitate the first user to perform a sliding operation of moving the virtual resource to the resource receiving area. It can be understood that the closer the distance between the virtual resource and the resource receiving area, the more convenient the operation of transferring the virtual resource is performed without affecting the implementation of the game function and ensuring that the display can be fully displayed.
资源接收区域显示第二用户信息的方式可以是,在资源接收区域内显示第二用户的标识信息,或者可以是在资源接收区域的特定方位如左方附近显示第二用户的标识信息。当然,在实际应用中,还可以是其他方式,只要是能够起到提示用户资源接收区域与第二用户之间具有关联关系的效果即可。The method for displaying the second user information in the resource receiving area may be: displaying the identifier information of the second user in the resource receiving area, or displaying the identifier information of the second user in a specific orientation of the resource receiving area, such as the left side. Of course, in practical applications, other methods may be used as long as the user relationship between the user resource receiving area and the second user can be prompted.
为了方便理解本步骤提供的操作界面,以游戏的一种具体操作界面为例进行说明。见图2A,其示出了某个玩家的电子设备上显示的操作界面,该操作界面中包含两名玩家的赛车,分别为该某个玩家自己的及敌队某个玩家的。其中该某个玩家可以称为玩家甲,也即本步骤中的第一用户。In order to facilitate the understanding of the operation interface provided in this step, a specific operation interface of the game is taken as an example for description. Referring to FIG. 2A, an operation interface displayed on a certain player's electronic device is shown. The operation interface includes two players' racing cars, which are respectively the player's own and enemy players. One of the players may be referred to as player A, that is, the first user in this step.
另外,操作界面的右侧显示有玩家甲当前持有的道具,道具包含两个,分别放置在两个圆形的道具槽中。在玩家甲的道具槽上方水平排列有玩家甲的两个队友的头像,头像分别填充在圆形区域中,其中圆形区域表示队友的资源接收区域,队友即本步骤中的第二用户。In addition, the right side of the operation interface displays the item currently held by the player A, and the item contains two items, which are respectively placed in two circular prop slots. The avatars of the two teammates of the player A are horizontally arranged above the player slot of the player A, and the avatars are respectively filled in the circular area, wherein the circular area represents the resource receiving area of the teammate, and the teammate is the second user in this step.
需要说明的是,操作界面除了包含第一用户的虚拟资源及第二用户的资源接收区域外,还可以包含其他信息。如图2A所示的操作界面,操作界面左上角还显示有排名区域,在该区域中由上到下依次排列显示有所有玩家(包括玩家甲、玩家甲的一个队友即队友丙、玩家甲的另一个队友即队友丁,也包括玩家甲的敌队即玩家乙)的头像,由上至下的头像表示玩家实时排名依次降低。另外,为了方便用户进一步了解每个玩家的信息,还可以在头像一侧显示玩家的标识信息如账号名称。It should be noted that the operation interface may include other information in addition to the virtual resource of the first user and the resource receiving area of the second user. As shown in FIG. 2A, the upper left corner of the operation interface further displays a ranking area, in which all players are arranged in order from top to bottom (including player A, player A, teammate C, player A). Another teammate, teammate Ding, also includes the avatar of player A's enemy team, player B. The top-down avatar indicates that the player's real-time ranking is reduced in turn. In addition, in order to facilitate the user to further understand the information of each player, the player's identification information such as the account name may also be displayed on the avatar side.
另外,为了帮助第一用户了解同队玩家持有的虚拟资源情况,进而方便第一用户决定将什么种类的道具转移给同队玩家,还可以在操作界面的预设位置,显示与第一用户具有关联关系的用户的虚拟资源。如图2A所示,操作界面的左上角排名区域中,玩家甲的队友头像一侧还可以显示有道具图标,用于提示玩家甲其每个队友是否拥有道具及拥有哪些种类的道具。当然,道具的提示方式并不局限于图2A所示的方式,还可以是其他,例如在第二用户的资源接收区域中显示其所持有的道具图标,以提示第一用户其拥有哪些道具。In addition, in order to help the first user understand the virtual resource situation held by the same team player, and thus facilitate the first user to decide what kind of props to transfer to the same team player, the first user can also be displayed at the preset position of the operation interface. A virtual resource of a user with an associated relationship. As shown in FIG. 2A, in the upper left corner of the operation interface, the player's teammate avatar side may also display an item icon for prompting the player whether each of his teammates has an item and which types of items are available. Certainly, the prompting manner of the prop is not limited to the manner shown in FIG. 2A, and may be other, for example, displaying the prop icon held by the second user in the resource receiving area to prompt the first user which props they have. .
S102:若检测到起始位置作用于第一用户的虚拟资源且结束位置作 用于第二用户的资源接收区域的第一滑动操作,则基于所述第一滑动操作,将所述虚拟资源移动至所述第二用户的资源接收区域内。S102: If detecting that the starting position acts on the virtual resource of the first user and the ending position acts on the first sliding operation of the resource receiving area of the second user, moving the virtual resource to the first sliding operation based on the first sliding operation The resource receiving area of the second user.
其中,第一用户可以在操作界面上通过触控操作实现虚拟资源的转移。具体地,若第一用户发现需要转移自己的虚拟资源给关联用户即第二用户时,可以对操作界面上自身的资源容器中的虚拟资源执行触控操作。由于需要将虚拟道具转移到第二用户,因此也需要在第二用户的资源接收区域执行触控操作。为了区分该两个触控操作,可以分别称为第一触控操作及第二触控操作。The first user can implement virtual resource transfer by using a touch operation on the operation interface. Specifically, if the first user finds that the virtual resource needs to be transferred to the associated user, that is, the second user, the touch operation may be performed on the virtual resource in the resource container of the operation interface. Since the virtual item needs to be transferred to the second user, it is also necessary to perform a touch operation in the resource receiving area of the second user. To distinguish the two touch operations, they may be referred to as a first touch operation and a second touch operation, respectively.
对于电子设备而言,其可以检测执行在其触控屏上的触控操作。若检测到触控操作的作用位置点位于第一用户的资源容器内,则表示检测到作用于第一用户的资源容器中虚拟资源的触控操作。同理,若在检测到第一触控操作之后,检测到的触控操作的作用位置点位于第二用户的资源接收区域内,则表示检测到作用于第二用户的资源接收区域的第二触控操作。需要说明的是,第二触控操作与第一触控操作之间还可以具有时间间隔限制,即第二触控操作需要在第一触控操作之后的时间间隔内,否则,第二触控操作无效。For an electronic device, it can detect a touch operation performed on its touch screen. If it is detected that the action location of the touch operation is located in the resource container of the first user, it indicates that the touch operation of the virtual resource in the resource container of the first user is detected. Similarly, if the detected location of the touch operation is located in the resource receiving area of the second user after detecting the first touch operation, it indicates that the second resource receiving area of the second user is detected. Touch operation. It should be noted that there may be a time interval limitation between the second touch operation and the first touch operation, that is, the second touch operation needs to be within the time interval after the first touch operation, otherwise, the second touch The operation is invalid.
第一触控操作用于表示虚拟资源的转移起点,第二触控操作用于表示虚拟资源的转移终点,根据检查到的第一触控操作及第二触控操作,便可以转移虚拟资源,即转移至第二用户的资源接收区域内。需要说明的是,在操作界面上的转移,可以体现为虚拟资源从第一用户的资源容器中删除,并显示在第二用户的资源接收区域。或者,在到达第二用户的资源接收区域后消失,为了提示用户转移成功,可以输出成功转移的提示信息,如显示动态特效动画和/或播放特效声音。The first touch operation is used to indicate the transfer starting point of the virtual resource, and the second touch operation is used to indicate the transfer end point of the virtual resource, and the virtual resource can be transferred according to the detected first touch operation and the second touch operation. That is, it is transferred to the resource receiving area of the second user. It should be noted that the transition on the operation interface may be implemented as the virtual resource being deleted from the resource container of the first user and displayed in the resource receiving area of the second user. Or, after reaching the resource receiving area of the second user, disappearing, in order to prompt the user to transfer successfully, the prompt information of the successful transfer may be output, such as displaying the dynamic special effect animation and/or playing the special effect sound.
关于如何实现转移操作,本申请可以提供多种方式。The present application can provide a variety of ways as to how to implement the transfer operation.
在一个示例中,可以通过滑动操作实现。具体地,第一触控操作及 第二触控操作分别为一次滑动操作的起点操作及终点操作,起点操作为按下操作,终点操作为弹起操作。为了将该滑动操作与下文的滑动操作区分,可以将该滑动操作称为第一滑动操作。In one example, this can be achieved by a sliding operation. Specifically, the first touch operation and the second touch operation are respectively a start operation and an end operation of one sliding operation, the start operation is a press operation, and the end operation is a pop-up operation. In order to distinguish the sliding operation from the sliding operation below, the sliding operation may be referred to as a first sliding operation.
第一用户按下操作界面中,自身资源容器中的虚拟资源的图标后,电子设备可以检测到按下操作,并开启对该虚拟资源图标的控制。需要说明的是,若虚拟资源并未包含在资源容器中,则直接检测是否存在对虚拟资源的按下操作;若虚拟资源包含在资源容器中,可以通过检测是否在资源容器内发生按下操作,来检测是否对虚拟资源图标执行按下操作。电子设备检测到按下操作后,若第一用户在操作界面上执行滑动操作,电子设备便控制该虚拟资源图标按照该滑动操作的移动轨迹移动。若第一用户在第二用户的资源接收区域执行弹起动作,电子设备检测到弹起操作后,便将该虚拟资源的图标放置在第二用户的资源接收区域内。如图2B~2D,其示出了虚拟资源从一个用户转移到该用户队友的一种转移示意图。在此些示意图中,虚拟资源以道具为例进行说明。如图2B所示,用户按下某个道具槽中的道具图标,如图2C所示,用户对该道具图标进行滑动操作,如图2D所示,用户将该道具图标拖拽至某个队友的头像上。需要说明的是,道具图标到达队友头像后可以消失。After the first user presses the icon of the virtual resource in the resource container in the operation interface, the electronic device can detect the pressing operation and turn on the control of the virtual resource icon. It should be noted that if the virtual resource is not included in the resource container, it is directly detected whether there is a pressing operation on the virtual resource; if the virtual resource is included in the resource container, it may be detected whether a pressing operation occurs in the resource container. To detect whether a virtual resource icon is pressed. After the electronic device detects the pressing operation, if the first user performs a sliding operation on the operation interface, the electronic device controls the virtual resource icon to move according to the movement trajectory of the sliding operation. If the first user performs a pop-up action in the resource receiving area of the second user, after the electronic device detects the pop-up operation, the icon of the virtual resource is placed in the resource receiving area of the second user. 2B-2D, a schematic diagram of a transfer of virtual resources from one user to the user teammate is shown. In these diagrams, virtual resources are described by taking an item as an example. As shown in FIG. 2B, the user presses the prop icon in a prop slot, as shown in FIG. 2C, the user slides the prop icon, as shown in FIG. 2D, the user drags the prop icon to a certain teammate. On the avatar. It should be noted that the prop icon can disappear after reaching the teammate avatar.
在又一个示例中,可以通过点击操作实现。具体地,第一触控操作及第二触控操作为两次不同的点击操作,为了便于描述,可以分别称为第一点击操作及第二点击操作。点击操作可以是单击,也可以是双击,只要是与其他功能区分开来的点击操作均可。In yet another example, this can be achieved by a click operation. Specifically, the first touch operation and the second touch operation are two different click operations, which may be referred to as a first click operation and a second click operation, respectively, for convenience of description. The click operation can be a click or a double click, as long as it is a click operation that is separate from other functions.
若第一用户对自身资源容器中的虚拟资源的图标执行点击动作,电子设备检测到该点击操作后,便将虚拟资源的图像从第一用户的资源容器中删除。若第一用户在执行该点击动作之后,在预设时间长度内,还对第二用户的资源接收区域执行点击动作,电子设备检测到该点击操作 后,便将虚拟资源显示在第二用户的资源接收区域内,实现虚拟资源从第一用户转移到第二用户的效果。If the first user performs a click action on the icon of the virtual resource in the resource container, the electronic device detects the click operation and deletes the image of the virtual resource from the resource container of the first user. If the first user performs the click action, and performs a click action on the resource receiving area of the second user within a preset time length, after the electronic device detects the click operation, the virtual resource is displayed on the second user. Within the resource receiving area, the effect of transferring the virtual resource from the first user to the second user is realized.
S103:将虚拟资源的归属主体由第一用户更新为第二用户。S103: Update the belonging body of the virtual resource from the first user to the second user.
需要说明的是,除了操作界面上显示的转移效果,电子设备还需要对第一用户及第二用户的用户信息进行修改,即将该虚拟资源的归属主体由第一用户修改为第二用户,这样第二用户便具有对该虚拟资源的使用权限。其中修改的具体实现方式可以是在第二用户的用户信息中的资源信息中添加该虚拟资源。It should be noted that, in addition to the transfer effect displayed on the operation interface, the electronic device needs to modify the user information of the first user and the second user, that is, the attribution body of the virtual resource is modified from the first user to the second user, so that The second user has access to the virtual resource. The specific implementation manner of the modification may be that the virtual resource is added to the resource information in the user information of the second user.
由以上技术方案可知,本申请提供了一种虚拟资源的处理方法,该方法可以显示操作界面,操作界面中包含有第一用户的虚拟资源及第二用户的资源接收区域,第一用户与第二用户之间具有关联关系,若检测到起始位置作用于所述虚拟资源且结束位置作用于所述资源接收区域的滑动操作,则基于所述滑动操作,控制虚拟资源沿着所述滑动操作的轨迹进行移动,以将所述虚拟资源移动至第二用户的资源接收区域内,并且将虚拟资源的归属者由第一用户修改为第二用户。可见,通过该方法游戏玩家可以将自己的道具等虚拟资源转移给同队队友,以使道具等虚拟资源可以被同队队友使用,从而提高整个团队的交互度,提升用户体验。According to the above technical solution, the present application provides a method for processing a virtual resource, where the method may display an operation interface, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user and the first user The two users have an association relationship. If a sliding operation is performed on the virtual resource and the end position acts on the resource receiving area, the virtual resource is controlled along the sliding operation based on the sliding operation. The trajectory is moved to move the virtual resource into a resource receiving area of the second user, and the owner of the virtual resource is modified from the first user to the second user. It can be seen that through this method, the game player can transfer the virtual resources such as his own props to the teammates of the same team, so that the virtual resources such as props can be used by the teammates of the same team, thereby improving the interaction degree of the entire team and improving the user experience.
为了进一步提示用户虚拟资源的转移效果,本申请提供了另一种虚拟资源的处理方法,由具备操作界面的电子设备执行。该方法在上述方法的基础上,还可以包括如下步骤,用于提示用户成功转移虚拟资源。In order to further prompt the user to transfer the virtual resources, the present application provides another method for processing virtual resources, which is executed by an electronic device having an operation interface. The method may further include the following steps, in order to prompt the user to successfully transfer the virtual resource.
在一个示例中,可以包括动效提示步骤,即在操作界面预设动态显示位置,在动态显示位置显示虚拟资源由第一用户至第二用户的动态效果。具体地,可以在操作界面的上方位置显示动态效果,动态效果中包 含第一用户的头像,第二用户的头像,虚拟资源的图标,以及从第一用户头像指向第二用户头像的箭头。如图2E所示的操作界面的一个示意图,动态效果显示在操作界面的上方,动态效果为,虚拟资源的图标从第一用户的头像沿着箭头到达第二用户头像。需要说明的是,动态效果展示完毕后便可以消失,以保证提供尽量大的区域用于展示游戏环境图像,或者防止遮挡游戏环境图像。In one example, the motion prompting step may be included, that is, the dynamic display position is preset in the operation interface, and the dynamic effect of the virtual resource from the first user to the second user is displayed in the dynamic display position. Specifically, a dynamic effect may be displayed at a position above the operation interface, where the dynamic effect includes an avatar of the first user, an avatar of the second user, an icon of the virtual resource, and an arrow pointing from the first user avatar to the second user avatar. As shown in FIG. 2E, the dynamic effect is displayed on the upper side of the operation interface. The dynamic effect is that the icon of the virtual resource reaches the second user avatar from the first user's avatar along the arrow. It should be noted that after the dynamic effect is displayed, it can disappear to ensure that the largest possible area is used to display the game environment image or to prevent the game environment image from being blocked.
在一个示例中,可以包括虚拟资源图标更新步骤,即在操作界面预设虚拟资源显示位置;在所述将所述虚拟资源的归属主体由所述第一用户更新为所述第二用户之后,在虚拟资源显示位置,显示归属主体为第二用户的虚拟资源。操作界面中的显示效果为,在第一用户的虚拟资源图标中删除该虚拟资源的图标,并在第二用户的虚拟资源图标中增加显示该虚拟资源的图标。前已述及,操作界面中可以显示第一用户的虚拟资源区域及第一用户关联的用户的虚拟资源区域,在第一用户将某个虚拟资源转移给某个第二用户后,将该虚拟资源的图标删除,并在第二用户的虚拟资源区域显示该虚拟资源的图标。如图2E所示的操作界面的示意图,在操作界面的左上角排名区域中,显示有第一用户的道具图标及其队友的道具图标,某个道具被成功转移后,该道具图标从第一用户的道具区域消失,并显示在第二用户的道具区域。In one example, the virtual resource icon update step may be included, that is, the virtual resource display location is preset at the operation interface; after the home entity of the virtual resource is updated by the first user to the second user, In the virtual resource display location, the virtual host whose home agent is the second user is displayed. The display effect in the operation interface is that the icon of the virtual resource is deleted in the virtual resource icon of the first user, and the icon of the virtual resource is added to the virtual resource icon of the second user. As described above, the virtual resource area of the first user and the virtual resource area of the user associated with the first user may be displayed in the operation interface. After the first user transfers a virtual resource to a second user, the virtual The icon of the resource is deleted, and the icon of the virtual resource is displayed in the virtual resource area of the second user. As shown in FIG. 2E, in the upper left corner of the operation interface, the prop icon of the first user and the prop icon of the teammate are displayed. After the prop is successfully transferred, the prop icon is from the first The user's item area disappears and is displayed in the second user's item area.
在一个示例中,可以包括为第一用户显示倒计时的步骤,即在操作界面中设置第一用户的关联位置,在该关联位置显示预设时间长度的倒计时。具体地,为了限制某个用户使用不合规则的手段获得虚拟资源并频繁向其他用户转送道具,可以在该用户转移一次虚拟资源后,便对该用户进行限制,即限制该用户在预设时间长度内不能将自身的虚拟资源再次转移给任何用户。为了提示用户这种限制,可以在该用户的关联位置,显示倒计时动效,倒计时的时长为该预设时间长度。第一用户将道 具转移给第二用户后,可以在第一用户的形象图像旁边显示倒计时。倒计时结束后,第一用户可以再次按照上述方法转移虚拟资源。In one example, the step of displaying a countdown for the first user may be included, ie, the associated location of the first user is set in the operator interface, and a countdown of the preset length of time is displayed at the associated location. Specifically, in order to restrict a user from using a non-rule means to obtain a virtual resource and frequently forward the item to another user, after the user transfers the virtual resource, the user may be restricted, that is, the user is restricted in the preset time length. It is not possible to transfer its own virtual resources to any users again. In order to prompt the user for such a limitation, a countdown effect may be displayed at the associated position of the user, and the countdown duration is the preset time length. After the first user transfers the device to the second user, a countdown can be displayed next to the image image of the first user. After the countdown is over, the first user can transfer the virtual resources again according to the above method.
在一个示例中,可以包括为第二用户显示倒计时的步骤,即在第二用户的资源接收区域,显示预设时间长度的倒计时。具体地,为了限制某个用户频繁接收其他用户转移的虚拟资源,频繁使用虚拟资源从而忽略玩家自身的竞技能力,可以对该用户接收虚拟资源的过程进行限制,即限制该用户接收某个用户转移的虚拟资源之后,预设时间长度之内再不能接收任何用户转移的虚拟资源。为了提示用户这种限制,可以在该用户的资源接收区域内,显示倒计时动效,倒计时的时长为该预设时间长度。假设预设时间长度为3秒,如图2E所示的操作界面的示意图,第一用户将道具转移给第二用户后,可以在第二用户的资源接收区域内显示倒计时。倒计时结束后,第一用户可以再次按照上述方法转移虚拟资源。In one example, the step of displaying a countdown for the second user may be included, ie, in the resource receiving area of the second user, a countdown of the preset length of time is displayed. Specifically, in order to restrict a user from frequently receiving virtual resources transferred by other users, and frequently using virtual resources to ignore the player's own competitive ability, the process of receiving the virtual resources may be restricted to the user, that is, the user is restricted from receiving a certain user transfer. After the virtual resource, no virtual resources transferred by the user can be received within the preset time length. In order to prompt the user for such a limitation, a countdown effect may be displayed in the resource receiving area of the user, and the countdown duration is the preset time length. Assuming that the preset time length is 3 seconds, as shown in the schematic diagram of the operation interface shown in FIG. 2E, after the first user transfers the item to the second user, the countdown can be displayed in the resource receiving area of the second user. After the countdown is over, the first user can transfer the virtual resources again according to the above method.
需要说明的是,对第一用户或者第二用户的限制可以通过冷冻状态标签实现,即当需要对第一用户或者第二用户进行限制时,为第一用户或者第二用户添加冷冻状态标签,并生成计时器,当计时器达到预设时间长度时,便删除该冷冻状态标签,表示对第一用户或者第二用户解除限制。It should be noted that the restriction on the first user or the second user may be implemented by using a frozen status label, that is, when the first user or the second user needs to be restricted, adding a frozen status label to the first user or the second user, And generating a timer. When the timer reaches the preset time length, the frozen status label is deleted, indicating that the restriction is released for the first user or the second user.
在一个示例中,可以包括为第一用户显示虚拟资源转移积分的步骤,即在操作界面中的第一用户的积分区域,显示基于转移虚拟资源获得的积分。该积分的显示方式可以是,将转移虚拟资源前的积分与获得的积分求和后,显示积分总值。具体地,当第一用户成功转移虚拟资源后,为第一用户添加虚拟资源转移积分,积分大小可以是根据虚拟资源确定的,进一步还可以将该虚拟资源的积分显示在第一用户的积分区域。如图2E所示的操作界面的示意图,第一用户将道具转移给第二用 户后,可以在操作界面的最下方包含的积分区域中,显示转移道具获得的积分1分(转移道具前的积分为0)。In one example, the step of displaying virtual resource transfer credits for the first user, ie, the integration area of the first user in the operational interface, displays the points earned based on the transferred virtual resources. The integral may be displayed by summing the points before transferring the virtual resources and the obtained points, and then displaying the total points. Specifically, after the first user successfully transfers the virtual resource, the virtual resource transfer credit is added to the first user, and the credit size may be determined according to the virtual resource, and further, the score of the virtual resource may be displayed in the credit region of the first user. . As shown in the schematic diagram of the operation interface shown in FIG. 2E, after the first user transfers the item to the second user, the score obtained by the transfer item can be displayed in the integral area included at the bottom of the operation interface (point before the transfer item) Is 0).
需要说明的是,上述几个示例中,只要不产生显示冲突,均可以同时包含在一个虚拟资源的处理方法中同时实现。在操作界面上显示以上内容,可以帮助用户了解虚拟资源转移情况,用户体验较好。It should be noted that, in the above several examples, as long as no display conflict occurs, both of them can be simultaneously implemented in one virtual resource processing method. Displaying the above content on the operation interface can help users understand the virtual resource transfer situation and the user experience is better.
前已述及,可以对第一用户频繁转移虚拟资源的情况进行限制,因此在执行虚拟资源转移之前,还可以包括如下判断步骤,即:As described above, the first user may be restricted from frequently transferring virtual resources. Therefore, before the virtual resource transfer is performed, the following determining steps may be included, namely:
判断第二触控操作的发生时间点之前的预设时间长度内,第一用户的虚拟资源是否未被移动至第一用户之外用户(即任一第二用户)的资源接收区域内;若是,才执行基于第一触控操作及第二触控操作,将虚拟资源移动至第二用户的资源接收区域内的步骤;若否,则并不执行将虚拟资源移动至第二用户的资源接收区域内的步骤且生成提示信息。其中,第二触控操作的发生时间点即第一滑动操作的结束时间点。Determining, within a preset time length before the occurrence time of the second touch operation, whether the virtual resource of the first user is not moved to the resource receiving area of the user other than the first user (ie, any second user); The step of moving the virtual resource to the resource receiving area of the second user based on the first touch operation and the second touch operation is performed; if not, the resource receiving to move the virtual resource to the second user is not performed. Steps within the area and generate prompt information. The time point at which the second touch operation occurs is the end time point of the first sliding operation.
其中,并不执行上述步骤可以是,第一触控操作后虚拟资源的图标不动,或者第一触控操作后虚拟资源的图标变动但第二触控操作后虚拟资源的图标仍放回第一用户的资源容器中。另外,判断的时间点可以是,电子设备检测到作用于第一用户的资源容器的虚拟资源的触控操作时,或者,也可以是检测到作用于第二用户的资源接收区域的触控操作时。The method of the virtual resource does not move after the first touch operation, or the icon of the virtual resource changes after the first touch operation, but the icon of the virtual resource is still returned after the second touch operation. In a user's resource container. In addition, the time point of the determination may be that the electronic device detects the touch operation of the virtual resource of the resource container of the first user, or may also detect the touch operation of the resource receiving area of the second user. Time.
前已述及在对第一用户进行限制时,可以为第一用户添加冷冻状态标签,因此可以通过判断第一用户是否具有冷冻状态标签,来实现上述判断操作,若具有冷冻状态标签,则表示判断结果为是,若不具有冷冻状态标签,则表示判断结果为否。另外,提示信息可以为声音提示或者文字提示。It has been mentioned that when the first user is restricted, the frozen status label can be added to the first user, so that the determination operation can be realized by determining whether the first user has a frozen status label, and if there is a frozen status label, If the result of the determination is YES, if the frozen status label is not present, it means that the determination result is No. In addition, the prompt information may be an audible prompt or a text prompt.
在另一种实现方式中,可以对第二用户频繁接收虚拟资源的转移情 况进行限制,因此在执行虚拟资源转移之前,还可以包括如下判断步骤,即:In another implementation manner, the transition of the virtual resource that is frequently received by the second user may be restricted. Therefore, before the virtual resource transfer is performed, the following determining steps may be included, namely:
判断第二触控操作的发生时间点之前的预设时间长度内,第二用户的资源接收区域内是否未放入有第二用户之外用户(即任一第一用户)的虚拟资源;若是,才执行基于第一触控操作及第二触控操作,将虚拟资源移动至第二用户的资源接收区域内的步骤;若否,则并不执行将虚拟资源移动至第二用户的资源接收区域内的步骤且生成提示信息。Determining, within a preset time length before the occurrence time of the second touch operation, whether the virtual resource of the user other than the second user (ie, any first user) is not placed in the resource receiving area of the second user; The step of moving the virtual resource to the resource receiving area of the second user based on the first touch operation and the second touch operation is performed; if not, the resource receiving to move the virtual resource to the second user is not performed. Steps within the area and generate prompt information.
其中,并不执行上述步骤可以是,第一触控操作后虚拟资源的图标不动,或者第一触控操作后虚拟资源的图标变动但第二触控操作后虚拟资源的图标仍放回第一用户的资源容器中。The method of the virtual resource does not move after the first touch operation, or the icon of the virtual resource changes after the first touch operation, but the icon of the virtual resource is still returned after the second touch operation. In a user's resource container.
另外,判断的时间点可以是,电子设备检测到作用于第二用户的资源接收区域的触控操作时。In addition, the determined time point may be when the electronic device detects a touch operation on the resource receiving area of the second user.
前已述及在对第二用户进行限制时,可以为第二用户添加冷冻状态标签,因此可以通过判断第二用户是否具有冷冻状态标签,来实现上述判断操作,若具有冷冻状态标签,则表示判断结果为是,若不具有冷冻状态标签,则表示判断结果为否。另外,提示信息可以为声音提示或者文字提示。It has been mentioned that when the second user is restricted, the frozen state label can be added to the second user, so that the determination operation can be realized by determining whether the second user has the frozen state label, and if there is a frozen status label, If the result of the determination is YES, if the frozen status label is not present, it means that the determination result is No. In addition, the prompt information may be an audible prompt or a text prompt.
在实际应用中,可以限制每个用户拥有的虚拟资源个数,因此在执行将虚拟资源转移到第二用户的资源接收区域之前,还可以包括:In an actual application, the number of virtual resources owned by each user may be limited. Therefore, before performing the transfer of the virtual resources to the resource receiving area of the second user, the method may further include:
针对第二用户设置虚拟资源限制个数;Setting the number of virtual resource limits for the second user;
判断第二用户的虚拟资源个数是否未超过与第二用户关联的虚拟资源限制个数;若是,才执行基于第一触控操作及第二触控操作,将虚拟资源移动至第二用户的资源接收区域内的步骤;若否,则并不执行将虚拟资源移动至第二用户的资源接收区域内的步骤且生成提示信息。Determining whether the number of virtual resources of the second user does not exceed the number of virtual resources associated with the second user; if yes, performing the first touch operation and the second touch operation to move the virtual resource to the second user a step in the resource receiving area; if not, the step of moving the virtual resource into the resource receiving area of the second user is not performed and the prompt information is generated.
具体地,可以在电子设备检测到作用于第二用户的资源接收区域的触控操作时,执行判断操作。首先,获得第二用户的虚拟资源限制个数,并获得第二用户当前的虚拟资源个数,比较后可知当前虚拟资源个数是否未超过虚拟资源限制个数。只有在未超过的情况下,才可以执行虚拟资源转移操作。Specifically, the determining operation may be performed when the electronic device detects a touch operation on the resource receiving area of the second user. First, the number of virtual resource limits of the second user is obtained, and the current number of virtual resources of the second user is obtained. After comparison, it is known whether the current number of virtual resources does not exceed the virtual resource limit. Virtual resource transfer operations can only be performed if they are not exceeded.
本实施例中并不执行虚拟资源转移操作的实现方式可以参见上述实现方式,此处并不赘述。For the implementation of the virtual resource transfer operation in this embodiment, refer to the foregoing implementation manner, and details are not described herein.
需要说明的是,以上各个虚拟资源的处理方法中,可以包括各种判断步骤,只要不产生冲突,各个判断步骤可以在同一个虚拟资源的处理方法中实现,且各个判断步骤的先后执行顺序并不限定。It should be noted that, in the processing method of the foregoing virtual resources, various determining steps may be included. As long as no conflict occurs, each determining step may be implemented in the processing method of the same virtual resource, and the sequential execution order of each determining step is Not limited.
以下说明电子设备如何对作用于触控屏的触控操作进行检测。具体地,如图3所示,基于触控屏的触控操作可以包括如下步骤S301~S306。The following describes how the electronic device detects the touch operation applied to the touch screen. Specifically, as shown in FIG. 3, the touch operation based on the touch screen may include the following steps S301 to S306.
S301:显示操作界面。S301: Display an operation interface.
其中,操作界面上包含有第一用户的虚拟资源,及第二用户的资源接收区域。The operation interface includes a virtual resource of the first user and a resource receiving area of the second user.
S302:检测是否发生作用于虚拟资源的按下操作。若是,执行步骤S303。S302: Detect whether a pressing operation on the virtual resource occurs. If yes, go to step S303.
其中,电子设备每帧会检测第一用户的虚拟资源是否发生触控操作。具体地,若虚拟资源直接显示在操作界面上,则可以检测是否存在作用于虚拟资源上触控操作;若操作界面上包含资源容器,虚拟资源包含在资源容器中,资源容器在操作界面占据有一定区域,则可以检测该区域内是否发生触控操作。例如资源容器为圆形,可以检测外切该圆形的方形区域内是否发生触控操作。触控操作具体为按下操作。The electronic device detects whether the virtual resource of the first user has a touch operation every frame. Specifically, if the virtual resource is directly displayed on the operation interface, it may be detected whether there is a touch operation on the virtual resource; if the operation interface includes a resource container, the virtual resource is included in the resource container, and the resource container occupies in the operation interface. In a certain area, it is possible to detect whether a touch operation occurs in the area. For example, the resource container is circular, and it is possible to detect whether a touch operation occurs in a square area that circumscribes the circle. The touch operation is specifically a press operation.
S303:判断第一用户是否未处于冷冻状态。若是,执行步骤S304。S303: Determine whether the first user is not in a frozen state. If yes, step S304 is performed.
其中,为了防止第一用户频繁向其他用户转移道具,可以在第一用户的虚拟资源被转移给其他用户后,便为第一用户添加冷冻状态标签并启动倒计时,该冷冻状态标签在倒计时结束后清除。因此,可以通过判断第一用户是否具有冷冻状态标签确定第一用户是否处于冷冻状态。若第一用户未处于冷冻状态,则执行步骤S304。In order to prevent the first user from frequently transferring the props to other users, after the virtual resources of the first user are transferred to other users, the frozen status label is added to the first user and the countdown is started. The frozen status label is after the countdown ends. Clear. Therefore, whether the first user is in a frozen state can be determined by determining whether the first user has a frozen status label. If the first user is not in the frozen state, step S304 is performed.
S304:根据移动轨迹移动虚拟资源。S304: Move the virtual resource according to the movement trajectory.
其中,触控操作为按下的情况下,可以检测触控操作的移动轨迹,并按照该移动轨迹将虚拟资源移动到移动轨迹表示的位置。当然,在移动过程中如果发生步骤S605的弹起操作,则需要执行弹起子流程。Wherein, when the touch operation is pressed, the movement track of the touch operation can be detected, and the virtual resource is moved to the position indicated by the movement track according to the movement track. Of course, if the pop-up operation of step S605 occurs during the movement, the bouncer process needs to be performed.
S305:检测是否发生弹起操作,若是,触发执行步骤S306,若否,则返回步骤S304。S305: It is detected whether a pop-up operation occurs, and if so, the step S306 is triggered, and if no, the process returns to step S304.
其中,移动过程中如果发生弹起动作,电子设备可以检测到该弹起操作。弹起操作表示移动过程的终止,检测到该操作后需要执行弹起流程。Wherein, if a pop-up action occurs during the movement, the electronic device can detect the pop-up operation. The pop-up operation indicates the termination of the movement process, and the bounce process needs to be performed after the operation is detected.
S306:执行弹起流程。S306: Perform a bounce process.
其中,移动轨迹的终点可能出现在各种不同的位置,不同的位置点表示用户想要对虚拟资源的处理方式也不同。弹起流程需要对各种情况进行判断,因此,可以首先判断弹起操作的作用位置点是在虚拟资源的起始位置、资源接收区域还是其他区域,其中其他区域也可以称为非资源接收区域。Among them, the end point of the moving track may appear in various different positions, and the different position points indicate that the user wants to treat the virtual resource differently. The pop-up process needs to judge various situations. Therefore, it can be first determined whether the action location of the pop-up operation is at the start position of the virtual resource, the resource receiving area, or other areas, and other areas may also be referred to as non-resource receiving areas. .
在操作界面中确定非资源接收区域,其中,非资源接收区域指的是虚拟资源的起始位置之外且资源接收区域之外的区域。A non-resource receiving area is determined in the operation interface, where the non-resource receiving area refers to an area outside the starting position of the virtual resource and outside the resource receiving area.
可以理解的是,若虚拟资源包含在资源容器中,则虚拟资源的起始位置也可以是资源容器所在的区域位置。以这种情况为例进行详细说 明。It can be understood that if the virtual resource is included in the resource container, the starting position of the virtual resource may also be the location of the area where the resource container is located. This case will be described in detail as an example.
若弹起操作的作用位置点在资源容器占据的区域,则表示第一用户将虚拟资源从资源容器中拖出后又放回资源容器,这种情况下,第一用户可能想要在游戏中使用该虚拟资源,因此如步骤S3061所示,删除虚拟资源并执行处理流程。具体地,电子设备将虚拟资源从资源容器中删除并执行虚拟资源的处理流程。需要说明的是,这种情况下执行的操作是预先设置好的,即预先设置虚拟资源的移动轨迹的起点及终点均在资源容器内,则执行使用虚拟资源的流程,当然,若预先设置这种情况对应的是其他操作,则可以执行相应的流程。If the action location of the pop-up operation is in the area occupied by the resource container, it means that the first user drags the virtual resource out of the resource container and then puts it back into the resource container. In this case, the first user may want to be in the game. The virtual resource is used, so as shown in step S3061, the virtual resource is deleted and the processing flow is executed. Specifically, the electronic device deletes the virtual resource from the resource container and executes a processing flow of the virtual resource. It should be noted that the operation performed in this case is preset, that is, the start point and the end point of the movement track of the virtual resource are set in the resource container in advance, and the process of using the virtual resource is executed, of course, if this is set in advance If the situation corresponds to other operations, the corresponding process can be executed.
若弹起操作的作用位置点在资源接收区域,则表示第一用户将虚拟资源从自身的资源容器中拖出并放置入第二用户的资源接收区域内,这种情况下,第一用户可能想要将虚拟资源转移给第二用户,因此如步骤S3062所示,在第二用户的虚拟资源信息中添加虚拟资源。具体地,电子设备将虚拟资源从资源容器中删除并在第二用户的虚拟资源信息中添加该虚拟资源。If the action location of the pop-up operation is in the resource receiving area, it means that the first user drags the virtual resource out of its own resource container and places it into the resource receiving area of the second user. In this case, the first user may In order to transfer the virtual resource to the second user, the virtual resource is added to the virtual resource information of the second user as shown in step S3062. Specifically, the electronic device deletes the virtual resource from the resource container and adds the virtual resource to the virtual resource information of the second user.
若弹起操作的作用位置点在其他区域,则表示第一用户可能操作失误例如没有将虚拟资源放置在想要放置的位置,或者失误将虚拟资源从资源容器中取出,因此如步骤S3063所示,电子设备将虚拟资源重新放置回资源容器。需要说明的是,这种情况下执行的操作是预先设置好的,即预先设置虚拟资源的移动轨迹的起点在资源容器内且移动轨迹的终点在其他区域,则执行放回虚拟资源的流程,当然,若预先设置这种情况对应的是其他操作,则可以执行相应的流程。需要说明的是,在这种情况下的滑动操作可以称为第二滑动操作,即起始位置作用于第一用户的虚拟资源,且结束位置作用于非资源接收区域,那么此时基于第二滑动操作,将虚拟资源重置回虚拟资源的起始位置。If the action location of the pop-up operation is in another area, it indicates that the first user may have an operation error such as not placing the virtual resource at the location where the virtual resource is to be placed, or the virtual resource is taken out from the resource container, so as shown in step S3063. The electronic device relocates the virtual resource back to the resource container. It should be noted that the operation performed in this case is preset, that is, the starting point of the movement track of the virtual resource is preset in the resource container and the end point of the movement track is in other areas, and the process of putting back the virtual resource is performed. Of course, if this situation is set in advance to correspond to other operations, the corresponding process can be executed. It should be noted that the sliding operation in this case may be referred to as a second sliding operation, that is, the starting position acts on the virtual resource of the first user, and the ending position acts on the non-resource receiving area, then the second is based on the second A swipe operation that resets the virtual resource back to the beginning of the virtual resource.
见图4,其示出了本申请提供的一种虚拟资源的处理装置的结构。如图4所示,该装置可以包括:操作界面显示模块401、虚拟资源移动模块402及资源归属更新模块403。FIG. 4 is a diagram showing the structure of a processing device for a virtual resource provided by the present application. As shown in FIG. 4, the device may include: an operation interface display module 401, a virtual resource mobility module 402, and a resource attribution update module 403.
操作界面显示模块401,用于显示操作界面,所述操作界面中包括有第一用户的虚拟资源及第二用户的资源接收区域,第一用户与第二用户具有关联关系;The operation interface display module 401 is configured to display an operation interface, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user;
虚拟资源移动模块402,用于若检测到起始位置作用于第一用户的虚拟资源且结束位置作用于第二用户的资源接收区域的第一滑动操作,则基于所述第一滑动操作,将所述虚拟资源移动至所述第二用户的资源接收区域内;The virtual resource moving module 402 is configured to: if detecting that the starting position acts on the virtual resource of the first user and the ending position acts on the first sliding operation of the resource receiving area of the second user, based on the first sliding operation, Transmitting the virtual resource into a resource receiving area of the second user;
资源归属更新模块403,用于将所述虚拟资源的归属主体由所述第一用户更新为所述第二用户。The resource attribution update module 403 is configured to update the home entity of the virtual resource from the first user to the second user.
在一个示例中,所述操作界面显示模块401显示的操作界面中包含有资源容器,将所述虚拟资源显示在所述资源容器内。In one example, the operation interface displayed by the operation interface display module 401 includes a resource container, and the virtual resource is displayed in the resource container.
在一个示例中,所述操作界面显示模块401进一步用于,在所述操作界面中确定非资源接收区域,所述非资源接收区域为:任意资源接收区域之外且所述虚拟资源的起始位置之外的区域;In an example, the operation interface display module 401 is further configured to: determine, in the operation interface, a non-resource receiving area, where the non-resource receiving area is: an arbitrary resource receiving area and a start of the virtual resource An area outside the location;
虚拟资源的处理装置还包括:虚拟资源重置模块。其中虚拟资源重置模块,用于若检测到起始位置作用于第一用户的虚拟资源且结束位置作用于所述非资源接收区域的第二滑动操作,则基于所述第二滑动操作,将所述虚拟资源重置回所述虚拟资源的起始位置。The processing device of the virtual resource further includes: a virtual resource reset module. The virtual resource reset module is configured to: if detecting that the start location acts on the virtual resource of the first user and the end position acts on the non-resource receiving area, the second sliding operation is performed based on the second sliding operation The virtual resource is reset back to the starting location of the virtual resource.
在一个示例中,虚拟资源的处理装置还包括:第一检测模块。其中第一检测模块,用于在所述将所述虚拟资源移动至所述第二用户的资源接收区域内之前,判断所述第一滑动操作的结束时间点之前的预设时间 长度内,第一用户的虚拟资源是否未被移动至任一第二用户的资源接收区域内;以及若是,则执行将所述虚拟资源移动至所述第二用户的资源接收区域内的步骤。In an example, the processing device of the virtual resource further includes: a first detecting module. The first detecting module is configured to determine, within a preset time length before the end time point of the first sliding operation, before moving the virtual resource to the resource receiving area of the second user, Whether a user's virtual resource has not been moved into the resource receiving area of any of the second users; and if so, performing the step of moving the virtual resource into the resource receiving area of the second user.
在一个示例中,所述操作界面显示模块401进一步用于,在所述操作界面中设置第一用户的关联位置;In an example, the operation interface display module 401 is further configured to set an associated location of the first user in the operation interface;
虚拟资源的处理装置还包括:第一倒计时模块。其中第一倒计时模块,用于在所述将所述虚拟资源移动至所述第二用户的资源接收区域内之后,在所述关联位置显示预设时间长度的倒计时。The processing device of the virtual resource further includes: a first countdown module. The first countdown module is configured to display a countdown of the preset time length at the associated location after the moving the virtual resource to the resource receiving area of the second user.
在一个示例中,虚拟资源的处理装置还包括:第二检测模块。其中第二检测模块,用于在所述将所述虚拟资源移动至所述第二用户的资源接收区域内之前,判断所述第一滑动操作的结束时间点之前的预设时间长度内,第二用户的资源接收区域内是否未放入有任一第一用户的虚拟资源;以及若是,则执行将所述虚拟资源移动至所述第二用户的资源接收区域内的步骤。In one example, the processing device of the virtual resource further includes: a second detecting module. The second detecting module is configured to determine, within a preset time length before the end time point of the first sliding operation, before moving the virtual resource to the resource receiving area of the second user, Whether the virtual resource of any first user is not placed in the resource receiving area of the two users; and if so, the step of moving the virtual resource into the resource receiving area of the second user is performed.
在一个示例中,虚拟资源的处理装置还包括:第二倒计时模块。其中第二倒计时模块,用于在所述将所述虚拟资源移动至所述第二用户的资源接收区域内之后,在第二用户的资源接收区域内,显示预设时间长度的倒计时。In one example, the processing device of the virtual resource further includes: a second countdown module. The second countdown module is configured to display a countdown of the preset time length in the resource receiving area of the second user after the moving the virtual resource to the resource receiving area of the second user.
在一个示例中,第二用户具有关联的虚拟资源限制个数;则虚拟资源的处理装置还包括:资源个数判断模块。其中资源个数判断模块,用于针对所述第二用户设置虚拟资源限制个数;在所述将所述虚拟资源移动至所述第二用户的资源接收区域内之前,判断第二用户的虚拟资源个数是否未超过所述虚拟资源限制个数;以及若是,执行将所述虚拟资源移动至所述第二用户的资源接收区域内的步骤。In one example, the second user has an associated number of virtual resource limits; the processing device of the virtual resource further includes: a resource number determination module. The resource number judging module is configured to set a virtual resource limit number for the second user, and determine the virtuality of the second user before moving the virtual resource to the resource receiving area of the second user. Whether the number of resources does not exceed the virtual resource limit number; and if so, the step of moving the virtual resource into the resource receiving area of the second user is performed.
在一个示例中,虚拟资源的处理装置还包括:动态效果显示模块。 其中动态效果显示模块,用于在所述操作界面预设动态显示位置,在所述动态显示位置显示所述虚拟资源由所述第一用户转移至所述第二用户的动态效果。In one example, the processing device of the virtual resource further includes: a dynamic effect display module. The dynamic effect display module is configured to preset a dynamic display position on the operation interface, and display, in the dynamic display position, a dynamic effect that the virtual resource is transferred from the first user to the second user.
在一个示例中,虚拟资源的处理装置还包括:虚拟资源显示模块。其中虚拟资源显示模块,用于在操作界面预设虚拟资源显示位置;在所述将所述虚拟资源的归属主体由所述第一用户更新为所述第二用户之后,在所述虚拟资源显示位置,显示归属主体为所述第二用户的虚拟资源。In one example, the processing device of the virtual resource further includes: a virtual resource display module. a virtual resource display module, configured to preset a virtual resource display location on the operation interface; after the updating the home entity of the virtual resource by the first user to the second user, displaying the virtual resource The location indicates that the belonging principal is a virtual resource of the second user.
以下对本申请提供的电子设备的结构进行说明。该电子设备可以具体为设置有操作界面的任何电子设备,如手机、平板电脑、便携式计算机、台式计算机等。The structure of the electronic device provided by the present application will be described below. The electronic device may be specifically any electronic device provided with an operation interface, such as a mobile phone, a tablet computer, a portable computer, a desktop computer, or the like.
见图5,其示出了电子设备的一种具体结构。如图5所示,该设备可以具体包括:操作屏幕501,存储器502,处理器503及通信总线504。其中,操作屏幕501,存储器502及处理器503通过通信总线504完成相互间的通信。Referring to Figure 5, a specific structure of an electronic device is shown. As shown in FIG. 5, the device may specifically include: an operation screen 501, a memory 502, a processor 503, and a communication bus 504. Among them, the operation screen 501, the memory 502 and the processor 503 complete communication with each other through the communication bus 504.
操作屏幕501,用于显示操作界面,所述操作界面中包括有第一用户的虚拟资源及第二用户的资源接收区域,第一用户与第二用户具有关联关系。The operation screen 501 is configured to display an operation interface, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user.
存储器502,用于存放程序;存储器502可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 502 is for storing a program; the memory 502 may include a high speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
处理器503,用于执行程序,程序可以包括程序代码,所述程序代码包括处理器的操作指令。其中,程序可具体用于:The processor 503 is configured to execute a program, and the program may include program code, where the program code includes an operation instruction of the processor. Among them, the program can be specifically used to:
若检测到起始位置作用于第一用户的虚拟资源且结束位置作用于 第二用户的资源接收区域的第一滑动操作,则基于所述第一滑动操作,将所述虚拟资源移动至所述第二用户的资源接收区域内;以及将所述虚拟资源的归属主体由所述第一用户更新为所述第二用户。If it is detected that the initial position acts on the virtual resource of the first user and the end position acts on the first sliding operation of the resource receiving area of the second user, the virtual resource is moved to the a resource receiving area of the second user; and updating the home entity of the virtual resource by the first user to the second user.
处理器503可能是一个中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本申请实施例的一个或多个集成电路。The processor 503 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
需要说明的是,以上处理器503在执行程序功能时,可以具体按照上述虚拟资源的处理方法中的方式进行实现,此处并不赘述。It should be noted that, when the program function is executed, the above processor 503 can be implemented in the manner of the method for processing the virtual resource, and is not described herein.
本申请还提供了一种存储介质,所述存储介质存储有多条指令,所述指令适于处理器进行加载,以执行以上与虚拟资源的处理方法相关的步骤。具体来看,与虚拟资源的处理方法相关的步骤包括以下:The present application also provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps related to the processing method of the virtual resource. Specifically, the steps related to the processing method of the virtual resource include the following:
操作界面显示子步骤,用于显示操作界面,所述操作界面中包括有第一用户的虚拟资源及第二用户的资源接收区域,第一用户与第二用户具有关联关系;The operation interface displays a sub-step for displaying an operation interface, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user;
虚拟资源移动子步骤,用于若检测到起始位置作用于第一用户的虚拟资源且结束位置作用于第二用户的资源接收区域的第一滑动操作,则基于所述第一滑动操作,将所述虚拟资源移动至所述第二用户的资源接收区域内;a virtual resource moving sub-step, configured to: if detecting that the starting location acts on the virtual resource of the first user and the ending position acts on the first sliding operation of the resource receiving area of the second user, based on the first sliding operation, Transmitting the virtual resource into a resource receiving area of the second user;
虚拟资源更新子步骤,用于将所述虚拟资源的归属主体由所述第一用户更新为所述第二用户。And a virtual resource update sub-step, configured to update a home entity of the virtual resource from the first user to the second user.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。It should be noted that each embodiment in the specification is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the embodiments are referred to each other. can.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括上述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this context, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional elements in the process, method, article, or device that comprises the above described elements.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to make or use the application. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the application is not limited to the embodiments shown herein, but is to be accorded the broadest scope of the principles and novel features disclosed herein.

Claims (15)

  1. 一种虚拟资源的处理方法,由电子设备执行,包括:A method for processing a virtual resource, executed by an electronic device, comprising:
    显示操作界面,所述操作界面中包括有第一用户的虚拟资源及第二用户的资源接收区域,第一用户与第二用户具有关联关系;An operation interface is displayed, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user;
    若检测到起始位置作用于第一用户的虚拟资源且结束位置作用于第二用户的资源接收区域的第一滑动操作,则基于所述第一滑动操作,将所述虚拟资源移动至所述第二用户的资源接收区域内;If it is detected that the initial position acts on the virtual resource of the first user and the end position acts on the first sliding operation of the resource receiving area of the second user, the virtual resource is moved to the Within the resource receiving area of the second user;
    将所述虚拟资源的归属主体由所述第一用户更新为所述第二用户。Updating the home entity of the virtual resource by the first user to the second user.
  2. 根据权利要求1所述的虚拟资源的处理方法,其中,所述操作界面中包含有资源容器,所述显示操作界面包括:The method for processing a virtual resource according to claim 1, wherein the operation interface includes a resource container, and the display operation interface comprises:
    将所述虚拟资源显示在所述资源容器内。Displaying the virtual resource in the resource container.
  3. 根据权利要求1所述的虚拟资源的处理方法,还包括:The method for processing a virtual resource according to claim 1, further comprising:
    在所述操作界面中确定非资源接收区域,所述非资源接收区域为:任意资源接收区域之外且所述虚拟资源的起始位置之外的区域;Determining, in the operation interface, a non-resource receiving area, where the non-resource receiving area is an area outside the arbitrary resource receiving area and outside the starting position of the virtual resource;
    若检测到起始位置作用于第一用户的虚拟资源且结束位置作用于所述非资源接收区域的第二滑动操作,则基于所述第二滑动操作,将所述虚拟资源重置回所述虚拟资源的起始位置。If detecting that the starting position acts on the virtual resource of the first user and the ending position acts on the second sliding operation of the non-resource receiving area, resetting the virtual resource back to the The starting position of the virtual resource.
  4. 根据权利要求1所述的虚拟资源的处理方法,还包括:The method for processing a virtual resource according to claim 1, further comprising:
    若所述第一滑动操作的结束时间点之前的预设时间长度内,第一用户的虚拟资源未被移动至任一第二用户的资源接收区域内,则执行将所述虚拟资源移动至所述第二用户的资源接收区域内的步骤。If the virtual resource of the first user is not moved to the resource receiving area of any second user within a preset time length before the end time point of the first sliding operation, performing moving the virtual resource to the location The steps in the resource receiving area of the second user.
  5. 根据权利要求4所述的虚拟资源的处理方法,还包括:The method for processing a virtual resource according to claim 4, further comprising:
    在所述操作界面中设置第一用户的关联位置;Setting an associated location of the first user in the operation interface;
    在所述关联位置显示预设时间长度的倒计时。A countdown of the preset time length is displayed at the associated location.
  6. 根据权利要求1所述的虚拟资源的处理方法,还包括:The method for processing a virtual resource according to claim 1, further comprising:
    若所述第一滑动操作的结束时间点之前的预设时间长度内,第二用户的资源接收区域内未放入任一第一用户的虚拟资源,则执行将所述虚拟资源移动至所述第二用户的资源接收区域内的步骤。If the virtual resource of any first user is not placed in the resource receiving area of the second user within a preset time length before the end time of the first sliding operation, performing moving the virtual resource to the The steps within the resource receiving area of the second user.
  7. 根据权利要求6所述的虚拟资源的处理方法,还包括:The method for processing a virtual resource according to claim 6, further comprising:
    在所述第二用户的资源接收区域内,显示预设时间长度的倒计时。In the resource receiving area of the second user, a countdown of the preset time length is displayed.
  8. 根据权利要求1所述的虚拟资源的处理方法,还包括:The method for processing a virtual resource according to claim 1, further comprising:
    针对所述第二用户设置虚拟资源限制个数;Setting a virtual resource limit number for the second user;
    若第二用户的虚拟资源个数未超过所述虚拟资源限制个数,则执行将所述虚拟资源移动至所述第二用户的资源接收区域内的步骤。And if the number of virtual resources of the second user does not exceed the virtual resource limit number, performing the step of moving the virtual resource into the resource receiving area of the second user.
  9. 根据权利要求1所述的虚拟资源的处理方法,还包括:The method for processing a virtual resource according to claim 1, further comprising:
    在所述操作界面预设动态显示位置;Presetting a dynamic display position on the operation interface;
    在所述动态显示位置显示所述虚拟资源由所述第一用户转移至所述第二用户的动态效果。Displaying, in the dynamic display location, a dynamic effect that the virtual resource is transferred from the first user to the second user.
  10. 根据权利要求1所述的虚拟资源的处理方法,还包括:The method for processing a virtual resource according to claim 1, further comprising:
    在所述操作界面预设虚拟资源显示位置;Presetting a virtual resource display location on the operation interface;
    在所述虚拟资源显示位置显示归属主体为所述第二用户的虚拟资源。Displaying, at the virtual resource display location, a home entity is a virtual resource of the second user.
  11. 一种电子设备,包括处理器和存储器,所述存储器中存储可被所述处理器执行的指令,当执行所述指令时,所述处理器用于:An electronic device comprising a processor and a memory, the memory storing instructions executable by the processor, the processor for: when executing the instruction, the processor is configured to:
    显示操作界面,所述操作界面中包括有第一用户的虚拟资源及第二用户的资源接收区域,第一用户与第二用户具有关联关系;An operation interface is displayed, where the operation interface includes a virtual resource of the first user and a resource receiving area of the second user, where the first user has an association relationship with the second user;
    若检测到起始位置作用于第一用户的虚拟资源且结束位置作用于第二用户的资源接收区域的第一滑动操作,则基于所述第一滑动操作,将所述虚拟资源移动至所述第二用户的资源接收区域内;If it is detected that the initial position acts on the virtual resource of the first user and the end position acts on the first sliding operation of the resource receiving area of the second user, the virtual resource is moved to the Within the resource receiving area of the second user;
    将所述虚拟资源的归属主体由所述第一用户更新为所述第二用户。Updating the home entity of the virtual resource by the first user to the second user.
  12. 根据权利要求11所述的电子设备,其中,当执行所述指令时,所述处理器进一步用于:The electronic device of claim 11, wherein when the instruction is executed, the processor is further configured to:
    在所述操作界面中确定非资源接收区域,所述非资源接收区域为:任意资源接收区域之外且所述虚拟资源的起始位置之外的区域;Determining, in the operation interface, a non-resource receiving area, where the non-resource receiving area is an area outside the arbitrary resource receiving area and outside the starting position of the virtual resource;
    若检测到起始位置作用于第一用户的虚拟资源且结束位置作用于所述非资源接收区域的第二滑动操作,则基于所述第二滑动操作,将所述虚拟资源重置回所述虚拟资源的起始位置。If detecting that the starting position acts on the virtual resource of the first user and the ending position acts on the second sliding operation of the non-resource receiving area, resetting the virtual resource back to the The starting position of the virtual resource.
  13. 根据权利要求11所述的电子设备,其中,当执行所述指令时,所述处理器进一步用于:The electronic device of claim 11, wherein when the instruction is executed, the processor is further configured to:
    若所述第一滑动操作的结束时间点之前的预设时间长度内,第一用户的虚拟资源未被移动至任一第二用户的资源接收区域内,则执行将所述虚拟资源移动至所述第二用户的资源接收区域内的步骤。If the virtual resource of the first user is not moved to the resource receiving area of any second user within a preset time length before the end time point of the first sliding operation, performing moving the virtual resource to the location The steps in the resource receiving area of the second user.
  14. 根据权利要求11至13中任一项所述的电子设备,其中,当执行所述指令时,所述处理器进一步用于:The electronic device according to any one of claims 11 to 13, wherein, when the instruction is executed, the processor is further configured to:
    若所述第一滑动操作的结束时间点之前的预设时间长度内,第二用户的资源接收区域内未放入任一第一用户的虚拟资源,则执行将所述虚拟资源移动至所述第二用户的资源接收区域内的步骤。If the virtual resource of any first user is not placed in the resource receiving area of the second user within a preset time length before the end time of the first sliding operation, performing moving the virtual resource to the The steps within the resource receiving area of the second user.
  15. 一种存储介质,所述存储介质存储有多条指令,所述指令适于处理器进行加载,以执行权利要求1至10任一项所述的虚拟资源的处理方法中的步骤。A storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the steps in the method of processing the virtual resource of any one of claims 1 to 10.
PCT/CN2018/119160 2017-12-06 2018-12-04 Method for processing virtual resource, electronic device, and storage medium WO2019109907A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711277646.4 2017-12-06
CN201711277646.4A CN107899237B (en) 2017-12-06 2017-12-06 Control method and relevant device based on touch screen

Publications (1)

Publication Number Publication Date
WO2019109907A1 true WO2019109907A1 (en) 2019-06-13

Family

ID=61854786

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/119160 WO2019109907A1 (en) 2017-12-06 2018-12-04 Method for processing virtual resource, electronic device, and storage medium

Country Status (2)

Country Link
CN (2) CN110215701B (en)
WO (1) WO2019109907A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110215701B (en) * 2017-12-06 2020-10-09 腾讯科技(深圳)有限公司 Control method based on touch screen and related equipment
CN108671542B (en) * 2018-05-18 2021-09-07 网易(杭州)网络有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN108744510A (en) * 2018-05-25 2018-11-06 腾讯科技(深圳)有限公司 Virtual objects display methods, device and storage medium
CN109107155B (en) * 2018-08-08 2019-12-10 腾讯科技(深圳)有限公司 Virtual article adjusting method, device, terminal and storage medium
CN110624246B (en) * 2019-10-25 2023-06-09 网易(杭州)网络有限公司 Virtual resource acquisition method and device, storage medium and electronic equipment
CN111111181A (en) * 2019-12-26 2020-05-08 腾讯科技(深圳)有限公司 Method, device and equipment for setting props in virtual environment and readable storage medium
CN111672123A (en) * 2020-06-10 2020-09-18 腾讯科技(深圳)有限公司 Control method and device of virtual operation object, storage medium and electronic equipment
CN111729295B (en) * 2020-06-12 2024-02-09 网易(杭州)网络有限公司 Information control method and device for racing game and electronic equipment
CN112619146B (en) * 2020-12-30 2024-03-22 完美世界(重庆)互动科技有限公司 Virtual resource allocation method and device, storage medium and electronic device
CN113244611B (en) * 2021-06-03 2024-02-02 网易(杭州)网络有限公司 Virtual article processing method, device, equipment and storage medium
CN113617035A (en) * 2021-08-04 2021-11-09 网易(杭州)网络有限公司 Material transfer method and device, electronic equipment and readable storage medium
CN116832454A (en) * 2022-03-25 2023-10-03 腾讯科技(深圳)有限公司 Virtual prop transferring method, device, terminal, storage medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070129148A1 (en) * 2005-10-14 2007-06-07 Leviathan Entertainment, Llc Method and System for Allocating Resources in a Video Game
CN104394430A (en) * 2014-11-20 2015-03-04 广州华多网络科技有限公司 Resource transmission method based on interactive application and system, service device thereof
CN104901991A (en) * 2014-08-27 2015-09-09 腾讯科技(深圳)有限公司 Methods, devices and system for transferring virtual resource
CN105450689A (en) * 2014-06-23 2016-03-30 香港优克网络技术有限公司 Virtual resource transfer method, device, and system
CN107899237A (en) * 2017-12-06 2018-04-13 腾讯科技(深圳)有限公司 Control method and relevant device based on touch screen

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996376A (en) * 2009-08-20 2011-03-30 任少华 Network virtual article or user account transaction system
JP4910037B2 (en) * 2009-11-27 2012-04-04 株式会社コナミデジタルエンタテインメント GAME DEVICE, GAME CONTROL PROGRAM, AND GAME CONTROL METHOD
CN102663258A (en) * 2012-04-22 2012-09-12 盛绩信息技术(上海)有限公司 Method and system for balancing resources in game world
CN105597315B (en) * 2015-12-17 2019-05-10 网易(杭州)网络有限公司 Virtual objects throw control method and device
CN105677720B (en) * 2015-12-29 2019-04-12 小米科技有限责任公司 Information cuing method and device
CN106789562B (en) * 2016-12-06 2021-09-14 腾讯科技(深圳)有限公司 Virtual article sending method, virtual article receiving method, virtual article sending device, virtual article receiving device and virtual article sending system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070129148A1 (en) * 2005-10-14 2007-06-07 Leviathan Entertainment, Llc Method and System for Allocating Resources in a Video Game
CN105450689A (en) * 2014-06-23 2016-03-30 香港优克网络技术有限公司 Virtual resource transfer method, device, and system
CN104901991A (en) * 2014-08-27 2015-09-09 腾讯科技(深圳)有限公司 Methods, devices and system for transferring virtual resource
CN104394430A (en) * 2014-11-20 2015-03-04 广州华多网络科技有限公司 Resource transmission method based on interactive application and system, service device thereof
CN107899237A (en) * 2017-12-06 2018-04-13 腾讯科技(深圳)有限公司 Control method and relevant device based on touch screen

Also Published As

Publication number Publication date
CN107899237B (en) 2019-05-24
CN110215701B (en) 2020-10-09
CN107899237A (en) 2018-04-13
CN110215701A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
WO2019109907A1 (en) Method for processing virtual resource, electronic device, and storage medium
US11565180B2 (en) Game program, game controlling method, and information processing apparatus
JP6995117B2 (en) Notification methods, related devices, and computer storage media in virtual scenes
WO2018137433A1 (en) Object control method and device for game application, storage medium, and electronic device
WO2018113653A1 (en) Scene switching method based on mobile terminal, and mobile terminal
WO2019174443A1 (en) Information processing method and apparatus, and storage medium and electronic device
CN110538452B (en) Skill control method, skill control device, computing equipment and storage medium
US11093121B2 (en) Game program, computer control method, and information processing apparatus
US11270087B2 (en) Object scanning method based on mobile terminal and mobile terminal
JP7033227B1 (en) Game system, information processing method and program
JP2017104344A (en) Game program
JPWO2020053955A1 (en) Terminal devices, programs, and methods
WO2023160585A1 (en) Information transfer method and apparatus, electronic device, and readable medium
JP5695783B1 (en) System, server device, and program
JP2017192538A (en) Game program, method, and information processor with touch screen
CN111841003B (en) Information processing method and device in game and electronic equipment
CN113680062A (en) Information viewing method and device in game
JP2017192537A (en) Game program, method, and information processor with touch screen
JP2016041238A (en) System, server device, and program
JP7170454B2 (en) System, terminal device and server
JP7274870B2 (en) Program and information processing device
JP6668425B2 (en) Game program, method, and information processing device
JP2022170657A (en) Game system, method, and program
JP6209243B1 (en) Information processing apparatus provided with game program, method, and touch screen
JP2022169866A (en) Game system, method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18886613

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18886613

Country of ref document: EP

Kind code of ref document: A1