Display control method, device and electronic device in game

By adjusting the position and range of the display area of ​​the target container, intuitive feedback prompts are provided, which solves the problem of poor intuitiveness of virtual item transfer feedback prompts in the existing technology, reduces the user's understanding cost, and improves the game experience.

CN113262474BActive Publication Date: 2024-10-18NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110629199.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-04
Publication Date
2024-10-18
Estimated Expiration
2041-06-04

AI Technical Summary

Technical Problem

In existing game technology, the feedback prompt method when virtual items are transferred between containers is not intuitive and is easily restricted by the color style of the interface, which increases the user's understanding cost.

Method used

By responding to the movement operation of virtual items in the graphical user interface, the position and range of the display area of ​​the target container are adjusted to ensure that the display area is closer to the virtual items to provide intuitive feedback prompts and avoid interface color restrictions.

Benefits of technology

It improves the intuitiveness of virtual item movement feedback, reduces the user's cost of understanding the game, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113262474B_ABST
    Figure CN113262474B_ABST
Patent Text Reader

Abstract

The present invention provides a display control method, device and electronic device in a game; wherein the method comprises: in response to a virtual item moving to a target area, determining a second display area of ​​a first storage container; the target area comprises: the first display area of ​​the first storage container or an area within a preset range from the first display area; the second display area is different from the first display area in position and / or area range; at least a part of the second display area is closer to the virtual item than the first display area; and controlling the first storage container to move from the first display area to the second display area. In this method, after the virtual item is moved to the target area, the position and / or area range of the display area of ​​the first storage container is changed to realize feedback prompts for the movement of the virtual item. This feedback prompt method is more intuitive and easy for users to understand. At the same time, it is not limited by the color style of the interface, thereby reducing the cost of understanding the game for users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game technology, and in particular to a display control method, device and electronic equipment in a game. Background Art

[0002] In many game scenes, there are usually containers for placing user items, such as backpacks, safes, equipment areas, warehouses, etc. According to game requirements, users need to transfer virtual items between multiple containers, for example, transferring virtual items from a warehouse to a backpack, from a backpack to an equipment area, etc. When a user controls a virtual item to be transferred from one container to another, the container display area corresponding to the target container needs to give a feedback prompt to remind the user that the virtual item can be placed in the target container.

[0003] In the related art, when a virtual item enters or partially enters the container display area of ​​the target container, the color display parameters of the container display area are usually changed for feedback prompts, for example, the color, brightness and other parameters of the area or the edge of the area are changed. For light-colored interfaces, if these feedback prompts are implemented in light or bright colors, the feedback prompts are not visually obvious and it is difficult to attract the user's attention; if these feedback prompts are implemented in dark colors, it is easy to cause misunderstanding to the user, thinking that the container is disabled. Therefore, the above feedback prompts are less intuitive and are easily restricted by the interface color, thereby increasing the user's understanding cost of the game. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a display control method, device and electronic device in a game to improve the intuitiveness of the feedback prompt method, avoid being limited by the interface color, and at the same time, reduce the user's understanding cost of the game.

[0005] In a first aspect, an embodiment of the present invention provides a display control method in a game, providing a graphical user interface through a terminal device, wherein the graphical user interface includes a virtual item and a first storage container displayed in a first display area; the method includes: responding to a movement control operation for the virtual item, controlling the movement of the virtual item; in response to the virtual item moving to a target area, determining a second display area of ​​the first storage container; wherein the target area includes: the first display area of ​​the first storage container, or an area within a preset range from the first display area; the second display area is different from the first display area in position and / or area range; at least a portion of the second display area is closer to the virtual item than the first display area; and controlling the first storage container to move from the first display area to the second display area.

[0006] The graphical user interface also includes a container display area of ​​a second storage container; the virtual item is pre-placed in the second storage container; and the step of controlling the movement of the virtual item in response to a movement control operation on the virtual item includes: controlling the virtual item to be moved out of the second storage container in response to the movement control operation on the virtual item.

[0007] The step of determining the second display area of ​​the first storage container in response to the virtual item moving to the target area includes: determining the moving direction based on the relative position of the virtual item and the first display area in response to the virtual item moving to the target area; and controlling the first display area to shift along the moving direction to obtain the second display area.

[0008] The step of determining the moving direction based on the relative position of the virtual object and the first display area in response to the virtual object moving to the target area includes: in response to the virtual object moving to the target area, determining a first direction of the virtual object relative to the first display area as the moving direction; or, in response to the virtual object moving to the target area, determining a second direction whose direction difference with the first direction is less than a preset difference as the moving direction; wherein the first direction includes: the direction of the virtual object relative to the first display area.

[0009] The step of determining the moving direction based on the relative position of the virtual object and the first display area in response to the virtual object moving to the target area includes: obtaining the location of the virtual object in response to the virtual object moving to the target area; and determining the moving direction corresponding to the location of the virtual object based on a preset correspondence between the position and the moving direction.

