A method, apparatus, computer device, and storage medium for switching game items.

By designing a quick operation bar in the game interface, which displays candidate items within the convenient gesture operation range and responds to player operations, the problem of item switching occupying a large area of ​​the game interface is solved, improving the player's operating efficiency and experience.

CN115337641BActive Publication Date: 2025-10-28NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210937551.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-05
Publication Date
2025-10-28
Estimated Expiration
2042-08-05

AI Technical Summary

Technical Problem

The existing item switching controls occupy a large area of ​​the game interface during gameplay, affecting players' judgment of real-time combat and reducing the gaming experience.

Method used

By designing a quick operation bar in the game interface, candidate game items are displayed within the convenient gesture operation range of the item display area, and quick switching is achieved in response to the player's touch operation, including obtaining candidate items from the item storage area or virtual store, and supporting operations such as swiping and long press.

Benefits of technology

It improves the gaming experience for players, simplifies the item switching process, reduces obstruction of the game screen, and enhances the convenience and efficiency of real-time operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115337641B_ABST
    Figure CN115337641B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, computer device, and computer-readable storage medium for switching game items. This solution designs a quick operation bar in the game, displaying the game item to be replaced. Based on the player's touch operation on the item display bar on the game interface, the quick operation bar is displayed within a convenient gesture operation range of the item display bar. Then, based on the player's switching operation between the target item display bar and the target replacement item, the game item equipped in the target item display bar is quickly switched to the target replacement item, facilitating item switching operations during gameplay and thus improving the player's gaming experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to a method, apparatus, computer device, and computer-readable storage medium for switching game items. Background Technology

[0002] With the development of the internet, a large number of different types of games have emerged to meet users' daily entertainment needs.

[0003] In some dress-up games, players can switch between items they hold during gameplay. Current dress-up mechanics involve opening an item window and selecting the desired item. However, displaying this item window during gameplay occupies a large portion of the game screen, potentially hindering the player's judgment in real-time combat and negatively impacting the overall gaming experience. Summary of the Invention

[0004] This application provides a method, apparatus, computer device, and computer-readable storage medium for switching game items, which can improve the gaming experience for game players.

[0005] This application provides a method for switching game items, including:

[0006] The graphical user interface includes a game screen and an item display area. The item display area includes multiple item display slots, which are used to display the game items equipped by the current player character. Each item display slot corresponds to a game item of one type.

[0007] In response to a touch operation on a target item display slot in the item display area, candidate game items are displayed based on the position of the target item display slot within the convenient gesture operation range of the target item display slot. The candidate game items include game items of the corresponding item type that the current player character can obtain.

[0008] In response to a touch operation on a target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display area.

[0009] Accordingly, embodiments of this application also provide a device for switching game items, including:

[0010] The first display unit is used to display a graphical user interface, which includes a game screen and an item display area. The item display area includes multiple item display slots, which are used to display the game items equipped by the current player character. Each item display slot corresponds to a game item of one type.

[0011] The second display unit is used to respond to a touch operation on a target item display slot in the item display area, and to display candidate game items based on the position of the target item display slot within the convenient gesture operation range of the target item display slot. The candidate game items include game items that the current player character can obtain and that belong to the item type corresponding to the target item display slot.

[0012] The display unit is used to display the target candidate game item in the target item display column in response to a touch operation on the target candidate game item among the candidate game items.

[0013] In some embodiments, the second display unit includes:

[0014] The first acquisition subunit is used to acquire the position of the target prop display bar in the graphical user interface;

[0015] The first determining subunit is used to determine the convenient gesture operation range of the target prop display position in the graphical user interface according to the position.

[0016] The display subunit is used to display the candidate game items within the range of the convenient gesture operation.

[0017] In some embodiments, the first determining subunit is specifically used for:

[0018] Obtain information on the player's actions and behaviors within a historical timeframe.

[0019] The current player's gesture operation range is determined based on the operation behavior information;

[0020] The convenient gesture operation range of the target prop display position is determined based on the location and the gesture operation range.

[0021] In some embodiments, the second display unit further includes:

[0022] The second acquisition subunit is used to acquire game items of the same type as the target item display slot from the item storage area of ​​the current player character, thereby obtaining the candidate game items.

[0023] In some embodiments, the second display unit further includes:

[0024] The second determining subunit is used to determine, if the current player character's item storage area does not contain a game item of the same type as the target item display slot, a purchasable game item of the same type as the target item display slot from the virtual item shop, and obtain the candidate game item.

[0025] In some embodiments, the apparatus further includes:

[0026] The third display unit is configured to highlight the target candidate game item in the graphical user interface in response to a long press operation on the target candidate game item.

[0027] In some embodiments, the display unit includes:

[0028] The first display subunit is used to switch the target game item to the target candidate game item and display the target candidate game item in the target item display slot if the target item display slot is already equipped with the target game item.

[0029] The second display subunit is used to directly equip the target candidate game item in the target item display slot if the target item display slot is not equipped with a game item, and to display the target candidate game item in the target item display slot.

[0030] In some embodiments, the display unit includes:

[0031] The third display subunit is used to display the target candidate game item in the target item display column and to display the target game item within the range of the convenient gesture operation.

[0032] In some embodiments, the second display unit includes:

[0033] The first response subunit is used to respond to a sliding operation between the target item display area and the target candidate game item.

[0034] In some embodiments, the second display unit includes:

[0035] The second response subunit is used to respond to a click operation on the target candidate game item among the candidate game items.

[0036] In some embodiments, the display unit includes:

[0037] The fourth display subunit is used to switch the third number of target candidate game items with the first number of game items equipped in the target item display slot in response to the touch operation of the target candidate game items, and to display the target candidate game items, the third number and the second number in the target item display slot, and to display the switched game items and the first number within the convenient gesture operation range.

[0038] In some embodiments, the device further includes:

[0039] A hiding unit is configured to, in response to a touch operation on a target candidate game item among the candidate game items, display the target candidate game item in the target item display area and hide the candidate game item in the graphical user interface.

[0040] In some embodiments, the device further includes:

[0041] The fourth display unit is used to respond to a touch operation on a target item display slot in the item display area, and to display a game item repair icon based on the position of the target item display slot within the convenient gesture operation range of the target item display slot.

[0042] A repair unit is configured to, in response to a touch operation between the target item display area and the game item repair icon, repair the game item equipped in the target item display area and display the item repair time on the repair icon.

[0043] In some embodiments, the device further includes:

[0044] An operation unit is configured to prevent user operation of the designated item display slot when the game item equipped in the designated item display slot is in a cooldown period.

[0045] Accordingly, this application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes a method for switching game items provided in any of the embodiments of this application.

[0046] Accordingly, embodiments of this application also provide a computer-readable storage medium storing multiple instructions adapted for loading by a processor to execute the above-described method for switching game items.

