CN-122006239-A - Prop processing method, prop processing device, storage medium, electronic device, and program product
Abstract
The application discloses a prop processing method in a game, which comprises the steps of displaying a first game prop and a first container to be picked up, responding to a first operation for the first game prop, displaying a second container on a graphical user interface, configuring the game prop stored in the first container with a selectable state, responding to the selection operation for the game prop stored in the first container, controlling to switch the display format of the second container according to the storage space occupied by the selected second game prop so as to prompt whether the residual storage space of the first container is enough to accommodate the first game prop or not through the display format of the second container, and storing the first game prop to the first container and moving the second game prop out of the first container in response to a prop pickup instruction when the residual storage space of the first container is enough to accommodate the first game prop. Therefore, the operation steps of prop replacement are simplified, the operation time is shortened, and the prop management efficiency is improved.
Inventors
- HE JUNLE
Assignees
- 广州博冠信息科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260306
Claims (20)
- 1. A prop handling method in a game, wherein a graphical user interface is provided by a terminal device, the graphical user interface displaying at least part of a virtual scene, the method comprising: displaying a first game prop to be picked up and a first container, wherein the first container is configured with a corresponding storage space for storing the game prop, and the first game prop is configured to occupy the first storage space; Displaying a second container on the graphical user interface in response to a first operation on the first play object and configuring play objects stored in the first container with selectable states; Responding to the selection operation of the game props stored in the first container, and controlling to switch the display format of the second container according to the storage space occupied by the selected second game props so as to prompt whether the residual storage space of the first container is enough to accommodate the first game props through the display format of the second container; And when the residual storage space of the first container is enough to accommodate the first game prop, responding to a prop picking instruction, storing the first game prop into the first container, and removing the second game prop from the first container.
- 2. The method of claim 1, wherein the first play object is stored in a third container, the displaying the first play object and the first container to be picked up, comprising: displaying the first container and the first play object to be picked up in the third container.
- 3. The method of claim 2, wherein the third container is located in the virtual scene, the storing the first game play object to the first container in response to an object pickup instruction when the remaining storage space of the first container is sufficient to hold the first game play object, and the moving the second game play object out of the first container comprises: Storing the first play object in the third container to the first container and the second play object in the first container to the third container in response to the object pick-up instruction when the remaining storage space of the first container is sufficient to accommodate the first play object, or, Storing the first play object in the third container to the first container in response to the object pickup instruction and moving the second play object in the first container from the first container into the virtual scene when the remaining storage space of the first container is sufficient to accommodate the first play object.
- 4. The method of claim 2, wherein the displaying a second container on the graphical user interface in response to a first operation for the first play object comprises: In response to a first operation on the first play object in the third container, controlling display of the second container at a location on the graphical user interface outside of the first container.
- 5. The method of claim 4, wherein the controlling the display of the second container at a location on the graphical user interface outside of the first container comprises: Controlling the position of the first game prop in the third container to display the second container, or, Controlling to display the second container at a position outside the first container and the third container.
- 6. The method according to claim 1, wherein the method further comprises: And responding to the selection operation of the game props stored in the first container, controlling to display the prop identification corresponding to the selected second game props in the second container, and/or controlling to configure the storage space occupied by the selected second game props in the first container into a selected state.
- 7. The method of claim 1, wherein the second container is configured with a corresponding storage space having a space size at least as large as the space size of the first storage space.
- 8. The method of claim 1, wherein the first container includes a space occupied and a free space, and wherein the remaining space of the first container is a sum of the space occupied by the selected second play object and the free space.
- 9. The method of claim 8, wherein controlling switching the display format of the second container to indicate whether the remaining storage space of the first container is sufficient to accommodate the first play object via the display format of the second container based on the storage space occupied by the selected second play object comprises: Determining the residual storage space of the first container according to the storage space occupied by the selected second game prop and the free storage space; controlling the second container to display in a first display format under the condition that the residual storage space is smaller than the first storage space; Controlling the second container to display in a second display format under the condition that the remaining storage space is larger than or equal to the first storage space and the storage space occupied by the selected second game prop is smaller than the first storage space; And controlling the second container to display in a third display format under the condition that the residual storage space is larger than the first storage space and the storage space occupied by the selected second game prop is larger than or equal to the first storage space.
- 10. The method according to claim 1, wherein the method further comprises: associating the second container with a display target control when the remaining storage space of the first container is sufficient to accommodate the first play object; and responding to the triggering operation for the target control, and controlling to generate the prop pickup instruction.
- 11. The method according to claim 10, wherein the method further comprises: and when the residual storage space of the first container is enough to accommodate the first game prop, controlling to generate the prop pickup instruction in response to a dragging operation of dragging the second container to the first container.
- 12. The method of claim 11, wherein the controlling the generation of the prop pick-up instruction in response to a drag operation of the second container to the first container comprises: in response to a drag operation of the second container to the first container, a target storage space is determined in the first container, and the prop pick-up instruction associated with the target storage space is controlled to be generated.
- 13. The method of claim 12, wherein the storing the first play object to the first container and the removing the second play object from the first container in response to the object pick instruction comprises: And in response to the prop pickup instruction, storing the first game prop to the target storage space in the first container and removing the second game prop from the first container.
- 14. The method of claim 13, wherein prior to said storing the first play object to the target storage space in the first container, the method further comprises: And in the first container, controlling the game props stored in the target storage space to be transferred so as to enable the target storage space to be switched from the occupied storage space to the free storage space.
- 15. The method of claim 11, wherein controlling generation of the prop pick-up instruction in response to a drag operation of the second container to the first container when the remaining storage space of the first container is sufficient to hold the first play prop comprises: When the residual storage space of the first container is enough to accommodate the first game prop, responding to the dragging operation of the second container, and controlling the second container to be switched into a prop mark corresponding to the first game prop; And responding to the end of the dragging operation in the first container, controlling to cancel display of the prop identifier corresponding to the first game prop, and generating the prop picking instruction.
- 16. The method of claim 15, wherein before the drag operation ends with the first container, the method further comprises: And displaying a preview image corresponding to the first game prop in the first container, wherein the preview image is used for indicating the corresponding occupied storage space in the first container when the first game prop is stored in the first container.
- 17. A prop handling device in a game, wherein a graphical user interface is provided by a terminal device, the graphical user interface displaying at least a portion of a virtual scene, the device comprising: The first display module is used for displaying a first game prop to be picked up and a first container, wherein the first container is configured with a corresponding storage space, the storage space is used for storing the game prop, and the first game prop is configured to occupy the first storage space; a container display module for displaying a second container on the graphical user interface in response to a first operation on the first play object and configuring play objects stored in the first container with selectable states; The selection module is used for responding to the selection operation of the game props stored in the first container, and controlling to switch the display format of the second container according to the storage space occupied by the selected second game props so as to prompt whether the residual storage space of the first container is enough to accommodate the first game props or not through the display format of the second container; And the storage module is used for responding to the prop picking instruction when the residual storage space of the first container is enough to accommodate the first game prop, storing the first game prop into the first container and moving the second game prop out of the first container.
- 18. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded by a processor for performing the prop handling method in a game according to any of claims 1-16.
- 19. An electronic device comprising a processor and a memory, the memory having stored therein a computer program, the processor being operable to perform the prop handling method in a game of any of claims 1-16 by invoking the computer program stored in the memory.
- 20. A computer program product comprising computer instructions which, when executed by a processor, implement the prop handling method in a game as claimed in any one of claims 1 to 16.
Description
Prop processing method, prop processing device, storage medium, electronic device, and program product Technical Field The present application relates to the field of game technology, and in particular, to a method for processing props in a game, a device for processing props in a game, a computer readable storage medium, an electronic device, and a computer program product. Background In the game process, the management of props is an important part of the game, and players need to frequently access, replace and the like the props. However, when a player intends to store a large-size new prop in a storage container in which other props are stored, it is generally necessary to manually move or discard part of props in the storage container one by one to obtain enough space to store the new props, which is cumbersome and inefficient in operation flow and affects the game experience of the player. Disclosure of Invention The embodiment of the application provides a prop processing method in a game, a prop processing device in the game, a computer readable storage medium, electronic equipment and a computer program product, wherein the storage space state is fed back by utilizing the display format of a second container through display, so that the difficulty of space judgment is reduced, when the space meets the condition, the storage of new props and the removal of old props can be completed through prop picking instructions, the operation steps of prop storage are effectively simplified, the operation time of players is shortened, and the prop management efficiency is improved. In one aspect, an embodiment of the present application provides a method for processing props in a game, where a graphical user interface is provided by a terminal device, where the graphical user interface displays at least part of a virtual scene, and the method includes: displaying a first game prop to be picked up and a first container, wherein the first container is configured with a corresponding storage space for storing the game prop, and the first game prop is configured to occupy the first storage space; Displaying a second container on the graphical user interface in response to a first operation on the first play object and configuring play objects stored in the first container with selectable states; Responding to the selection operation of the game props stored in the first container, and controlling to switch the display format of the second container according to the storage space occupied by the selected second game props so as to prompt whether the residual storage space of the first container is enough to accommodate the first game props through the display format of the second container; And when the residual storage space of the first container is enough to accommodate the first game prop, responding to a prop picking instruction, storing the first game prop into the first container, and removing the second game prop from the first container. In another aspect, an embodiment of the present application provides a prop processing apparatus in a game, where a graphical user interface is provided by a terminal device, where the graphical user interface displays at least part of a virtual scene, and the apparatus includes: The first display module is used for displaying a first game prop to be picked up and a first container, wherein the first container is configured with a corresponding storage space, the storage space is used for storing the game prop, and the first game prop is configured to occupy the first storage space; a container display module for displaying a second container on the graphical user interface in response to a first operation on the first play object and configuring play objects stored in the first container with selectable states; The selection module is used for responding to the selection operation of the game props stored in the first container, and controlling to switch the display format of the second container according to the storage space occupied by the selected second game props so as to prompt whether the residual storage space of the first container is enough to accommodate the first game props or not through the display format of the second container; And the storage module is used for responding to the prop picking instruction when the residual storage space of the first container is enough to accommodate the first game prop, storing the first game prop into the first container and moving the second game prop out of the first container. In another aspect, embodiments of the present application provide a computer readable storage medium storing a computer program adapted to be loaded by a processor to perform the prop processing method in a game according to any of the embodiments described above. In another aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores a compu