Control method and device in game, electronic equipment and readable storage medium
By switching control mode in the game, the operation conflict caused by overlapping display of virtual rocker and stall name is solved, and the player's operation fluency and accuracy are improved, especially when there are many virtual booths and small display sizes.
Patent Information
- Application Number
- CN202411163636.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-03
AI Technical Summary
In vertical mobile games, because the booth name overlaps with the virtual rocker display, the operation of moving the virtual character of the virtual rocker and clicking the virtual booth name conflicts, reducing the smoothness of the player's operation.
Provide a game control method, by switching control mode, allowing players to manipulate virtual characters to move between stalls in the first control mode, and directly select virtual stalls by triggering operations in the second control mode to avoid the name and interaction of virtual stalls. Display conflicts in the control area.
Improves the smoothness and accuracy of players' operations, especially when there are many virtual booths, small display sizes, and overlapping with the position of the booth, the process of selecting virtual booths is simplified.
Smart Images

Figure CN119056049A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a control method, device, electronic device and computer-readable storage medium in a game. Background Art
[0002] Vertical screen mobile games are loved by more and more players for their convenient one-handed operation and unique gaming experience.
[0003] Related technology: In a vertical screen stall game, players can use a virtual joystick with one hand to control the virtual character to move between virtual stalls in the game scene. The names of the virtual stalls are displayed on the game interface, and players can browse the virtual goods sold in the virtual stalls by clicking on the names of the virtual stalls.
[0004] However, as the game character moves between stalls, the stall names and the virtual joystick display often overlap, resulting in conflicts between the two operations of triggering the virtual joystick to move the virtual character and clicking the virtual stall name in the display overlapping area, reducing the player's operation fluency. Summary of the invention
[0005] The present application provides a control method, device, electronic device and computer-readable storage medium in a game to solve the problem in the prior art that the two operations of triggering a virtual joystick to move a virtual character and clicking a virtual stall name in a display overlap area will conflict with each other.
[0006] In a first aspect, an embodiment of the present application provides a control method in a game, the method comprising:
[0007] Displaying a graphical user interface, wherein the graphical user interface includes a portion of a game scene and a mode switching control, wherein the game scene includes a virtual character and a plurality of virtual stalls; wherein the mode switching control is used to switch between a first control mode and a second control mode, wherein the virtual character is controlled by a first control in the first control mode, and the virtual stall is controlled by the first control in the second control mode;
[0008] In the first control mode, in response to a trigger operation on the first control, controlling the virtual character to move between a plurality of virtual stalls in the game scene;
[0009] In response to a trigger operation on the mode switching control, controlling the current control mode to be switched from the first control mode to the second control mode;
[0010] In response to a trigger operation on the first control, the plurality of virtual stalls are controlled to be switched and selected, and a currently selected virtual stall is determined according to the trigger operation.
[0011] In a second aspect, an embodiment of the present application provides a control device in a game, the device comprising:
[0012] A display module displays a graphical user interface, wherein the graphical user interface includes a portion of a game scene and a mode switching control, wherein the game scene includes a virtual character and a plurality of virtual stalls; wherein the mode switching control is used to switch between a first control mode and a second control mode, wherein the virtual character is controlled by a first control in the first control mode, and the virtual stall is controlled by the first control in the second control mode;
[0013] a first control module, configured to control the virtual character to move between a plurality of virtual stalls in the game scene in response to a trigger operation on the first control in the first control mode;
[0014] a switching module, configured to control the current control mode to be switched from the first control mode to the second control mode in response to a trigger operation on the mode switching control;
[0015] The second control module is used to control the switching and selection of the multiple virtual stalls in response to the trigger operation on the first control, and determine the currently selected virtual stall according to the trigger operation.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising:
[0017] A memory and a processor, wherein the memory and the processor are coupled;
[0018] The memory is used to store one or more computer instructions;
[0019] The processor is used to execute the one or more computer instructions to implement the control method in the game described in any one of the first aspects above.
[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having one or more computer instructions stored thereon, characterized in that the instruction is executed by a processor to implement the control method in the game described in any one of the first aspects above.
[0021] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the control method in the game described in any one of the first aspects above.
[0022] Compared with the prior art, this application has the following advantages:
[0023] The display control method in the game provided by the present application displays a graphical user interface, the graphical user interface includes a part of the game scene and a mode switching control, and the game scene includes a virtual character and a plurality of virtual stalls. Among them, the mode switching control is used to switch between a first control mode and a second control mode. In the first control mode, the virtual character is controlled by the first control, and in the second control mode, the virtual stall is controlled by the first control. In the first control mode, in response to a trigger operation on the first control, the virtual character is controlled to move between a plurality of virtual stalls in the game scene. In response to a trigger operation on the mode switching control, the control switches the current control mode from the first control mode to the second control mode. In response to a trigger operation on the first control, the control switches and selects a plurality of virtual stalls, and determines the currently selected virtual stall according to the trigger operation.
[0024] Compared with the prior art, the present application switches the object controlled by the player through the first control by switching the control mode. In the first control mode, the player controls the virtual character to shuttle between the virtual stalls in the scene through the first control. In this control mode, the player needs to use his fingers to perform contact touch operations such as click operations on the virtual stalls on the graphical user interface. In the case of a large number of virtual stalls, a small display size, the virtual stall that the player wants to select overlaps with the display position of other controls, and the distance between the display area of the stall name and the interactive control area is far, the first control mode no longer meets the user's operation requirements, resulting in the player's operation fluency and efficiency. In the case of a large number of virtual stalls, a small display size, the virtual stall that the player wants to select overlaps with the display position of other controls, and the distance between the display area of the stall name and the interactive control area is far, the player can choose to switch the first control mode to the second control mode. In the second control mode, players can select the virtual stalls they want to select by performing a trigger operation on the first control in a switching selection manner. During the entire selection process, players only need to perform a trigger operation on the first control, and are no longer limited by any of the restrictions such as a large number of virtual stalls, a small display size, the virtual stalls that the player wants to select do not conflict with other controls, and the distance between the display area of the stall name and the interactive control area is far. In the second control mode, the player's operation fluency and accuracy are greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0026] Figure 1 A flowchart of a control method in a game provided by one embodiment of the present application;
[0027] Figure 2 A schematic diagram of controlling the movement of a virtual character and selecting a virtual stall in a first control mode provided in one embodiment of the present application;
[0028] Figure 3 A schematic diagram of switching a selected virtual stall in a second control mode provided in one embodiment of the present application;
[0029] Figure 4 A schematic diagram of selecting a virtual stall after switching from the second control mode to the first control mode provided in an embodiment of the present application;
[0030] Figure 5 A schematic diagram of a product display page of a selected virtual booth provided in one embodiment of the present application;
[0031] Figure 6 A schematic diagram of comparing products between different virtual stalls provided in one embodiment of the present application;
[0032] Figure 7 A schematic diagram of canceling the display of a product display page and performing product comparison provided in one embodiment of the present application;
[0033] Figure 8 A schematic diagram showing product difference information provided in one of the embodiments of the present application;
[0034] Fig. 9 A schematic diagram showing a recommendation mark provided in one of the embodiments of the present application;
[0035] Fig.10 A schematic diagram showing the first virtual commodity and the second virtual commodity swapping display positions provided in one embodiment of the present application;
[0036] Fig.11 A schematic diagram of the structure of a control device in a game provided in one embodiment of the present application;
[0037] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application.
[0038] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0039] In order to make the purpose, advantages and features of the present application clearer, the present application is described clearly and completely below in conjunction with the accompanying drawings and specific embodiments. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments, and all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0040] It should be noted that, in the description of the present application, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance, and a specific order or sequence. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, the term "multiple" refers to two or more. The term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can be represented: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship. The terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0041] In order to facilitate understanding of the technical solution of the present application, the relevant concepts involved in the present application are first introduced.
[0042] Virtual scene: It is a virtual environment provided by the application corresponding to the virtual game when it is running on an electronic device. It can be displayed on the display screen of the terminal device for players to view. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictional environment, or a purely fictional environment. For example, it can be a fictional game environment, a virtual reality environment formed by superimposing a fictional game environment and a real environment, etc. The virtual scene can be a two-dimensional virtual scene or a three-dimensional virtual scene.
[0043] Virtual character: a game character controlled by a game player in the game. In one embodiment of the present application, it may refer to a character selected and controlled by a player, and may represent the player's image. The player may control the virtual character selected by the player to perform skills or operations such as walking, climbing, climbing, jumping, running, shooting, and performing light work in the virtual scene of the game. This is only an example, and the present application embodiment does not make any limitation to this.
[0044] Below, the prior art involved in this application and the problems existing in the prior art are described:
[0045] Related technology: In a vertical screen stall game, players can use a virtual joystick with one hand to control the virtual character to move between virtual stalls in the game scene. The names of the virtual stalls are displayed on the game interface, and players can browse the virtual goods sold in the virtual stalls by clicking on the names of the virtual stalls.
[0046] However, the above related technologies still have the following problems:
[0047] Problem 1: As the game character moves between stalls, the stall name and the virtual joystick display often overlap, resulting in conflicts between moving the virtual character and clicking the virtual stall in the overlapping display area, reducing the player's operation fluency.
[0048] Problem 2: In the vertical screen game interface, the distance between the display area of most stall names and the interactive control area is far, and the display size of the existing stall name selection control is small. Since players operate with one hand, it is difficult for players to accurately touch the stall name they want to trigger with one hand, reducing the player's operating efficiency.
[0049] Question 3: When players compare the same products at different virtual stalls, they usually need to switch the product pages of the virtual stalls. In this way, players can only view the product information of one virtual stall at a time, which makes it difficult to make intuitive horizontal comparisons. Players may need to rely on memory or additional notes to remember the details of the price, quality, discounts, etc. of the products in each virtual stall, which increases the memory burden.
[0050] In order to solve the problems existing in the above-mentioned related technologies, the present application provides a control method in a game, a control device in a game corresponding to the method, an electronic device that can implement the control method in the game, and a computer-readable storage medium. The following provides embodiments to describe the above-mentioned method, device, electronic device, and computer-readable storage medium in detail.
[0051] In order to make the purpose and technical solution of the present application clearer and more intuitive, the method provided by the embodiment of the present application will be described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. It is understood that the following embodiments may exist separately, and the following embodiments and features in the embodiments may be combined with each other when there is no conflict between the embodiments provided in the present application, and the same or similar content will not be repeated in different embodiments. In addition, the step sequence in the following method embodiments is only an example, not a strict limitation, and in some cases, the steps shown or described may be performed in a different order from this.
[0052] The present application provides a control method, device, electronic device and computer-readable storage medium in a game. Specifically, the control method in the game of one embodiment of the present application can be executed by a computer device, wherein the computer device can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, etc. 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, or 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 communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms.
[0053] When the control method in the game runs on a server, the method can be implemented and executed based on a cloud interactive system, wherein the cloud interactive system includes a server and a client device. A terminal device is any device with computing hardware that can support and execute software application products corresponding to the game. Game software application products include, but are not limited to, any of first-person game applications, third-person game applications, single-player game applications, and multiplayer online tactical competitive game applications. The types of the above games may include, but are not limited to, at least one of the following: two-dimensional game applications, three-dimensional game applications, virtual reality game applications, augmented reality game applications, and mixed reality game applications. The above is only an example, and the embodiments of the present application do not impose any limitation on this.
[0054] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the control method in the game are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the player side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0055] In an optional implementation, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed and run by an electronic device in a conventional manner. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0056] The following introduces the control method in the game provided by the present application. In the control method in the game, a graphical user interface can be provided by a terminal device for displaying a game interface, wherein the terminal device can be the local terminal device mentioned above, or it can be the client device in the cloud interaction system mentioned above.
[0057] Next, combine Figure 1 , a control method in a game provided in one embodiment of the present application is described, Figure 1 A flowchart of a control method in a game provided in one embodiment of the present application.
[0058] like Figure 1 As shown, the control method in the game includes S10-S40:
[0059] S10, displaying a graphical user interface, wherein the graphical user interface includes a portion of a game scene and a mode switching control, wherein the game scene includes a virtual character and a plurality of virtual stalls, wherein the mode switching control is used to switch between a first control mode and a second control mode, wherein the virtual character is controlled by the first control in the first control mode, and the virtual stall is controlled by the first control in the second control mode.
[0060] S20. In a first control mode, in response to a trigger operation on a first control, controlling the virtual character to move between a plurality of virtual stalls in a game scene.
[0061] S30: In response to a trigger operation on a mode switching control, control the current control mode to be switched from a first control mode to a second control mode.
[0062] S40: In response to a trigger operation on the first control, control switching and selecting of multiple virtual stalls, and determine a currently selected virtual stall according to the trigger operation.
[0063] Below, steps S10-S40 are described in detail:
[0064] In an embodiment of the present application, a graphical user interface displays a portion of a game scene and a mode switching control. The game scene includes a virtual character and multiple virtual stalls. The player controls the virtual character to move in the game scene to shuttle between virtual stalls, and can view and purchase virtual goods sold in each virtual stall.
[0065] The mode switching control is triggered by the player to switch between the first control mode and the second control mode. In the first control mode, the first control is used to control the virtual character, and in the second control mode, the first control is used to control the selected virtual stall.
[0066] As mentioned above, the first control is used to control the virtual character in the first control mode and to control the selection of the virtual stall in the second control mode. The first control can be a virtual joystick, a virtual direction key (such as a cross key on a game controller, providing movement control in four basic directions of up, down, left and right), etc., which is only an example, and the embodiments of the present application do not limit this. Exemplarily, in the case where the first control is a virtual joystick, the trigger operation of the first control can be a sliding operation in any direction of the virtual joystick. In the case where the first control is a virtual direction key, the trigger operation of the first control can be a trigger operation of any direction key in the virtual direction key, such as a long press operation, a single click operation, a double click operation, etc., which is only an example, but not limited to this.
[0067] In the first control mode, the player controls the virtual character to shuttle between virtual stalls in the game scene through the first control. Since vertical screen game players are usually accustomed to holding the terminal device with one hand in the right hand, in the first control mode, the player needs to use the right hand finger to select the virtual stall or the stall logo corresponding to the virtual stall to trigger the display of the product information sold by the virtual stall corresponding to the triggered stall logo.
[0068] The selection operation received by the virtual booth or the booth logo corresponding to the virtual booth may be a long press operation, a click operation, a double click operation, etc., which are only examples and are not limited thereto.
[0069] In the embodiment of the present application, a booth logo corresponding to the virtual booth may also be displayed on the graphical user interface. In the first control mode, in response to the player's touch operation on the first control, the virtual character is controlled to shuttle between the virtual booths in the game scene. In response to a trigger operation on one of the virtual booths or booth logos, the virtual booth corresponding to the trigger operation is selected, and the booth logo in the selected state is displayed in the first display mode.
[0070] In the above, the display forms of the stall logo in the first display mode include one or more of the following: text color, background color, highlight effect, raised effect or sunken effect, which are only examples.
[0071] For example, in combination Figure 2 and one A specific example is given to illustrate. Figure 2 A schematic diagram of controlling the movement of a virtual character and selecting a virtual stall in a first control mode provided in one embodiment of the present application.
[0072] like Figure 2 As shown, it includes interface (a), interface (b), interface (c) and interface (d). As shown in interface (a), the stall logo corresponding to the virtual character and the virtual stall is displayed on the graphical user interface. It can be seen that the player uses his finger to trigger the right displacement control 2021 in the first control 202, such as a long press operation. Subsequently, the position of the virtual character 200 in the interface (a) is displaced to the right, as shown in interface (b). Subsequently, as shown in interface (c), the player uses his finger to trigger the stall logo 201 marked as "86 Tianji 86 Ling". As shown in interface (d), the background fill color of the stall logo 201 of "86 Tianji 86 Ling" changes from gray to dark gray, indicating that it has been selected, and the stall logo 201 is in a selected state.
[0073] As mentioned above, the second control mode is a special stall-shopping mode provided to the player, that is, the player does not need to control the virtual character to shuttle back and forth between the virtual stalls in the game scene. In the second control mode, the player only needs to directly switch and select the virtual stall displayed on the graphical user interface or the stall logo corresponding to the virtual stall through the first control.
[0074] In the above, the trigger operation received by the first control may be a sliding operation such as swiping up, swiping down, swiping left, swiping right, a long press operation, a click operation, a double-click operation, etc., which are only examples and are not limited to these.
[0075] In the embodiment of the present application, when the current control mode is in the first control mode, in response to a trigger operation on the mode switching control, the current control mode is switched from the first control mode to the second control mode.
[0076] In an optional implementation, in the first control mode, multiple virtual stalls are displayed in the first display mode. In response to the trigger operation on the mode switching control, after the control switches the current control mode from the first control mode to the second control mode, the control method in the game provided by the embodiment of the present application further includes step S301:
[0077] S301: Determine an initially selected booth from a plurality of virtual booths, and display the initially selected booth in a second display mode.
[0078] The above-mentioned second display mode includes one or more of the following display forms for the stall logo: text color, background color, highlight effect, convex effect or concave effect, which are only examples. Among them, the first display mode is different from the second display mode, that is, the appearance of the selected stall logo in the first display mode is different from the appearance of the selected stall logo in the second display mode.
[0079] Optionally, a virtual booth at the center of the graphical user interface is determined as the initially selected booth. In the embodiment of the present application, considering that the center of the graphical user interface is the most natural place for the user's visual focus, placing the initially selected booth at the center of the graphical user interface can ensure that the player notices it at the first time, thereby improving its visibility and importance. Also, by using the booth logo at the center of the graphical user interface as the starting point for selection, the player can more easily explore other booths from the center outward, simplifying the player's selection process.
[0080] For example, Figure 3 In the middle interface (a), when the player has not selected any booth logo, all booth logos are displayed in the third display mode, for example, black text and gray background are displayed as shown in the interface (a). Figure 3 As shown in the middle interface (b), the initially selected stall in the selected state is displayed according to the second display mode, for example, as shown in the interface (b), a black text and white background filling effect is presented.
[0081] In the embodiment of the present application, in the second control mode, in response to a trigger operation on the first control, the plurality of virtual stalls are controlled to be switched and selected, and the currently selected virtual stall is determined according to the trigger operation.
[0082] It should be noted that step S30 is first executed. After the current control mode is switched from the first control mode to the second control mode, in the second control mode, in response to the player performing multiple trigger operations on the first control, step S40 is repeatedly executed to determine the currently selected virtual stall according to the trigger operation.
[0083] Next, combine Figure 3 and one A possible implementation of steps S30-S40 is exemplified as follows. Figure 3 A schematic diagram of switching a selected virtual stall in a second control mode provided in one embodiment of the present application.
[0084] like Figure 3As shown, it includes interface (a), interface (b), interface (c) and interface (d). As shown in interface (a), in the first control mode, a first control 300 is displayed on the graphical user interface, and the player controls the virtual character to shuttle between virtual stalls in the game scene through this first control 300. In the first control mode, the first display mode shows an effect of black characters filled with a gray background. It can be seen that the player performs a first trigger operation such as a click operation on the mode switching control 301 with a finger. Subsequently, as shown in interface (b), the initially selected stall is the virtual stall corresponding to the stall identifier "Building 14, Martial Arts 86 Damage". In the second control mode, the display mode of the initially selected stall in the selected state is the second display mode, such as presenting an effect of black characters filled with a white background. As shown in interface (b), it can be seen that the player performs a trigger operation such as a click operation on the right arrow 3001 in the first control 300. Compared with interface (b), as shown in interface (c), the selected stall identifier is switched or changed. At the same time, it can be seen that the stall identifier 303 resumes to be displayed with an effect of black characters filled with a gray background, while the stall identifier 304 is displayed with an effect of black characters filled with a white background. As shown in interface (c), it can be seen that the player performs a trigger operation such as a click operation on the down arrow 3002 in the first control 300. Compared with interface (c), as shown in interface (d), the currently selected virtual stall is switched or changed, that is, the currently selected virtual stall is the virtual stall corresponding to the stall identifier "Weapons 86 Damage". At the same time, it can be seen that the stall identifier 304 resumes to be displayed with an effect of black characters filled with a gray background, while the stall identifier 305 is displayed with an effect of black characters filled with a white background.
[0085] In the control method in the game provided in the embodiment of the present application, a graphical user interface is displayed. The graphical user interface includes part of the game scene and a mode switching control. The game scene includes a virtual character and multiple virtual stalls. Among them, the mode switching control is used to switch between the first control mode and the second control mode. In the first control mode, the virtual character is controlled through the first control, and in the second control mode, the virtual stalls are controlled through the first control. In the first control mode, in response to a trigger operation on the first control, the virtual character is controlled to move between multiple virtual stalls in the game scene. In response to a trigger operation on the mode switching control, the current control mode is controlled to be switched from the first control mode to the second control mode. In response to a trigger operation on the first control, the multiple virtual stalls are controlled to be switched and selected, and the currently selected virtual stall is determined according to the trigger operation.
[0086] Compared with the prior art, the present application switches the object controlled by the player through the first control by switching the control mode. In the first control mode, the player controls the virtual character to shuttle between the virtual stalls in the scene through the first control. In this control mode, the player needs to use his fingers to perform contact touch operations such as click operations on the virtual stalls on the graphical user interface. In the case where the number of stall logos is small, the display size is large, the stall logo that the player wants to select does not overlap with the display position of other controls, and the distance between the display area of the stall name and the interactive control area is close, the first control mode is adopted to meet the user's operation needs. However, in the case where the number of virtual stalls displayed is large, the display size is small, the virtual stall that the player wants to select overlaps with the display position of other controls, and the distance between the display area of the stall name and the interactive control area is far, the first control mode no longer meets the user's operation needs, resulting in the player's operation fluency and operation efficiency. In the case of a large number of virtual stalls, a small display size, the virtual stall that the player wants to select overlapping with the display position of other controls, or a long distance between the display area of the stall name and the interactive control area, the player can choose to switch the first control mode to the second control mode. In the second control mode, the player can select the virtual stall he wants to select by performing a trigger operation on the first control in a switching selection manner. During the entire selection process, the player only needs to perform a trigger operation on the first control, and is no longer limited by any of the following limited situations: a large number of virtual stalls, a small display size, the virtual stall that the player wants to select does not conflict with other controls, or the display area of the stall name is far away from the interactive control area. In the second control mode, the player's operation fluency and accuracy are greatly improved.
[0087] Based on the above embodiments, the control method in the game provided by this application is further introduced:
[0088] In an optional implementation manner, the control method in the game provided in the embodiment of the present application further includes the following steps S501-S502:
[0089] S501: In response to a trigger operation on a mode switching control, control the current control mode to be switched from the second control mode to the first control mode.
[0090] S502: In response to a touch operation on one of the third virtual stalls, the currently selected virtual stall is switched to a fourth virtual stall, where the third virtual stall is a virtual stall other than the currently selected stall.
[0091] In the embodiment of the present application, in the second control mode, in response to the touch operation on the mode switching control, after the control mode is changed from the second control mode to the first control mode, the display mode of the stall logo currently displayed in the second display mode is switched to the third display mode, that is, all the stall logos on the graphical user interface are displayed in the third display mode. In the first control mode, in response to the player's operation on one of the third virtual stalls, the currently selected virtual stall is switched to the fourth virtual stall, that is, the fourth virtual stall is displayed in the first display mode. Among them, the third virtual stall is a virtual stall other than the currently selected stall, and the fourth virtual stall belongs to the virtual stall that receives the player's touch operation among all the third virtual stalls displayed on the graphical user interface.
[0092] For example, in combination Figure 4 , a possible implementation of the above steps S501-S502 is exemplarily described, Figure 4 A schematic diagram of selecting a virtual stall after switching from the second control mode to the first control mode provided in an embodiment of the present application.
[0093] like Figure 4 As shown, it includes interface (a), interface (b) and interface (c). As shown in interface (a), in the second control mode, the player is seen to touch the mode switching control 401 with a finger. As shown in interface (b), the player is seen to touch the stall logo 402 with a finger. Before the touch operation, the stall logo 402 is in an unselected state, that is, it is a black text with a gray background filling effect. Subsequently, as shown in interface (c), the stall logo 402 is in a selected state, that is, it is a black text with a dark gray background filling effect (third display mode).
[0094] In an embodiment of the present application, the player can switch between the first control mode and the second control mode according to the actual display of the booth logo and his own operating habits, which improves the player's sense of control and helps to enhance the immersive experience of the game.
[0095] In an optional implementation manner, the control method in the game provided in the embodiment of the present application further includes the following step S601:
[0096] S601: In response to a product display instruction for a currently selected virtual stall, a product display page is displayed, wherein the product display page includes product information of virtual products sold by the currently selected virtual stall.
[0097] In an embodiment of the present application, the player triggers the generation of a product display instruction for the currently selected virtual stall by performing a touch operation on the selected virtual stall, or by the player triggering an operation on a product display control, etc., which is just an example.
[0098] Exemplarily, in combination with Figure 5 an exemplary description is given of a possible implementation manner of the above step S601. Figure 5 It is a schematic diagram showing a product display page of a selected virtual booth provided by an embodiment of the present application.
[0099] As Figure 5 shown, it includes interface (a) and interface (b). As shown in interface (a), in the second control mode, the booth identifier of the currently selected virtual booth is booth identifier 501, that is, the booth identifier "Caidaoqiang 86 Shang". A product display control 503 is displayed in the first control 502. At the same time, it can be seen that the player has triggered an operation on the product display control 503 with a finger. Subsequently, as shown in interface (b), a product display page 504 of the virtual booth corresponding to the booth identifier "Caidaoqiang 86 Shang" is displayed.
[0100] An alternative implementation manner is that the graphical user interface includes a first display area and a second display area, and the positions between the first display area and the second display area are relatively set. After the control method in the embodiment of the present application executes step S601, the following steps S6021 - S6022 may further be included:
[0101] S6021. In response to a comparison viewing instruction for a first virtual product in the product display page, control the display of product information of the first virtual product in the first display area.
[0102] S6022. In response to a product comparison instruction taking the first virtual booth as a comparison booth, determine a product with the same product name as the first virtual product in the first virtual booth as a second virtual product for comparison with the first virtual product, and display product information of the second virtual product in the second display area.
[0103] In the embodiment of the present application, the player can trigger a comparison viewing instruction by performing a touch operation on a comparison control to generate a comparison viewing instruction for a first virtual product in the product display page.
[0104] As mentioned above, the first virtual product is a product in a selected state among multiple virtual products displayed on the product display page. Exemplarily, the product display page includes four virtual products, namely virtual product 1, virtual product 2, virtual product 3, and virtual product 4. For example, when the player selects virtual product 2, then the first virtual product refers to virtual product 2. Triggering the generation of a comparison viewing instruction for the first virtual product in the product display page means, that is, making a comparison for this virtual product 2.
[0105] In the embodiment of the present application, the graphical user interface includes a first display area and a second display area that are relatively arranged in position. For example, the relative position arrangement may be a left-right relative arrangement, a top-bottom relative arrangement, a diagonal arrangement, etc., which are only examples. In this way, the user can compare and view the contents displayed in the first display area and the second display area.
[0106] In an embodiment of the present application, in response to a player's comparison view instruction for a first virtual commodity in a commodity display page, the commodity information of the first virtual commodity is controlled to be displayed in the first display area. In response to a player's commodity comparison instruction to use the first virtual stall as a comparison stall, a commodity in the first virtual stall with the same commodity name as the first virtual commodity is determined as a second virtual commodity to be compared with the first virtual commodity, and the commodity information of the second virtual commodity is controlled to be displayed in the second display area. The first virtual stall is not the same as the virtual stall displayed on the commodity display page.
[0107] For example, in combination Figure 6 and one A specific embodiment is used to exemplify a possible implementation method of the above steps S6021-S6022. Figure 6 A schematic diagram of comparing products between different virtual stalls provided in one embodiment of the present application.
[0108] like Figure 6As shown, it includes interface (a), interface (b), interface (c) and interface (d). As shown in interface (a), in the product display page 6001, a comparison control 601 is also displayed. The comparison control 601 is used for players to perform a comparison viewing operation on the first virtual product in the virtual booth with the booth identifier 6041 being "Caidaoqiang 86 damage" in the product display page 6001, and trigger the generation of a comparison viewing instruction. In the product display page 6001, the product information of the virtual product in the upper left corner is thicker than that of the other three virtual products. At this time, the selected virtual product is the virtual product in the upper left corner, that is, the first virtual product 6002, and the product name is "Ruyidan". It can be seen that the player triggers the operation on the comparison control 601 with a finger, such as a click operation. Subsequently, as shown in interface (b), the product information 6031 of the first virtual product 6002 is displayed in the first display area 6021. Among them, the first display area 6021 and the second display area 6022 are arranged opposite to each other left and right. It can be seen that the player triggers the operation on the blank second display area 6022 with a finger, such as a click operation. Subsequently, as shown in interface (b), the display of the product display page 6001 is cancelled. As shown in interface (c), in the case of selecting the virtual booth 6042, the player triggers the operation on the product display control 605 with a finger, that is, triggers to determine the virtual booth corresponding to the booth identifier 6042 being "Building 14 Wu 86 damage" as the first virtual booth, and triggers the generation of a product comparison instruction with this first virtual booth as the comparison booth. Subsequently, as shown in interface (c), the product information 6032 of the second virtual product is displayed in the second display area 6022. Among them, the second virtual product is the product in the virtual booth sold by the first virtual booth and having the same product name as the first virtual product 6031, that is, the product name is "Ruyidan", and it is determined as the product to be compared with the first virtual product.
[0109] An optional implementation manner. In the control method in the game provided in the embodiment of the present application, before performing step 6021 "in response to a comparison viewing instruction for the first virtual product in the product display page, control to display the product information of the first virtual product in the first display area", the following step S6023 is also included:
[0110] S6023. In response to a cancellation display instruction for the product display page, cancel the display of the product display page and display the second virtual booth in a third display mode. The second virtual booth refers to the virtual booth that sells products with the same product name as the first virtual product except for the currently selected booth identifier.
[0111] In the embodiment of the present application, considering that the player has triggered a comparison view instruction for the first virtual product in the product display page, the user needs to find a virtual stall from other stalls that has a virtual product with the same product name as the first virtual product, and determine the virtual stall as the target virtual stall as the comparison stall. However, when the product display page is currently displayed, this product display page will block part of the virtual stall logo, making it inconvenient for the player to find the comparison stall. Therefore, before determining the target virtual stall, the player can trigger a cancel display instruction for the product display page to cancel the display of the product display page.
[0112] Furthermore, in order to facilitate players to find which stalls have virtual goods with the same product name as the first virtual goods, in the present application, the second virtual stall is controlled to be displayed in the third display mode, wherein the second virtual stall refers to a virtual stall that sells goods with the same product name as the first virtual goods, except for the currently selected virtual stall. In this way, when players observe the second virtual stall displayed in the third display mode, they can know at a glance which virtual stalls have virtual goods with the same product name as the first virtual goods, and can know at a glance which stalls can be used as comparison stalls, thus avoiding the cumbersome and complicated operations caused by players checking the corresponding product display pages of each stall identification one by one to check which virtual goods it has, so the present application improves the operating efficiency of players.
[0113] In an optional implementation manner, the control method in the game provided in the embodiment of the present application, after executing "displaying the second virtual booth in the third display mode" in step 6023, further includes the following steps S6024-S6025:
[0114] S6024: In response to a comparison booth determination instruction for one of the second virtual booths, determine the second virtual booth corresponding to the comparison booth determination instruction as a comparison booth, and display the comparison booth in a fourth display mode.
[0115] S6025. Trigger generation of a product comparison instruction to use the second virtual stall corresponding to the comparison stall determination instruction as the comparison stall.
[0116] As described above, the player triggers the comparison booth determination instruction for one of the second virtual booths. When one of the second virtual booths is selected, the player performs a trigger operation on the booth merchandise comparison control, thereby generating the comparison booth determination instruction for the selected second virtual booth.
[0117] In the embodiment of the present application, the player determines the second virtual stall corresponding to the stall product comparison instruction as the target virtual stall for the stall product comparison instruction of one of the second virtual stalls, and switches the display mode of the target virtual stall to the fourth display mode. The fourth display mode is different from the third display mode. Here, the selected target virtual stall is displayed in the fourth display mode, which can emphasize and highlight which second virtual stall among multiple second virtual stalls is selected as the target virtual stall, so that the player can clearly know which second virtual stall he has selected as the target virtual stall.
[0118] For example, in combination Figure 7 and one A specific example is used to illustrate steps S6023-S6025. Figure 7 A schematic diagram of canceling the display of a product display page and performing product comparison provided in one of the embodiments of the present application.
[0119] like Figure 7 As shown in the figure, it includes interface (a), interface (b), interface (c) and interface (d). As shown in interface (a), the first display area displays the product information 7031 of the first virtual product. It can be seen that the player triggers the page close control 702 in the upper right corner of the product display page 701 with a finger, such as a single click. Subsequently, as shown in interface (b), the product display page 701 is canceled on the graphical user interface. And in the third display mode (i.e., the display mode with a bold dashed line of the identification border), multiple second virtual stalls are displayed, namely virtual stall 7041, virtual stall 7042, virtual stall 7043, virtual stall 7044, virtual stall 7045, virtual stall 7046, and virtual stall 7047. It can be seen that the player triggers the upward displacement control in the first control 705 with a finger, such as a single click. Subsequently, as shown in interface (c), virtual stall 7042 is the currently selected second virtual stall, i.e., the target virtual stall. It can be seen that the player triggers the product display control 706 with a finger, such as a single click. Subsequently, as shown in interface (d), the second display area displays product information 7032 of a second virtual product in a virtual stall 7042 having the same product name as the first virtual product.
[0120] In an optional implementation manner, the control method in the game provided in the embodiment of the present application, after executing step 6022, further includes the following step S6026:
[0121] S6026: Display commodity difference information, where the commodity difference information refers to the difference in commodity attributes between the first virtual commodity and the second virtual commodity.
[0122] As mentioned above, virtual goods of different equipment in the game have their own corresponding commodity attributes. For example, for equipment-type virtual goods, commodity attributes may include but are not limited to attack power, defense power, health value, magic value / energy value, critical hit rate, critical hit damage, movement speed, dodge rate, and hit rate. For skill-type virtual goods, commodity attributes may include but are not limited to cooling time, casting range, casting speed, skill damage, skill effect, and consumption reduction. For consumables-type virtual goods, commodity attributes may include but are not limited to restoring life, restoring magic / energy, gain effect, removing negative status, experience bonus, money bonus, rarity, and skill-type goods. The above is only an example, and the embodiments of the present application do not impose any restrictions on this.
[0123] In the embodiment of the present application, by clearly displaying the difference in commodity attributes between the first virtual commodity and the second virtual commodity, that is, commodity difference information, the player can quickly compare the first virtual commodity and the second virtual commodity, understand which attributes the first virtual commodity and the second virtual commodity differ in, and thus make a more appropriate choice. In addition, the player can quickly identify the difference without having to check the commodity details one by one, saving the player's time and energy.
[0124] For example, in combination Figure 8 and one A possible implementation of step S6026 is described as follows: Figure 8 A schematic diagram showing product difference information provided in one of the embodiments of the present application.
[0125] like Figure 8 As shown, the product information 8001 of the first virtual product and the product information 8002 of the second virtual product are displayed, and the product difference information 801 of the first virtual product and the second virtual product is also displayed. Among them, the product difference information 801 indicates that compared with the first virtual product, the blood replenishing attribute of the second virtual product is 1000 more and the mana replenishing attribute is 500 less.
[0126] In an optional implementation manner, the control method in the game provided in the embodiment of the present application, after executing step 6022, further includes the following step S6027:
[0127] S6027: Determine a recommended commodity from the first virtual commodity and the second virtual commodity according to the difference in commodity attributes between the first virtual commodity and the second virtual commodity, and display a recommendation mark in a display area corresponding to the recommended commodity.
[0128] In an embodiment of the present application, the differences between the first virtual commodity and the second virtual commodity in various commodity attributes, such as attack power, defense power, health value, etc., are first compared. Based on the comparison results, the system will select one of the commodities as the recommended commodity. This selection may be based on certain criteria, such as which commodity has a higher cost-effectiveness, is more suitable for the current needs of the player, etc. An obvious recommendation logo is added to the display area of the recommended commodity so that players can immediately identify the recommended commodity. In this way, by highlighting the recommended commodities, players can more quickly identify which commodity is more suitable for their current needs and reduce decision-making time. In addition, for players who are not familiar with the attributes of the commodities in the game or do not have enough time to research, the recommendation logo simplifies the shopping experience and allows them to quickly find high-quality commodities.
[0129] For example, in combination Fig. 9 and one A possible implementation of step S6027 is described as follows: Fig. 9 A schematic diagram showing a recommendation logo provided in one of the embodiments of the present application.
[0130] like Fig. 9 As shown, the product information 9001 of the first virtual product and the product information 9002 of the second virtual product are displayed, and the product difference information 901 of the first virtual product and the second virtual product is also displayed. Among them, the product difference information 901 indicates that compared with the first virtual product, the blood replenishing attribute of the second virtual product is 1000 more, and the mana replenishing attribute is 500 less. Furthermore, a recommendation mark 903 is displayed on the product information 9002 of the second virtual product for players' reference.
[0131] In an optional implementation manner, the control method in the game provided in the embodiment of the present application, after executing step 6022, further includes the following step S6028:
[0132] S6028. In response to the commodity switching display instruction, the commodities displayed in the first display area and the second display area are swapped.
[0133] In the embodiment of the present application, the commodity in the first display area is used as the current pre-purchase commodity. If the player intends to purchase the commodity displayed in the second display area, in response to the player's switch display instruction for the first virtual commodity and the second virtual commodity, the commodities displayed in the first display area and the second display area are exchanged.
[0134] As mentioned above, the triggering of the commodity switching display instruction can be through the commodity switching display control displayed on the graphical display interface. The player can generate the commodity switching display instruction by performing a triggering operation on the commodity switching display control.
[0135] For example, in combination Fig.10 and one A possible implementation of step S6028 is described as follows: Fig.10 A schematic diagram showing the swapping of display positions of a first virtual commodity and a second virtual commodity provided in one embodiment of the present application.
[0136] like Fig.10 As shown in the figure, it includes interface (a) and interface (b). As shown in interface (a), Fig. 9 On the basis of FIG. 1 , a position swap control 1005 is added to the graphical user interface. The player can use a finger to trigger the position swap control 1005, such as a double-click operation. Then, as shown in interface (b), the product information 1001 and the product information 1002 are swapped in display position.
[0137] In an optional implementation manner, the control method in the game provided in the embodiment of the present application, after executing step 6022, further includes the following step S6029:
[0138] S6029: In response to a purchase instruction for the virtual commodity displayed in the first display area, display a purchase page for purchasing the virtual commodity displayed in the first display area.
[0139] In the embodiment of the present application, directly jumping from the commodity display area of the first virtual commodity to the purchase page for the first virtual commodity reduces the steps for the player to switch between different pages, making the purchase process smoother and more efficient.
[0140] In an optional implementation manner, the control method in the game provided in the embodiment of the present application further includes the following step S70:
[0141] S70. In the second control mode, in response to a trigger operation on the first control, the virtual character and the virtual camera are controlled to move in the game scene according to the trigger operation, and the virtual camera is used to follow the virtual character to shoot.
[0142] In the embodiment of the present application, in the second control mode, in response to the player's trigger operation on the first control, the virtual character and the target virtual camera are synchronously controlled to move in the game scene according to the trigger operation. The target virtual camera is used to shoot the virtual character. In this way, in the second control mode, the player automatically controls the virtual character and the target virtual camera to move in the game scene according to the first trigger operation, so that the virtual character automatically moves with the virtual stall selected by the player, reducing the requirements for the player to operate the virtual character.
[0143] In an optional implementation manner, a possible implementation manner of the step of "controlling the virtual character and the virtual camera to move in the game scene according to the trigger operation" includes step S701:
[0144] S701: According to the currently selected virtual stall determined by the trigger operation, control the virtual character to move to the location of the currently selected virtual stall in the game scene, and control the virtual camera to move with the virtual character.
[0145] In an embodiment of the present application, the currently selected virtual stall is determined according to the trigger operation performed by the player, the virtual character is controlled to move to the location of the currently selected virtual stall, and the target virtual camera is controlled to move with the virtual character. Therefore, the currently selected virtual stall is determined by the trigger operation performed by the player. At the same time, the game system controls the virtual character to move in front of the currently selected virtual stall, and the target virtual camera also moves with the virtual character to ensure that the camera always keeps tracking the virtual character, so that the player can clearly see the actions of the virtual character and the surrounding environment. This automatic synchronous movement mechanism simplifies the player's operation steps.
[0146] The control device in the game provided by the present application is described below. The control device in the game described below and the control method in the game described above can be referenced to each other.
[0147] Fig.11 This is a schematic diagram of the structure of a control device in a game provided by one embodiment of the present application. Fig.11 As shown, the control device 1100 in the game includes: a display module 1101 , a first control module 1102 , a switching module 1103 and a second control module 1104 .
[0148] A display module, used to display a graphical user interface, wherein the graphical user interface includes a portion of a game scene and a mode switching control, wherein the game scene includes a virtual character and a plurality of virtual stalls; wherein the mode switching control is used to switch between a first control mode and a second control mode, wherein the virtual character is controlled by a first control in the first control mode, and the virtual stall is controlled by the first control in the second control mode;
[0149] a first control module, configured to control the virtual character to move between a plurality of virtual stalls in the game scene in response to a trigger operation on the first control in the first control mode;
[0150] a switching module, configured to control the current control mode to be switched from the first control mode to the second control mode in response to a trigger operation on the mode switching control;
[0151] The second control module is used to control the switching and selection of the multiple virtual stalls in response to the trigger operation on the first control, and determine the currently selected virtual stall according to the trigger operation.
[0152] In an optional implementation manner, the second control module is further used for:
[0153] An initially selected booth is determined from the plurality of virtual booths, and the initially selected booth is displayed in a second display mode.
[0154] In an optional implementation manner, the display module is further used for:
[0155] In response to the commodity display instruction for the currently selected virtual stall, a commodity display page is displayed, wherein the commodity display page includes commodity information of the virtual commodity sold by the currently selected virtual stall.
[0156] In an optional implementation manner, the graphical user interface includes a first display area and a second display area, the first display area and the second display area are arranged relative to each other, and the device further includes a comparison module, the comparison module is specifically used to:
[0157] In response to a comparison view instruction for a first virtual commodity in the commodity display page, controlling the display of commodity information of the first virtual commodity in the first display area;
[0158] In response to a product comparison instruction to use the first virtual stall as a comparison stall, a product in the first virtual stall having the same product name as the first virtual product is determined as a second virtual product to be compared with the first virtual product, and product information of the second virtual product is displayed in the second display area.
[0159] In an optional implementation manner, the comparison module is further used for:
[0160] In response to a cancel display instruction for the product display page, the product display page is canceled and a second virtual stall is displayed in a third display mode, wherein the second virtual stall refers to a virtual stall that sells products with the same product name as the first virtual product except for the currently selected stall logo.
[0161] In an optional implementation manner, the comparison module is further used for:
[0162] In response to a comparison booth determination instruction for one of the second virtual booths, determining the second virtual booth corresponding to the comparison booth determination instruction as the comparison booth, and displaying the comparison booth in a fourth display mode;
[0163] The trigger generates a commodity comparison instruction for using the second virtual stall corresponding to the comparison stall determination instruction as the comparison stall.
[0164] In an optional implementation manner, the comparison module is further used for:
[0165] The commodity difference information is displayed, where the commodity difference information refers to the difference in commodity attributes between the first virtual commodity and the second virtual commodity.
[0166] In an optional implementation manner, the comparison module is further used for:
[0167] According to the difference in each commodity attribute between the first virtual commodity and the second virtual commodity, a recommended commodity is determined from the first virtual commodity and the second virtual commodity, and a recommendation mark is displayed in a display area corresponding to the recommended commodity.
[0168] In an optional implementation manner, the comparison module is further used for:
[0169] In response to the commodity switching display instruction, the commodities displayed in the first display area and the commodities displayed in the second display area are exchanged.
[0170] In an optional implementation manner, the display module is further used for:
[0171] In response to a purchase instruction for the virtual commodity displayed in the first display area, a purchase page for purchasing the virtual commodity displayed in the first display area is displayed.
[0172] In an optional implementation manner, the second control module is further used for:
[0173] In the second control mode, in response to a trigger operation on the first control, the virtual character and the virtual camera are controlled to move in the game scene according to the trigger operation, and the virtual camera is used to follow the virtual character to shoot.
[0174] In an optional implementation manner, the second control module is specifically configured to:
[0175] According to the currently selected virtual stall determined by the trigger operation, the virtual character is controlled to move to the position of the currently selected virtual stall in the game scene, and the virtual camera is controlled to move with the virtual character.
[0176] In an optional implementation manner, the second control module is further used for:
[0177] A virtual booth at the center of the graphical user interface is determined as the initially selected booth.
[0178] In an optional implementation manner, the switching module is further used for:
[0179] In response to a trigger operation on the mode switching control, controlling the current control mode to be switched from the second control mode to the first control mode;
[0180] In response to a touch operation on one of the third virtual stalls, the currently selected virtual stall is switched to the fourth virtual stall, and the third virtual stall is a virtual stall other than the currently selected stall.
[0181] The control device in the game provided in this embodiment can be used to execute the technical solution of the control method embodiment in the above game. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0182] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application is shown in FIG. Fig.12 As shown, the electronic device 1200 of this embodiment includes: a processor 1201 and a memory 1202;
[0183] Memory 1202, used to store computer-executable instructions;
[0184] The processor 1201 is used to execute the computer-executable instructions stored in the memory to implement the various steps executed by the control method in the game in the above embodiment. For details, please refer to the relevant description in the above method embodiment.
[0185] Optionally, the memory 1202 may be independent or integrated with the processor 1201 .
[0186] When the memory 1202 is independently provided, the electronic device further includes a bus 1203 for connecting the memory 1202 and the processor 1201 .
[0187] One embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a technical solution corresponding to the control method in the game in any of the above embodiments executed by the above electronic device is implemented.
[0188] One embodiment of the present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium. At least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the technical solution corresponding to the control method in the game in any of the above embodiments.
[0189] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
[0190] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0191] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application.
[0192] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0193] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0194] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0195] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0196] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0197] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A game control method, characterized in that: The method comprises: Displaying a graphical user interface, wherein the graphical user interface includes a portion of a game scene and a mode switching control, wherein the game scene includes a virtual character and a plurality of virtual stalls; wherein the mode switching control is used to switch between a first control mode and a second control mode, wherein the virtual character is controlled by a first control in the first control mode, and the virtual stall is controlled by the first control in the second control mode; In the first control mode, in response to a trigger operation on the first control, controlling the virtual character to move between a plurality of virtual stalls in the game scene; In response to a trigger operation on the mode switching control, controlling the current control mode to be switched from the first control mode to the second control mode; In response to a trigger operation on the first control, the plurality of virtual stalls are controlled to be switched and selected, and a currently selected virtual stall is determined according to the trigger operation.
2. The method according to claim 1, characterized in that In the first control mode, the plurality of virtual stalls are displayed in a first display mode; after the current control mode is switched from the first control mode to the second control mode in response to a trigger operation on the mode switching control, the method further includes: An initially selected booth is determined from the plurality of virtual booths, and the initially selected booth is displayed in a second display mode.
3. The method according to claim 1, characterized in that: The method further comprises: In response to the commodity display instruction for the currently selected virtual stall, a commodity display page is displayed, wherein the commodity display page includes commodity information of the virtual commodity sold by the currently selected virtual stall.
4. The method according to claim 3, characterized in that The graphical user interface includes a first display area and a second display area, the first display area and the second display area are arranged relative to each other, and the method further includes: In response to a comparison view instruction for a first virtual commodity in the commodity display page, controlling the display of commodity information of the first virtual commodity in the first display area; In response to a product comparison instruction to use the first virtual stall as a comparison stall, a product in the first virtual stall having the same product name as the first virtual product is determined as a second virtual product to be compared with the first virtual product, and product information of the second virtual product is displayed in the second display area.
5. The method according to claim 4, characterized in that After controlling the display of the commodity information of the first virtual commodity in the first display area in response to the comparison viewing instruction for the first virtual commodity in the commodity display page, the method further includes: In response to a cancel display instruction for the product display page, the product display page is canceled and a second virtual stall is displayed in a third display mode, wherein the second virtual stall refers to a virtual stall that sells products with the same product name as the first virtual product except for the currently selected stall logo.
6. The method according to claim 5, characterized in that After displaying the second virtual booth in the third display mode, the method further includes: In response to a comparison booth determination instruction for one of the second virtual booths, determining the second virtual booth corresponding to the comparison booth determination instruction as the comparison booth, and displaying the comparison booth in a fourth display mode; The trigger generates a commodity comparison instruction for using the second virtual stall corresponding to the comparison stall determination instruction as the comparison stall.
7. The method according to claim 4, characterized in that The method further comprises: The commodity difference information is displayed, where the commodity difference information refers to the difference in commodity attributes between the first virtual commodity and the second virtual commodity.
8. The method according to claim 4 or 7, characterized in that: The method further comprises: According to the difference in each commodity attribute between the first virtual commodity and the second virtual commodity, a recommended commodity is determined from the first virtual commodity and the second virtual commodity, and a recommendation mark is displayed in a display area corresponding to the recommended commodity.
9. The method according to claim 4, characterized in that The method further comprises: In response to the commodity switching display instruction, the commodities displayed in the first display area and the commodities displayed in the second display area are exchanged.
10. The method according to claim 9, characterized in that The method further comprises: In response to a purchase instruction for the virtual commodity displayed in the first display area, a purchase page for purchasing the virtual commodity displayed in the first display area is displayed.
11. The method according to claim 1, characterized in that: The method further comprises: In the second control mode, in response to a trigger operation on the first control, the virtual character and the virtual camera are controlled to move in the game scene according to the trigger operation, and the virtual camera is used to follow the virtual character for shooting.
12. The method according to claim 11, characterized in that The step of controlling the virtual character and the virtual camera to move in the game scene according to the trigger operation includes: According to the currently selected virtual stall determined by the trigger operation, the virtual character is controlled to move to the position of the currently selected virtual stall in the game scene, and the virtual camera is controlled to move with the virtual character.
13. The method according to claim 2, characterized in that The step of determining an initially selected booth from the plurality of virtual booths comprises: A virtual booth at the center of the graphical user interface is determined as the initially selected booth.
14. The method according to claim 1, characterized in that The method further comprises: In response to a trigger operation on the mode switching control, controlling the current control mode to be switched from the second control mode to the first control mode; In response to a touch operation on one of the third virtual stalls, the currently selected virtual stall is switched to the fourth virtual stall, and the third virtual stall is a virtual stall other than the currently selected stall.
15. A control device in a game, characterized in that: The device comprises: A display module displays a graphical user interface, wherein the graphical user interface includes a portion of a game scene and a mode switching control, wherein the game scene includes a virtual character and a plurality of virtual stalls; wherein the mode switching control is used to switch between a first control mode and a second control mode, wherein the virtual character is controlled by a first control in the first control mode, and the virtual stall is controlled by the first control in the second control mode; a first control module, configured to control the virtual character to move between a plurality of virtual stalls in the game scene in response to a trigger operation on the first control in the first control mode; a switching module, configured to control the current control mode to be switched from the first control mode to the second control mode in response to a trigger operation on the mode switching control; The second control module is used to control the switching and selection of the multiple virtual stalls in response to the trigger operation on the first control, and determine the currently selected virtual stall according to the trigger operation.
16. An electronic device, characterized in that: The electronic device comprises: Processor; and The memory is used to store a data processing program. After the electronic device is powered on and the program is run by the processor, the control method in the game as described in any one of claims 1 to 14 is executed.
17. A computer-readable storage medium, characterized in that: A data processing program is stored, and the program is run by a processor to execute the control method in the game according to any one of claims 1-14.