[0047] This application embodiment designs a quick operation bar in the game, which displays the game item to be replaced. Based on the player's touch operation on the item display bar on the game interface, the quick operation bar is displayed within the convenient gesture operation range of the item display bar. Then, based on the player's switching operation between the target item display bar and the target replacement item, the game item equipped in the target item display bar is quickly switched to the target replacement item, which facilitates the player's item switching operation during the game and thus improves the player's game experience. Attached Figure Description

[0048] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 This is a scene diagram of a game item switching system provided in an embodiment of this application.

[0050] Figure 2 This is a flowchart illustrating a method for switching game items provided in an embodiment of this application.

[0051] Figure 3 This is a schematic diagram illustrating an application scenario of a game item switching method provided in an embodiment of this application.

[0052] Figure 4 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0053] Figure 5 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0054] Figure 6 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0055] Figure 7 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0056] Figure 8 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0057] Figure 9 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0058] Figure 10 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0059] Figure 11 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0060] Figure 12 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0061] Figure 13This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0062] Figure 14 This is a flowchart illustrating another method for switching game items provided in an embodiment of this application.

[0063] Figure 15 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0064] Figure 16 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0065] Figure 17 This is a schematic diagram illustrating an application scenario of another method for switching game items provided in this application embodiment.

[0066] Figure 18 This is a structural block diagram of a game item switching device provided in an embodiment of this application.

[0067] Figure 19 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0068] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0069] This application provides a method, apparatus, computer-readable storage medium, and computer device for switching game items. Specifically, the method for switching game items in this application can be executed by a computer device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, touchscreen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0070] For example, when the method for switching game items is executed on the terminal, the terminal device stores the game application and uses it to display virtual scenes in the game screen. The terminal device is used to interact with the user through a graphical user interface, such as downloading, installing, and running the game application. The terminal device can provide the graphical user interface to the user in various ways, such as rendering it on the terminal device's display screen or presenting the graphical user interface through holographic projection. For example, the terminal device can include a touch screen and a processor. The touch screen is used to present the graphical user interface and receive operation commands generated by the user interacting with the graphical user interface, which includes game scenes. The processor is used to run the game, generate the graphical user interface, respond to operation commands, and control the display of the graphical user interface on the touch screen.

[0071] For example, when the method for switching game items runs on a server, it can be considered cloud gaming. Cloud gaming refers to a gaming method based on cloud computing. In cloud gaming, the game application and the game screen presentation are separate. The storage and execution of the game item switching method are completed on the cloud gaming server. The game screen presentation is completed on the cloud gaming client, which is mainly used for receiving and sending game data and displaying the game screen. For example, the cloud gaming client can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, PDA, or personal digital assistant. However, the terminal device for processing game data is the cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the cloud gaming client via the network, and finally, the cloud gaming client decodes and outputs the game screen.

[0072] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating a game item switching system provided in an embodiment of this application. The system may include at least one terminal, at least one server, at least one database, and a network. The user's terminal can connect to servers of different games via the network. The terminal is any device with computing hardware capable of supporting and executing software products corresponding to the game. Additionally, the terminal has one or more multi-touch screens for sensing and obtaining input from touch or swipe operations performed by the user at multiple points on one or more touch displays. Furthermore, when the system includes multiple terminals, multiple servers, and multiple networks, different terminals can connect to each other through different networks and different servers. The network can be a wireless network or a wired network, such as a wireless local area network (WLAN), local area network (LAN), cellular network, 2G network, 3G network, 4G network, 5G network, etc. Furthermore, different terminals 1000 can also connect to other terminals or servers using their own Bluetooth networks or hotspot networks. For example, multiple users can connect online through different terminals via appropriate networks and synchronize with each other to support multiplayer games. In addition, the system can include multiple databases coupled to different servers, and can continuously store information related to the game environment in the databases as different users play multiplayer games online.

[0073] This application provides a method for switching game items, which can be executed by a terminal or a server. This application example illustrates the method for switching game items using a terminal. The terminal includes a touchscreen display and a processor. The touchscreen display is used to present a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. When the user operates the GUI through the touchscreen display, the GUI can control local content on the terminal in response to the received operation commands, or it can control content on a peer server in response to the received operation commands. For example, the operation commands generated by the user interacting with the GUI may include commands to launch a game application. The processor is configured to launch the game application after receiving the user's command to launch the game application. Furthermore, the processor is configured to render and draw the GUI associated with the game on the touchscreen display. The touchscreen display is a multi-touch sensitive screen capable of sensing touch or swipe operations performed simultaneously on multiple points on the screen. When the user performs touch operations on the GUI using their finger, the GUI, upon detecting the touch operation, controls different virtual objects in the game to perform actions corresponding to the touch operation. For example, the game can be any of the following: casual game, action game, role-playing game, strategy game, sports game, puzzle game, etc. The game may include a virtual environment. Furthermore, the virtual environment may include one or more virtual objects, such as virtual characters, controlled by the user (or player). Additionally, the virtual environment may include one or more obstacles, such as railings, ditches, walls, etc., to restrict the movement of virtual objects, for example, limiting the movement of one or more objects to a specific area within the virtual environment. Optionally, the virtual environment may also include one or more elements, such as skills, scores, character health status, energy, etc., to provide assistance to the player, offer virtual services, increase scores related to player performance, etc. Furthermore, the graphical user interface may present one or more indicators to provide guidance information to the player. For example, the game may include virtual objects controlled by the player and one or more other virtual objects (such as enemy characters). In one embodiment, one or more other virtual objects are controlled by other players in the game. For example, one or more other virtual objects may be computer-controlled, such as robots using artificial intelligence (AI) algorithms, enabling a human-computer interaction mode. For example, the virtual objects possess various skills or abilities that the player uses to achieve objectives. For example, virtual objects possess one or more weapons, items, tools, etc., that can be used to eliminate other objects in the game. Such skills or abilities can be activated by the player using one of several preset touch operations on the terminal's touchscreen display. The processor can be configured to respond to the operation commands generated by the user's touch operations to display the corresponding game screen.

[0074] It should be noted that Figure 1 The schematic diagram of the game item switching system shown is merely an example. The image processing system and scenario described in this application embodiment are for the purpose of more clearly illustrating the technical solutions of this application embodiment and do not constitute a limitation on the technical solutions provided in this application embodiment. As those skilled in the art will know, with the evolution of game item switching systems and the emergence of new business scenarios, the technical solutions provided in this application embodiment are also applicable to similar technical problems.

[0075] To address the aforementioned problems, this application provides a first method, apparatus, computer device, and computer-readable storage medium for switching game items, which can improve the gaming experience for players. These will be described in detail below. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0076] This application provides a method for switching game items. This method can be executed by a terminal or a server. This application uses the example of a game item switching method being executed by a terminal to illustrate the method.

[0077] Please see Figure 2 , Figure 2 This is a flowchart illustrating a method for switching game items according to an embodiment of this application. The specific process of this method for switching game items can be as follows:

[0078] 101. Display the graphical user interface.