[0010] The step of determining the second display area of ​​the first storage container in response to the virtual item moving to the target area includes: in response to the virtual item moving to the target area, deforming the area range of the first display area to obtain the second display area.

[0011] The step of deforming the area range of the first display area to obtain the second display area in response to the virtual object moving to the target area includes: in response to the virtual object moving to the target area, expanding the area range of the first display area to obtain the second display area.

[0012] The step of expanding the area range of the first display area to obtain the second display area in response to the virtual object moving to the target area includes: determining a sub-area to be enlarged in the first display area based on the relative position of the virtual object and the first display area in response to the virtual object moving to the target area; enlarging the sub-area and determining the processed first display area as the second display area.

[0013] The step of determining the second display area of ​​the first storage container in response to the virtual item moving to the target area includes: determining that the first storage container is available in response to the virtual item moving to the target area; wherein, in the available state, the first storage container has space for placing the virtual item; and determining the second display area of ​​the first storage container.

[0014] The above-mentioned step of controlling the first storage container to move from the first display area to the second display area includes: controlling the first storage container to move from the first display area to the second display area according to a preset moving speed; or controlling the first storage container to move cyclically between the first display area and the second display area according to a preset moving speed.

[0015] In a second aspect, an embodiment of the present invention provides a display control device in a game, which provides a graphical user interface through a terminal device, and the graphical user interface includes virtual items and a first storage container displayed in a first display area; the device includes: a movement control module, which is used to respond to the movement control operation on the virtual item and control the movement of the virtual item; a determination module, which is used to determine the second display area of ​​the first storage container in response to the virtual item moving to the target area; wherein the target area includes: the first display area of ​​the first storage container, or an area within a preset range from the first display area; the second display area is different from the first display area in position and / or area range; at least a part of the second display area is closer to the virtual item than the first display area; and the movement module is used to control the first storage container to move from the first display area to the second display area.

[0016] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the display control method in the above-mentioned game.

[0017] In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the display control method in the above-mentioned game.

[0018] The embodiments of the present invention bring the following beneficial effects:

[0019] The display control method, device and electronic device in the above-mentioned game, in response to the virtual item moving to the target area, determines the second display area of ​​the first storage container; wherein the target area includes: the first display area of ​​the first storage container, or an area within a preset range from the first display area; the second display area is different from the first display area in position and / or area range; at least part of the second display area is closer to the virtual item than the first display area; and the first storage container is controlled to move from the first display area to the second display area. In this method, after the virtual item is moved to the target area, the position and / or area range of the display area of ​​the first storage container is changed to realize feedback prompts for the movement of the virtual item. This feedback prompt method is more intuitive and easy for users to understand. At the same time, it is not limited by the color style of the interface, thereby reducing the cost of understanding the game for users.

[0020] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 An interactive schematic diagram of display control in a game provided by an embodiment of the present invention;

[0024] Figure 2 A flowchart of a display control method in a game provided by an embodiment of the present invention;

[0025] Figure 3 A schematic diagram of another interactive display control in a game provided by an embodiment of the present invention;

[0026] Figure 4 A schematic diagram of another interactive display control in a game provided by an embodiment of the present invention;

[0027] Figure 5 A schematic diagram of another interactive display control in a game provided by an embodiment of the present invention;

[0028] Figure 6 A schematic diagram of another interactive display control in a game provided by an embodiment of the present invention;

[0029] Figure 7 A schematic diagram of another interactive display control in a game provided by an embodiment of the present invention;

[0030] Figure 8 A schematic diagram of another interactive display control in a game provided by an embodiment of the present invention;

[0031] Fig. 9 A schematic diagram of the structure of a display control device in a game provided by an embodiment of the present invention;

[0032] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0034] In relevant game scenes, there are usually containers such as backpacks, safes, equipment areas, warehouses, etc., which are used to hold virtual items owned by users. Users can control the movement of virtual items between backpacks, safes, equipment areas, and warehouses. When a user controls a virtual item to move from one container to another, the container display area corresponding to the target container needs to give a feedback prompt to remind the user that the target container can hold the virtual item. In the related art, when a user controls a virtual item to enter or partially enter the container display area of ​​a target container, the container display area usually has feedback prompts such as edge glow, special color stroke, or area highlighting. For example, see Figure 1 An interactive schematic diagram of display control in a game is shown, where area A is a container display area of ​​a safe. When a user drags a virtual item X to area A, area A will show a feedback prompt with the area being highlighted and outlined in a special color.

[0035] For light-colored interfaces, if light or bright feedback prompts are used, users may not be able to see the feedback prompts clearly due to the light color of the interface. If dark-colored feedback prompts are used, it is easy to mislead users into thinking that the container is a disabled container. The above feedback prompt methods are less intuitive and are easily restricted by the interface color, thereby increasing the cost of users' understanding of the game.

[0036] Based on the above problems, this embodiment provides a display control method, device and electronic device in a game. The technology can be applied to virtual scenes or game scenes where virtual items need to be placed, transferred, managed, etc.

