Game control method, device and equipment and computer readable storage medium
By displaying the directional controls in the game screen and adjusting their display mode according to gesture operations, the problem of players being difficult to accurately determine the movement of virtual objects is solved, and the control effect and shooting accuracy are improved.
Patent Information
- Application Number
- CN202311608837.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, it is difficult for players to accurately determine how virtual objects move in the virtual environment, resulting in poor control effects, especially in precise aiming and short-term shooting games.
By displaying the directional controls in the game screen and adjusting the display mode of the directional controls according to the operating distance of the target gesture operation for the directional controls, the movement mode of the virtual object is static or non-static.
Improves the accuracy of players' movement of virtual objects in the virtual environment, enhances the control effect of virtual objects, and improves the shooting accuracy in the game.
Smart Images

Figure CN120053983A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of computer technologies, and particularly to a game control method, apparatus, device, and computer-readable storage medium. Background Art
[0002] With the continuous development of computer technologies, there are more and more types of games running on terminal devices. There are various ways for virtual objects in games to move in a virtual environment, and the silent walking mode is one of them.
[0003] In related technologies, a game screen is displayed, the game screen includes a direction control, and the direction control is used to control the movement of a virtual object in a virtual environment; in response to a target gesture operation on the direction control, an operation distance corresponding to the target gesture operation is determined; based on the operation distance being less than a silent walking range threshold, the virtual environment is controlled to generate a slight shake, so that a player can determine that the movement mode of the virtual object in the virtual environment is the silent walking mode; based on the operation distance being not less than the silent walking range threshold, the virtual environment is controlled to generate a large shake, so that the player can determine that the movement mode of the virtual object in the virtual environment is not the silent walking mode.
[0004] However, a player can only perceive the movement mode of a virtual object in a virtual environment according to the shake degree of the virtual environment, so that the accuracy of the determined movement mode of the virtual object is relatively low. Moreover, for games such as precise aiming and short-time shooting, the shake of the virtual environment will affect the shooting accuracy of the player. Therefore, in order to ensure the shooting accuracy of the player, the virtual environment will not shake as the virtual object moves in such games, which makes the player unable to perceive the movement mode of the virtual object in the virtual environment. Since the player needs to control the virtual object according to the movement mode of the virtual object, the control effect of the player on the virtual object is relatively poor. Summary of the Invention
[0005] Embodiments of the present application provide a game control method, apparatus, device, and computer-readable storage medium, which can be used to solve the problems in related technologies that the accuracy of the determined movement mode of a virtual object in a virtual environment is relatively low, the player cannot perceive the movement mode of the virtual object in the virtual environment, and the control effect of the player on the virtual object is relatively poor. The technical solutions are as follows:
[0006] On the one hand, embodiments of the present application provide a game control method, and the method includes:
[0007] Display a game screen, where the game screen includes a direction control, the direction control is used to control the movement of a virtual object in a virtual environment, and the display mode of the direction control is a first display mode, and the first display mode is used to indicate that the movement mode of the virtual object in the virtual environment is not the silent walking mode;
[0008] In response to a target gesture operation on the direction control, the direction control is displayed in the display manner after adjustment of the direction control. The operation distance corresponding to the target gesture operation is not greater than the static step range threshold. The display manner after adjustment of the direction control is determined based on the operation distance. The display manner after adjustment of the direction control is used to indicate that the movement manner of the virtual object in the virtual environment is the static step manner.
[0009] On the other hand, an embodiment of the present application provides a game control device, and the device includes:
[0010] A display module, configured to display a game screen. The game screen includes a direction control for controlling the movement of a virtual object in a virtual environment. The display manner of the direction control is a first display manner, and the first display manner is used to indicate that the movement manner of the virtual object in the virtual environment is a non-static step manner;
[0011] The display module is further configured to, in response to a target gesture operation on the direction control, display the direction control in the display manner after adjustment of the direction control. The operation distance corresponding to the target gesture operation is not greater than the static step range threshold. The display manner after adjustment of the direction control is determined based on the operation distance. The display manner after adjustment of the direction control is used to indicate that the movement manner of the virtual object in the virtual environment is the static step manner.
[0012] In a possible implementation manner, the device further includes:
[0013] A determination module, configured to use the second display manner as the display manner after adjustment of the direction control based on the operation distance not being greater than the distance threshold. The distance threshold is less than the static step range threshold. The second display manner is used to indicate that the movement manner of the virtual object in the virtual environment has not changed; use the third display manner as the display manner after adjustment of the direction control based on the operation distance being the static step range threshold. The third display manner is used to indicate that the movement manner of the virtual object in the virtual environment is about to change; use the fourth display manner as the display manner after adjustment of the direction control based on the operation distance being greater than the distance threshold and less than the static step range threshold. The fourth display manner corresponds to the operation distance. The operation distance is positively correlated with the static step range threshold. The fourth display manner is positively correlated with the third display manner. The operation distance is positively correlated with the distance threshold. The fourth display manner is positively correlated with the second display manner; wherein, the second display manner, the third display manner, and the fourth display manner are all used to indicate that the movement manner of the virtual object in the virtual environment is the static step manner.
[0014] In a possible implementation, the display module is further configured to, in response to a target gesture operation on the direction control, display a silent walking indicator in the game screen, where the silent walking indicator is used to indicate that the movement mode of the virtual object in the virtual environment is the silent walking mode, and the operation distance corresponding to the target gesture operation is not greater than the silent walking range threshold.
[0015] In a possible implementation, the display mode of the silent walking indicator is the same as the display mode after the direction control is adjusted.
[0016] In a possible implementation, the device further includes:
[0017] A determination module, configured to determine the display position of the silent walking indicator according to the target gesture operation on the direction control based on the operation distance not being greater than the silent walking range threshold;
[0018] The display module is configured to display the silent walking indicator at the display position of the silent walking indicator in the game screen.
[0019] In a possible implementation, the determination module is configured to, based on the type of the direction control being a fixed direction control and the target gesture operation on the direction control being a trigger operation on the direction control, determine a first ray starting from the center of the direction control and passing through the position corresponding to the trigger operation; use the first point on the first ray as the display position of the silent walking indicator, where the distance between the first point and the second point meets the distance requirement, and the first point is not located on the direction control, and the second point is the intersection point of the first ray and the direction control.
[0020] In a possible implementation, the determination module is configured to, based on the type of the direction control being a following direction control and the target gesture operation on the direction control being a continuous gesture operation of sliding after triggering, determine a second ray starting from the position corresponding to the trigger operation and passing through the end position of the sliding operation; determine a third ray parallel to the second ray and starting from the center of the direction control; use the third point on the third ray as the display position of the silent walking indicator, where the distance between the third point and the fourth point meets the distance requirement, and the third point is not located on the direction control, and the fourth point is the intersection point of the third ray and the direction control.
[0021] In a possible implementation, the type of the direction control is a fixed direction control, and the target gesture operation on the direction control is a trigger operation on the direction control;
[0022] The determining module is configured to, in response to a triggering operation on the direction control, determine the distance between the position corresponding to the triggering operation and the center of the direction control; and use the distance between the position corresponding to the triggering operation and the center of the direction control as the operation distance.
[0023] In a possible implementation, the type of the direction control is a following direction control, and the target gesture operation on the direction control is a continuous gesture operation of swiping after triggering the direction control;
[0024] The determining module is configured to, in response to a continuous gesture operation of swiping after triggering the direction control, determine the distance between the position corresponding to the triggering operation and the end position of the swiping operation; and use the distance between the position corresponding to the triggering operation and the end position of the swiping operation as the operation distance.
[0025] In a possible implementation, the type of the direction control is a fixed direction control, and the target gesture operation on the direction control is a triggering operation on the direction control;
[0026] The determining module is further configured to, in response to a swiping operation on the direction control received after the triggering operation, determine the distance between the end position of the swiping operation and the center of the direction control;
[0027] The display module is further configured to, based on the distance between the end position of the swiping operation and the center of the direction control being greater than the static step range threshold, adjust the display mode of the direction control to the first display mode.
[0028] In a possible implementation, the type of the direction control is a following direction control, and the target gesture operation on the direction control is a continuous gesture operation of swiping after triggering the direction control;
[0029] The determining module is further configured to, in response to a secondary swiping operation on the direction control received after the swiping operation, determine the distance between the end position of the secondary swiping operation and the position corresponding to the triggering operation;
[0030] The display module is further configured to, based on the distance between the end position of the secondary swiping operation and the position corresponding to the triggering operation being greater than the static step range threshold, adjust the display mode of the direction control to the first display mode.
[0031] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory. At least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor so that the computer device implements any one of the above-mentioned game control methods.
[0032] On the other hand, a computer-readable storage medium is also provided. At least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor so that a computer implements any one of the above-mentioned game control methods.
[0033] On the other hand, a computer program or a computer program product is also provided. At least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor so that a computer implements any one of the above-mentioned game control methods.
[0034] The technical solution provided by the embodiment of the present application at least brings the following beneficial effects:
[0035] In the technical solution provided by the embodiment of the present application, when a direction control is triggered and the operation distance corresponding to the target gesture operation on the direction control is not greater than the sneak range threshold, the display mode of the direction control after adjustment is determined according to the operation distance, and then the direction control is displayed according to the display mode of the direction control after adjustment. This method enables the player to know whether the movement mode of the virtual object in the virtual environment is the sneak mode according to the display mode of the direction control after adjustment, without shaking the virtual environment, so that the accuracy of the movement mode of the virtual object determined by the player in the virtual environment is relatively high. The player can control the virtual object according to the movement mode of the virtual object in the virtual environment, so that the control effect of the virtual object is better. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0037] Figure 1 is a schematic diagram of an implementation environment of a game control method provided by an embodiment of the present application;
[0038] Figure 2 is a flowchart of a game control method provided by an embodiment of the present application;
[0039] Figure 3It is a schematic diagram showing the display of a game screen provided by an embodiment of the present application;
[0040] Figure 4 It is another schematic diagram showing the display of a game screen provided by an embodiment of the present application;
[0041] Figure 5 It is another schematic diagram showing the display of a game screen provided by an embodiment of the present application;
[0042] Figure 6 It is another schematic diagram showing the display of a game screen provided by an embodiment of the present application;
[0043] Figure 7 It is another schematic diagram showing the display of a game screen provided by an embodiment of the present application;
[0044] Figure 8 It is another schematic diagram showing the display of a game screen provided by an embodiment of the present application;
[0045] Figure 9 It is another schematic diagram showing the display of a game screen provided by an embodiment of the present application;
[0046] Figure 10 It is another schematic diagram showing the display of a game screen provided by an embodiment of the present application;
[0047] Figure 11 It is a flowchart of a game control method provided by an embodiment of the present application;
[0048] Figure 12 It is a flowchart of a game control method provided by an embodiment of the present application;
[0049] Figure 13 It is a schematic structural diagram of a game control device provided by an embodiment of the present application;
[0050] Figure 14 It is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
[0051] Figure 15 It is a schematic structural diagram of a server provided by an embodiment of the present application. Detailed implementation manners
[0052] To make the objectives, technical solutions and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0053] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0054] First, the abbreviations and key terms related to the embodiments of the present application are defined.
[0055] Computer Vision Technology (CV) is a science that studies how to enable machines to "see". Further, it refers to using cameras and computers to replace human eyes for object recognition, measurement, and other machine vision, and further performing graphic processing to make the computer-processed images more suitable for human eyes to observe or be transmitted to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies and attempts to establish artificial intelligence systems that can obtain information from images or multi-dimensional data. Large model technology has brought important changes to the development of computer vision technology. Pretrained models in the field of vision such as swin-transformer (a model for image classification and object detection), ViT (a model for image classification), V-MOE (Vision MoE, a new vision architecture based on sparse mixture of experts), and MAE (Masked Autoencoders, a self-supervised learning method) can be quickly and widely applied to downstream specific tasks after fine-tuning. Computer vision technology usually includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous localization and mapping, etc. technologies, and also includes common biometric recognition technologies such as face recognition and fingerprint recognition.
[0056] Stealth walking mode: Refers to in a game, the virtual object moves slowly and does not make a sound.
[0057] Fixed direction control: The UI (User Interface) of the direction control is fixed at the default position and does not change with the position of the hand. In which direction the hand is located relative to the direction control, the virtual object will move in that direction.
[0058] Follow direction control: Taking the position where the finger presses down as the center of the direction control, the virtual object will move in the direction where the finger slides, but the UI of the direction control is still displayed at the default position, only showing the moving direction of the virtual object.
[0059] Virtual environment: It refers to the environment provided (or displayed) when the application runs on the terminal device. This virtual environment is an environment created for virtual objects to move in. The virtual environment can be a two-dimensional virtual environment, a 2.5D virtual environment, or a three-dimensional virtual environment, etc. The virtual environment can be a simulation environment of the real world, a semi-simulation environment of the real world, or a purely fictional environment. Exemplarily, the virtual environment involved in the embodiments of the present application is a three-dimensional virtual environment.
[0060] Virtual object: It refers to an activatable object in the virtual environment. This activatable object can be a virtual character, a virtual animal, an anime character, etc. Players can control the virtual object through peripheral components or by clicking on the touch display screen. Each virtual object has its own shape and volume in the virtual environment and occupies a part of the space in the virtual environment. Exemplarily, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional solid model created based on the animation skeleton technology.
[0061] Third-person perspective: It refers to the position where the in-game camera is at a certain distance behind the virtual object controlled by the player, and it is the perspective from which all elements within a certain environment around the virtual object controlled by the player can be seen in the virtual environment.
[0062] First-person perspective: The game is played from the subjective perspective of the player.
[0063] Figure 1 It is a schematic diagram of the implementation environment of a game control method provided by the embodiments of the present application. As Figure 1 shown, this implementation environment includes: a terminal device 101 and a server 102.
[0064] Among them, a game client capable of providing a virtual environment is installed and running in the terminal device 101, and the terminal device 101 is used to execute the game control method provided by the embodiments of the present application.
[0065] Exemplarily, the game client capable of providing a virtual environment can be a third-person shooting (TPS) game, a first-person shooting (FPS) game, a multiplayer online battle arena (MOBA) game, a multiplayer shooting survival game, a massive multiplayer online role-playing game (MMO), an action role-playing game (ARPG), a virtual reality (VR) client, an augmented reality (AR) client, a three-dimensional map program, a map simulation program, a social client, an interactive entertainment client, etc.
[0066] The server 102 is used to provide background services for the game client installed on the terminal device 101 that can provide a virtual environment. In a possible implementation, the server 102 undertakes the main computing work, and the terminal device 101 undertakes the secondary computing work. Or, the server 102 undertakes the secondary computing work, and the terminal device 101 undertakes the main computing work. Or, a distributed computing architecture is adopted between the terminal device 101 and the server 102 for collaborative computing.
[0067] Optionally, the terminal device 101 can be any electronic device product that can perform human-computer interaction with the user through one or more methods such as a keyboard, a touchpad, a remote control, voice interaction, or a handwriting device. For example, the terminal device 101 can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a PC (Personal Computer), a mobile phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a smart vehicle console, a smart TV, etc.
[0068] The terminal device 101 can generally refer to one of multiple terminal devices. This embodiment only uses the terminal device 101 as an example for illustration. Those skilled in the art can know that the number of the above terminal devices 101 can be more or less. For example, the above terminal device 101 can be only one, or the above terminal device 101 can be dozens or hundreds, or a larger number. The embodiments of the present application do not limit the number and device type of the terminal device 101.
[0069] The server 102 is a single server, or a server cluster composed of multiple servers, or any one of a cloud computing platform and a virtualization center. The embodiments of the present application do not limit this. The server 102 is directly or indirectly communicatively connected to the terminal device 101 through a wired or wireless communication method. The server 102 has a data receiving function, a data processing function, and a data sending function. Of course, the server 102 may also have other functions, and the embodiments of the present application do not limit this.
[0070] Those skilled in the art should understand that the above terminal device 101 and server 102 are only for illustrative purposes. Other existing or future terminal devices or servers, such as those applicable to the present application, should also be included in the protection scope of the present application and are hereby incorporated herein by reference.
[0071] Embodiments of the present application provide a game control method, which can be applied to the above Figure 1 shown implementation environment. Taking Figure 2 the flowchart of a game control method provided by an embodiment of the present application shown as an example, this method can be executed by the Figure 1 terminal device 101 in. As Figure 2 shown, this method includes the following steps 201 to step 202.
[0072] In step 201, a game screen is displayed. The game screen includes a direction control, and the direction control is used to control the movement of a virtual object in a virtual environment. The display mode of the direction control is a first display mode, and the first display mode is used to indicate that the movement mode of the virtual object in the virtual environment is a non-stealth mode.
[0073] In an exemplary embodiment of the present application, a game client capable of providing a virtual environment is installed and run in the terminal device. The game client can be any type of game client, and the embodiments of the present application do not limit this. The game client can refer to a client that needs to be downloaded and installed, or an embedded program that depends on a host program to run, including but not limited to applets. The embodiments of the present application do not limit the type of the game client. Based on the game client being an embedded program, an embedded program is an application program developed based on a programming language and dependent on a host program to run. The embedded program does not need to be downloaded and installed, and only needs to be dynamically loaded in the host program to run. Users can find the required embedded program by searching, scanning, etc., and can run it after clicking. After use and closing, it will not occupy the memory of the terminal device, which is very convenient. The game client can be a first-person perspective game client or a third-person perspective game client. The game client can be a game client based on frame synchronization. That is to say, the game control method provided by the embodiments of the present application can be applied to a game client based on frame synchronization.
[0074] In a possible implementation, relevant information of the game client is displayed on the display interface of the terminal device. The relevant information of the game client may be an icon of the game client, a name of the game client, or other information of the game client. The embodiments of the present application do not limit the relevant information of the game client.
[0075] When a user wants to run the game client, the user selects the relevant information of the game client. The terminal device receives a trigger operation for the relevant information of the game client, runs the game client, and displays the home page of the game client. A start control is displayed on the home page of the game client, and the start control is used to start a game session. In response to a trigger operation for the start control, a game session is started, and a game screen is displayed. The game screen includes a direction control, and the direction control is used to control the movement of a virtual object in a virtual environment. The display mode of the direction control is a first display mode. The first display mode is used to indicate that the movement mode of the virtual object in the virtual environment is a non-stealth mode. Exemplarily, the first display mode is used to indicate that the virtual object is not moving in the virtual environment, that is, the first display mode is used to indicate that the virtual object is in a stationary state in the virtual environment. Alternatively, the first display mode is used to indicate that the movement mode of the virtual object in the virtual environment is a running mode.
[0076] Optionally, that the display mode of the direction control is the first display mode means that the direction control is displayed in gray. Of course, that the display mode of the direction control is the first display mode may also mean that the direction control is displayed in other colors. The embodiments of the present application do not limit this.
[0077] Among them, the user's selection of the relevant information of the game client may be that the user clicks on the relevant information of the game client, that the user double-clicks on the relevant information of the game client, that the user selects the relevant information of the game client by voice, or that the user selects the relevant information of the game client by other means. The embodiments of the present application do not limit this. The process of the trigger operation for the start control is similar to the process of the user's selection of the relevant information of the game client, and the embodiments of the present application will not elaborate on this here.
[0078] As Figure 3 is a schematic diagram of the display of a game screen provided by the embodiments of the present application. In Figure 3 the shown game screen, a direction control 301 is displayed, and the direction control 301 is displayed in gray.
[0079] Optionally, a virtual object located in the virtual environment can also be displayed in the game screen, and the virtual object holds a virtual item. A launch control can also be displayed in the game screen, and the launch control is used to launch the virtual resource corresponding to the virtual item. For example, the virtual item is a virtual throwable object, and the virtual resource corresponding to the virtual throwable object is a virtual bullet. In response to a trigger operation on the launch control, control the virtual throwable object to launch the virtual bullet.
[0080] In step 202, in response to a target gesture operation on the direction control, display the direction control in the display manner after adjustment by the direction control. The operation distance corresponding to the target gesture operation is not greater than the sneak threshold. The display manner after adjustment by the direction control is determined based on the operation distance, and the display manner after adjustment by the direction control is used to indicate that the movement manner of the virtual object in the virtual environment is the sneak manner.
[0081] In a possible implementation manner, the types of the direction controls are different, the target gesture operations on the direction controls are different, and the methods for determining the operation distances corresponding to the target gesture operations are also different. The following two cases are based on different types of the direction controls, and in response to the target gesture operations on the direction controls, determine the operation distances corresponding to the target gesture operations.
[0082] Case 1: The type of the direction control is a fixed direction control, and the target gesture operation on the direction control is a trigger operation on the direction control. In response to the trigger operation on the direction control, determine the distance between the position corresponding to the trigger operation and the center of the direction control; use the distance between the position corresponding to the trigger operation and the center of the direction control as the operation distance.
[0083] Among them, the trigger operation on the direction control can refer to a click operation on the direction control, or a long-press operation on the direction control, or other operations on the direction control. The embodiments of the present application do not limit this.
[0084] Optionally, before determining the distance between the position corresponding to the trigger operation and the center of the direction control in response to the trigger operation on the direction control, it is necessary to first determine the position information of the position corresponding to the trigger operation and the position information of the center of the direction control. Among them, the process of determining the position information of the position corresponding to the trigger operation includes: in response to the trigger operation on the direction control, use the position information of the position of the trigger operation in the display interface of the terminal device as the position information of the position corresponding to the trigger operation.
[0085] The process of determining the position information of the center of the direction control includes: the position information of the center of the direction control is stored in the server, and in response to the trigger operation on the direction control, obtain the position information of the center of the direction control through interaction with the server.
[0086] Optionally, in response to a triggering operation on the direction control, a location information acquisition request is generated, which is used to acquire the location information of the center of the direction control. The location information acquisition request is sent to the server. The server receives the location information acquisition request and sends the location information of the center of the direction control to the terminal device, so that the terminal device can acquire the location information of the center of the direction control.
[0087] The location information of the center of the direction control can be two-dimensional location information or three-dimensional location information, and the location information of the location corresponding to the triggering operation can be two-dimensional location information or three-dimensional location information. The embodiments of the present application do not limit this. It should be noted that the dimensions of the location information of the center of the direction control and the location information of the location corresponding to the triggering operation are the same.
[0088] After acquiring the location information of the center of the direction control and the location information of the location corresponding to the triggering operation, the distance between the location corresponding to the triggering operation and the center of the direction control is determined according to the location information of the center of the direction control and the location information of the location corresponding to the triggering operation. Optionally, the Euclidean distance between the location information of the center of the direction control and the location information of the location corresponding to the triggering operation is used as the distance between the location corresponding to the triggering operation and the center of the direction control.
[0089] Exemplarily, if the location information of the center of the direction control is (X1, Y1, Z1) and the location information of the location corresponding to the triggering operation is (X2, Y2, Z2), then the distance between the location corresponding to the triggering operation and the center of the direction control is determined as
[0090] In a possible implementation manner, the distance between the location corresponding to the triggering operation and the center of the direction control can also be determined in the following way. This way includes: a distance determination module is included in the terminal device, and in response to a triggering operation on the direction control, the distance determination module is called to determine the distance between the location corresponding to the triggering operation and the center of the direction control.
[0091] Such as Figure 4 is another schematic diagram of the display of the game screen provided by the embodiments of the present application. In Figure 4 In the shown game screen, 401 is the location corresponding to the triggering operation, 402 is the center of the direction control, and 403 is the distance between the location corresponding to the triggering operation and the center of the direction control.
[0092] It should be noted that the distance between the location corresponding to the triggering operation and the center of the direction control can also be determined by other means, and the embodiments of the present application do not limit this.
[0093] Case 2: The type of the direction control is a follow - up direction control, and the target gesture operation for the direction control is a continuous gesture operation of swiping after triggering the direction control. In response to the continuous gesture operation of swiping after triggering the direction control, determine the distance between the position corresponding to the triggering operation and the end position of the swiping operation; use the distance between the position corresponding to the triggering operation and the end position of the swiping operation as the operation distance.
[0094] Among them, the triggering operation for the direction control can be a click operation on the direction control, a long - press operation on the direction control, or other operations on the direction control. The embodiments of the present application do not limit this.
[0095] Optionally, before determining the distance between the position corresponding to the triggering operation and the end position of the swiping operation in response to the continuous gesture operation of swiping after triggering the direction control, it is necessary to first obtain the position information of the position corresponding to the triggering operation and the position information of the end position of the swiping operation. The process of obtaining the position information of the position corresponding to the triggering operation and the process of obtaining the position information of the end position of the swiping operation are both similar to the process of obtaining the position information of the position corresponding to the triggering operation in Case 1 above. The embodiments of the present application will not elaborate here.
[0096] The process of determining the distance between the position corresponding to the triggering operation and the end position of the swiping operation according to the position information of the position corresponding to the triggering operation and the position information of the end position of the swiping operation is similar to the process of determining the distance between the position corresponding to the triggering operation and the center of the direction control according to the position information of the position corresponding to the triggering operation and the position information of the center of the direction control in Case 1 above. The embodiments of the present application will not elaborate here either.
[0097] Optionally, in response to the continuous gesture operation of swiping after triggering the direction control, it is also possible to call a distance determination module to determine the distance between the position corresponding to the triggering operation and the center of the direction control.
[0098] Such as Figure 5 is a schematic diagram of the display of another game screen provided by the embodiments of the present application. In Figure 5 the shown game screen, 501 is the position corresponding to the triggering operation, 502 is the end position of the swiping operation, and 503 is the distance between the position corresponding to the triggering operation and the end position of the swiping operation.
[0099] Based on the operation distance not being greater than the static - step range threshold, determine the display mode of the direction control after adjustment according to the operation distance, and display the direction control according to the display mode of the direction control after adjustment. The display position of the direction control after adjustment is used to indicate that the movement mode of the virtual object in the virtual environment is the static - step mode.
[0100] Among them, the still step range threshold is set based on experience or adjusted according to the implementation environment, and the embodiments of the present application do not limit this. Exemplarily, the still step range threshold is 30 pixels (pixel, px).
[0101] In a possible implementation manner, after determining the operation distance in the above process, based on the operation distance not being greater than the still step range threshold, the process of determining the display manner of the direction control after adjustment according to the operation distance includes the following three cases.
[0102] Case 1: Based on the operation distance not being greater than the distance threshold, the second display manner is used as the display manner of the direction control after adjustment.
[0103] Among them, the distance threshold is less than the still step range threshold. The distance threshold is set based on experience or adjusted according to the implementation environment, and the embodiments of the present application do not limit this. Exemplarily, the distance threshold is 12 pixels. The second display manner is used to indicate that the movement manner of the virtual object in the virtual environment has not changed, that is, the second display manner is used to indicate that the movement manner of the virtual object in the virtual environment is still the still step manner.
[0104] The second display manner is any display manner different from the first display manner. Exemplarily, the display manner of the direction control being the second display manner means that the direction control is displayed in yellow. As Figure 6 is a schematic diagram of the display of another game screen provided by the embodiments of the present application. In Figure 6 the shown game screen, there is a direction control 601 displayed, and the direction control 601 is displayed in yellow ( Figure 6 not shown in).
[0105] Exemplarily, the distance threshold is 12 pixels, and the operation distance determined in the above process is 10 pixels, then the display manner of the direction control is adjusted from the first display manner to the second display manner, that is, the direction control is adjusted from gray to yellow.
[0106] Case 2: Based on the operation distance being the still step range threshold, the third display manner is used as the display manner of the direction control after adjustment.
[0107] Among them, the third display manner is used to indicate that the movement manner of the virtual object in the virtual environment is about to change. The third display manner is a display manner different from both the first display manner and the second display manner. Exemplarily, the display manner of the direction control being the third display manner means that the direction control is displayed in red.
[0108] Exemplarily, the stealth movement range threshold is 30 pixels. If the operation distance determined in the above process is 30 pixels, then the display mode of the direction control is adjusted from the first display mode to the third display mode, that is, the direction control is adjusted from gray to red.
[0109] Case 3: Based on the operation distance being greater than the distance threshold and less than the stealth movement range threshold, the display mode of the direction control is adjusted to the fourth display mode as the display mode after the adjustment of the direction control.
[0110] Among them, the fourth display mode is a display mode different from the first display mode, the second display mode, and the third display mode. The fourth display mode corresponds to the operation distance. The operation distance is positively correlated with the stealth movement range threshold, and the fourth display mode is positively correlated with the third display mode. That is, the closer the operation distance is to the stealth movement range threshold, the closer the fourth display mode is to the third display mode. The operation distance is positively correlated with the distance threshold, and the fourth display mode is positively correlated with the second display mode. That is, the closer the operation distance is to the distance threshold, the closer the fourth display mode is to the second display mode.
[0111] Optionally, based on the operation distance being greater than the distance threshold and less than the stealth movement range threshold, the display mode corresponding to the operation distance is used as the fourth display mode. In the terminal device, the corresponding relationship between each distance greater than the distance threshold and less than the stealth movement range threshold and each display mode is stored. Exemplarily, Table 1 below is an exemplary table of the corresponding relationship between each distance greater than the distance threshold and less than the stealth movement range threshold and each display mode provided by the embodiments of the present application.
[0112] Table 1
[0113] Distance Display mode 13 First color 14 Second color 15 Third color 16 Fourth color … … 29 Nth color
[0114] As can be seen from Table 1 above, when the distance is 13, the corresponding display mode is the first color. When the distance is other values, the corresponding display modes are as shown in Table 1 above, and will not be elaborated here one by one. Exemplarily, if the operation distance determined in step 202 above is 14, then according to the corresponding relationship shown in Table 1, the second color is used as the fourth display mode, that is, the direction control is adjusted from gray to the second color.
[0115] Optionally, if the operating distance is not greater than the distance threshold, the direction control is changed to yellow. If the operating distance is within the stealth walking range threshold, the direction control is changed to red. If the operating distance is greater than the distance threshold and less than the stealth walking range threshold, the direction control is changed to the color corresponding to the operating distance. The color corresponding to the operating distance is a gradient color between yellow and red, and the closer the operating distance is to the stealth walking range threshold, the closer the color corresponding to the operating distance is to red. Conversely, the closer the operating distance is to the distance threshold, the closer the color corresponding to the operating distance is to yellow.
[0116] In a possible implementation, in response to a target gesture operation on the direction control, a stealth walking indicator may also be displayed in the game screen. The stealth walking indicator is used to indicate that the movement mode of the virtual object in the virtual environment is the stealth walking mode, and the operating distance corresponding to the target gesture operation is not greater than the stealth walking range threshold.
[0117] When the operating distance is not greater than the stealth walking range threshold, not only the display mode of the direction control is adjusted, but also a stealth walking indicator is displayed in the game screen. This is because some users have relatively large fingers, and when the user triggers the direction control, the direction control may be completely covered. In this case, if only the display mode of the direction control is adjusted, since the player's finger completely covers the direction control, the player cannot perceive the change in the display mode of the direction control, and thus cannot perceive the movement mode of the virtual object in the virtual environment. Therefore, on the basis of adjusting the display mode of the direction control, a stealth walking indicator is added and displayed in the game screen, so that when the player's finger completely covers the direction control, the player can perceive the movement mode of the virtual object in the virtual environment through the stealth walking indicator.
[0118] Optionally, the display mode of the stealth walking indicator displayed in the game screen is the same as the adjusted display mode of the direction control. For example, if the adjusted display mode of the direction control is that the direction control is displayed in yellow, then the stealth walking indicator is displayed in yellow. Another example is that if the adjusted display mode of the direction control is that the direction control is displayed in red, then the stealth walking indicator is displayed in red.
[0119] In a possible implementation, based on the operating distance not being greater than the stealth walking range threshold, before displaying the stealth walking indicator in the game screen, it is necessary to first determine the display position of the stealth walking indicator. The embodiment of the present application does not limit the process of determining the display position of the stealth walking indicator.
[0120] Optionally, the display position of the stealth walking indicator is determined according to the following process, and the process includes: based on the operating distance not being greater than the stealth walking range threshold, determining the display position of the stealth walking indicator according to the target gesture operation on the direction control; and displaying the stealth walking indicator at the display position of the stealth walking indicator in the game screen.
[0121] Depending on the different target gesture operations on the direction control, the way to determine the display position of the sneak indicator is also different. According to the target gesture operation on the direction control, there are the following two cases to determine the display position of the sneak indicator.
[0122] The first case: Based on the type of the direction control being a fixed direction control, and the target gesture operation on the direction control being a trigger operation on the direction control, determine the display position of the sneak indicator according to the trigger operation on the direction control.
[0123] Optionally, according to the trigger operation on the direction control, determine a first ray starting from the center of the direction control and passing through the position corresponding to the trigger operation; use the first point on the first ray as the display position of the sneak indicator, the distance between the first point and the second point meets the distance requirement, and the first point is not located on the direction control, and the second point is the intersection point of the first ray and the direction control.
[0124] Among them, that the distance between the first point and the second point meets the distance requirement means that the distance between the first point and the second point is the target distance. The target distance is set based on experience or adjusted according to the implementation environment, and the embodiments of the present application do not limit this. Exemplarily, the target distance is 3 pixels.
[0125] As Figure 7 is a schematic diagram of the display of another game screen provided by the embodiments of the present application. In Figure 7 the shown game screen, a sneak indicator 701 is displayed, and the display position of the sneak indicator 701 is the position where the first point 702 is located. The first point 702 is located on the first ray 703, and the distance between the first point 702 and the second point 704 meets the distance requirement. The first ray 703 starts from the center 705 of the direction control and passes through the position 706 corresponding to the trigger operation.
[0126] The second case: Based on the type of the direction control being a follow direction control, and the target gesture operation on the direction control being a continuous gesture operation of sliding after triggering the direction control, determine the display position of the sneak indicator according to the continuous gesture operation of sliding after triggering the direction control.
[0127] Optionally, according to the continuous gesture operation of sliding after triggering the direction control, determine a second ray starting from the position corresponding to the trigger operation and passing through the end position of the sliding operation; determine a third ray parallel to the second ray and starting from the center of the direction control; use the third point on the third ray as the display position of the sneak indicator, the distance between the third point and the fourth point meets the distance requirement, and the third point is not located on the direction control, and the fourth point is the intersection point of the third ray and the direction control.
[0128] As Figure 8 is a schematic diagram showing another display of a game screen provided by an embodiment of the present application. In Figure 8 the shown game screen, a crouching indicator 801 is displayed, and the display position of the crouching indicator 801 is the position where the third point 802 is located. The third point 802 is located on the third ray 803, and the distance between the third point 802 and the fourth point 804 meets the distance requirement. The third ray 803 is parallel to the second ray 805 and is a ray starting from the center 806 of the direction control. The second ray 805 is a ray starting from the position 807 corresponding to the trigger operation and passing through the end position 808 of the sliding operation.
[0129] In a possible implementation, after the direction control is displayed according to the adjusted display mode of the direction control, if the user further operates on the direction control, the display mode of the direction control can also be adjusted. This process includes: based on the type of the direction control being a fixed direction control, the target gesture operation for the direction control being the trigger operation for the direction control, in response to receiving a sliding operation on the direction control after the trigger operation, determining the distance between the end position of the sliding operation and the center of the direction control; based on the distance between the end position of the sliding operation and the center of the direction control being greater than the crouching range threshold, displaying the direction control in the first display mode. In this way, the user can know that the movement mode of the virtual object in the virtual environment is a non-crouching mode. That is, the direction control is displayed in gray.
[0130] As Figure 9 is a schematic diagram showing another display of a game screen provided by an embodiment of the present application. In Figure 9 the shown game screen, the position corresponding to the trigger operation for the direction control is 901. After the trigger operation for the direction control, the direction control is slid again, and the end position of the sliding operation is 902. The distance between the end position of the sliding operation and the center 903 of the direction control is greater than the crouching range threshold. Therefore, Figure 9 the direction control 904 in is displayed in gray (the first display mode).
[0131] Optionally, based on the distance between the end position of the sliding operation and the center of the direction control being greater than the crouching range threshold, the crouching indicator is cancelled from display.
[0132] Based on the type of the direction control being a follow - direction control, the target gesture operation for the direction control is a continuous gesture operation of sliding after triggering the direction control. In response to receiving a secondary sliding operation for the direction control after the sliding operation, determine the distance between the end position of the secondary sliding operation and the position corresponding to the triggering operation; based on the distance between the end position of the secondary sliding operation and the position corresponding to the triggering operation being greater than the static - step range threshold, display the direction control in a first display manner. That is, display the direction control as gray.
[0133] Optionally, based on the distance between the end position of the secondary sliding operation and the position corresponding to the triggering operation being greater than the static - step range threshold, cancel the display of the static - step indicator.
[0134] Such as Figure 10 is a schematic diagram of the display of another game screen provided by an embodiment of the present application. In Figure 10 In the shown game screen, the position corresponding to the triggering operation for the direction control is 1001. After the triggering operation for the direction control, the end position of the first sliding operation of sliding the direction control is 1002, and the end position of the secondary sliding operation of sliding the direction control for the second time is 1003. The distance between the end position 1003 of the secondary sliding operation and the position 1001 corresponding to the triggering operation is greater than the static - step range threshold. Therefore, Figure 10 the direction control 1004 in
[0135] The above - mentioned method, when the direction control is triggered and the operation distance corresponding to the target gesture operation for the direction control is not greater than the static - step range threshold, determines the display manner after adjustment of the direction control according to the operation distance, and then displays the direction control according to the display manner after adjustment of the direction control. This method enables the player to know whether the movement mode of the virtual object in the virtual environment is the static - step mode according to the display manner after adjustment of the direction control, without shaking the virtual environment, making the accuracy of the movement mode of the virtual object determined by the player in the virtual environment relatively high. The player can control the virtual object according to the movement mode of the virtual object in the virtual environment, making the control effect of the virtual object better.
[0136] Figure 11 is a flowchart of a game control method provided by an embodiment of the present application. This flowchart is for the case where the type of the direction control is a fixed - direction control. As Figure 11 shown, this method includes the following steps 1101 to step 1109.
[0137] Step 1101: Determine whether the player triggers the direction control.
[0138] Step 1102: Based on the player not triggering the direction control, end the process.
[0139] Step 1103: Based on the player triggering the direction control, determine the distance Y between the position corresponding to the trigger operation and the center of the direction control.
[0140] Step 1104: Based on Y being equal to the sneak range threshold, display the direction control in red, display the sneak indicator, and display the sneak indicator in red. Based on Y being not greater than the distance threshold, display the direction control in yellow, display the sneak indicator, and display the sneak indicator in yellow. Based on Y being less than the sneak range threshold and greater than the distance threshold, display the direction control in the color corresponding to Y, display the sneak indicator, and display the sneak indicator in the color corresponding to Y.
[0141] Based on Y being greater than the sneak range threshold, the direction control does not change, and the sneak indicator is not displayed.
[0142] Step 1105: Determine whether the player cancels triggering the direction control.
[0143] Step 1106: Based on the player not canceling the trigger of the direction control, determine whether the player makes a swipe.
[0144] Step 1107: Based on the player making a swipe, determine the distance X between the end position of the swipe operation and the center of the direction control.
[0145] Based on the player not making a swipe, execute Step 1103.
[0146] Step 1108: Based on X being equal to the sneak range threshold, display the direction control in red, display the sneak indicator, and display the sneak indicator in red. Based on X being not greater than the distance threshold, display the direction control in yellow, display the sneak indicator, and display the sneak indicator in yellow. Based on X being less than the sneak range threshold and greater than the distance threshold, display the direction control in the color corresponding to X, display the sneak indicator, and display the sneak indicator in the color corresponding to X.
[0147] Based on X being greater than the sneak range threshold, the direction control does not change, and the sneak indicator is not displayed.
[0148] Step 1109: Based on the player canceling the trigger of the direction control, display the direction control in gray, and cancel the display of the sneak indicator.
[0149] Figure 12 It is a flowchart of a game control method provided by an embodiment of the present application. This flowchart is for the case where the type of the direction control is a follow direction control, as Figure 12 shown. This method includes the following steps 1201 to 1210.
[0150] Step 1201: Determine whether the player triggers the direction control.
[0151] Step 1202: End the process based on the player not triggering the direction control.
[0152] Step 1203: Based on the player triggering the direction control, determine whether the player makes a swipe.
[0153] Step 1204: Based on the player making a swipe, determine the distance Z between the position corresponding to the trigger operation and the end position of the swipe operation.
[0154] Based on the player not making a swipe operation, execute Step 1202.
[0155] Step 1205: Based on Z being equal to the sneak range threshold, display the direction control in red, display the sneak indicator, and the sneak indicator is displayed in red. Based on Z not being greater than the distance threshold, display the direction control in yellow, display the sneak indicator, and the sneak indicator is displayed in yellow. Based on Z being less than the sneak range threshold and greater than the distance threshold, display the direction control in the color corresponding to Z, display the sneak indicator, and the sneak indicator is displayed in the color corresponding to Z.
[0156] Based on Z being greater than the sneak range threshold, the direction control does not change, and the sneak indicator is not displayed.
[0157] Step 1206: Determine whether the player cancels the swipe operation.
[0158] Step 1207: Based on the player not canceling the swipe operation, determine whether the player makes another swipe.
[0159] Step 1208: Based on the player making another swipe, determine the distance W between the position corresponding to the trigger operation and the end position of the secondary swipe operation.
[0160] Based on the player not making another swipe, execute Step 1204.
[0161] Step 1209: Based on W being equal to the sneak range threshold, display the direction control in red, display the sneak indicator, and the sneak indicator is displayed in red. Based on W not being greater than the distance threshold, display the direction control in yellow, display the sneak indicator, and the sneak indicator is displayed in yellow. Based on W being less than the sneak range threshold and greater than the distance threshold, display the direction control in the color corresponding to W, display the sneak indicator, and the sneak indicator is displayed in the color corresponding to W.
[0162] Based on W being greater than the sneak range threshold, the direction control does not change, and the sneak indicator is not displayed.
[0163] Step 1210: Based on the player canceling the swipe operation, display the direction control in gray, and cancel the display of the sneak indicator.
[0164] Figure 13 The following is a schematic structural diagram of a game control device provided by an embodiment of the present application. As Figure 13 shown, the device includes:
[0165] A display module 1301, configured to display a game screen, where the game screen includes a direction control, the direction control is used to control the movement of a virtual object in a virtual environment, the display mode of the direction control is a first display mode, and the first display mode is used to indicate that the movement mode of the virtual object in the virtual environment is a non-stealth mode;
[0166] The display module 1301 is further configured to, in response to a target gesture operation on the direction control, display the direction control according to the adjusted display mode of the direction control. The operation distance corresponding to the target gesture operation is not greater than the stealth range threshold, and the adjusted display mode of the direction control is determined based on the operation distance. The adjusted display mode of the direction control is used to indicate that the movement mode of the virtual object in the virtual environment is a stealth mode.
[0167] In a possible implementation manner, the device further includes:
[0168] A determination module 1302, configured to, based on the operation distance not being greater than the distance threshold, use the second display mode as the adjusted display mode of the direction control. The distance threshold is less than the stealth range threshold, and the second display mode is used to indicate that the movement mode of the virtual object in the virtual environment has not changed; based on the operation distance being the stealth range threshold, use the third display mode as the adjusted display mode of the direction control, and the third display mode is used to indicate that the movement mode of the virtual object in the virtual environment is about to change; based on the operation distance being greater than the distance threshold and less than the stealth range threshold, use the fourth display mode as the adjusted display mode of the direction control. The fourth display mode corresponds to the operation distance, the operation distance is positively correlated with the stealth range threshold, the fourth display mode is positively correlated with the third display mode, the operation distance is positively correlated with the distance threshold, and the fourth display mode is positively correlated with the second display mode; wherein, the second display mode, the third display mode, and the fourth display mode are all used to indicate that the movement mode of the virtual object in the virtual environment is a stealth mode.
[0169] In a possible implementation manner, the display module 1301 is further configured to, in response to a target gesture operation on the direction control, display a stealth indicator in the game screen. The stealth indicator is used to indicate that the movement mode of the virtual object in the virtual environment is a stealth mode, and the operation distance corresponding to the target gesture operation is not greater than the stealth range threshold.
[0170] In a possible implementation manner, the display mode of the stealth indicator is the same as the adjusted display mode of the direction control.
[0171] In a possible implementation manner, the device further includes:
[0172] A determination module 1302, configured to determine a display position of a sneak indicator based on an operation distance not greater than a sneak step range threshold and according to a target gesture operation for a direction control.
[0173] A display module 1301, configured to display a sneak indicator at the display position of the sneak indicator in a game screen.
[0174] In a possible implementation, the determination module 1302 is configured to determine a first ray that starts from the center of the direction control and passes through a position corresponding to a trigger operation based on the type of the direction control being a fixed direction control and the target gesture operation for the direction control being a trigger operation for the direction control; use a first point on the first ray as the display position of the sneak indicator, where the distance between the first point and a second point meets a distance requirement and the first point is not located on the direction control, and the second point is the intersection point of the first ray and the direction control.
[0175] In a possible implementation, the determination module 1302 is configured to determine a second ray that starts from a position corresponding to a trigger operation and passes through an end position of a sliding operation based on the type of the direction control being a following direction control and the target gesture operation for the direction control being a continuous gesture operation of sliding after a trigger for the direction control; determine a third ray that is parallel to the second ray and starts from the center of the direction control; use a third point on the third ray as the display position of the sneak indicator, where the distance between the third point and a fourth point meets a distance requirement and the third point is not located on the direction control, and the fourth point is the intersection point of the third ray and the direction control.
[0176] In a possible implementation, the type of the direction control is a fixed direction control, and the target gesture operation for the direction control is a trigger operation for the direction control.
[0177] The determination module 1302 is configured to determine a distance between a position corresponding to a trigger operation for the direction control and the center of the direction control in response to the trigger operation for the direction control; use the distance between the position corresponding to the trigger operation for the direction control and the center of the direction control as the operation distance.
[0178] In a possible implementation, the type of the direction control is a following direction control, and the target gesture operation for the direction control is a continuous gesture operation of sliding after a trigger for the direction control.
[0179] The determination module 1302 is configured to determine a distance between a position corresponding to a trigger operation for the direction control and an end position of a sliding operation in response to the continuous gesture operation of sliding after a trigger for the direction control; use the distance between the position corresponding to the trigger operation for the direction control and the end position of the sliding operation as the operation distance.
[0180] In a possible implementation, the type of the direction control is a fixed direction control, and the target gesture operation for the direction control is a triggering operation for the direction control;
[0181] The determining module 1302 is further configured to determine the distance between the end position of the sliding operation and the center of the direction control in response to receiving a sliding operation for the direction control after the triggering operation;
[0182] The display module 1301 is further configured to adjust the display mode of the direction control to a first display mode based on the distance between the end position of the sliding operation and the center of the direction control being greater than the static step range threshold.
[0183] In a possible implementation, the type of the direction control is a following direction control, and the target gesture operation for the direction control is a continuous gesture operation of sliding after triggering for the direction control;
[0184] The determining module 1302 is further configured to determine the distance between the end position of the secondary sliding operation and the position corresponding to the triggering operation in response to receiving a secondary sliding operation for the direction control after the sliding operation;
[0185] The display module 1301 is further configured to adjust the display mode of the direction control to a first display mode based on the distance between the end position of the secondary sliding operation and the position corresponding to the triggering operation being greater than the static step range threshold.
[0186] When the above device triggers the direction control and the operation distance corresponding to the target gesture operation for the direction control is not greater than the static step range threshold, the display mode of the direction control after adjustment is determined according to the operation distance, and then the direction control is displayed according to the display mode of the direction control after adjustment, so that the player can know whether the moving mode of the virtual object in the virtual environment is the static step mode according to the display mode of the direction control after adjustment, without shaking the virtual environment, and the accuracy of the moving mode of the virtual object determined by the player in the virtual environment is relatively high. The player can control the virtual object according to the moving mode of the virtual object in the virtual environment, so that the control effect of the virtual object is better.
[0187] It should be understood that when the above provided device implements its functions, only the above division of each functional module is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0188] Figure 14The structural block diagram of the terminal device 1400 provided by an exemplary embodiment of the present application is shown. The terminal device 1400 can be any electronic device product that can perform human-computer interaction with the user in one or more ways such as a keyboard, a touchpad, a remote control, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, a smart watch, etc.
[0189] Generally, the terminal device 1400 includes: a processor 1401 and a memory 1402.
[0190] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1401 may also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1401 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.
[0191] The memory 1402 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1402 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1401 to implement the game control method provided by the method embodiment of the present application.
[0192] In some embodiments, the terminal device 1400 may further optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402, and the peripheral device interface 1403 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1403 through a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1404, a display screen 1405, a camera assembly 1406, an audio circuit 1407, and a power supply 1409.
[0193] The peripheral device interface 1403 can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral device interface 1403 can be implemented on a separate chip or circuit board, and this embodiment does not limit this.
[0194] The radio frequency circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1404 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1404 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and so on. The radio frequency circuit 1404 can communicate with other terminal devices through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1404 may further include a circuit related to NFC (Near Field Communication), and this application does not limit this.
[0195] The display screen 1405 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to collect touch signals on or above the surface of the display screen 1405. The touch signals can be input as control signals to the processor 1401 for processing. At this time, the display screen 1405 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1405, which is disposed on the front panel of the terminal device 1400; in other embodiments, there may be at least two display screens 1405, which are respectively disposed on different surfaces of the terminal device 1400 or are in a foldable design; in other embodiments, the display screen 1405 may be a flexible display screen, which is disposed on the curved surface or the folding surface of the terminal device 1400. Even, the display screen 1405 can also be set to an irregular non-rectangular shape, that is, a special-shaped screen. The display screen 1405 can be prepared using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0196] The camera module 1406 is used to capture images or videos. Optionally, the camera module 1406 includes a front camera and a rear camera. Generally, the front camera is disposed on the front panel of the terminal device 1400, and the rear camera is disposed on the back of the terminal device 1400. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to implement the function of background blurring by fusing the main camera and the depth-of-field camera, the function of panoramic shooting by fusing the main camera and the wide-angle camera, and the VR (Virtual Reality) shooting function or other fused shooting functions. In some embodiments, the camera module 1406 may further include a flash. The flash can be a single-color temperature flash or a two-color temperature flash. The two-color temperature flash refers to the combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.
[0197] The audio circuit 1407 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for input to the processor 1401 for processing, or input to the radio frequency circuit 1404 to achieve voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal device 1400. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1401 or the radio frequency circuit 1404 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for uses such as ranging. In some embodiments, the audio circuit 1407 may further include a headphone jack.
[0198] The power supply 1409 is used to supply power to each component in the terminal device 1400. The power supply 1409 may be alternating current, direct current, a disposable battery or a rechargeable battery. When the power supply 1409 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0199] In some embodiments, the terminal device 1400 further includes one or more sensors 1410. The one or more sensors 1410 include but are not limited to: an acceleration sensor 1411, a gyroscope sensor 1412, a pressure sensor 1413, an optical sensor 1415, and a proximity sensor 1416.
[0200] The acceleration sensor 1411 can detect the magnitudes of accelerations on the three coordinate axes of the coordinate system established with the terminal device 1400. For example, the acceleration sensor 1411 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1401 can control the display screen 1405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1411. The acceleration sensor 1411 can also be used for collecting game or user's motion data.
[0201] The gyroscope sensor 1412 can detect the body direction and rotation angle of the terminal device 1400. The gyroscope sensor 1412 can cooperate with the acceleration sensor 1411 to collect the 3D actions of the user on the terminal device 1400. Based on the data collected by the gyroscope sensor 1412, the processor 1401 can implement the following functions: motion sensing (such as changing the UI according to the user's tilting operation), image stabilization during shooting, game control, and inertial navigation.
[0202] The pressure sensor 1413 can be disposed on the side frame of the terminal device 1400 and / or the lower layer of the display screen 1405. When the pressure sensor 1413 is disposed on the side frame of the terminal device 1400, it can detect the holding signal of the user on the terminal device 1400, and the processor 1401 can perform left / right hand recognition or quick operation according to the holding signal collected by the pressure sensor 1413. When the pressure sensor 1413 is disposed on the lower layer of the display screen 1405, the processor 1401 can control the operable controls on the UI interface according to the pressure operation of the user on the display screen 1405. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0203] The optical sensor 1415 is used to collect the ambient light intensity. In one embodiment, the processor 1401 can control the display brightness of the display screen 1405 according to the ambient light intensity collected by the optical sensor 1415. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1405 is increased; when the ambient light intensity is low, the display brightness of the display screen 1405 is decreased. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera module 1406 according to the ambient light intensity collected by the optical sensor 1415.
[0204] The proximity sensor 1416, also known as the distance sensor, is usually disposed on the front panel of the terminal device 1400. The proximity sensor 1416 is used to collect the distance between the user and the front of the terminal device 1400. In one embodiment, when the proximity sensor 1416 detects that the distance between the user and the front of the terminal device 1400 is gradually decreasing, the processor 1401 controls the display screen 1405 to switch from the lit state to the off state; when the proximity sensor 1416 detects that the distance between the user and the front of the terminal device 1400 is gradually increasing, the processor 1401 controls the display screen 1405 to switch from the off state to the lit state.
[0205] Those skilled in the art can understand that Figure 14 the structure shown in does not limit the terminal device 1400, and it may include more or fewer components than shown in the figure, or combine some components, or adopt different component arrangements.
[0206] Figure 15Schematic structural diagram of the server provided by the embodiment of the present application. The server 1500 may vary greatly due to different configurations or performances, and may include one or more processors (Central Processing Units, CPUs) 1501 and one or more memories 1502. Among them, at least one program code is stored in the one or more memories 1502, and the at least one program code is loaded and executed by the one or more processors 1501 to implement the game control method provided by each of the above method embodiments. Of course, the server 1500 may also have components such as wired or wireless network interfaces, keyboards, and input / output interfaces for input / output. The server 1500 may also include other components for implementing device functions, which will not be elaborated here.
[0207] In an exemplary embodiment, a computer-readable storage medium is also provided. At least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to enable a computer to implement any of the above game control methods.
[0208] Optionally, the above computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0209] In an exemplary embodiment, a computer program or a computer program product is also provided. At least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any of the above game control methods.
[0210] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions. For example, the game screens involved in the present application are obtained under full authorization.
[0211] It should be understood that "a plurality of" mentioned herein refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the front and rear associated objects.
[0212] The serial numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments.
[0213] The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included within the protection scope of the present application.
Claims
1. A game control method, characterized in that, the method includes: displaying a game screen, where the game screen includes a direction control for controlling the movement of a virtual object in a virtual environment, the display mode of the direction control is a first display mode, and the first display mode is used to indicate that the movement mode of the virtual object in the virtual environment is a non-stealth walking mode; in response to a target gesture operation on the direction control, displaying the direction control in the display mode after adjustment of the direction control, the operation distance corresponding to the target gesture operation is not greater than a stealth walking range threshold, the display mode after adjustment of the direction control is determined based on the operation distance, and the display mode after adjustment of the direction control is used to indicate that the movement mode of the virtual object in the virtual environment is the stealth walking mode.
2. The method according to claim 1, characterized in that, before displaying the direction control in the display mode after adjustment of the direction control, the method further includes: based on the operation distance not being greater than a distance threshold, taking a second display mode as the display mode after adjustment of the direction control, the distance threshold is less than the stealth walking range threshold, and the second display mode is used to indicate that the movement mode of the virtual object in the virtual environment has not changed; based on the operation distance being the stealth walking range threshold, taking a third display mode as the display mode after adjustment of the direction control, and the third display mode is used to indicate that the movement mode of the virtual object in the virtual environment is about to change; based on the operation distance being greater than the distance threshold and less than the stealth walking range threshold, taking a fourth display mode as the display mode after adjustment of the direction control, the fourth display mode corresponds to the operation distance, the operation distance is positively correlated with the stealth walking range threshold, the fourth display mode is positively correlated with the third display mode, the operation distance is positively correlated with the distance threshold, and the fourth display mode is positively correlated with the second display mode; wherein, the second display mode, the third display mode, and the fourth display mode are all used to indicate that the movement mode of the virtual object in the virtual environment is the stealth walking mode.
3. The method according to claim 1 or 2, characterized in that, the method further includes: in response to a target gesture operation on the direction control, displaying a stealth walking indicator in the game screen, and the stealth walking indicator is used to indicate that the movement mode of the virtual object in the virtual environment is the stealth walking mode, and the operation distance corresponding to the target gesture operation is not greater than the stealth walking range threshold.
4. The method according to claim 3, characterized in that, the display mode of the stealth walking indicator is the same as the display mode after adjustment of the direction control.
5. The method according to claim 3, characterized in that, the method further includes: based on the operation distance not being greater than the stealth walking range threshold, determining the display position of the stealth walking indicator according to the target gesture operation on the direction control; Displaying a walking silently indicator in the game screen includes: Displaying the walking silently indicator at the display position of the walking silently indicator in the game screen.
6. The method according to claim 5, characterized in that determining the display position of the walking silently indicator according to the target gesture operation on the direction control includes: Based on the type of the direction control being a fixed direction control and the target gesture operation on the direction control being a trigger operation on the direction control, determining a first ray starting from the center of the direction control and passing through the position corresponding to the trigger operation; Taking a first point on the first ray as the display position of the walking silently indicator, the distance between the first point and a second point meets the distance requirement, and the first point is not located on the direction control, and the second point is the intersection point of the first ray and the direction control.
7. The method according to claim 5, characterized in that determining the display position of the walking silently indicator according to the target gesture operation on the direction control includes: Based on the type of the direction control being a following direction control and the target gesture operation on the direction control being a continuous gesture operation of sliding after triggering the direction control, determining a second ray starting from the position corresponding to the trigger operation and passing through the end position of the sliding operation; Determining a third ray parallel to the second ray and starting from the center of the direction control; Taking a third point on the third ray as the display position of the walking silently indicator, the distance between the third point and a fourth point meets the distance requirement, and the third point is not located on the direction control, and the fourth point is the intersection point of the third ray and the direction control.
8. The method according to claim 1 or 2, characterized in that the type of the direction control is a fixed direction control, and the target gesture operation on the direction control is a trigger operation on the direction control; Before displaying the direction control according to the adjusted display mode of the direction control in response to the target gesture operation on the direction control, the method further includes: Responding to the trigger operation on the direction control and determining the distance between the position corresponding to the trigger operation and the center of the direction control; Taking the distance between the position corresponding to the trigger operation and the center of the direction control as the operation distance.
9. The method according to claim 1 or 2, characterized in that the type of the direction control is a following direction control, and the target gesture operation on the direction control is a continuous gesture operation of sliding after triggering the direction control; Before displaying the direction control according to the adjusted display mode of the direction control in response to the target gesture operation on the direction control, the method further includes: Responding to the continuous gesture operation of sliding after triggering the direction control and determining the distance between the position corresponding to the trigger operation and the end position of the sliding operation; Taking the distance between the position corresponding to the trigger operation and the end position of the sliding operation as the operation distance.
10. The method according to claim 1 or 2, wherein, the type of the direction control is a fixed direction control, and the target gesture operation for the direction control is a triggering operation for the direction control; after displaying the direction control according to the display mode after the adjustment of the direction control in response to the target gesture operation for the direction control, the method further includes: responding to a sliding operation for the direction control received after the triggering operation, and determining the distance between the end position of the sliding operation and the center of the direction control; based on that the distance between the end position of the sliding operation and the center of the direction control is greater than the static step range threshold, displaying the direction control according to the first display mode.
11. The method according to claim 1 or 2, wherein, the type of the direction control is a following direction control, and the target gesture operation for the direction control is a continuous gesture operation of sliding after triggering for the direction control; after displaying the direction control according to the display mode after the adjustment of the direction control in response to the target gesture operation for the direction control, the method further includes: responding to a secondary sliding operation for the direction control received after the sliding operation, and determining the distance between the end position of the secondary sliding operation and the position corresponding to the triggering operation; based on that the distance between the end position of the secondary sliding operation and the position corresponding to the triggering operation is greater than the static step range threshold, displaying the direction control according to the first display mode.
12. A game control device, wherein, the device includes: a display module, configured to display a game screen, where the game screen includes a direction control for controlling the movement of a virtual object in a virtual environment, the display mode of the direction control is a first display mode, and the first display mode is used to indicate that the movement mode of the virtual object in the virtual environment is a non-static step mode; the display module is further configured to display the direction control according to the display mode after the adjustment of the direction control in response to the target gesture operation for the direction control, the operation distance corresponding to the target gesture operation is not greater than the static step range threshold, the display mode after the adjustment of the direction control is determined based on the operation distance, and the display mode after the adjustment of the direction control is used to indicate that the movement mode of the virtual object in the virtual environment is the static step mode.
13. A computer device, wherein, the computer device includes a processor and a memory, and at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to enable the computer device to implement the game control method according to any one of claims 1 to 11.
14. A computer-readable storage medium, wherein, at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to enable a computer to implement the game control method according to any one of claims 1 to 11.
15. A computer program product, characterized in that, at least one computer instruction is stored in the computer program product, and the at least one computer instruction is loaded and executed by a processor so that a computer implements the game control method according to any one of claims 1 to 11.
Citation Information
Cited By
Control method and apparatus, device, and computer-readable storage medium
EP4744747A1