[0079] In this embodiment, a graphical user interface (GUI) is displayed on a terminal device. The GUI includes a game screen of the target game and an item display area. The game screen includes at least a portion of the game scene of the target game. The item display area includes multiple item display slots, which display game items equipped by the current player character in the current game match of the target game. Each item display slot can correspond to a game item of one type. The game items equipped in the item display slots can be used by the current player character in the current game match.

[0080] For example, please see Figure 3 , Figure 3 This is a schematic diagram illustrating an application scenario for another method of switching game items provided in an embodiment of this application. Figure 3 The graphical user interface shown displays the game screen of the target game and an item display area. The item display area includes multiple item display slots, some of which contain game items. The types of game items displayed in different item display slots can be different.

[0081] 102. In response to a touch operation on a target item display slot in the item display area, display candidate game items within the convenient gesture operation range of the target item display slot based on the position of the target item display slot.

[0082] Among them, the candidate game items include game items that the current player character can obtain and that belong to the item type corresponding to the target item display slot.

[0083] In the embodiments of this application, touch operations include, but are not limited to, click operations, press operations, and swipe operations.

[0084] For example, if the touch operation can be a long press operation, then the touch operation on the target item display slot in the item display area can be a long press operation on the target item display slot.

[0085] In some embodiments, to facilitate player operation, the step "displaying candidate game items within the convenient gesture operation range of the target item display slot based on the position of the target item display slot" may include the following operations:

[0086] Find the location of the target item in the graphical user interface.

[0087] The convenient gesture operation range of the target prop display area is determined based on its location in the graphical user interface;

[0088] Display candidate game items within the range of convenient gesture controls.

[0089] The convenient gesture operation range refers to the range determined by taking the position of the target prop display area in the graphical user interface as the center point and the preset distance between the center point and the target prop display area.

[0090] In the embodiments of this application, gesture operations can include at least touch operations on the graphical user interface, such as clicking, long pressing, swiping, single-touch-point swiping, or multi-touch-point swiping.

[0091] An exemplary definition of a touch point in this field is as follows:

[0092] In one optional implementation, in screen recognition mode, the touch points acting on the graphical user interface can be controlled by the contact points between a finger, stylus, or any touch medium and the screen of the first terminal device displaying the graphical user interface. The current position of the touch point can be arbitrarily controlled by the player's touch operation on the graphical user interface, and the current position of the touch point can be displayed in the upper left, upper right, or other positions in the graphical user interface; this exemplary embodiment is not limited thereto.

[0093] In some embodiments, to facilitate gamers switching between game items, the step "determine the convenient gesture operation range of the target item display slot in the graphical user interface based on its location" may include the following operations:

[0094] Obtain information on the player's actions and behaviors within a historical timeframe.

[0095] The current player's gesture range is determined based on their action information;

[0096] Determine the convenient gesture operation range for the target item display slot based on its location and gesture operation range.

[0097] The operation behavior information includes the target finger that the current player uses most frequently during game operations within a historical period, and the longest operation distance of that target finger in the graphical user interface when the current player holds the terminal.

[0098] Specifically, the preset distance is determined based on the longest possible operating distance of the current player's target finger on the graphical user interface. For example, if the longest operating distance is 3 centimeters, then the preset distance is set to 3 centimeters.

[0099] Furthermore, based on the position of the target item display area in the graphical user interface and the preset distance, the convenient gesture operation range of the target item display area is determined from the graphical user interface.

[0100] For example, please see Figure 4 , Figure 4 This is a schematic diagram illustrating an application scenario for another method of switching game items provided in an embodiment of this application. Figure 4 In the graphical user interface shown, when a player's touch operation on the target item display area is detected, the convenient gesture operation range of the target item display area is determined from the graphical user interface based on the position of the target item display area in the graphical user interface and a preset distance, and then the candidate game items are displayed within the convenient gesture operation range.

[0101] Among them, the item type of the candidate game item is the same as the item type of the game item currently equipped in the target item display slot. For example, if the item type of the game item currently equipped in the target item display slot is item type A, then the item type of the candidate game item is item type A.

[0102] In some embodiments, to meet the needs of game players for switching items during gameplay, the following steps may be included before the step "displaying candidate game items within the range of convenient gesture operations":

[0103] Retrieve game items of the type corresponding to the target item display slot from the current player character's item storage area to obtain candidate game items.

[0104] The item storage area contains virtual items that the player currently owns in the target game. This storage area can be a resource storage area, warehouse, or backpack, storing resources, game items, or game equipment. The game items currently owned by the player can be those obtained through purchase or completing game tasks.

[0105] In this embodiment, before entering a game, players can select some game items from the item storage area to equip. After entering the game, players can use the game items equipped before the game starts. During the game, players can switch between equipped game items. Specifically, game items of the same type as the game item the player wants to switch to can be retrieved from the item storage area as candidate game items.

[0106] In some embodiments, to meet the needs of game players for switching items during gameplay, the following steps may also be included:

[0107] If the current player character's item storage area does not contain a game item of the same type as the target item display slot, then the player will determine the purchasable game item of the same type from the virtual item shop to obtain candidate game items.

[0108] The virtual item shop refers to the in-game store within the target game where players can purchase in-game items. Players can use virtual resources within the game, such as in-game currency, to buy items sold in the virtual item shop.

[0109] For example, when a player's touch operation on the target item display area is detected, the system first checks whether the player's inventory contains a game item of the same type as the target item display area. If not, the system can retrieve a game item of the same type from the virtual item shop as a candidate item and display it within the convenient gesture operation range of the target item display area, so that the player can switch game items by purchasing them.

[0110] In some embodiments, if there is no game item of the same type as the target item display slot in the current player character's item storage area, that is, if there is no candidate game item, then the candidate game item does not need to be displayed, or the player is prompted that there is no game item of this type in the item storage area.

[0111] In some embodiments, if there is no game item of the same type as the target item display slot in the current player character's item storage area, a game item of similar type can be searched in the item storage area as a candidate game item. The candidate game item is displayed within the convenient gesture operation range so that the player can replace the game item.

[0112] 103. In response to a touch operation on the target candidate game item among the candidate game items, display the target candidate game item in the target item display area.

[0113] The sliding operation can refer to a sliding operation that starts at the position of the item display area and ends at the position of the candidate game item.

[0114] For example, see Figure 5 , Figure 5 This is a schematic diagram illustrating an application scenario for another method of switching game items provided in an embodiment of this application. Figure 5 In the graphical user interface shown, when a player's swipe action, starting from the target item display area and ending between the target candidate game items, is detected, the game item displayed in the target item display area is switched to the target candidate game item.

[0115] In some embodiments, to facilitate users in selecting candidate game items, the following steps may also be included:

[0116] In response to a long press on a target candidate game item, the target candidate game item is highlighted in the graphical user interface.

[0117] Highlighting target candidate game items in the graphical user interface can include various highlighting methods, such as zooming in, highlighting, and changing the color.