[0037] In one embodiment of the present disclosure, the display control method in the game can be run on a terminal device or a server. The terminal device can be a local terminal device. When the display control method in the game is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0038] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the display control method in the game are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the terminal device for information processing is a cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.

[0039] In an optional embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.

[0040] In a possible implementation, an embodiment of the present invention provides a display control method in a game, providing a graphical user interface through a terminal device, wherein the terminal device may be the local terminal device mentioned above, or may be a client device in the cloud interaction system mentioned above. The above-mentioned graphical user interface may be understood as an operation user interface displayed in a graphical manner, for realizing interaction between the terminal device and the user operating the terminal device; the graphical user interface includes virtual items and a first storage container displayed in a first display area.

[0041] The above-mentioned virtual items can be virtual weapons, virtual medicines or virtual equipment in the game scene; the above-mentioned first storage container can be a virtual warehouse, virtual backpack, virtual safe or other containers set in the game scene, and the first storage container is the container into which the user wants to move the virtual items; when the user performs an opening operation on the first storage container, the first storage container is displayed in the first display area in the above-mentioned graphical user interface. If the capacity of the first storage container is large, more virtual items can be stored in the first storage container, and the placement position of the virtual items can be an item grid or other forms; multiple placement positions can be arranged in sequence or in the form of a list. If the capacity of the first storage container is large and the first display area is limited, then at the same time, only part of the placement positions of the first storage container can be displayed in the first display area; if the capacity of the first storage container is small, all the placement positions of the first storage container can also be displayed in the first display area.

[0042] See also Figure 2 As shown, the display control method in the game includes the following steps:

[0043] Step S202, responding to a movement control operation on a virtual item, controlling the movement of the virtual item.

[0044] The above-mentioned graphical user interface may include a first display area. For example, it only includes a first display area for displaying a warehouse; the graphical user interface may also include multiple first display areas, for example, it includes a first display area for displaying a backpack, a first display area for displaying a safe, and a first display area for displaying a warehouse, etc. The above-mentioned movement control operation for the virtual item may specifically be a drag operation or a touch sliding operation acting on the virtual item. Usually, it is necessary to click on the virtual item first, and move the finger or mouse in the clicked state. At this time, the position of the virtual item changes with the movement of the finger or mouse. For example, in the initial state, the above-mentioned virtual item is located at position 1 in the first display area of ​​the backpack. The user can select the virtual item from position 1 and drag it out from position 1 in the selected state. At this time, the virtual item moves with the user's dragging operation, thereby controlling the movement of the virtual item in the graphical user interface.

[0045] Step S204, in response to the virtual item moving to the target area, determining the second display area of ​​the first storage container; wherein the target area includes: the first display area of ​​the first storage container, or an area within a preset range from the first display area; the second display area is different from the first display area in position and / or area range; at least a portion of the second display area is closer to the virtual item than the first display area.

[0046] The target area may be the first display area of ​​the first storage container, or an area within a preset range from the first display area. For example, when a user wants to drag a virtual item stored in a virtual backpack to a virtual safe, the user may drag the virtual item directly to the first display area of ​​the virtual safe, or may drag the virtual item to the vicinity of the first display area, such as a position close to the edge of the first display area. In actual implementation, when the user controls the virtual item to move to the target area, the first storage container will usually give a feedback prompt, such as changing the position of the first display area, or changing the area range of the first display area, or changing both at the same time. The position and area range of the first display area are used to determine the second display area of ​​the first storage container. The specific settings can be based on actual needs and are not limited here. Part or all of the determined second display area is usually closer to the virtual item than the first display area. It can be understood that the distance between part or all of the second display area and the virtual item is smaller than the distance between the first display area and the virtual item. For example, if feedback is given by changing the position of the first display area, when the user controls the virtual item to move to a position close to the right edge of the first target area, the first display area is usually moved to the right to make the determined second target area closer to the virtual item.

[0047] Step S206, controlling the first storage container to move from the first display area to the second display area.

[0048] In actual implementation, after determining the above-mentioned second display area, the first storage container in the graphical user interface can be controlled to move from the first display area to the second display area; for example, the first storage container can be controlled to move from the first display area to the second display area according to a preset moving speed.

[0049] The display control method in the above game, in response to the virtual item moving to the target area, determines the second display area of ​​the first storage container; wherein the target area includes: the first display area of ​​the first storage container, or an area within a preset range from the first display area; the second display area is different from the first display area in position and / or area range; at least part of the second display area is closer to the virtual item than the first display area; and controls the first storage container to move from the first display area to the second display area. In this method, after the virtual item is moved to the target area, the position and / or area range of the display area of ​​the first storage container is changed to realize feedback prompts for the movement of the virtual item. This feedback prompt method is more intuitive and easy for users to understand. At the same time, it is not limited by the color style of the interface, thereby reducing the cost of understanding the game for users.

[0050] A specific application scenario applicable to this embodiment is described below: the graphical user interface also includes a container display area of ​​a second storage container; the virtual item is pre-placed in the second storage container; and in response to a movement control operation for the virtual item, the virtual item is controlled to be moved out of the second storage container.