[0118] For example, see Figure 6 , Figure 6 This is a schematic diagram illustrating an application scenario for another method of switching game items provided in an embodiment of this application. Figure 6 In the graphical user interface shown, when the game detects that the player starts from the target item display area and slides towards the target candidate game item, and then long-presses on the target candidate game item, the target candidate game item can be enlarged in the graphical user interface so that the player can clearly see the candidate game item currently selected for switching and accurately switch game items.

[0119] In some embodiments, to meet the different needs of game players for equipping and changing items, the step "displaying target candidate game items in the target item display slot" may include the following operations:

[0120] If the target item display slot already contains the target game item, then switch the target game item to the target candidate game item and display the target candidate game item in the target item display slot.

[0121] If the target item display slot is not equipped with any game item, then the target candidate game item will be directly equipped in the target item display slot and displayed in the target item display slot.

[0122] For example, please continue reading Figure 5 ,exist Figure 5 In the graphical user interface shown, if the target item display slot is already equipped with a game item, then when a player's swipe operation between the target item display slot and the target candidate game item is detected, the target game item is switched to the target candidate game item, and the target candidate game item is displayed in the target item display slot.

[0123] For example, please see Figure 7 , Figure 7 This is a schematic diagram illustrating an application scenario of another game item switching method provided in this application embodiment. Figure 7 In the graphical user interface shown, if the target item display slot is not equipped with any game items, when a player's swipe operation between the target item display slot and the target candidate game item is detected, the target candidate game item is directly equipped in the target item display slot and displayed in the target item display slot. At the same time, the display of the target candidate game item within the convenient gesture operation range is canceled, that is, the target candidate game item is added to the item display area.

[0124] In some embodiments, when the target item display slot is equipped with a target game item, in order to replace the game item already equipped in the target item display slot with the target candidate game item, the step "display the target candidate game item in the target item display slot" may include the following operations:

[0125] Display the target candidate game items in the target item display area, and display the target game items within the convenient gesture operation range.

[0126] For example, see Figure 8 , Figure 8 This is a schematic diagram illustrating an application scenario of another game item switching method provided in this application embodiment. Figure 8The graphical user interface shown includes an item display area and a boundary gesture operation range. The item display area includes item display slots A, B, C, and D. Item display slot A contains a first game item. The boundary gesture operation range includes a target candidate game item. When a touch operation on the target candidate game item is detected, the target candidate game item is placed in item display slot A. Specifically, the target candidate game item is displayed in item display slot A, and the first game item initially displayed in item display slot A is displayed within the boundary gesture operation range to complete the replacement and placement of the game item.

[0127] In some embodiments, to meet the player's operational needs, the step "responding to a touch operation on a target candidate game item among the candidate game items" may include the following operations:

[0128] Responds to a swipe action between the target item display area and the target candidate game item.

[0129] Among them, the sliding operation, also known as the dragging operation, allows players to select a target game item from multiple candidate game items when there are multiple candidate game items displayed near the item display area. The target candidate game item can then be dragged to the target item display slot to complete the replacement of the game item.

[0130] In some embodiments, to meet the player's operational needs, the step "responding to a touch operation on a target candidate game item among the candidate game items" may include the following operations:

[0131] Responds to a click operation on the target candidate game item among the candidate game items.

[0132] Specifically, when multiple candidate game items are displayed near the item display area, players can select a target candidate game item from the multiple candidate game items, click on the target candidate game item, and trigger the replacement of the game item.

[0133] In some embodiments, the target item display area displays a first quantity and a second quantity, where the first quantity is the number of game items currently equipped in the target item display area, and the second quantity is the total number of game items that can be equipped in the target item display area; a third quantity is displayed on the target candidate game item, where the third quantity is no greater than the second quantity. Then the step "in response to a touch operation on the target candidate game item in the candidate game items, display the target candidate game item in the target item display area" may include the following operations:

[0134] In response to a touch operation on a target candidate game item, the third number of target candidate game items is switched with the first number of game items equipped in the target item display slot, and the target candidate game items, the third number, and the second number are displayed in the target item display slot, and the switched game items and the first number are displayed within the convenient gesture operation range.

[0135] For example, please see Figure 9 , Figure 9 This is a schematic diagram illustrating an application scenario of another game item switching method provided in this application embodiment. Figure 9 The graphical user interface shown includes an item display area and a boundary gesture operation area. The item display area includes: item display slot A, item display slot B, item display slot C, and item display slot D.

[0136] Item display slot A is equipped with a first game item and displays a first quantity of 12 and a second quantity of 12. The first quantity of 12 refers to the number of first game items already equipped in item display slot A, and the second quantity of 12 refers to the total number of game items that item display slot A can support being equipped with. 12 / 12 indicates that item display slot A is currently fully equipped with first game items. Item display slot B is equipped with a second game item and displays a first quantity of 12 and a second quantity of 12. The first quantity of 12 refers to the number of second game items already equipped in item display slot B, and the second quantity of 12 refers to the total number of game items that item display slot B can support being equipped with. 12 / 12 indicates that item display slot B is currently fully equipped with second game items. Item display slot C is equipped with a third game item, and displays a first quantity of 12 and a second quantity of 12. The first quantity of 8 refers to the number of third game items already equipped in item display slot C, and the second quantity of 12 refers to the total number of game items that item display slot C can support being equipped with. 8 / 12 means that item display slot C currently has 8 third game items equipped, and can equip 4 more game items. Item display slot D is not equipped with any game items, and 0 / 12 means that item display slot D can equip 12 more game items.

[0137] The convenient gesture operation range includes a first candidate game item, a second candidate game item, and a third candidate game item. The first candidate game item displays a quantity of 4, indicating that there are 4 of them; the second candidate game item displays a quantity of 4, indicating that there are 4 of them; and the third candidate game item displays a quantity of 4, indicating that there are 4 of them.

[0138] For further details, please refer to Figure 10 , Figure 10 This is a schematic diagram illustrating an application scenario of another game item switching method provided in this application embodiment. Figure 10 In the graphical user interface shown, the target item display slot can be item display slot A. When a player's touch operation on the first candidate game item is detected, and the first candidate game item is determined to be the target candidate game item, then the 4 first candidate game items can be replaced with the 12 first game items in item display slot A. Specifically, after the replacement is completed, the first game item is displayed within the convenient gesture operation range, with a quantity of 12, and the first candidate game item is displayed in item display slot A, with a quantity of 4, updating the quantity display in the first item display slot to 4 / 12.

[0139] In some embodiments, to avoid obstructing the game screen, the following steps may also be included:

[0140] In response to a touch operation on the target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display area, and the candidate game item is hidden in the graphical user interface.

[0141] Specifically, players can change or transfer game items by swiping, and the target candidate game item will be displayed in the target item display area. The display of candidate game items can be canceled in the graphical user interface to avoid the displayed candidate game items obscuring the game screen and affecting the player's observation of the game screen.

[0142] In some embodiments, if a pre-assembled game item is damaged, it can be repaired. The method may further include the following steps:

[0143] In response to a touch operation on a target item display slot in the item display area, a game item repair icon is displayed within the convenient gesture operation range of the target item display slot based on its location.

[0144] In response to a touch operation between the target item display area and the game item repair icon, the game item equipped in the target item display area is repaired, and the repair time is displayed on the repair icon.

[0145] The game item repair icon can be used to repair game items installed in the target item display slot.

[0146] For example, please see Figure 11 , Figure 11 This is a schematic diagram illustrating an application scenario of another game item switching method provided in this application embodiment. Figure 11In the graphical user interface shown, when a player's touch operation on the target item display area is detected, the convenient gesture operation range of the target item display area is determined from the graphical user interface based on the position of the target item display area in the graphical user interface and a preset distance, and then the item repair icon is displayed within the convenient gesture operation range.

[0147] For further details, please refer to Figure 12 , Figure 12 This is a schematic diagram illustrating an application scenario of another game item switching method provided in this application embodiment. Figure 12 In the graphical user interface shown, when the game detects that the player's action starts between the target item display slot and the repair item icon, the game item equipped in the target item display slot is repaired, and the remaining repair time of the game item is displayed in the target item display slot, such as 4 seconds.

[0148] In some embodiments, the plurality of item display slots include at least one designated item display slot, which is corresponding to a game item with a cooldown time. The cooldown time refers to the period of time a player needs to wait after using a game item before they can use it again. The period of time required is the cooldown time of the game item. The method may further include the following steps:

[0149] When a game item is equipped in a designated item display slot and is in a cooldown period, the designated item display slot does not support user operation.

[0150] For example, please see Figure 13 , Figure 13 This is a schematic diagram illustrating an application scenario of another game item switching method provided in this application embodiment. Figure 13 The graphical user interface shown includes an item display area, comprising item display slots A, B, C, and D. Item display slot A can be a designated item display slot; that is, the game items equipped in item display slot A have a cooldown period. When a player triggers the use of a game item in item display slot A, item display slot A is in a cooldown period. During this time, the player cannot perform any actions on item display slot A until the cooldown period ends, at which point the player can use the game item in item display slot A again or replace the game item in item display slot A.

[0151] This application discloses a method for switching game items. The method includes: displaying a graphical user interface (GUI), the GUI including a game screen and an item display area, the item display area including multiple item display slots, each slot displaying game items equipped by the current player character, each slot corresponding to a specific item type; responding to a touch operation on a target item display slot within the item display area, displaying candidate game items within the target item display slot's convenient gesture operation range based on the target item display slot's position, the candidate game items including game items of the corresponding item type obtainable by the current player character; and responding to a touch operation on a target candidate game item among the candidate game items, displaying the target candidate game item in the target item display slot. This improves the player's gaming experience in the target game.

[0152] Based on the above description, the following examples will further illustrate the method for switching game items in this application. Please refer to... Figure 14 , Figure 14 The following is a flowchart illustrating another method for switching game items provided in this application embodiment. Taking the specific application of this game item switching method to a terminal as an example, the specific process can be as follows:

[0153] 201. The terminal displays the game interface of the target game.

[0154] The game interface includes the game screen and the equipment slot. The game screen includes a portion of the target game scene, and the equipment slot includes multiple equipped game items. The equipment types of the multiple equipped game items can be the same or different.

[0155] For example, see Figure 15 , Figure 15 This is a schematic diagram illustrating an application scenario of another game item switching method provided in this application embodiment. Figure 15 The game interface shown includes the target game screen and the equipment slots. The equipment slots contain multiple pieces of equipment currently equipped by the player in the current game: Equipment A, Equipment B, and Equipment C.

[0156] 202. When the terminal detects that the current player is touching the target game equipment in the equipment bar, candidate game equipment is displayed within the preset range of the target game equipment.

[0157] The target game equipment refers to the game equipment that the player needs to switch to. The candidate game equipment refers to game equipment in the player's inventory that is of the same type as the target game equipment.

[0158] For example, see Figure 16 , Figure 16 This is a schematic diagram illustrating an application scenario of another game item switching method provided in this application embodiment. Figure 16 In the game interface shown, when a touch operation by the current player on equipment B in the equipment bar is detected, the game equipment requiring switching is determined to be equipment B. Then, game equipment of the same type as equipment B is retrieved from the current player's equipment inventory, which can be either candidate equipment a or candidate equipment b. These candidate game equipment are then displayed within a preset area of ​​equipment B. The candidate game equipment occupies a small area on the game interface and will not obstruct the current player's view of the game screen.

[0159] 203. When the terminal detects that the current player is sliding between the target game equipment and the target candidate game equipment, it replaces the target game equipment with the target candidate game equipment and hides the candidate game equipment on the game interface.

[0160] For example, please see Figure 17 , Figure 17 This is a schematic diagram illustrating an application scenario of another game item switching method provided in this application embodiment. Figure 17 In the game interface shown, when the current player's sliding operation on the target game equipment: Equipment B and the target candidate game equipment: Candidate Equipment a is detected, after the sliding operation ends, Equipment B in the equipment bar is switched to Candidate Equipment a. That is, Candidate Equipment a replaces Equipment B in the equipment bar, and then the candidate game equipment is canceled from the display of the game interface, thus quickly completing the equipment switching operation.

[0161] This application discloses a method for switching game items. The method includes: displaying the game interface of the target game on the terminal; when the current player touches the target game equipment in the equipment bar, displaying candidate game equipment within a preset range of the target game equipment; when the current player slides between the target game equipment and the target candidate game equipment, replacing the target game equipment with the target candidate game equipment, and hiding the candidate game equipment on the game interface, thereby improving the game experience for the player.

[0162] To facilitate better implementation of the game item switching method provided in this application embodiment, this application embodiment also provides a game item switching device based on the above-described game item switching method. The meanings of the terms used are the same as in the game item switching method described above, and specific implementation details can be found in the description of the method embodiment.

[0163] Please see Figure 18 , Figure 18 This application provides a structural block diagram of a game item switching device, which includes:

[0164] The first display unit 301 is used to display a graphical user interface, which includes a game screen and an item display area. The item display area includes multiple item display slots, which are used to display game items equipped by the current player character. Each item display slot corresponds to a type of game item.

[0165] The second display unit 302 is used to respond to a touch operation on a target item display slot in the item display area, and to display candidate game items based on the position of the target item display slot within the convenient gesture operation range of the target item display slot. The candidate game items include game items that the current player character can obtain and that belong to the item type corresponding to the target item display slot.

[0166] The display unit 303 is used to display the target candidate game item in the target item display column in response to a touch operation on the target candidate game item among the candidate game items.

[0167] In some embodiments, the second display unit 302 may include:

[0168] The first acquisition subunit is used to acquire the position of the target prop display bar in the graphical user interface;

[0169] The first determining subunit is used to determine the convenient gesture operation range of the target prop display position in the graphical user interface according to the position.

[0170] The display subunit is used to display the candidate game items within the range of the convenient gesture operation.

[0171] In some embodiments, the first determining subunit may specifically be used for:

[0172] Obtain information on the player's actions and behaviors within a historical timeframe.