[0051] The second storage container can be a virtual warehouse, a virtual backpack, a virtual safe or other container set in the game scene; the virtual items are usually placed in the second storage container in advance. When the user performs an opening operation on the second storage container, the container display area of ​​the second storage container is displayed in the graphical user interface. If the second storage container has a large capacity and the container display area is limited, only part of the placement position of the second storage container can be displayed in the container display area at the same time; if the first storage container has a small capacity, all the placement positions of the second storage container can also be displayed in the container display area. In actual implementation, the user can move the virtual item out of the second storage container by dragging or touch sliding; for example, in the initial state, the virtual item is placed in position 1 in the container display area of ​​the backpack in advance, and the user can select the virtual item from position 1 and drag it out from position 1 in the selected state. At this time, the virtual item moves with the user's dragging operation, and the virtual item can be moved out of the backpack by continuing to drag the virtual item.

[0052] In the above scenario, the user can move the virtual item out of the container in which the virtual item is pre-placed by performing movement control operations on the virtual item according to actual game needs. The operation is simple and convenient, and can enhance the user's gaming experience.

[0053] The specific method of determining the second display area of ​​the first storage container is described below: In response to the virtual item moving to the target area, the moving direction is determined based on the relative position of the virtual item and the first display area; the first display area is controlled to shift along the moving direction to obtain the second display area.

[0054] In actual implementation, after the virtual object is moved to the target area, since the relative position of the virtual object moved to the target area and the first display area is not fixed, for example, the virtual object may be located at the upper right corner or the upper left corner of the first display area, the moving direction of the first display area can be determined according to the relative position, and the second display area can be obtained by controlling the first display area to shift in the moving direction; for example, if the virtual object is located in the upper right corner of the first display area, the determined moving direction may be the upper right corner direction of the first display area, and the first display area is controlled to shift in the upper right corner direction to obtain the second display area.

[0055] To further understand the present embodiment, a specific method for determining the above-mentioned moving direction is described. In response to the virtual item moving to the target area, a first direction of the virtual item relative to the first display area is determined as the moving direction; or, in response to the virtual item moving to the target area, a second direction whose direction difference with the first direction is less than a preset difference is determined as the moving direction; wherein the first direction includes: the direction of the virtual item relative to the first display area.

[0056] The above-mentioned first direction can be determined based on any vertex or center point of the virtual object, and any vertex or center point of the first display area. For example, taking the center point as an example, after moving the virtual object to the target area, the center point of the first display area and the center point of the virtual object can be extracted respectively. The direction from the center point of the first display area to the center point of the virtual object is the above-mentioned first direction, and this direction can be determined as the moving direction.

[0057] As another implementation manner, a second direction whose direction difference with the first direction is less than a preset difference may be determined as the moving direction, wherein the preset difference may be expressed in the form of an angle or the like, and the preset difference may be set according to actual needs, which is not limited herein. For example, continuing to use the above-mentioned center point as an example for explanation, after respectively extracting the center point of the first display area and the center point of the virtual object, a connecting line between the two center points may be obtained by connecting the two center points, and based on the connecting line, an angle between the connecting line and the horizontal direction and an angle between the connecting line and the vertical direction may be determined. For example, the virtual object is located in the upper right corner of the first display area, and an angle between a connecting line between the center point of the virtual object and the center point of the first display area and the horizontal direction is 20 degrees. Assuming that the above-mentioned preset difference is 10 degrees, the above-mentioned second direction may be any direction whose angle with the horizontal direction is between 10 degrees and 30 degrees. Determining the second direction as the moving direction is equivalent to expanding the movable range of the first display area. The method for determining the moving direction is more flexible, which can enhance the user's gaming experience.

[0058] See also Figure 3 An interactive schematic diagram of display control in another game is shown, wherein a first storage container and a second storage container each contain a plurality of item grids, each item grid corresponds to a position in the storage container where a virtual item is placed, and a graphical user interface includes a first storage container displayed in a first display area B1, a container display area A of a second storage container, and a virtual item X is pre-placed in position 1 of the second storage container.

[0059] When the user needs to drag the virtual item X from the container display area A of the second storage container to the first display area B1 of the first storage container, please refer to Figure 4 In another interactive diagram of display control in a game, the user drags the virtual item X from position 1 and moves it to the right edge of the first display area B1 of the first storage container. Assuming that the center point of the first display area B1 of the first storage container is m1, the center point of the virtual item X is n, and the angle between the connecting line obtained by connecting the center point m1 and the center point n and the horizontal direction is α. When any vertex of the virtual item X enters the first display area B1 and the first storage container is in an available state, the direction from the center point m1 to the center point n can be determined as the moving direction. For details, see Figure 5As shown is an interactive schematic diagram of display control in a game, the first display area B1 of the first storage container can be offset as a whole along the direction of the connecting line. In order to make the determined second display area in a more suitable display position, an offset is usually preset. Assuming that the preset offset is 10px, the first display area B1 of the first storage container moves 10px along the direction with an angle α with the horizontal direction to obtain the second display area B2 of the first storage container, wherein the center point of the second display area B2 is m2, and the center point m2 of the second display area B2 is located on the connecting line between the center point m1 of the first display area B1 and the center point n of the virtual item X, and the distance between the center point m2 of the second display area B2 and the center point m1 of the first display area B1 is the above-mentioned offset, that is, 10px.