[0173] The current player's gesture operation range is determined based on the operation behavior information;

[0174] The convenient gesture operation range of the target prop display position is determined based on the location and the gesture operation range.

[0175] In some embodiments, the second display unit 302 may further include:

[0176] The second acquisition subunit is used to acquire game items of the same type as the target item display slot from the item storage area of ​​the current player character, thereby obtaining the candidate game items.

[0177] In some embodiments, the second display unit 302 may further include:

[0178] The second determining subunit is used to determine, if the current player character's item storage area does not contain a game item of the same type as the target item display slot, a purchasable game item of the same type as the target item display slot from the virtual item shop, and obtain the candidate game item.

[0179] In some embodiments, the apparatus may further include:

[0180] The third display unit is configured to highlight the target candidate game item in the graphical user interface in response to a long press operation on the target candidate game item.

[0181] In some embodiments, the display unit 303 may include:

[0182] The first display subunit is used to switch the target game item to the target candidate game item and display the target candidate game item in the target item display slot if the target item display slot is already equipped with the target game item.

[0183] The second display subunit is used to directly equip the target candidate game item in the target item display slot if the target item display slot is not equipped with a game item, and to display the target candidate game item in the target item display slot.

[0184] In some embodiments, the display unit 303 may include:

[0185] The third display subunit is used to display the target candidate game item in the target item display column and to display the target game item within the range of the convenient gesture operation.

[0186] In some embodiments, the second display unit 302 may include:

[0187] The first response subunit is used to respond to a sliding operation between the target item display area and the target candidate game item.

[0188] In some embodiments, the second display unit 302 may include:

[0189] The second response subunit is used to respond to a click operation on the target candidate game item among the candidate game items.

[0190] In some embodiments, the display unit 303 may include:

[0191] The fourth display subunit is used to switch the third number of target candidate game items with the first number of game items equipped in the target item display slot in response to the touch operation of the target candidate game items, and to display the target candidate game items, the third number and the second number in the target item display slot, and to display the switched game items and the first number within the convenient gesture operation range.

[0192] In some embodiments, the device may further include:

[0193] A hiding unit is configured to, in response to a touch operation on a target candidate game item among the candidate game items, display the target candidate game item in the target item display area and hide the candidate game item in the graphical user interface.

[0194] In some embodiments, the device may further include:

[0195] The fourth display unit is used to respond to a touch operation on a target item display slot in the item display area, and to display a game item repair icon based on the position of the target item display slot within the convenient gesture operation range of the target item display slot.

[0196] A repair unit is configured to, in response to a touch operation between the target item display area and the game item repair icon, repair the game item equipped in the target item display area and display the item repair time on the repair icon.

[0197] In some embodiments, the device may further include:

[0198] An operation unit is configured to prevent user operation of the designated item display slot when the game item equipped in the designated item display slot is in a cooldown period.

[0199] This application discloses a device for switching game items. A first display unit 301 displays a graphical user interface (GUI), which includes a game screen and an item display area. The item display area includes multiple item display slots, each displaying game items equipped by the current player character. Each item display slot corresponds to a specific item type. A second display unit 302, in response to a touch operation on a target item display slot within the item display area, displays candidate game items based on the target item display slot's location and within its convenient gesture operation range. These candidate game items include game items of the corresponding item type obtainable by the current player character. A display unit 303, in response to a touch operation on a target candidate game item among the candidate game items, displays that target candidate game item in its target item display slot. This enhances the player's gaming experience.

[0200] Accordingly, embodiments of this application also provide a computer device, which can be a terminal. For example... Figure 19 As shown, Figure 19 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 600 includes a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, and a computer program stored in the memory 602 and executable on the processor. The processor 601 and the memory 602 are electrically connected. Those skilled in the art will understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0201] The processor 601 is the control center of the computer device 600. It connects various parts of the computer device 600 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it performs various functions of the computer device 600 and processes data, thereby monitoring the computer device 600 as a whole.

[0202] In this embodiment, the processor 601 in the computer device 600 loads the instructions corresponding to the processes of one or more applications into the memory 602 according to the following steps, and the processor 601 runs the applications stored in the memory 602 to achieve various functions:

[0203] The graphical user interface (GUI) is displayed, which includes the game screen and an item display area. The item display area includes multiple item display slots, which are used to display the game items that the current player character has equipped. Each item display slot corresponds to a game item of one type.

[0204] In response to a touch operation on a target item display slot in the item display area, candidate game items are displayed within the convenient gesture operation range of the target item display slot based on the position of the target item display slot. The candidate game items include game items of the corresponding item type that the current player character can obtain.

[0205] In response to a touch operation on the target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display area.

[0206] In some embodiments, candidate game items are displayed within the convenient gesture operation range of the target item display slot based on the position of the target item display slot, including:

[0207] Find the location of the target item in the graphical user interface.

[0208] The convenient gesture operation range of the target prop display area is determined based on its location in the graphical user interface;

[0209] Display candidate game items within the range of convenient gesture controls.

[0210] In some embodiments, determining the convenient gesture operation range of the target item display area in the graphical user interface based on its location includes:

[0211] Obtain information on the player's actions and behaviors within a historical timeframe.

[0212] The current player's gesture range is determined based on their action information;

[0213] Determine the convenient gesture operation range for the target item display slot based on its location and gesture operation range.

[0214] In some embodiments, before displaying candidate game items within the range of convenient gesture operation, the method further includes:

[0215] Retrieve game items of the type corresponding to the target item display slot from the current player character's item storage area to obtain candidate game items.

[0216] In some embodiments, the method further includes:

[0217] If the current player character's item storage area does not contain a game item of the same type as the target item display slot, then the player will determine the purchasable game item of the same type from the virtual item shop to obtain candidate game items.

[0218] In some embodiments, the method further includes:

[0219] In response to a long press on a target candidate game item, the target candidate game item is highlighted in the graphical user interface.

[0220] In some embodiments, displaying target candidate game items in the target item display area includes:

[0221] If the target item display slot already contains the target game item, then switch the target game item to the target candidate game item and display the target candidate game item in the target item display slot.

[0222] If the target item display slot is not equipped with any game item, then the target candidate game item will be directly equipped in the target item display slot and displayed in the target item display slot.

[0223] In some embodiments, the target item display slot is equipped with a target game item;

[0224] Display the target item candidate game items in the target item display area, including:

[0225] Display the target candidate game items in the target item display area, and display the target game items within the convenient gesture operation range.

[0226] In some embodiments, responding to a touch operation on a target candidate game item among candidate game items includes:

[0227] Responds to a swipe action between the target item display area and the target candidate game item.

[0228] In some embodiments, responding to a touch operation on a target candidate game item among candidate game items includes:

[0229] Responds to a click operation on the target candidate game item among the candidate game items.

[0230] In some embodiments, the target item display area displays a first quantity and a second quantity, the first quantity being the number of game items currently equipped in the target item display area, and the second quantity being the total number of game items that can be equipped in the target item display area; the target candidate game items display a third quantity, the third quantity being the number of target candidate game items, and the third quantity is not greater than the second quantity;

[0231] In response to a touch operation on a target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display area, including:

[0232] In response to a touch operation on a target candidate game item, the third number of target candidate game items is switched with the first number of game items equipped in the target item display slot, and the target candidate game items, the third number, and the second number are displayed in the target item display slot, and the switched game items and the first number are displayed within the convenient gesture operation range.

[0233] In some embodiments, the method further includes;

[0234] In response to a touch operation on the target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display area, and the candidate game item is hidden in the graphical user interface.

[0235] In some embodiments, the method further includes:

[0236] In response to a touch operation on a target item display slot in the item display area, a game item repair icon is displayed within the convenient gesture operation range of the target item display slot based on its location.

[0237] In response to a touch operation between the target item display area and the game item repair icon, the game item equipped in the target item display area is repaired, and the repair time is displayed on the repair icon.

[0238] In some embodiments, the plurality of item display slots include at least one designated item display slot, and the designated item display slot is equipped with a game item having a cooldown period.

[0239] The method also includes:

[0240] When a game item is equipped in a designated item display slot and is in a cooldown period, the designated item display slot does not support user operation.

[0241] This application embodiment designs a quick operation bar in the game, which displays the game item to be replaced. Based on the player's touch operation on the item display bar on the game interface, the quick operation bar is displayed within the convenient gesture operation range of the item display bar. Then, based on the player's switching operation between the target item display bar and the target replacement item, the game item equipped in the target item display bar is quickly switched to the target replacement item, which facilitates the player's item switching operation during the game and thus improves the player's game experience.

[0242] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0243] Optional, such as Figure 19 As shown, the computer device 600 also includes: a touch screen display 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. The processor 601 is electrically connected to the touch screen display 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607. Those skilled in the art will understand that... Figure 19 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0244] The touch display screen 603 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 603 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the computer device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 601. It can also receive and execute commands from the processor 601. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 601 to determine the type of touch event. Subsequently, the processor 601 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 603 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 603 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 603 can also be used as part of the input unit 606 to achieve input functions.

[0245] The radio frequency circuit 604 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other computer devices, and to transmit and receive signals with network devices or other computer devices.

[0246] Audio circuitry 605 can be used to provide an audio interface between a user and a computer device via a speaker and a microphone. Audio circuitry 605 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 605, converted back into audio data, and then processed by processor 601 before being transmitted via radio frequency circuitry 604 to, for example, another computer device, or output to memory 602 for further processing. Audio circuitry 605 may also include an earphone jack to facilitate communication between peripheral headphones and computer devices.

[0247] The input unit 606 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0248] Power supply 607 is used to supply power to various components of computer device 600. Optionally, power supply 607 can be logically connected to processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 607 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0249] although Figure 19 As not shown in the diagram, computer device 600 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

[0250] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0251] As can be seen from the above, the computer device provided in this embodiment can display a graphical user interface, which includes a game screen and an item display area. The item display area includes multiple item display slots, which are used to display game items equipped by the current player character. Each item display slot corresponds to a game item of a certain type. In response to a touch operation on a target item display slot in the item display area, candidate game items are displayed within the convenient gesture operation range of the target item display slot based on its position. The candidate game items include game items of the corresponding item type that the current player character can obtain. In response to a touch operation on a target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display slot.

[0252] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0253] Therefore, embodiments of this application provide a computer-readable storage medium storing multiple computer programs that can be loaded by a processor to execute steps in any of the game item switching methods provided in embodiments of this application. For example, the computer program can execute the following steps:

[0254] The graphical user interface (GUI) is displayed, which includes the game screen and an item display area. The item display area includes multiple item display slots, which are used to display the game items that the current player character has equipped. Each item display slot corresponds to a game item of one type.

[0255] In response to a touch operation on a target item display slot in the item display area, candidate game items are displayed within the convenient gesture operation range of the target item display slot based on the position of the target item display slot. The candidate game items include game items of the corresponding item type that the current player character can obtain.

[0256] In response to a touch operation on the target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display area.

[0257] In some embodiments, candidate game items are displayed within the convenient gesture operation range of the target item display slot based on the position of the target item display slot, including:

[0258] Find the location of the target item in the graphical user interface.

[0259] The convenient gesture operation range of the target prop display area is determined based on its location in the graphical user interface;

[0260] Display candidate game items within the range of convenient gesture controls.

[0261] In some embodiments, determining the convenient gesture operation range of the target item display area in the graphical user interface based on its location includes:

[0262] Obtain information on the player's actions and behaviors within a historical timeframe.

[0263] The current player's gesture range is determined based on their action information;

[0264] Determine the convenient gesture operation range for the target item display slot based on its location and gesture operation range.

[0265] In some embodiments, before displaying candidate game items within the range of convenient gesture operation, the method further includes:

[0266] Retrieve game items of the type corresponding to the target item display slot from the current player character's item storage area to obtain candidate game items.

[0267] In some embodiments, the method further includes:

[0268] If the current player character's item storage area does not contain a game item of the same type as the target item display slot, then the player will determine the purchasable game item of the same type from the virtual item shop to obtain candidate game items.

[0269] In some embodiments, the method further includes:

[0270] In response to a long press on a target candidate game item, the target candidate game item is highlighted in the graphical user interface.

[0271] In some embodiments, displaying target candidate game items in the target item display area includes:

[0272] If the target item display slot already contains the target game item, then switch the target game item to the target candidate game item and display the target candidate game item in the target item display slot.

[0273] If the target item display slot is not equipped with any game item, then the target candidate game item will be directly equipped in the target item display slot, and the target candidate game item will be displayed in the target item display slot.

[0274] In some embodiments, the target item display slot is equipped with a target game item;

[0275] Display the target item candidate game items in the target item display area, including:

[0276] Display the target candidate game items in the target item display area, and display the target game items within the range of convenient gesture operation.

[0277] In some embodiments, responding to a touch operation on a target candidate game item among candidate game items includes:

[0278] Responds to a swipe action between the target item display area and the target candidate game item.

[0279] In some embodiments, responding to a touch operation on a target candidate game item among candidate game items includes:

[0280] Responds to a click operation on the target candidate game item among the candidate game items.

[0281] In some embodiments, the target item display slot displays a first quantity and a second quantity, where the first quantity is the number of game items currently equipped in the target item display slot and the second quantity is the total number of game items that can be equipped in the target item display slot; a third quantity is displayed on the target candidate game items, where the third quantity is the number of target candidate game items and the third quantity is not greater than the second quantity;

[0282] In response to a touch operation on a target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display area, including:

[0283] In response to a touch operation on a target candidate game item, the third number of target candidate game items is switched with the first number of game items equipped in the target item display slot, and the target candidate game items, the third number, and the second number are displayed in the target item display slot, and the switched game items and the first number are displayed within the convenient gesture operation range.

[0284] In some embodiments, the method further includes;

[0285] In response to a touch operation on the target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display area, and the candidate game item is hidden in the graphical user interface.