[0060] When the user stops the dragging or touching operation on the virtual item X, if any vertex of the virtual item X is within the first display area B1, it can be considered that the virtual item X is within the first display area B1, and the virtual item X can be placed in the first display area B1, and the second display area B2 moves back to its original position, that is, moves back to the position of the first display area B1, and the corresponding center point m2 moves back to the position of the center point m1. If the virtual item X is not within the first display area B1, the second display area B2 still moves back to its original position, that is, moves back to the position of the first display area B1.

[0061] In the display control method in the above game, the moving direction can be determined according to the first direction of the virtual object relative to the first display area, or the second direction whose direction difference with the first direction is less than a preset difference can be determined as the moving direction. The method of determining the moving direction is more flexible and diverse. The position of the first display area is changed by the determined moving direction to provide feedback prompts. It is not limited by the interface color and is more intuitive, thereby reducing the user's understanding cost of the game and improving the user's gaming experience.

[0062] The moving direction may also be determined by: in response to the virtual item moving to the target area, obtaining the location of the virtual item; and determining the moving direction corresponding to the location of the virtual item based on a preset correspondence between the location and the moving direction.

[0063] In actual implementation, the correspondence between the position of the virtual item and the moving direction may be preset. For example, after the virtual item is moved to the target area, if the position of the virtual item is on the right side of the first display area, the corresponding moving direction may be that the first display area is offset to the right; if the position of the virtual item is on the left side of the first display area, the corresponding moving direction may be that the first display area is offset to the left; if the position of the virtual item is on the upper side of the first display area, the corresponding moving direction may be that the first display area is offset to the upper side; if the position of the virtual item is on the right side of the first display area, the corresponding moving direction may be that the first display area is offset to the right; the correspondence between the position and the moving direction may be set according to actual needs, which is not limited here; when the virtual item is moved to the target area, the corresponding moving direction may be determined according to the preset correspondence between the position of the virtual item and the moving direction, so that the first display area can be offset along the moving direction.

[0064] See also Figure 6 1 is an interactive schematic diagram of display control in a game, wherein the width of the area range of the first display area B of the first storage container is a, the height is b, the width of the virtual item X is c, and the height is d. The method pre-sets the correspondence between the position of the virtual item after it moves to the target area and the moving direction. Assuming that the moving distance is 10px, if the user needs to drag the virtual item X to the first storage container, when any vertex of the virtual item X enters the first display area B, and the first display area B is in an available state, if the virtual item X is at any position in the first area, it can be considered that the virtual item X enters from the bottom of the first display area B, and the first storage container is in the first display area. The container is offset vertically downward from the first display area B by 10px; when the virtual item X is at any position in the second area, it can be considered that the virtual item X enters from the right of the first storage container, and the first storage container is horizontally offset to the right by 10px from the first display area B; when the virtual item X is at any position in the third area, it can be considered that the virtual item X enters from the top of the first storage container, and the first storage container is vertically offset upward from the first display area B by 10px; when the virtual item X is at any position in the fourth area, it can be considered that the virtual item X enters from the left of the first storage container, and the first storage container is horizontally offset to the left by 10px from the first display area B.

[0065] When the user stops the dragging or touching operation on the virtual item X, if the virtual item X is in the second display area of ​​the first storage container, the virtual item X can be put into the first storage container, and the first storage container is moved from the second display area back to the first display area B; when the user stops the dragging or touching operation on the virtual item X, if the virtual item X is not in the second display area of ​​the first storage container, the first storage container is moved from the second display area back to the first display area B.

[0066] In the display control method in the above game, the correspondence between the position of the virtual item and the moving direction can be pre-set after the virtual item moves to the target area. When the position of the virtual item is obtained, the corresponding moving direction can be determined. The method of determining the moving direction is simpler and faster, which can further enhance the user's gaming experience.

[0067] Another specific method for determining the second display area of ​​the first storage container is described below: In response to the virtual item moving to the target area, the area range of the first display area is deformed to obtain the second display area.

[0068] The above-mentioned deformation processing can specifically be to adjust the size of the area range of the first display area, etc. In actual implementation, when the virtual object moves to the target area, the area range of the first display area can be enlarged or reduced as a whole or in part. By changing the area range of the first display area, the second display area is obtained for feedback prompts. This feedback prompt method is not limited by the interface color and is more intuitive, thereby reducing the user's understanding cost of the game and improving the user's gaming experience.