[0286] In some embodiments, the method further includes:

[0287] In response to a touch operation on a target item display slot in the item display area, a game item repair icon is displayed within the convenient gesture operation range of the target item display slot based on its location.

[0288] In response to a touch operation between the target item display area and the game item repair icon, the game item equipped in the target item display area is repaired, and the repair time is displayed on the repair icon.

[0289] In some embodiments, the plurality of item display slots include at least one designated item display slot, and the designated item display slot is equipped with a game item having a cooldown period.

[0290] The method also includes:

[0291] When a game item is equipped in a designated item display slot and is in a cooldown period, the designated item display slot does not support user operation.

[0292] This application embodiment designs a quick operation bar in the game, which displays the game item to be replaced. Based on the player's touch operation on the item display bar on the game interface, the quick operation bar is displayed within the convenient gesture operation range of the item display bar. Then, based on the player's switching operation between the target item display bar and the target replacement item, the game item equipped in the target item display bar is quickly switched to the target replacement item, which facilitates the player's item switching operation during the game and thus improves the player's game experience.

[0293] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0294] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0295] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the game item switching methods provided in the embodiments of this application, the beneficial effects that any of the game item switching methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0296] The foregoing has provided a detailed description of a method, apparatus, computer-readable storage medium, and computer device for switching game props according to embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for switching game items, characterized in that, The method includes: The graphical user interface includes a game screen and an item display area. The item display area includes multiple item display slots, which are used to display the game items equipped by the current player character. Each item display slot corresponds to a game item of one type. In response to a touch operation on a target item display slot in the item display area, candidate game items are displayed within the convenient gesture operation range of the target item display slot based on the position of the target item display slot. The candidate game items include game items that the current player character owns in the target game and belong to the item type corresponding to the target item display slot. The convenient gesture operation range is the range determined by taking the position of the target item display slot in the graphical user interface as the center point and the distance between the center point and a preset distance. The preset distance is determined based on the longest operation distance of the target finger that is most frequently used by the current player during game operations in the graphical user interface during a historical time period. In response to a touch operation on a target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display area; The step of displaying the target candidate game item in the target item display area includes: if the target item display area is already equipped with a target game item, then displaying the target candidate game item in the target item display area and displaying the target game item within the range of the convenient gesture operation.

2. The method according to claim 1, characterized in that, The method of displaying candidate game items based on the position of the target item display slot within the convenient gesture operation range of the target item display slot includes: Obtain the position of the target item display area in the graphical user interface; Based on the location, the convenient gesture operation range of the target prop display area is determined in the graphical user interface; The candidate game items are displayed within the range of the convenient gesture operation.

3. The method according to claim 2, characterized in that, The step of determining the convenient gesture operation range of the target prop display position in the graphical user interface based on the position includes: Obtain information on the player's actions and behaviors within a historical timeframe. The current player's gesture operation range is determined based on the operation behavior information; The convenient gesture operation range of the target prop display position is determined based on the location and the gesture operation range.

4. The method according to claim 2, characterized in that, Before displaying the candidate game items within the convenient gesture operation range, the method further includes: The candidate game item is obtained by retrieving a game item of the type corresponding to the target item display slot from the item storage area of ​​the current player character.

5. The method according to claim 4, characterized in that, The method further includes: If the current player character's item storage area does not contain a game item of the same type as the target item display slot, then a purchasable game item of the same type as the target item display slot is determined from the virtual item shop to obtain the candidate game item.

6. The method according to claim 1, characterized in that, The method further includes: In response to a long press operation on the target candidate game item, the target candidate game item is highlighted in the graphical user interface.

7. The method according to claim 1, characterized in that, The step of displaying the target candidate game item in the target item display area includes: If the target item display slot is not equipped with any game item, then the target candidate game item is directly equipped in the target item display slot, and the target candidate game item is displayed in the target item display slot.

8. The method according to claim 1, characterized in that, The response to a touch operation on a target candidate game item among the candidate game items includes: In response to a sliding operation between the target item display area and the target candidate game item.

9. The method according to claim 1, characterized in that, The response to a touch operation on a target candidate game item among the candidate game items includes: In response to a click operation on the target candidate game item among the candidate game items.

10. The method according to claim 1, characterized in that, The target item display slot shows a first quantity and a second quantity. The first quantity is the number of game items currently equipped in the target item display slot, and the second quantity is the total number of game items that can be equipped in the target item display slot. The target candidate game item displays a third quantity, which is the number of the target candidate game items, and the third quantity is not greater than the second quantity. The step of displaying the target candidate game item in the target item display area in response to a touch operation on the target candidate game item among the candidate game items includes: In response to a touch operation on the target candidate game item, the third number of target candidate game items is switched with the first number of game items equipped in the target item display slot, and the target candidate game items, the third number, and the second number are displayed in the target item display slot, and the switched game item and the first number are displayed within the convenient gesture operation range.

11. The method according to claim 1, characterized in that, The method further includes: In response to a touch operation on a target candidate game item among the candidate game items, the target candidate game item is displayed in the target item display area, and the candidate game item is hidden in the graphical user interface.

12. The method according to claim 1, characterized in that, The method further includes: In response to a touch operation on a target item display slot in the item display area, a game item repair icon is displayed within the convenient gesture operation range of the target item display slot based on the position of the target item display slot. In response to a touch operation between the target item display area and the game item repair icon, the game item equipped in the target item display area is repaired, and the item repair time is displayed on the repair icon.

13. The method according to claim 1, characterized in that, The plurality of item display slots include at least one designated item display slot, which corresponds to the installation of game items with a cooldown period. The method further includes: When the game item equipped in the designated item display slot is in a cooldown period, the designated item display slot does not support user operation.

14. A device for switching game props, characterized in that, The device includes: The first display unit is used to display a graphical user interface, which includes a game screen and an item display area. The item display area includes multiple item display slots, which are used to display the game items equipped by the current player character. Each item display slot corresponds to a game item of one type. The second display unit is used to respond to a touch operation on a target item display slot in the item display area, and to display candidate game items based on the position of the target item display slot within the convenient gesture operation range of the target item display slot. The candidate game items include game items that the current player character owns in the target game and that belong to the item type corresponding to the target item display slot. The convenient gesture operation range is the range determined based on the position of the target item display slot in the graphical user interface as the center point and a preset distance. The preset distance is determined based on the longest operation distance of the target finger that is most frequently used by the current player during game operations in the graphical user interface during a historical time period. The display unit is configured to respond to a touch operation on a target candidate game item among the candidate game items, and display the target candidate game item in the target item display area; the step of displaying the target candidate game item in the target item display area includes: if the target item display area is already equipped with a target game item, then displaying the target candidate game item in the target item display area and displaying the target game item within the range of the convenient gesture operation.

15. A computer device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein, When the processor executes the program, it implements the game item switching method as described in any one of claims 1 to 13.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to execute the game item switching method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Game equipment replacement method and device, and terminal equipment

    CN112619147A