[0069] Furthermore, when the user drags the virtual item to the target area, the area range of the first display area can be expanded, so that the feedback prompt method is more intuitive, further reducing the user's understanding cost of the game, and improving the user's gaming experience. Specifically, in response to the virtual item moving to the target area, the area range of the first display area is expanded to obtain the second display area. Here, the expansion of the area range of the first display area can be an overall expansion of the area range of the first display area, or it can be a partial expansion of the area range of the first display area. The specific expansion multiple can be set according to actual needs. For example, if the expansion multiple is set to 120%, the area range of the obtained second display area is 120% of the area range of the first display area. For another example, when the virtual item moves to the target area, the area range of the first display area can be expanded as a whole to obtain the second display area.

[0070] See also Figure 7In the interactive schematic diagram of display control in a game shown in the figure, when the user needs to drag the virtual item X from the container display area A of the second storage container to the first storage container, if any vertex of the virtual item X enters the first display area B of the first storage container and the first display area B is in an available state, the first display area B can be enlarged as a whole, and the second display area obtained after the enlargement is the area surrounded by the dotted frame. The second display area obtained by the overall enlargement can be closer to the virtual item, and the feedback prompt method is more obvious.

[0071] Furthermore, when the user drags the virtual item to the target area, the area range of the first display area can be partially enlarged. This feedback prompt method of partial enlargement can improve the intuitiveness of the feedback prompt while minimizing the occlusion of the graphical user interface or the non-enlarged area in the first display area, and can improve the user's gaming experience while reducing the user's understanding cost of the game. Specifically, in response to the virtual item moving to the target area, based on the relative position of the virtual item and the first display area, a sub-area to be enlarged in the first display area is determined; the sub-area is enlarged, and the processed first display area is determined as the second display area.

[0072] The sub-region to be enlarged may be determined according to the relative position of the virtual object and the first display region. For example, after the virtual object moves to the target region, if the position of the virtual object is on the right side of the first display region, a portion of the right region within the right edge of the first display region may be determined as the sub-region to be enlarged in the first display region. The specific distance to be enlarged within the edge line may be preset according to actual needs. For example, if the preset specific distance to be enlarged is 10px, a portion of the right region within the first display region that is 10px away from the right edge may be determined as the sub-region to be enlarged. The magnification of the sub-region may also be preset according to needs. For example, if the preset magnification is 200%, the sub-region is enlarged by 200%. The center point, any vertex or a designated edge of the sub-region may be used as a reference for enlargement. Usually, in order to make the enlarged sub-region closer to the virtual object and more in line with the user's understanding habits, the direction of enlarging the sub-region is usually consistent with the position direction of the virtual object relative to the first display region. That is, if the virtual object is on the right side of the first display region, the determined sub-region may be enlarged to the right with the left edge of the sub-region as a reference.

[0073] See also Figure 8An interactive schematic diagram of display control in a game is shown, wherein the width of the area range of the first display area B of the first storage container is a, the height is b, the width of the virtual item X is c, and the height is d. The method pre-sets the corresponding relationship between the position of the virtual item after it moves to the target area and the moving direction. Assuming that the pre-set specific distance to be enlarged is 10px, and the enlargement ratio is 200%, if the user needs to drag the virtual item X to the first storage container, when any vertex of the virtual item X enters the first display area B of the first storage container, and the first storage container is in an available state, when the virtual item X is at any position in the fifth area, it can be considered that the virtual item X enters from the right of the first display area B, and the sub-area within 10px from the right edge of the first display area B is based on the left edge of the sub-area. When the virtual item X is at any position in the sixth area, it can be considered that the virtual item X enters from the left of the first display area B, and the sub-area within 10px from the left edge of the first display area B is enlarged 200% to the left with the right edge of the sub-area as the reference; when the virtual item X is at any position in the seventh area, it can be considered that the virtual item X enters from the top of the first display area B, and the sub-area within 10px from the upper edge of the first display area B is enlarged 200% upward with the lower edge of the sub-area as the reference; when the virtual item X is at any position in the eighth area, it can be considered that the virtual item X enters from the bottom of the first display area B, and the sub-area within 10px from the lower edge of the first display area B is enlarged 200% downward with the upper edge of the sub-area as the reference, Figure 8 The middle one is an enlarged effect diagram when the virtual item X is at any position in the eighth area and enters the first display area B.

[0074] In the display control method in the above-mentioned game, the user can drag the virtual item to the first display area, and the first display area produces changes in position and / or area range. The feedback prompt method is more intuitive and the reminder is more obvious, which can improve the intimacy between user operations and feedback prompts and strengthen the usability hints. Moreover, in this method, the first display area does not adopt the feedback prompt method of color display parameters, and does not need to add visual resources such as edge glow and special color strokes. Therefore, this feedback prompt method will not be limited by the interface color, and can also more effectively distinguish the feedback prompts of virtual items under different operations. For example, for a warehouse system, it can more effectively distinguish the style feedback of the virtual item controls of the warehouse system under different operations.

[0075] Another specific method for determining the second display area of ​​the first storage container is described below. In response to the virtual item moving to the target area, it is determined that the first storage container is available; wherein, in the available state, the first storage container has space for placing the virtual item; and the second display area of ​​the first storage container is determined. For example, if the position for placing the virtual item in the first storage container is in the form of an item grid, after the virtual item moves to the target area, if there are still free item grids in the first storage container, and the number of free item grids is sufficient to place the virtual item, and the virtual item will not overload the first storage container after being placed in the free item grid, it can be considered that the first storage container has space for placing the virtual item, and it can be determined that the first storage container is available. After determining that the first storage container is available, the second display area of ​​the first storage container is determined. By first determining that the first storage container is available and then determining the second display area of ​​the first storage container, the effectiveness of the display control operation can be guaranteed, thereby improving the user's gaming experience.

[0076] The following describes a specific implementation method for controlling the first storage container to move from the first display area to the second display area. In actual implementation, in order to further improve the intuitiveness of the feedback prompt method and enhance the user's gaming experience, after determining the second display area of ​​the first storage container, the first storage container can be controlled to move from the first display area to the second display area according to a preset moving speed; for example, the first storage container can be controlled to move quickly from the first display area to the second display area, or the first storage container can be controlled to move slowly from the first display area to the second display area. The preset moving speed can be set according to actual needs.

[0077] As another implementation, after determining the second display area of ​​the first storage container, the first storage container can also be controlled to cyclically move between the first display area and the second display area at a preset moving speed. For example, the first storage container can be controlled to move from the first display area to the second display area at a preset moving speed. After the first storage container moves to the second display area, the first storage container can be first displayed in the second display area for a preset time, and then the first storage container can be controlled to move from the second display area to the first display area at the preset moving speed, and then the first storage container can be displayed in the first display area for a preset time. The first storage container moves cyclically in this manner. This dynamic moving feedback prompt method is more intuitive and easier to attract the user's attention, thereby further reducing the user's understanding cost of the game and improving the user's gaming experience.

[0078] Corresponding to the above method embodiment, see Fig. 9A display control device in a game is shown, which provides a graphical user interface through a terminal device, and the graphical user interface includes virtual items and a first storage container displayed in a first display area; the device includes: a movement control module 90, which is used to respond to the movement control operation on the virtual item and control the movement of the virtual item; a determination module 91, which is used to determine the second display area of ​​the first storage container in response to the virtual item moving to the target area; wherein the target area includes: the first display area of ​​the first storage container, or an area within a preset range from the first display area; the second display area is different from the first display area in position and / or area range; at least a part of the second display area is closer to the virtual item than the first display area; and a movement module 92, which is used to control the first storage container to move from the first display area to the second display area.

[0079] The display control device in the above game determines the second display area of ​​the first storage container in response to the virtual item moving to the target area; wherein the target area includes: the first display area of ​​the first storage container, or an area within a preset range from the first display area; the second display area is different from the first display area in position and / or area range; at least part of the second display area is closer to the virtual item than the first display area; and the first storage container is controlled to move from the first display area to the second display area. In the device, after the virtual item is moved to the target area, the second display area is determined by changing the position and / or area range of the first display area to provide feedback prompts. This feedback prompt method is not limited by the interface color and is more intuitive, thereby reducing the user's understanding cost of the game.

[0080] The graphical user interface also includes a container display area of ​​a second storage container; the virtual item is pre-placed in the second storage container; and the movement control module is further used to: respond to a movement control operation on the virtual item and control the virtual item to be moved out of the second storage container.

[0081] The determination module is further configured to: determine a moving direction based on a relative position between the virtual object and the first display area in response to the virtual object moving to the target area; and control the first display area to shift along the moving direction to obtain a second display area.

[0082] The above-mentioned determination module is also used to: in response to the virtual item moving to the target area, determine a first direction of the virtual item relative to the first display area as the moving direction; or, in response to the virtual item moving to the target area, determine a second direction whose direction difference with the first direction is less than a preset difference as the moving direction; wherein the first direction includes: the direction of the virtual item relative to the first display area.

[0083] The determination module is further configured to: obtain the location of the virtual item in response to the virtual item moving to the target area; and determine the moving direction corresponding to the location of the virtual item based on a preset corresponding relationship between the location and the moving direction.

[0084] The determination module is further configured to: in response to the virtual object moving to the target area, perform deformation processing on the area range of the first display area to obtain the second display area.

[0085] The determination module is further configured to: in response to the virtual item moving to the target area, expand the area range of the first display area to obtain the second display area.

[0086] The determination module is further configured to: in response to the virtual object moving to the target area, determine the sub-area to be enlarged in the first display area based on the relative position of the virtual object and the first display area; enlarge the sub-area, and determine the processed first display area as the second display area.

[0087] The determination module is further used to: determine that the first storage container is available in response to the virtual item moving to the target area; wherein, in the available state, the first storage container has space for placing the virtual item; and determine a second display area of ​​the first storage container.

[0088] The moving module is also used to: control the first storage container to move from the first display area to the second display area at a preset moving speed; or control the first storage container to cyclically move between the first display area and the second display area at a preset moving speed.

[0089] The display control device in the above-mentioned game has the same implementation principle and technical effects as those of the display control method embodiment in the above-mentioned game. For the sake of brief description, for parts not mentioned in the embodiment of the display control device in the game, reference may be made to the corresponding contents in the embodiment of the display control method in the above-mentioned game.

[0090] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the display control method in the above game. The electronic device can be a server or a terminal device.

[0091] See also Fig.10 As shown, the electronic device includes a processor 100 and a memory 101, wherein the memory 101 stores machine executable instructions that can be executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the display control method in the above-mentioned game.

[0092] Further, Fig.10The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .

[0093] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0094] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.

[0095] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the display control method in the above game.

[0096] The computer program product of the display control method, device, electronic device and storage medium in the game provided by the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0097] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0098] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0099] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0100] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0101] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A display control method in a game, characterized in that: A graphical user interface is provided through a terminal device, wherein the graphical user interface includes a virtual item and a first storage container displayed in a first display area; the method includes: In response to a movement control operation on the virtual item, controlling the movement of the virtual item; In response to the virtual item moving to the target area, determining a second display area of ​​the first storage container; wherein the target area includes: the first display area of ​​the first storage container, or an area within a preset range from the first display area; the second display area is different from the first display area in position and / or area range; the distance between part or all of the second display area and the virtual item is smaller than the distance between the first display area and the virtual item; The first storage container is controlled to move from the first display area to the second display area, so that the first storage container is close to the virtual item.

2. The method according to claim 1, characterized in that The graphical user interface further includes a container display area of ​​a second storage container; the virtual item is pre-placed in the second storage container; The step of controlling the movement of the virtual item in response to the movement control operation on the virtual item includes: controlling the virtual item to be moved out of the second storage container in response to the movement control operation on the virtual item.

3. The method according to claim 1, characterized in that In response to the virtual item moving to the target area, the step of determining a second display area of ​​the first storage container includes: In response to the virtual item moving to the target area, determining a moving direction based on a relative position of the virtual item and the first display area; The first display area is controlled to shift along the moving direction to obtain a second display area.

4. The method according to claim 3, characterized in that In response to the virtual item moving to the target area, the step of determining the moving direction based on the relative position of the virtual item and the first display area includes: In response to the virtual item moving to the target area, determining a first direction of the virtual item relative to the first display area as a moving direction; Alternatively, in response to the virtual item moving to the target area, a second direction having a direction difference with the first direction less than a preset difference is determined as the moving direction; wherein the first direction includes: the direction of the virtual item relative to the first display area.

5. The method according to claim 3, characterized in that: In response to the virtual item moving to the target area, the step of determining the moving direction based on the relative position of the virtual item and the first display area includes: In response to the virtual item moving to the target area, obtaining a location of the virtual item; Based on the preset correspondence between the position and the moving direction, the moving direction corresponding to the position of the virtual object is determined.

6. The method according to claim 1, characterized in that In response to the virtual item moving to the target area, the step of determining a second display area of ​​the first storage container includes: In response to the virtual item moving to the target area, the area range of the first display area is deformed to obtain a second display area.

7. The method according to claim 6, characterized in that In response to the virtual item moving to the target area, the step of deforming the area range of the first display area to obtain the second display area includes: In response to the virtual item moving to the target area, the area range of the first display area is expanded to obtain a second display area.

8. The method according to claim 7, characterized in that In response to the virtual item moving to the target area, the step of expanding the area range of the first display area to obtain a second display area includes: In response to the virtual item moving to the target area, determining a sub-area to be enlarged in the first display area based on a relative position of the virtual item and the first display area; The sub-region is enlarged, and the processed first display region is determined as the second display region.

9. The method according to claim 1, characterized in that: In response to the virtual item moving to the target area, the step of determining a second display area of ​​the first storage container includes: In response to the virtual item moving to the target area, determining that the first storage container is available; wherein, in an available state, the first storage container has space for placing the virtual item; A second display area of ​​the first storage container is determined.

10. The method according to claim 1, characterized in that The step of controlling the first storage container to move from the first display area to the second display area includes: The first storage container is controlled to move from the first display area to the second display area at a preset moving speed; or, the first storage container is controlled to move cyclically between the first display area and the second display area at a preset moving speed.

11. A display control device in a game, characterized in that: A graphical user interface is provided through a terminal device, wherein the graphical user interface includes a virtual item and a first storage container displayed in a first display area; the apparatus includes: A movement control module, configured to respond to a movement control operation on the virtual item and control the movement of the virtual item; a determination module, configured to determine a second display area of ​​the first storage container in response to the virtual item moving to a target area; wherein the target area includes: the first display area of ​​the first storage container, or an area within a preset range from the first display area; the second display area is different from the first display area in position and / or area range; the distance between part or all of the second display area and the virtual item is smaller than the distance between the first display area and the virtual item; The moving module is used to control the first storage container to move from the first display area to the second display area, so that the first storage container is close to the virtual item.

12. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the display control method in the game described in any one of claims 1-10.

13. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the display control method in the game described in any one of claims 1-10.

Citation Information

Patent Citations

  • Virtual prop placement method and device, storage medium and electronic equipment

    CN111701237A